AGENT SKILL

implementation-plan

Create a detailed Implementation Plan for a ticket or spec, corresponding to a single Pull Request.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 21
Forks
1

01 前言 Front Matter

name
implementation-plan
metadata
{ "inlined-from": [ { "source": "../../vendor/mattpocock/skills/engineering/code-review/SKILL.md", "components": [ { "local-section": "### Identify the specification", "source-section": "### 2. Identify the spec source" }, { "local-section": "### Identify the standards sources", "source-section": "### 3. Identify the standards sources" } ], "source-scope": "## Process", "source-scope-sha256": "93a4cc1ed1ed855ba72d84034ca8f4a72e819cec7d595694b84bb6d53970327c" } ] }
description
Create a detailed Implementation Plan for a ticket or spec, corresponding to a single Pull Request.

03 SKILL.md 正文

Overview

Create a detailed Implementation Plan for one work item. Also produce a requirements specification.

Identify the specification

Use a user-supplied path or ticket first; then an accessible referenced issue; then a matching tracked spec; then conversation context. If none exists, suggest /grill-with-docs or /to-spec before planning. If a ticket links to other related documentation or pull requests, fetch them as well if you have access. If there is a parent issue or related issues that are completed, look at those completed issues. You can do this by looking at the commit history if the commit documents the issue.

Identify the standards sources

Discover applicable tracked standards documents. CONTEXT.md, ADRs, and conventional filenames are useful when present, but are not prerequisites.

Scope management

Decide whether the work plausibly fits one pull request. You can use the skill /breakdown as a guide, but do not to invoke it from inside planning. If it does not, stop and explain the desired split to the user.

What to include

The plan must give an implementer enough detail to execute without redesign.

A specification section with:

  • goals (including important non-goals)
  • requirements and acceptance criteria

High-level details:

  1. Background — Explain only the system needed for the change. Start with an optional beginner-friendly mental model, then narrow to the exact components, contracts, and prior behavior involved.
  2. Intuition — Explain the core idea before implementation detail. Use small concrete toy inputs and outputs with diagrams and examples where apropriate. Show the old and new behavior when comparison makes the change clearer.

Include the assumptions, and relevant standards constraints. Explain relevant failure modes and how to handle them.

Create diagrams or tables and examples for:

  • important state transitions
  • flow diagrams for requests, data, or control flow;
  • before/after panels for changed behavior;
  • labeled component cards for system boundaries and connections;
  • compact tables for mappings, invariants, and toy data.

Convert user stories into concrete tests or manual verification criteria.

Include a task checklist

Implementation details

  • All type changes at testing seams
  • Detailed file-level type and function signature changes
  • Implementation snippets for important non-obvious ideas
  • Documentation updates
  • Verifications (tests) using the /verify skill
    • High value and high defect areas
    • Important verifications to perform

By default, don't edit files. Include precise file and line references when available.

If explicitly requested to edit files, show the details by actually making the edits and generating diffs. Edits should compile. You may need to write stub code inside a function to satisfy type checking: use either a standard for "unimplemented" or a TODO comment so the incompletion is obvious.

Explain the changes in conceptual groups, ordered by execution or dependency flow rather than arbitrary file or diff order. Where possible, break up the implementation plan into separate phases.

Review

Include a Review notes section in the plan. Put the text "no independent review" in this section when the plan is written out and not yet independently reviewed.

Perform a self-review according to the Review criteria.

If the change is trivial, no independent review is needed. Put the text "trivial change: independent review not needed" in the review section.

Review criteria

Review in this order and incorporate the findings into the plan:

  1. Spec — completeness and scope.
  2. Architecture
    • Ensure that we are developing deep modules as described in the /codebase-design skill.
    • Can we make the change touch fewer files or otherwise be less invasive?
    • Use relevant ADRs
  3. Quality — standards, tests, and operational risks.

Present the revised plan as the reviewable output.

04 同仓库更多 Skills