/alex-agent-skills:implementation-planfrom alex-agent-skills
Generate a structured implementation plan for any feature, integration, or refactor. Produces a phased plan with scope, diagrams, per-phase file targets, and a testing strategy. Also produces a compact stakeholder variant on request (PM / tech-lead share-out — no concerns section, no agent-facing checklists). Language and framework agnostic.
Ships in alex-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Produce a structured implementation plan document. Language, framework, and project agnostic.
Accept the feature description from any of:
Ask the user if the intent is ambiguous.
Before writing the plan, explore the codebase to ground every phase in real files and real code. Adapt the tools used to the project (GitNexus MCP if available, otherwise Grep/Glob/Read).
Find the primary entry point for the feature area (controller action, route handler, CLI command, etc.) and read it.
Map how data moves through the system for the feature area. Identify:
Find existing patterns the codebase already uses for similar work — interfaces, base classes, service layers, adapters. Note whether the plan should reuse, extend, or intentionally bypass each one, and why.
Read the relevant model, schema, or migration files to understand what data is already persisted and whether new columns, fields, tables, or indices are needed.
Find existing test files, fixtures, or harness views. Note what can be reused vs. what must be added.
Before drafting phases, surface gaps between what the plan assumes and what the code actually shows. Each concern goes into §2 Concerns & Open Questions in the output.
§2 holds two related kinds of items, both written with the same template: open questions the plan needs answered, and resolved design decisions that are non-obvious or counter-intuitive enough to warrant recording (so a future reader doesn't re-litigate them). For each, capture:
#L<line> anchors to the files that ground this concern (the symbol, schema, route, or call site under discussion). Anchor every claim in real code; if no code exists yet, link the closest neighbor and say so.→ chosen and note in one line why the others were rejected.Common concern categories:
| Category | What to look for |
|---|---|
| Missing abstraction | Plan names a "layer" or "service" that does not exist yet |
| Schema gap / migration | New data must be stored but no column, field, or table exists; or new column needs backfill with ordering/downtime constraints |
| No unique identifier | The new integration returns no unique key — deduplication logic will always create new records |
| Legal / compliance gate | Data fields require approval before storage (PII, financial data); legal sign-off needed before going live |
| External credential | An out-of-band cert, API key, agreement, or registration must be obtained before the code can be tested |
| UI gate | A UI component or partial must exist before the flow can be wired, or must render correctly under more than one layout |
| Wiring / protocol detail | Integration requires a specific parameter, URL construction, non-standard flow step, or signature scheme that is undocumented |
| Ordering conflict | Two blockers are independent but both must clear before a later phase can run |
| Contract divergence | Existing interface, callback shape, event taxonomy, or webhook payload will change in a way that affects callers |
Output a Markdown document with the sections below, in order. Save it to docs/plans/<feature-name>-plan.md (or the project's standard docs location).
Plans are reviewed by engineers, product managers, and operators. Write them as a team document, not as a prompt or transcript from an AI tool.
X" — not "run gitnexus_impact(...)". Write "Review staged changes before commit" — not "run gitnexus_detect_changes(...)".tool_name({args}) calls, no MCP tool names, no skill IDs, no slash commands in the plan body. If a step needs a concrete command, use a shell command (git diff --staged, grep -r "X") or describe the intent ("map direct dependents before editing").#L<line> anchors when citing specific code.A reader picking up the plan six months from now should not be able to tell whether a human or a tool wrote it.
# <Feature Name> — <Short Description>
> **Tracker:** <issue/ticket link or ID>
---
Omit tracker line if no ticket exists. The plan must be self-contained — do not link out to "related docs" or sibling plans from the header. If context from another doc is load-bearing, restate it inline in §1 or §2 instead of pointing the reader off-page.
Three subsections.
Numbered list of concrete deliverables. Each item should be verifiable — not "improve auth" but "add Signicat as an authentication provider for BankID Norway and Sweden."
A mermaid sequenceDiagram showing where in the code each step of the flow happens — controllers, services, models, external systems. Label participants by implementation class or service (IndividualController, DocumentController, AmlSelfDeclarationService, ClientAnswers, Webhook receiver) so engineers can map each arrow to a concrete file. This is the implementer's reference; the role-level abstracted view belongs in §1.3.
Show post-completion side-effects (compliance log writes, webhook delivery, operator email) as their own arrows to distinct participants — not collapsed into a single arrow back to the operator.
This diagram is a delta view at the implementation level — color-highlight only the code paths that change, and abstract the rest. §1.3 reuses the same conventions at the role level; the rules below apply to both diagrams.
rect rgb(...) blocks:
rect rgb(220, 245, 220) (green tint)rect rgb(255, 245, 200) (yellow tint)rect rgb(255, 220, 220) (red tint), with the message label wrapped in ~~ ~~> 🟢 added · 🟡 modified · 🔴 removed.Note over <participant>: <summary> (unchanged). Don't redraw stable behavior — name it once and move on.If the feature is purely additive (no existing flow being modified), the whole diagram is implicitly "added" — omit the rects and the legend.
Skip for single-file or config-only changes.
Include this subsection when the feature changes any user-facing interaction (URL routes, UI components, modal contents, form layouts, screens, emails, sent messages, notifications). Omit when the feature is server-only with no user-visible output change (internal refactor, background job, data-format migration with no UI surface).
Reuse the diagram conventions from §1.2 (palette, legend, collapse, key deltas, one-diagram-only, printable). The rules below add only what's specific to UX-level diagrams.
sequenceDiagram covering the user-facing flow end-to-end.User, Browser, Auth Provider, Server — not CurlHelper). Where §1.2 names the actual classes, §1.3 abstracts to roles so reviewers focus on what's different from the user's perspective, not the call graph.Before / After table below the diagram instead of stretching the diagram to cover them.Reviewed . Open items must be resolved before or during implementation; resolved design decisions are recorded so future readers don't re-open them.
One ### per item, labelled C1, C2, etc. Use the field structure defined in Step 2 above. This section holds both open questions and resolved design decisions that are non-obvious — protocol quirks the plan keeps as-is, contract divergences the plan accepts, schema migrations the plan requires, legal/credential gates the plan depends on. If a resolved decision later affects review (a reviewer asks "why isn't X unified with Y?" or "does this need legal sign-off?"), it should be findable here. Note which phase each item gates.
If none found: "No concerns identified."
Order phases by dependency, not by perceived importance:
State ordering dependencies explicitly at the top of any phase that depends on a prior one: "Requires: Phase 1 complete."
Each phase must name the actual files and methods/functions it changes. Vague descriptions ("extend the X layer", "update the auth service") are not acceptable — the Files list and the Details items together must identify exactly which symbol in which file is being changed.
One ### per phase:
### Phase N — <Title>
> Requires: Phase M complete. (omit if no dependency)
#### Files
- [`path/to/file`](../path/to/file)
#### Objective
One sentence. If the phase has multiple distinct objectives, use a numbered list — one objective per line, in the order they apply:
1. First objective.
2. Second objective.
#### Details
A numbered checklist of the work in this phase. Each task names what changes and why and carries a stable per-phase ID via the `**N.**` prefix so concerns, code reviews, and PR descriptions can cite tasks as `Phase <P>, task <N>`. Most tasks stand alone as a checkbox line — add a fenced code sample only when the task pins down an interface or structure that multiple call sites must agree on.
- [ ] **1.** <Task 1 — what changes and why>
- [ ] **2.** <Task 2 — what changes and why>
- [ ] **3.** <Task 3 — defines a new interface or shared structure that downstream tasks depend on>
```<language>
// path/to/file — <function or section>
// ... existing code ...
<new or modified lines that callers must match>
// ... existing code ...
```
- [ ] **4.** <Task 4 — what changes and why>
Per-task code sample — include only when the task pins down an interface, contract, or shared structure that multiple call sites must agree on (a new function signature, a callback shape, a payload schema, a base class). The sample exists to lock the contract so reviewers and downstream task implementers don't drift. Omit by default — for routine edits, single-call-site changes, trivial config, or anything where reading the resulting code makes the intent obvious. No sample is the norm; a sample is the exception.
Define how the implementation will be verified. Organize tests from narrowest scope to widest.
What to test in isolation — individual functions, helpers, adapters, or service methods. Specify:
End-to-end verification of the feature flow. Specify:
Existing behavior that must not break. Specify:
Abnormal conditions to test explicitly:
For each, state the expected behavior (error message, graceful fallback, safe redirect — not a crash or data corruption).
Mark each item ✅ if satisfied, ⬜ if not yet, N/A if the item's conditional doesn't apply (e.g., §1.3 box on a server-only feature, §1.2 box on a single-file refactor). N/A items pass; only ⬜ items block delivery.
#L<line> anchors), and Options to consider with trade-offssequenceDiagram if the feature spans multiple systems, and color-highlights the changed code paths using the palette defined in §1.2; N/A if single-file or purely additive§N.M reference in the body resolves to an existing heading (no orphan refs)Trigger when the user asks for a "compact plan", "PM version", "tech-lead summary", "share-out version", or similar. Audience is project managers and tech leads — the document reads as a project artifact, not an execution checklist.
Steps 1 and 2 are unchanged: research the codebase and surface concerns. The difference is that concerns are resolved in conversation with the user and folded into the relevant §1 narrative or phase summary — the compact document itself has no §2 section.
Reuse Step 3's heading template, writing-style rules, and diagram conventions. Only the differences below apply:
| Section in full plan | Compact treatment |
|---|---|
| §1.1 / §1.2 / §1.3 | Unchanged. Diagrams and key deltas serve both PMs (UX) and tech leads (sequence). |
| §2 Concerns | Omit. Resolutions live inline in §1 or the affected phase summary. |
| §3 Implementation Phases → §2 in compact | Renumber. Keep the per-phase template intact — title, Requires: line, Files, Objective, Details — but raise the granularity:• Files may group by directory or module ( src/auth/providers/ — 3 files) rather than listing every path, when the count is high enough that a flat list adds noise.• Details is a short bulleted list of 3–7 headline work items per phase, each one line. Drop the - [ ] checkboxes, the **N.** task IDs, and all per-task code samples — those are execution-tracking artifacts, not stakeholder content. |
| §4 Testing Strategy → §3 in compact | Renumber. Content unchanged — render identically to the full plan, including all four sub-headings and their specific test cases. Testing Strategy is the verification contract; both audiences need it at the same fidelity. |
Phase numbers (Phase 1, Phase 2, …) stay stable so cross-references survive between the full and compact documents.
Save to docs/plans/<feature-name>-plan-compact.md alongside the full plan when one exists. Both files coexist — engineers reference the full plan, stakeholders reference the compact one.
Use Step 4's checks for the sections that do appear, plus:
**N.** task IDs, no per-task code samplesApplies whenever the user asks for changes to a plan that already exists on disk (full, compact, or both). Read the file before editing — don't regenerate from memory.
If both <feature-name>-plan.md and <feature-name>-plan-compact.md exist, treat them as one document with two views. Any edit that changes scope (objectives, diagrams, phase order/dependencies, files, testing approach, headline phase work) MUST be propagated to both files in the same response. Edits that only touch full-plan-only detail — per-task **N.** items, per-task code samples, §2 concern entries — don't need a compact update.
At Deliver, state which files were touched, e.g. "Updated …-plan.md only — per-task detail; compact view unchanged." vs. "Updated both files in lockstep."
Before declaring an edit done:
§N.M reference check — renumbering, merging, or splitting sections during an edit is the usual breakage source. Walk every Requires: Phase M line and every "Phase N, task K" pointer too.grep -nE "§|Phase |Requires:" <plan-file> catches most stale refs in one pass.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub duyphaphach/agent-skills --plugin alex-agent-skills33 skills in this plugin
/basecampInteract with Basecamp via the Basecamp CLI. Full API coverage: projects, todos, cards,
messages, files, schedule, check-ins, timeline, recordings, templates, webhooks,
subscriptions, lineup, and campfire. Use for ANY Basecamp question or action.
/cert-tutorAct as a personal tutor for professional certification exams (AWS, Azure, GCP, Kubernetes, security, PMP, and similar). Use whenever the user is studying for a cert - explaining an exam topic or service, quizzing with exam-style scenario questions, reviewing missed questions, running a timed mock exam, or asking "which service for X" or "is this the right answer". Trigger even for a single question, and even if the user never says "teach me", e.g. "difference between Kendra and OpenSearch", "quiz me on IAM", "why is B wrong here"./code-review-and-qualityConducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch./concizeTighten the wording and presentation of any document, README, runbook, comment, commit message, or chat reply, or restate a message in its shortest clear form. Use whenever the user asks to shorten, tighten, condense, make concise, restate, rephrase, reword, clean up, review wording, or improve the layout of text; whenever they say something is too long, wordy, repetitive, hard to scan, or sounds like AI; whenever they want em dashes, smart quotes or other AI-trace punctuation stripped, or a document checked for plain English; and whenever they ask "say this better" or "how should I phrase this". Also use it on any document you generated that runs past one screen, before you hand it over. Keywords concise, concize, tighten, shorten, restate, rephrase, wording, presentation, scannable, terminology, refine, plain english, em dash, smart quotes, prose cleanup, ai detection./e2e-test-designDesign end-to-end (e2e) test scenarios by exploring a live, running app with the `pw` browser CLI. This is a design-thinking skill. It maps real user journeys, ranks them by risk, and writes a layered set of markdown scenario docs organised as an Epic / Feature / Story tree with severity labels and Gherkin steps, ready to map onto Allure Report. It does not write test code, selectors, fixtures, or runner config. Use it whenever the user asks what to test end-to-end, wants an e2e test plan or scenario list, asks to design or review e2e coverage, or says things like "how should we test this flow" or "what scenarios do we need", even if they do not say "e2e" explicitly. Requires a running app URL and the `pw` CLI from the playwright-cli skill./frontend-refactoringUse when the user wants to migrate templates to the new design system convention without breaking behavior or visuals. Examples: "Refactor this template", "Migrate this view to the new convention", "Clean up these class names", "Extract this pattern to a partial", "Replace repeated HTML with a loop"