Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

add-workspace-member

БесплатноБез исполняемых скриптовНе проверен

Add or remove a Cargo workspace member in the root members list. Use when adding a tool or package crate, or deciding whether the container image tests it.

torrustот torrust★ 539 звёзд на GitHub

Об этом скилле

Add a Cargo Workspace Member

Use this workflow when changing the root Cargo.toml [workspace] section. Every in-repo crate is listed explicitly in members, including crates reachable as path dependencies, because the cargo-chef --external-only skeleton strips path dependencies and would otherwise lose them.

The container build derives packages and targets from Cargo (see the positive-list container build ADR). Do not edit the Containerfile for a package change; it contains no per-package lists.

Required Review

  1. Add or remove the crate path in root Cargo.toml [workspace].members.
  2. Decide whether the crate is tested inside the container image and update [workspace].default-members accordingly. This is the only positive list for container test archives; cargo nextest archive runs without --workspace in the Containerfile.
    • Product crates (root crate and packages/* that are part of the tracker or its tests) are default members.
    • Tracker verification tools (CLI clients, benchmarks, host-only E2E runners) and AI-harness tools are members but not default members.
  3. Make the crate reachable in the Docker build context. .dockerignore is a default-deny allow-list; cargo chef prepare runs cargo metadata, which aborts if any member's manifest or declared target file is missing.
    • Crates under packages/, console/, src/, or tests/ are already admitted.
    • A crate anywhere else (for example contrib/dev-tools/…) needs its own !/path/to/crate/ line in the interim AI-harness block. Remove the line when the crate leaves the workspace.
    • Never add a broad negation; admit the crate directory only.
  4. For a publishable crate, write its README.md from docs/templates/PACKAGE-README.md and set description, keywords and categories (no documentation field: crates.io then links the crate's own docs.rs page).
  5. Removing a member: delete it from members, from default-members if present, and its .dockerignore line if it had one.

Verification

Run the narrow validation appropriate to the change before the normal repository gate:

cargo metadata --no-deps --format-version 1 > /dev/null
docker build --target recipe --file Containerfile .

For a changed default-members entry, also run:

docker build --target test_debug --file Containerfile .

Then run linter all, cargo test --doc --workspace, and the mandatory pre-commit workflow.

Related Skills

Полный SKILL.md на GitHub

Установить add-workspace-member в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл add-workspace-member?

Add or remove a Cargo workspace member in the root members list. Use when adding a tool or package crate, or deciding whether the container image tests it.

Как установить скилл add-workspace-member?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл add-workspace-member запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить add-workspace-member с