From claude-skills
Execute an implementation plan using autonomous subagents. Reads the plan from plan-implementation, dispatches implementer + reviewer agents per deliverable, handles smart triage. Use when user says "execute the plan", "build it", "start implementing", or after plan-implementation completes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-skills:execute-tasksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute an implementation plan by dispatching fresh subagents per deliverable with two-stage review (spec compliance, then code quality).
Execute an implementation plan by dispatching fresh subagents per deliverable with two-stage review (spec compliance, then code quality).
Why subagents: Each agent gets a fresh context with only the task spec and relevant conventions. No context pollution, no convention drift. The orchestrator (you) coordinates — agents implement and review.
The implementation plan markdown file produced by plan-implementation. Read it to extract:
Agents are defined in .claude/agents/. Each is dispatched via the Agent tool with task-specific context in the prompt:
| Agent | Purpose | Dispatched when |
|---|---|---|
implementer | Implements one deliverable | Every deliverable |
spec-reviewer | Verifies code matches spec | After implementer reports DONE |
quality-reviewer | Checks conventions from .claude/rules/ | After spec passes |
test-reviewer | Checks test quality | After quality passes, if tests exist |
Determine which .claude/rules/ files are relevant for each deliverable based on what it touches:
| Deliverable touches | Rules to inject |
|---|---|
| Components (.tsx) | component-hook-separation, react-components, layout-ownership, accessibility, color-usage, design-system-map |
| Hooks (use-*.ts) | component-hook-separation, tanstack-query, error-handling |
| API adapters (*.api.ts) | error-handling, centralized-links |
| Forms | form-patterns |
| Domain / pure logic | project-structure |
| Routes / links | centralized-links |
| Any new files | project-structure, package-manager |
Build the full paths: {project-root}/.claude/rules/{rule-name}.md
If a deliverable touches multiple types (e.g., a hook + component), combine the rule sets and deduplicate.
Visual components (.tsx with rendered UI) get two extra skill invocations to enforce Refactoring UI principles:
| Phase | Skill | Why |
|---|---|---|
| Implementer (Step 2) | refactoring-ui-designer | Applies hierarchy / layout / typography / color / depth / polish principles BEFORE writing JSX. Prevents "looks generated" output. |
| Quality reviewer (Step 5) | refactoring-ui-reviewer | Audits the built component against the 8-chapter rule set with prioritized findings (🔴/🟡/🟢). |
When to inject:
.tsx files with rendered UI)Pure layout/wrapper components (e.g., a <div> with className and {children}) may skip the designer skill but should still go through the reviewer at quality gate.
Before starting execution, ensure work happens on an isolated branch:
git branch --show-currentmain or develop: Create and checkout a feature branch:
git checkout -b feat/{feature-name}
Derive {feature-name} from the implementation plan title — sanitize to lowercase, hyphens, no special chars.feat/*: Ask the user: "Already on {branch}. Use this branch or create a new one?"**Branch**: feat/{feature-name}**Base Branch**: {branch you were on before checkout}The base branch is needed later by finish-feature for PR creation and merge targets.
Use the least powerful model that can handle each role to conserve cost and speed.
| Role | Complexity Signal | Recommended Model |
|---|---|---|
| implementer | 1-2 files, clear spec, no cross-feature imports | sonnet |
| implementer | 3+ files, integration concerns, shared infrastructure | opus or inherit |
| spec-reviewer | All tasks | sonnet or inherit |
| quality-reviewer | All tasks | sonnet or inherit |
| test-reviewer | All tasks | sonnet (checklist-based) |
When dispatching via Agent tool, set the model parameter based on the above. If an implementer reports BLOCKED with a fast model, re-dispatch with a more capable model before escalating to the user.
For each deliverable in implementation order:
Dispatch the implementer agent with the deliverable context:
Agent tool:
description: "Implement D{N}: {deliverable name}"
prompt: |
## Deliverable Spec
{full deliverable spec from plan}
## Convention Files to Read
{absolute paths to relevant .claude/rules/ files, one per line}
## Files to Work With
{target file paths}
## Skills to Invoke
{if deliverable is a visual component:}
- Invoke /refactoring-ui-designer BEFORE writing JSX. Read its
principles.md + tailwind-shadcn-cheatsheet.md, sketch hierarchy
(primary/secondary/tertiary), pick layout, then generate JSX
following the cheatsheet patterns. Run its self-review checklist
before reporting DONE.
Only include the "Skills to Invoke" block when the deliverable matches the Design Skill Injection criteria above. Omit entirely for hooks, API adapters, pure logic, types.
Read the agent's response. Handle based on status:
DONE → Proceed to Step 4 (spec review).
DONE_WITH_CONCERNS → Log the concerns in PROGRESS.md. Proceed to Step 4. The concerns will be evaluated alongside review results.
NEEDS_CONTEXT → Stop execution. Report to user what context is missing. Ask how to proceed. Do NOT re-dispatch without new information.
BLOCKED → Stop execution. Report to user what's blocking. Present options:
Dispatch the spec-reviewer agent:
Agent tool:
description: "Review spec compliance for D{N}"
prompt: |
## Deliverable Spec
{full deliverable spec from plan}
## Implementer's Report
{the implementer agent's full response}
## Files to Review
{files the implementer reported as changed}
Handle result:
Dispatch the quality-reviewer agent:
Agent tool:
description: "Review code quality for D{N}"
prompt: |
## Convention Files to Read
{absolute paths to relevant .claude/rules/ files, one per line}
## Files to Review
{files the implementer changed}
## Skills to Invoke
{if deliverable is a visual component:}
- Invoke /refactoring-ui-reviewer on each visual component file.
Read its principles.md + checklist.md, run the full checklist,
output findings as 🔴 Critical / 🟡 Important / 🟢 Nitpick with
rule citations. Merge these findings into your quality review
output. Tag visual findings as ARCHITECTURAL when they affect
hierarchy/layout (rules 2.x, 3.x), TRIVIAL when they're color
token or weight cleanup.
Only include the "Skills to Invoke" block when the deliverable matches the Design Skill Injection criteria above.
Handle result using smart triage:
implementer agent with the list of trivial fixes as the task spec. Then mark complete.implementer again with the specific fixes as the task spec.Only run if the deliverable includes test files (check implementer's report for .test.ts or .test.tsx files).
Dispatch the test-reviewer agent:
Agent tool:
description: "Review test quality for D{N}"
prompt: |
## Convention Files to Read
- {path to .claude/rules/component-hook-separation.md}
## Test Files to Review
{test file paths from implementer's report}
## Source Files (for reference)
{corresponding source files}
Handle result:
Update PROGRESS.md. Move to next deliverable.
Maintain PROGRESS.md in the same directory as the implementation plan:
# Execution Progress: {Feature Name}
**Started**: {date}
**Plan**: {path to implementation plan}
**Branch**: feat/{feature-name}
**Base Branch**: {branch execution started from}
**Status**: In Progress | Complete | Blocked
## Deliverables
| # | Deliverable | Status | Impl | Spec | Quality | Tests |
|---|-------------|--------|------|------|---------|-------|
| D1 | {name} | DONE | DONE | PASS | PASS | N/A |
| D2 | {name} | DONE | DONE_WITH_CONCERNS | PASS | CONCERNS (1 trivial, auto-fixed) | PASS |
| D3 | {name} | IN_PROGRESS | - | - | - | - |
| D4+ | {name} | PENDING | - | - | - | - |
## Concerns Log
### D2 — Implementer Concern
{concern text}
### D2 — Quality: TRIVIAL (auto-fixed)
{what was fixed}
## Blocked Items
{empty or description}
## Design Review
| Iteration | 🔴 fixed | 🟡 fixed | 🟢 fixed | Result |
|-----------|----------|----------|----------|--------|
| 1 | n | n | n | FINDINGS |
| 2 | n | n | n | PASS |
Update this file after EVERY deliverable — it's the resume state if context is cleaned.
Run pnpm build at two checkpoints:
shared/, install packages, or change type definitions)If the build fails, dispatch the implementer agent with the build errors as the task spec — fix type errors before marking complete. Re-run the build after fixes.
Do NOT run build after every single deliverable — it's slow. The two checkpoints above catch issues early enough.
After ALL deliverables are complete and the final build passes:
Dispatch the code-reviewer agent on the full feature diff:
Agent tool:
description: "Holistic code review for {feature-name}"
prompt: |
Review all files changed during this feature implementation.
## Convention Files to Read
{absolute paths to ALL .claude/rules/ files}
## Files to Review
{all files changed across all deliverables, from PROGRESS.md}
Handle findings using smart triage:
Run only if the feature produced visual components (.tsx with rendered UI). Runs once, holistically, after Code Review passes. Catches cross-screen problems — inconsistent spacing/typography/hierarchy/color across the whole feature — that the per-deliverable refactoring-ui-reviewer at the quality gate cannot see because it audits one component in isolation.
1. Audit. Dispatch the design-reviewer agent on every visual component in the feature:
Agent tool:
description: "Holistic design review for {feature-name}"
prompt: |
Audit the design of all visual components built in this feature.
## Design rule files to read
{absolute paths to .claude/rules/: color-usage, design-system-map, layout-ownership, accessibility}
## Visual component files to review (from PROGRESS.md)
{ALL .tsx files with rendered UI built in this feature}
## Skill to invoke
- Invoke /refactoring-ui-reviewer. Read its principles.md + checklist.md,
run the full checklist ACROSS ALL components holistically, and output
findings as 🔴 Critical / 🟡 Important / 🟢 Nitpick with rule citations
and file:line. Tag each ARCHITECTURAL or TRIVIAL.
## Focus
- Prioritize CROSS-SCREEN inconsistencies (spacing/typography/hierarchy/color
drift between components). Do NOT re-litigate single-component findings already
resolved at the quality gate.
2. Triage-aligned fix loop (mirrors the quality gate — capped at 3 iterations):
implementer agent with the findings as the task spec. For ARCHITECTURAL/visual findings, instruct it to invoke /refactoring-ui-designer before editing JSX (re-derive hierarchy/layout, then apply the cheatsheet patterns). Keep the diff surgical — visual treatment only, no behavior change. Preserve i18n keys, design tokens (no raw Tailwind colors), and update Storybook stories if states change.3. Re-review (holistic). After each batch of fixes, re-dispatch the design-reviewer on all visual components again (not just the changed files — the point is cross-screen consistency, and a fix to one component can break alignment with another). Repeat steps 2–3 until PASS (zero 🔴/🟡) or the 3-iteration cap is hit.
4. Cap reached. If iteration 3 still returns 🔴/🟡, stop the loop and report the remaining findings to the user — do not keep looping. Ask: keep iterating, fix manually, or accept.
5. Build check. Run pnpm build after the design fixes (visual changes can introduce type errors via prop changes). If it fails, dispatch implementer with the build errors before continuing.
6. Update PROGRESS.md — add the "Design Review" table (iterations run, findings fixed by 🔴/🟡/🟢, final result).
After code review, walk through each user flow from the UX spec:
"Verified 3 user flows:
- Flow 1 (FM creates reservation): All components wired, route works
- Flow 2 (Driver views reservation): Missing empty state for no assignments
- Flow 3 (Error handling): Network error shows notification correctly
Flow 2 has a gap. Fix or accept?"
Only report issues — don't list every passing check.
After every 3 deliverables, check context usage. If above 70%:
"Completed D1-D3. Context at X%. Recommend compacting before continuing — PROGRESS.md has the full state to resume from."
Do NOT ask user permission between deliverables. Run continuously. Only stop for:
If the user says "resume" or "continue executing":
PROGRESS.md in src/features/*/Deliverable depends on a previous one that failed: Skip it, mark as BLOCKED with reason "depends on D{N} which failed". Continue to the next independent deliverable if one exists.
All remaining deliverables are blocked: Stop execution. Report the full status to user.
Implementer modifies files outside scope: The spec reviewer should catch this as "extras found". Report to user.
pnpm build before any commit (respect existing user feedback)npx claudepluginhub longjohnsilver1504/claude-skillsProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
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.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.