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★ 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
- Add or remove the crate path in root
Cargo.toml[workspace].members. - Decide whether the crate is tested inside the container image and update
[workspace].default-membersaccordingly. This is the only positive list for container test archives;cargo nextest archiveruns without--workspacein theContainerfile.- 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.
- Product crates (root crate and
- Make the crate reachable in the Docker build context.
.dockerignoreis a default-deny allow-list;cargo chef preparerunscargo metadata, which aborts if any member's manifest or declared target file is missing.- Crates under
packages/,console/,src/, ortests/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.
- Crates under
- For a publishable crate, write its
README.mdfromdocs/templates/PACKAGE-README.mdand setdescription,keywordsandcategories(nodocumentationfield: crates.io then links the crate's own docs.rs page). - Removing a member: delete it from
members, fromdefault-membersif present, and its.dockerignoreline 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
add-rust-dependency— add an external dependency.
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic