agentleFS
mindroom-aimindroom-ai/mindroom/.claude/skills/agent-cli-dev/SKILL.md

agent-cli-dev

Skill319 starsChanged 56 days agoApache-2.0View on GitHub

Spawns AI coding agents in isolated git worktrees. Use when the user asks to spawn or launch an agent, delegate a task to a separate agent, work in a separate worktree, or parallelize development across features.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If agent-cli is not available, install it first:

    line 12
  2. Distinctive:

    Test-driven development (one agent for tests, one for implementation)

    line 31
  3. Distinctive:

    Do NOT spawn when:

    line 33
  4. Very specific:

    Important: Use --prompt-file for prompts longer than a single line.

    line 65
  5. Very specific:

    Report request: Ask the agent to write conclusions to .claude/REPORT.md

    line 73
  6. Very specific:

    Write the prompt to a temporary file (e.g., .claude/spawn-prompt.md)

    line 79
  7. Very specific:

    Use --prompt-file to pass it to the agent

    line 80
  8. Distinctive:

    Treat a high or full context meter as informational, not as a blocker.

    line 113
  9. Distinctive:

    Never rush, interrupt, clear, or restart a Claude agent merely because its context meter is near 100%.

    line 114
  10. Distinctive:

    Keep polling normally and let compaction finish.

    line 115
  11. Very specific:

    After spawning, you can check progress.

    line 118
  12. Distinctive:

    If asked to implement auth, payments, and notifications:

    line 134

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Parallel Development with agent-cli dev

This skill teaches you how to spawn parallel AI coding agents in isolated git worktrees using the agent-cli dev command.

Installation

If agent-cli is not available, install it first:

# Install globally
uv tool install agent-cli

# Or run directly without installing
uvx agent-cli dev new <branch-name> --agent claude --prompt "..."

These examples use the valued --agent syntax verified with agent-cli 0.105.2. Older releases can differ; check agent-cli dev new --help for your installed version.

When to spawn parallel agents

Spawn separate agents when:

  • Multiple independent features/tasks can be worked on in parallel
  • Tasks benefit from isolation (separate branches, no conflicts)
  • Large refactoring that can be split by module/component
  • Test-driven development (one agent for tests, one for implementation)

Do NOT spawn when:

  • Tasks are small and sequential
  • Tasks have tight dependencies requiring constant coordination
  • The overhead of context switching exceeds the benefit

Core command

For short prompts:

agent-cli dev new <branch-name> --agent claude --prompt "Fix the login bug"

For longer prompts (recommended for multi-line or complex instructions):

agent-cli dev new <branch-name> --agent claude --prompt-file path/to/prompt.md

The examples select Claude explicitly; replace claude with your chosen agent name. Omit --agent claude to use the configured or auto-detected agent: --prompt and --prompt-file already imply starting it.

This creates:

  1. A new git worktree with its own branch
  2. Runs project setup (installs dependencies)
  3. Attempts to launch the AI coding agent in the detected terminal or multiplexer; if no supported terminal is available or launch fails, prints manual launch instructions
  4. Passes your prompt to the agent

To start the default agent without an initial prompt, use:

agent-cli dev new <branch-name> --start-agent

Important: Use --prompt-file for prompts longer than a single line. The --prompt option passes text through the shell, which can cause issues with special characters (exclamation marks, dollar signs, backticks, quotes) in ZSH and other shells. Using --prompt-file avoids all shell quoting issues.

Writing effective prompts for spawned agents

Spawned agents work in isolation, so prompts must be self-contained. Include:

  1. Clear task description: What to implement/fix/refactor
  2. Relevant context: File locations, patterns to follow, constraints
  3. Report request: Ask the agent to write conclusions to .claude/REPORT.md

Using --prompt-file (recommended)

For any prompt longer than a single sentence:

  1. Write the prompt to a temporary file (e.g., .claude/spawn-prompt.md)
  2. Use --prompt-file to pass it to the agent
  3. The file can be deleted after spawning

Example workflow:

# 1. Write prompt to file (Claude does this with the Write tool)
# 2. Spawn agent with the file
agent-cli dev new my-feature --agent claude --prompt-file .claude/spawn-prompt.md
# 3. Optionally clean up
rm .claude/spawn-prompt.md

Prompt template

<Task description>

Context:
- <Key file locations>
- <Patterns to follow>
- <Constraints or requirements>

When complete, write a summary to .claude/REPORT.md including:
- What you implemented/changed
- Key decisions you made
- Any questions or concerns for review

Checking spawned agent results

Claude Code context compaction

Claude Code automatically compacts its context when needed. Treat a high or full context meter as informational, not as a blocker. Never rush, interrupt, clear, or restart a Claude agent merely because its context meter is near 100%. Keep polling normally and let compaction finish. Intervene only on concrete evidence of a stuck command or lost progress, not on context-window usage alone.

After spawning, you can check progress. For dev run, put -- before the child command so its options are passed through unchanged:

# List all worktrees and their status
agent-cli dev status

# Read an agent's report
agent-cli dev run <branch-name> -- cat .claude/REPORT.md

# Open the worktree in your editor
agent-cli dev editor <branch-name>

Example: Multi-feature implementation

If asked to implement auth, payments, and notifications:

# Spawn three parallel agents
agent-cli dev new auth-feature --agent claude --prompt "Implement JWT authentication..."
agent-cli dev new payment-integration --agent claude --prompt "Add Stripe payment processing..."
agent-cli dev new email-notifications --agent claude --prompt "Implement email notification system..."

Each agent works independently in its own branch. Results can be reviewed and merged separately.

Key options

OptionDescription
--agent <name>Select and start an agent, such as claude or codex; auto uses the configured or detected default
--start-agentStart the default agent without an initial prompt
--prompt / -pInitial prompt for the agent (short prompts only)
--prompt-file / -PRead prompt from file (recommended for longer prompts)
--from / -fBase branch (default: origin/main)
--with-agent <name> / -aDeprecated aliases for --agent <name> / --start-agent, respectively
--agent-argsExtra arguments for the agent

@examples.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.