component-remove
Remove one component from an initialised workbench, only when nothing would be lost. Explains every refusal. Use when the user says "remove a component", "drop this service", "detach this repo from the workbench".
- License 许可
- MIT
- 最近更新
- 2026-10-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- component-remove
- description
- Remove one component from an initialised workbench, only when nothing would be lost. Explains every refusal. Use when the user says "remove a component", "drop this service", "detach this repo from the workbench".
03 SKILL.md 正文
component-remove
Call the engine only through the mise task, which runs from the workbench root.
1. Ask
Which component (its name under code/)? Restate that the submodule and its checkout
leave the workbench and ask for a yes.
2. Run
mise run component:remove -- --name <name>
3. Refusals
The engine checks everything before changing anything and refuses, with nothing changed, when the component has state that exists nowhere else. Explain each one it names:
- Not a component of this workbench: the name is wrong; list the entries under
code/. - Not checked out: its local state cannot be verified; check it out first.
- Uncommitted or untracked changes: commit or discard them.
- Commits that are not on any remote branch: push them.
- Stashes: they are never pushed; apply or drop them.
- Linked worktrees: remove them first.
- The workbench has staged changes: commit or unstage them first.
Never work around a refusal by deleting by hand. Once the user has resolved the cause, rerun.
4. Report
State the commit and that the component's row left the workbench:project block; suggest
mise run doctor.
04 同仓库更多 Skills
claudy
d claudy
gamma
Literal line one. Literal line two.
beta
Quoted: description with a colon.
alpha
Folded description that spans two lines and ends here.
worktree-merge
Rebases one subagent's worktree onto the base branch, optionally verifies the rebased tree, fast-forwards it into the worktree that has the base checked out (an epic integration tree or the main checkout), verifies every commit landed, and only then removes the worktree and its branch. Keeps the worktree intact on any conflict, dirty tree, or failed check. Use after a subagent returns work created with worktree-create.
worktree-create
Creates one isolated git worktree for one subagent, at <workbench>/.claude/worktrees/<name>, branched from main with the newest origin/main and local main merged in. Refuses a name already in use so two agents can never share a tree. Use once per implementation or review subagent before dispatching it; pair with worktree-merge to land the work and clean up.