SUB-AGENT ONLY: Use when spawned in isolated worktree - executes PLAN.md and syncs status to task.toon
/plugin marketplace add shikihane/polydev/plugin install polydev@polydev-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Execute implementation plans in isolated worktrees with mandatory status synchronization.
Announce at start: "I'm executing the plan in this worktree."
You are a sub-agent started by the main agent via spawn-session.sh, running in an isolated worktree.
You do NOT need to call any polydev scripts. Your responsibilities are:
PLAN.mdtask.toon statusThe main agent monitors your task.toon status via poll.sh.
Every status change MUST be immediately written to task.toon:
| Event | task.toon fields |
|---|---|
| Start executing | overall_status: in_progress |
| Need orchestration help | overall_status: blocked, blocking_reason: <why> |
| Must have human decision | overall_status: hil, blocking_reason: <why> |
| Batch done, waiting for review | overall_status: hil, blocking_reason: Awaiting code review |
| All tasks complete | overall_status: completed |
overall_status: in_progress, clear blocking_reasonPLAN.md from worktree roothil, set blocking_reason, STOPDefault batch size: 3 tasks
For each task in batch:
in_progress in TodoWritecompleted in TodoWriteWhen batch complete:
Batch [N] complete:
- Task 1: [description] done
- Task 2: [description] done
- Task 3: [description] done
Verification output:
[test/build output]
Update task.toon -> hil, blocking_reason: Awaiting code review
STOP and wait for feedback.
blocked vs hil - Critical Distinction:
| Status | Who solves | Examples |
|---|---|---|
| blocked | main agent / other agents | depends on another branch, system bug, env issue |
| hil | human only | design decisions, credentials, security, ambiguous requirements |
blocked flow:
overall_status: blocked
blocking_reason: Needs UserService from feature/auth branch, not yet complete
hil flow:
overall_status: hil
blocking_reason: Unclear if user wants OAuth or JWT
Based on feedback:
in_progress, clear blocking_reasonWhen all tasks done:
overall_status: completedSTOP executing immediately when:
Ask for clarification rather than guessing.
blocking_reason - main agent needs it to decide how to handleTrigger conditions (all must be met):
Action: Write file to .agent-memory/proposed-rules/<issue-summary>.md
Format:
# <Issue Summary>
## Problem
<Describe the issue and trigger conditions>
## Solution
<Specific solution>
## Example
\`\`\`bash
# Wrong approach
...
# Correct approach
...
\`\`\`
Do NOT trigger for:
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.