Agent implementation plan

From j4flmao/agent-skills · View interactive version

Agent implementation plan is an AI agent skill from the GitHub repository j4flmao/agent-skills. Use when the user says plan before coding, write an implementation plan or implementation_plan.md, propose changes first, or what files would you change for a multi-file task. Produces a file-level implementation plan with open questions and verification steps before edits. Not for product requireme

How to use this skill

Skill file

Write Implementation Plan

Purpose

Prevent blind edits on non-trivial tasks. The agent reads the relevant code first, then writes a short plan naming exactly which files change and how the result will be verified, and waits for approval when the user or workflow requires it. Small, unambiguous changes (one file, obvious fix) skip the plan and are executed directly.

Agent Protocol

Trigger

"plan first", "implementation plan", "implementation_plan.md", "propose the changes", "don't code yet", "how would you implement", multi-file feature requests in an approval-gated workflow.

Input Context

Output Artifact

implementation_plan.md (or the plan inline in chat if no file is wanted).

Response Format

# {Task title}

## Goal
{1-2 sentences: the observable outcome}

## Findings
- {file:line} — {what exists today that matters}

## Open Questions
> [!WARNING]
> {ambiguity that changes the design; propose a default}

## Proposed Changes
### {Component}
- [MODIFY] `path/to/file.ts` — {what and why}
- [NEW] `path/to/new_file.ts` — {purpose}
- [DELETE] `path/to/dead.ts` — {why safe}

## Verification Plan
- Automated: `{exact test/lint/build command}`
- Manual: {steps and expected result}

## Risks / Rollback
- {risk} -> {mitigation}

When to Plan vs Act

| Situation | Action |

|-----------|--------|

| One-file fix, clear request | Act directly; no plan |

| Multi-file feature, refactor, schema/API change | Plan |

| Requirements ambiguous in a way that changes design | Plan with Open Questions, ask before coding |

| Destructive or irreversible changes (data migrations, deletes, prod config) | Plan + explicit approval |

| User said "just do it" | Act; mention assumptions in the summary |

Research Before Planning

  1. Locate entry points (routes, CLI commands, handlers) with code search.
  2. Trace call sites of every function you plan to change.
  3. Read existing tests for the area; note the test command.
  4. Check conventions: error handling, logging, naming, folder structure.
  5. Record findings with file paths and line numbers — every proposed change should trace to a finding.

Plan Quality Rules

After Approval

Anti-Patterns

| Anti-pattern | Fix |

|--------------|-----|

| Planning without reading code | Findings section with file:line evidence |

| Plan restates the request | Plan names files, order, verification |

| Huge plan for a typo fix | Act directly |

| Hidden assumptions | Open Questions with proposed defaults |

| "Tests pass" without running them | Report command output |

Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.