From polydev
SUB-AGENT ONLY: This skill should be used when spawned in isolated worktree - executes PLAN.md and syncs status to task.toon.
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-2 --plugin shikihane-polydevThis skill uses the workspace's default tool permissions.
Execute implementation plans in isolated worktrees with mandatory status synchronization.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Execute implementation plans in isolated worktrees with mandatory status synchronization.
Announce at start: "I'm executing the plan in this worktree."
This is a sub-agent started by the main agent via spawn-session.sh, running in an isolated worktree.
Do NOT call any polydev scripts. The responsibilities are:
PLAN.mdtask.toon statusThe main agent monitors 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: |
| Must have human decision | overall_status: hil, blocking_reason: |
| 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:
git add -A
git diff --cached --quiet || git commit -m "feat(<branch-name>): implementation complete"
Never skip this step - uncommitted changes will be lost when worktree is removed.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: