Agent skill

implementation-workflow

Use this skill for implementation plan work — drafting a plan from a finalized spec, running an adversarial review of the plan, or resolving plan issues interactively. Trigger when the user says "build the implementation plan", "draft the plan", "review the plan", "resolve plan issues", or "implementation plan". Always runs after spec-workflow is complete. Has three stages: Stage 1 (draft plan), Stage 2 (adversarial review), Stage 3 (resolve + decisions log). After the plan is approved, hand off to /r-implement (section-by-section with manual oversight) or /auto-ship (fully autonomous end-to-end execution).

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/implementation-workflow-jdenn0514-surveycore

SKILL.md

Surveyverse Implementation Workflow

Announce at start: "Running implementation-workflow Stage N — [stage name]."

This skill governs implementation plan work for surveycore (and other surveyverse packages). Three stages, always in order:

  1. Stage 1 — Draft: Write the implementation plan from the finalized spec
  2. Stage 2 — Review: Adversarial batch pass; saves all issues to a file
  3. Stage 3 — Resolve: Interactively work through issues and log decisions

After the plan is approved, hand off to:

  • /r-implement — section-by-section with manual oversight between sections
  • /auto-ship — fully autonomous: implements, commits, PRs, monitors CI, and merges each section without manual handoffs
dot
digraph impl_stages {
    rankdir=LR;
    S1 [label="Stage 1\nDraft Plan", shape=box];
    S2 [label="Stage 2\nAdversarial Review", shape=box];
    S3 [label="Stage 3\nResolve + Log", shape=box];
    done [label="→ /r-implement\nor /auto-ship", shape=doublecircle];

    S1 -> S2;
    S2 -> S3 [label="issues found"];
    S2 -> done [label="clean"];
    S3 -> S2 [label="new issues\ndiscovered"];
    S3 -> done [label="all resolved"];
}

Stage Routing

Determine which stage the user wants from context. If unclear, use the AskUserQuestion tool:

question: "Which stage of the implementation workflow do you want to run?"
header: "Stage"
multiSelect: false
options:
  - label: "Stage 1 — Draft the plan"
    description: "Write the implementation plan from the finalized spec."
  - label: "Stage 2 — Adversarial review"
    description: "Full batch pass over the plan; saves all issues to a file."
  - label: "Stage 3 — Resolve issues"
    description: "Interactively work through the review file issue by issue."

Then read the corresponding reference file before doing anything else:

Stage Reference file
1 .claude/skills/implementation-workflow/references/stage-1-draft.md
2 .claude/skills/implementation-workflow/references/stage-2-review.md
3 .claude/skills/implementation-workflow/references/stage-3-resolve.md

Task Granularity (Stage 1)

Each task in the plan should be one action (2–5 minutes). TDD sub-steps must be explicit steps, not collapsed into one: write the failing test → run to confirm failure → write minimal code → run to confirm passing → commit. This granularity lets r-implement work through tasks without ambiguity about what "done" means for each step.

Common Shortcuts to Resist

Rationalization Why it fails
"The plan is clear enough, Stage 2 would just nitpick" Stage 2 catches missing error paths, wrong task order, and DRY violations before code is written.
"Some issues are minor, I'll resolve them later" plans/decisions-{id}.md must be fully populated before handing off.
"We can figure out edge cases during implementation" Edge cases discovered during implementation are plan bugs. Resolve them here.

Rules in Context

Every stage works alongside — never instead of — these rule files:

Rule file What it governs
code-style.md Indentation, pipe, air formatter, S7 patterns, cli error structure, argument order, helper placement
r-package-conventions.md :: usage, NAMESPACE, roxygen2, @return, @examples, export policy
surveycore-conventions.md Naming patterns (get_*, extract_*, set_*), @family, return visibility, haven handling
testing-standards.md test_that() scope, 98% coverage, assertion patterns, data generators
testing-surveycore.md test_invariants(), layer 1 vs layer 3 error testing, make_survey_data(), numerical tolerances
github-strategy.md Branch naming, PR granularity, commit format, merge strategy

File Locations

The {id} matches the feature branch identifier (e.g., phase-2, survey-srs).

Implementation plan:  plans/impl-{id}.md
Plan review:          plans/plan-review-{id}.md
Decisions log:        plans/decisions-{id}.md

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results