From polydev
This skill should be used when creating detailed implementation plans for polydev parallel tasks - generates step-by-step PLAN.md files.
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-2 --plugin shikihane-polydevThis skill uses the workspace's default tool permissions.
Write comprehensive implementation plans with bite-sized tasks. Plans should be self-contained - assume the executor has zero context about the codebase.
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`.
Write comprehensive implementation plans with bite-sized tasks. Plans should be self-contained - assume the executor has zero context about the codebase.
Announce at start: "I'm using the writing-plans skill to create the implementation plan."
Save plans to: docs/plans/YYYY-MM-DD-<feature-name>.md or PLAN.md in worktree root.
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For Claude:** Execute this plan task-by-task using polydev:worktree-executor skill.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
**Verification Level:** [L0-L5]
**Verification Commands:**
- Build: `npm run build`
- Test: `npm test`
- Lint: `npm run lint`
---
Each step is one action (2-5 minutes):
### Task 1: [Component Name]
**Files:**
- Create: `src/auth/jwt.ts`
- Modify: `src/middleware/index.ts:45-60`
- Test: `tests/auth/jwt.test.ts`
**Step 1: Write the failing test**
```typescript
describe('JWT Auth', () => {
it('should validate token', () => {
const result = validateToken('valid-token');
expect(result.valid).toBe(true);
});
});
Step 2: Run test to verify it fails
Run: npm test -- --grep "JWT Auth"
Expected: FAIL with "validateToken is not defined"
Step 3: Write minimal implementation
export function validateToken(token: string): { valid: boolean } {
// Implementation here
return { valid: true };
}
Step 4: Run test to verify it passes
Run: npm test -- --grep "JWT Auth"
Expected: PASS
Step 5: Commit
git add src/auth/jwt.ts tests/auth/jwt.test.ts
git commit -m "feat(auth): add JWT validation"
## Task Dependencies
**Mark dependencies explicitly:**
```markdown
### Task 2: User Profile API
**Depends on:** Task 1 (JWT Auth)
**Reason:** Needs validateToken() for authentication middleware
End every plan with:
## Verification Checklist
- [ ] All tests pass: `npm test`
- [ ] Build succeeds: `npm run build`
- [ ] Lint passes: `npm run lint`
- [ ] Manual verification (if L5): [specific steps]
## Rollback Plan
If verification fails:
1. `git stash` current changes
2. Review failing tests
3. Fix or escalate to architect
After saving the plan:
Plan complete and saved to `docs/plans/<filename>.md`.
**Execution options:**
1. **Parallel Development** - Use polydev:polydev to execute in isolated worktree
- Best for: Large features, multiple related tasks
2. **Direct Execution** - Execute in current session
- Best for: Small fixes, single-file changes
Which approach?
When used with polydev parallel execution:
PLAN.mdtask.toon~/.polydev/scripts-path)Plan location in worktree:
.worktrees/feature-auth/
├── PLAN.md # This plan
├── task.toon # Execution status
└── src/ # Working code
Main agent spawns worktree with:
# Read scripts path once at session start: cat ~/.polydev/scripts-path
# Then use the full absolute path directly:
/path/to/polydev/scripts/spawn-session.sh <workspace> <branch> <worktree-path> <plan-file>
Note: If
~/.polydev/scripts-pathdoesn't exist, polydev is not installed.
Sub-agent (worktree-executor) then: