add-custom
Add a custom module repository (company or personal) to claude-code-setup.
Spawn a teammate to work on a separate task independently. You continue your own work and get notified when the teammate finishes.
$ npx -y skills add b33eep/claude-code-setup --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/delegateContext preview
What this command does when you run it.
Spawn a teammate to work on a separate task independently. You continue your own work and get notified when the teammate finishes.
Spawn a teammate to work on a separate task independently. You continue your own work and get notified when the teammate finishes.
Works for any independent task: coding, research, data analysis, information gathering, documentation, etc.
/delegate "write unit tests for the auth module" /delegate "research how other CLIs handle plugin systems, summarize findings" /delegate "analyze the last 10 Milan matches and summarize their performance" /delegate "summarize key findings from the 5 most cited papers on topic X" /delegate "compare pricing models of top 5 SaaS competitors"
The command requires a task description.
**No arguments:**
Usage: /delegate "task description" Example: /delegate "write unit tests for the auth module"
Stop here. Do not proceed.
Delegation works best for independent tasks. If the task requires constant back-and-forth with the user or tight integration with ongoing work, suggest `/with-advisor` instead:
This task needs your continuous input. Use /with-advisor instead — it keeps you in the loop with expert feedback.
Stop here. Do not proceed. Otherwise, continue.
Determine whether the delegate needs to modify repo files or only read/research. This applies to all tasks: development work, research, analysis, documentation, etc.
| Task type | Where delegate works | Examples | |-----------|---------------------|----------| | **Write** (code, docs, config) | `git worktree` on separate branch | "write tests", "refactor module", "add feature", "add documentation to repo" | | **Read-only** (research, analysis, information gathering) | Scratchpad in `/tmp` | "research how X works", "analyze Milan's last games", "compare competitor pricing", "summarize key findings from papers" |
Use Agent Teams (TeamCreate + Task tool) to spawn the delegate.
**Team setup:**
**For write tasks, spawn a teammate with this prompt:**
You are a teammate working on an independent task. You CAN write and edit code. First: run /catchup to understand the project and current work. Your task: [TASK DESCRIPTION] Setup: 1. Create a git worktree for your work: git worktree add /tmp/delegate-[short-task-name] -B delegate/[short-task-name] (use -B to reset the branch if it exists from a previous run) If the worktree path already exists, remove it first: git worktree remove /tmp/delegate-[short-task-name] 2. Work in /tmp/delegate-[short-task-name] (NOT the main repo) 3. Commit your changes in the worktree Rules: - Work in the worktree only — never modify files in the main repo directory - If you need clarification: ask the team lead via SendMessage — don't guess - When done: send a summary to the team lead with what changed, decisions made, and the branch name for review
**For read-only tasks, spawn a teammate with this prompt:**
You are a teammate working on an independent research task. Do NOT write or edit code in the repo. First: run /catchup to understand the project and current work. Your task: [TASK DESCRIPTION] Rules: - Use /tmp for any scratch files you need - If you need clarification: ask the team lead via SendMessage — don't guess - When done: send your findings to the team lead as a clear summary
**Spawn configuration:**
**If spawning fails** (TeamCreate or Task tool returns an error):
Failed to spawn delegate: [error]. You can retry with /delegate "[same task]".
Do not retry automatically.
After spawning, tell the user:
**For write tasks:**
Delegate active for: [task description] [delegate name]: working in git worktree on branch delegate/[short-task-name] Continue your work. The delegate will: - Ask you if it needs clarification - Notify you when done with a summary and branch name To stop: say "stop [delegate name]" anytime.
**For read-only tasks:**
Delegate active for: [task description] [delegate name]: researching in background Continue your work. The delegate will: - Ask you if it needs clarification - Notify you when done with findings To stop: say "stop [delegate name]" anytime.
Then continue your own work as Main. The delegate works independently.
**When the delegate asks a question:** The delegate messages the team lead (you). Forward the question to the user and relay their answer back to the delegate.
**When the delegate finishes:** The user gets a summary. For write tasks, the summary includes the branch name. The user decides what to do:
**When the delegate finishes or the user says "stop [delegate name]":**
1. Send the delegate a shutdown request via SendMessage with `type: shutdown_request` 2. For write tasks, remind the user about the worktree:
Delegate finished. Branch: delegate/[short-task-name] To review: git diff main...delegate/[short-task-name] To merge: git merge delegate/[short-task-name] To clean:
Persistent memory for Claude Code via Markdown files. 📖 Read the Documentation for detailed guides, tutorials, and reference.
Repo: b33eep/claude-code-setup
Add a custom module repository (company or personal) to claude-code-setup.
Manage your claude-code-setup installation: check status, upgrade, install, and remove modules.
A structured way to plan complex features before implementing. Works through: Problem → Options → Solution → Stories → Finalize.
Trigger a code review on your recent changes using the comprehensive-review plugin. This is Step 3 in the Development Flow — review before committing.