delegate-task
Delegate a task by forking a terminal session to a new terminal window. Use this when the user requests 'delegate' or 'create a new terminal' or 'new terminal: <command>' or 'fork session: <command>'.
pinned to #8f8a6eeupdated 2 weeks ago
Ask your AI client: “install skills/delegate-task”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/delegate-taskmetahub onboarded this repo on the author's behalf.
If you own github.com/bradautomates/second-brain on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
173
Last commit
2 weeks ago
Latest release
published
About this skill
Pulled from SKILL.md at publish time.
Fork a new terminal session to a new terminal window using one Claude Code. Follow the `Instructions`, execute the `Workflow`.
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.8f8a6ee· 2 weeks ago
Documentation
41Description quality
33 words · 200 chars — "Delegate a task by forking a terminal session to a new terminal window. Use this…"
README is present and substantial
10,031 chars · 11 sections · 9 code blocks
Tags / topics declaredwarn
No manifest tags and no GitHub repo topics
Add tags to the manifest (or GitHub topics on the repo) so the registry's search and category filters surface this artifact.
README has usage / example sections
found: Installation
Homepage / docs URL declared
no homepage declared (registry will use the repo URL) — info-only, not blocking
Release history
1- releasecurrent8f8a6eewarn2 weeks ago
Contents
Purpose
Fork a new terminal session to a new terminal window using one Claude Code.
Follow the Instructions, execute the Workflow.
Variables
DEFAULT_MODEL: opus HEAVY_MODEL: opus BASE_MODEL: sonnet FAST_MODEL: haiku
Employees
If user specifies "delegate to <name>", read .claude/reference/employees.json to get the repo path.
Instructions
- Before executing the command, run
claude --helpto understand the command and its options. - Always use interactive mode (leave off -p flag)
- For the --model argument, use DEFAULT_MODEL if not specified. If 'fast' is requested, use FAST_MODEL. If 'heavy' is requested, use HEAVY_MODEL.
- Always run with
--dangerously-skip-permissions
Cross-Repo Context (CRITICAL)
When delegating to a different repo (employee), the agent operates in THEIR directory, not yours. Before crafting the prompt:
-
Capture source repo path: Run
pwdto get current working directory (SOURCE_REPO) -
Use absolute paths in prompt for all source repo references:
- Source tasks:
{SOURCE_REPO}/tasks/... - Context files:
{SOURCE_REPO}/context/... - Output directory:
{SOURCE_REPO}/outputs/
- Source tasks:
-
Instruct agent to use its skills: Include in prompt: "First, check your available skills at .claude/skills/ and use any relevant ones for this task."
-
Specify output location explicitly: "Save deliverables to {SOURCE_REPO}/outputs/YYYY-MM-DD-<slug>.md"
File Handling
- Instruct delegated agents to update existing vault files (tasks/, projects/, people/) directly—never create duplicates
- For deliverables, save to source repo's
outputs/YYYY-MM-DD-<slug>.<ext>using absolute path - Link from the reference file under
## Outputsusing the obsidian [[slug]] schema
Source Task Callback
When delegating work related to an existing task or project:
- Identify the source file (e.g.,
tasks/next-weeks-video-idea.md) - Include in the prompt: "When complete, update {absolute_path_to_source_file} with status and link to your output."
Fork Summary User Prompts
- IF: The user requests a fork terminal with a summary.
- THEN:
- Read, and REPLACE the
.claude/skills/delegate/references/fork_summary_user_prompt.mdwith the history of the conversation between you and the user so far. - Include the next users request in the
Next User Requestsection. - This will be what you pass into the PROMPT parameter of the agentic coding tool.
- IMPORTANT: To be clear, don't update the file directly, just read it, fill it out IN YOUR MEMORY and use it to craft a new prompt in the structure provided for the new fork agent.
- Let's be super clear here, the fork_summary_user_prompt.md is a template for you to fill out IN YOUR MEMORY. Once you've filled it out, pass that prompt to the agentic coding tool.
- XML Tags have been added to let you know exactly what you need to replace. You'll be replacing the <fill in the history here> and <fill in the next user request here> sections.
- Read, and REPLACE the
- EXAMPLES:
- "fork terminal use claude code to <xyz> summarize work so far"
- "spin up a new terminal request <xyz> using claude code include summary"
- "create a new terminal to <xyz> with claude code with summary"
Workflow
- Understand the user's request.
- Craft a clear, complete prompt describing the task for the delegated agent.
- Build the claude command with prompt:
claude --model <MODEL> --dangerously-skip-permissions "<PROMPT>"- CRITICAL: The prompt MUST be included as a positional argument. Without it, Claude opens with no task.
- Execute fork:
- Default (same repo):
.claude/skills/delegate/scripts/fork_terminal.py '<full command>' - Different repo:
.claude/skills/delegate/scripts/fork_terminal.py '<full command>' --repo '<employee_path>' - Use single quotes around the full command, double quotes around the prompt.
- Default (same repo):
Examples
User says: "delegate research on X"
Execute: .claude/skills/delegate/scripts/fork_terminal.py 'claude --model opus --dangerously-skip-permissions "Research X and summarize findings"'
User says: "fork terminal to build feature Y"
Execute: .claude/skills/delegate/scripts/fork_terminal.py 'claude --model opus --dangerously-skip-permissions "Implement feature Y in this codebase"'
User says: "delegate to head-of-content: research video ideas"
-> Run pwd to capture SOURCE_REPO
-> Read employees.json, get path for "head-of-content"
-> Craft prompt with: (1) instruction to use .claude/skills/, (2) absolute paths to SOURCE_REPO files
Execute: .claude/skills/delegate/scripts/fork_terminal.py 'claude --model opus --dangerously-skip-permissions "First check .claude/skills/ for relevant skills. Research video ideas. Context: {SOURCE_REPO}/context/... Output to: {SOURCE_REPO}/outputs/..."' --repo '<employee_path>'
Reviews
No reviews yet. Be the first.
Related
Verification Before Completion
Evidence before assertions, always
Writing Plans
Turn specs into phased implementation plans
Test-Driven Development
Red → green → refactor discipline for any feature or bugfix
mh install skills/delegate-task