agentleFS
DasDigitaleMomentumDasDigitaleMomentum/opencode-processing-skills/skills/author-and-verify-implementation-plan/SKILL.md

author-and-verify-implementation-plan

Skill60 starsChanged 34 days agoMITView on GitHub

Author and verify per-phase implementation plans by cross-checking the gated phase intent against the current source code and existing docs inventories.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 25
  2. Distinctive:

    Do not use this skill to:

    line 31
  3. Distinctive:

    implementer: not used for plan artifacts in this skill.

    line 58
  4. Distinctive:

    Only relevant existing docs references, if they materially reduce code discovery

    line 84
  5. Distinctive:

    If the phase depends on previous phases, its fresh delegate reads the necessary completed implementation plans to keep continuity.

    line 106
  6. Distinctive:

    No evident step or new structure is unnecessary for the phase.

    line 113
  7. Distinctive:

    Independent review handoff: After all phase plans are authored, hand the ordered set to one fresh reviewer session by default.

    line 138
  8. Distinctive:

    Do not change phase scope/DoD.

    line 139
  9. Distinctive:

    Prefer direct changes and existing structures.

    line 141
  10. Distinctive:

    Do not generalize current work for hypothetical later phases.

    line 142
  11. Distinctive:

    If a necessary user-owned decision is not gated, record the exact decision as a blocking Reality Check item for the Maintainer and stop …

    line 144

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: Author and Verify Implementation Plan

This skill standardizes the second pass between planning and execution:

  • It authors or refines plans/<plan>/implementation/phase-N-impl.md
  • It verifies the plan against the current source code (and uses docs/** inventories when present)

This skill exists to prevent “hand-wavy” implementation plans and reduce drift between phase intent and repo reality.


When to Use

Use this skill when:

  • The phase is already gated (scope/DoD decided in plan.md + phases/phase-N.md).
  • You want the “how” (implementation/phase-N-impl.md) to be grounded in current code.
  • You plan to delegate execution later via execute-work-package.

Do not use this skill to:

  • Change the gated phase intent/scope (that is primary work via update-plan).
  • Generate documentation (use generate-docs / update-docs).

Execution Model

Roles

  • Primary (maintainer)
    • Owns phase gating and decisions.
    • Delegates authoring/verification of the implementation plan when helpful.
    • Reviews the resulting implementation plan for scope compliance.
  • Subagent (delegate or justified model alias)
    • Uses one fresh Delegate session for exactly one phase implementation plan.
    • Reads: phase + existing implementation plan (if any) + relevant docs + relevant code.
    • Writes: plans/**/implementation/phase-N-impl.md.

Routing Matrix (Who does what)

  • Writes: plans/<plan>/implementation/phase-N-impl.md (authoring/refinement grounded against current code).
  • Does NOT write: plans/<plan>/plan.md or plans/<plan>/phases/** (phase intent/scope/DoD remain gated by the primary).
  • Primary: owns phase gating; reviews impl-plan for scope compliance.
  • delegate: performs the author+verify pass and writes the impl-plan. Use delegate-strong only when phase complexity or risk justifies it.
  • implementer: not used for plan artifacts in this skill.

Why plans/ and docs/ matter

  • plans/ is the gated source of truth for intent/scope/DoD.
  • docs/ (if present) provides curated inventories (modules/features/symbols) to navigate quickly.

Scope and Specification Boundary

Author the smallest complete implementation plan: the phase outcome must work, affected real paths must integrate, and applicable existing invariants must be preserved. Do not invent product rules, guardrails, configurability, abstractions, or future-proofing. Record a genuine user-owned fork as a blocking Reality Check for the Maintainer; resolve codebase-answerable questions yourself. Runtime values that operators may change belong in the project's existing configuration pattern.

The full boundary (gold-plating definition, configurable-value rule, and blocking-decision handling) is owned by the execute-work-package skill; this summary is not a separate policy.


Workflow

0) Inputs (Primary → delegate)

Provide:

  • Plan references:
    • plans/<plan>/plan.md (recommended: provides global constraints, scope language, and phase table)
    • plans/<plan>/phases/phase-N.md (required: gated intent/DoD for the target phase)
    • plans/<plan>/implementation/phase-N-impl.md (if exists)
    • plans/<plan>/implementation/phase-(N-1)-impl.md (optional: when the phase builds on previous technical decisions)
  • Only relevant existing docs references, if they materially reduce code discovery
  • Any constraints that must be preserved (naming conventions, verify command preference, etc.).

1) Author + verify

Primary starts a fresh canonical delegate session for the target phase using the bundled prompt template. A justified model alias may be selected without changing the workflow. This is a skill-defined artifact with an explicit output path and canonical template, so it does not require an informal Blueprint.

The delegate:

  1. Reads the plan (for global context) and the phase intent/DoD.
  2. Locates the relevant code areas using docs inventories and targeted code search.
  3. Designs the smallest complete technical change, reusing current structures unless a new element is presently necessary.
  4. Performs one deletion pass: removes or merges any step, new artifact, abstraction, or infrastructure that can be omitted without violating gated scope or a concrete existing invariant. This is author-owned QA, not a review loop.
  5. Writes/updates the implementation plan using the template and ensures it is concrete:
    • references real file paths/symbols
    • traces every implementation step to an authorizing requirement, scope item, acceptance criterion, or existing invariant that must be preserved
    • explains present necessity in the step's Why, rather than adding future-oriented work
    • justifies new modules, layers, interfaces, shared utilities, migrations, or infrastructure with evidence that a direct change to existing structures is insufficient
    • includes a single proposed verify command (or preserves the given one)
    • captures only material mismatches as “Reality Check” notes
    • marks any necessary but ungated user-owned decision as blocking and does not plan work that depends on it

If the phase depends on previous phases, its fresh delegate reads the necessary completed implementation plans to keep continuity. The Maintainer retains phase ordering and cross-phase decisions.

2) Primary review

Primary confirms:

  • The implementation plan stays within the gated phase scope.
  • No evident step or new structure is unnecessary for the phase.
  • The verify command is appropriate.
  • The “Reality Check” section (if any) is acceptable.

Output Contract

The generated/updated plans/<plan>/implementation/phase-N-impl.md MUST include:

  • A Required Context section with specific files.
  • Implementation Steps that reference concrete targets (files/symbols/components).
  • An Authorized By reference for every implementation step.
  • A single verify command in the Testing Plan that exercises changed behavior.
  • A Reality Check section only when material mismatches or blocking decisions exist.

The implementation plan must follow the canonical frontmatter and required headings from the bundled template. Omit sections marked optional when irrelevant.


Rules

  • Skill-first: when invoked, follow this workflow and template.
  • Fresh phase sessions, sequential processing. When authoring implementation plans for multiple phases, the Maintainer starts one fresh Delegate session per phase and processes phases strictly one at a time in dependency order. Each delegate writes only its target phase plan; do not reuse the authoring task_id for another phase or author phases in parallel.
  • Artifact-based cross-phase continuity. Each later phase delegate reads the completed prior implementation plans and checks shared interfaces, naming, data-flow assumptions, and dependency ordering while authoring its own target. It reports any inconsistency that requires changing a prior artifact or gated decision to the Maintainer rather than silently taking ownership of another phase.
  • Independent review handoff. After all phase plans are authored, hand the ordered set to one fresh reviewer session by default. Do not create a consolidated artifact.
  • Do not change phase scope/DoD; record mismatches under "Reality Check" and raise to the primary.
  • Produce the smallest complete solution, not the smallest edit at the expense of correctness. Cover necessary real paths and preserve necessary error handling, tests, and existing invariants while rejecting speculative completeness.
  • Prefer direct changes and existing structures. Justify new modules, layers, interfaces, shared utilities, migrations, or infrastructure in the relevant step's Why.
  • Do not generalize current work for hypothetical later phases. Preserve an already-gated cross-phase interface, but do not pre-implement or future-proof behavior.
  • Unspecified product, policy, or operational behavior is not authorization to add rules or guardrails. Preserve applicable existing invariants and avoid concrete regressions, but do not invent policy or exhaustively plan hypothetical edge cases.
  • If a necessary user-owned decision is not gated, record the exact decision as a blocking Reality Check item for the Maintainer and stop before planning dependent work. Resolve codebase-answerable questions and select purely local, reversible technical details when they do not change observable behavior.
  • Omit testing detail beyond the primary verify command, rollback, edge-case, deployment, and documentation planning unless explicit scope or concrete risk needs it.
  • Perform exactly one author-owned minimality pass before returning. Do not start an author/review/rewrite loop.

Templates

  • tpl-implementation-plan.md — canonical implementation plan format with “Reality Check” grounding section
  • tpl-author-and-verify-implementation-plan-prompt.md — Primary → delegate delegation prompt

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.