INVOKE THIS SKILL to enforce the structured task execution protocol (PLAN → REVIEW → EXECUTE → VERIFY → COMMIT) for non-trivial work. Triggers: implement feature, fix bug, refactor, multi-step task, any work producing artifacts that require verification. Prevents one-shotting, premature completion, broken state handoff, and scope drift. Automatically invoked by the orchestrator agent for delegated work.
From cabnpx claudepluginhub daneyon/cc-architecture-builder --plugin cabThis skill uses the workspace's default tool permissions.
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.
Guides implementation of event-driven hooks in Claude Code plugins using prompt-based validation and bash commands for PreToolUse, Stop, and session events.
This skill enforces a structured execution workflow that prevents the most common agent failure modes: one-shotting, premature completion, broken state handoff, skipped tests, and scope drift.
Before writing any code or making any changes:
notes/current-task.md (or communicate to user if interactive)Plan template:
## Task: [objective]
### Acceptance Criteria
- [ ] [Criterion 1 — testable]
- [ ] [Criterion 2 — testable]
- [ ] [Criterion 3 — testable]
### Subtasks
1. [Subtask] → [file(s) affected]
2. [Subtask] → [file(s) affected]
### Verification
- Command: [test/lint/build command]
- Manual check: [what to inspect]
### Boundaries
- In scope: [explicit]
- Out of scope: [explicit]
Failure mode prevented: One-shotting (dumping a feature list and hoping for the best).
Before executing:
Failure mode prevented: Scope drift (doing more or less than intended).
Implement one subtask at a time:
git add [specific files]
git commit -m "[type]: [description of subtask completed]"
# notes/progress.md
## [Task name]
- [x] Subtask 1 — completed [timestamp]
- [ ] Subtask 2 — in progress
- [ ] Subtask 3 — pending
Failure mode prevented: Broken state handoff (no progress tracking between sessions).
After execution is complete, run verification before final commit:
Automated checks (run ALL applicable):
npm run typecheck 2>&1 || echo "TYPECHECK FAILED"
npm run lint 2>&1 || echo "LINT FAILED"
npm run test 2>&1 || echo "TESTS FAILED"
npm run build 2>&1 || echo "BUILD FAILED"
Adapt commands to project (python: pytest, ruff; other: as defined in CLAUDE.md).
Diff review — inspect changes against acceptance criteria:
git diff --stat
git diff
Acceptance criteria check — go through each criterion from the plan:
If any check fails:
Failure mode prevented: Premature completion and skipped testing.
Only after verification passes:
git add [specific files — never blind `git add .`]
git commit -m "[type]: [summary of completed work]
[body: what was done, acceptance criteria met]
Verified: [test results summary]"
Update state:
notes/progress.mdnotes/current-task.md or archive to notes/completed/If execution goes sideways at any phase:
STOP → Assess damage → Re-read plan → Re-plan from current state → Resume
Never attempt to fix forward without re-planning. The cost of stopping and re-planning is always less than the cost of compounding errors.
/init-worktree enables parallel execution of Phase 3 across worktreesknowledge/operational-patterns/orchestration/framework.md — Full theory and failure mode catalogknowledge/operational-patterns/orchestration/cost-model.md — Token economics, optimization leversknowledge/operational-patterns/multi-agent/collaboration-patterns.md — Coordination patternsknowledge/operational-patterns/state-management/session-lifecycle.md — Cross-session persistenceknowledge/operational-patterns/team-collaboration.md — Handoff, delegation, conflict zonesknowledge/operational-patterns/multi-agent/worktree-workflows.md — Parallel task execution