Skip to content
Back to skills

Swe Plan

ASecurity

Part of the Software Engineer pack. How to write an implementation plan for a code change that an engineer with no context could follow - exact files, interfaces, small independently testable tasks each with the test that proves it, a reuse list, risks and a review-focus list of inputs the spec doesn't mention. Use after the requirements are clear and before writing code for a multi-step change. Loaded by the software-engineer agent. Other agents use it only when the user names this skill.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsgoapisecurityperformance

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add MhdAljuboori/ZumiBot --skill swe-plan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Swe Plan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Swe Plan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mhdaljuboori-swe-plan/badge)](https://www.skillsdirectory.com/skills/mhdaljuboori-swe-plan)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: swe-plan
description: Part of the Software Engineer pack. How to write an implementation plan for a code change that an engineer with no context could follow - exact files, interfaces, small independently testable tasks each with the test that proves it, a reuse list, risks and a review-focus list of inputs the spec doesn't mention. Use after the requirements are clear and before writing code for a multi-step change. Loaded by the software-engineer agent. Other agents use it only when the user names this skill.
---

# Planning an implementation

Goal: a plan so concrete that a capable engineer who has never seen this repo could execute it task by task, and a reviewer could check the result against it.

Write it for that zero-context reader. Name files by path, functions by name, commands exactly. No "update the relevant code".

## Before writing
- The goal and acceptance criteria are settled (see the `swe-clarify` skill if available, or restate them yourself in a few lines).
- You have read the code you will change and found the project's real build, test and lint commands.
- You have searched for existing pieces to reuse (`rg -n` for similar names, helpers, components, types, config).

## Plan layout

**Goal:** one sentence.

**Approach:** 2-4 sentences: the design and why it beats the alternatives you considered.

**Acceptance criteria:** numbered, testable (copied or refined from the requirements).

**Reuses:** existing functions, components, types, patterns and test helpers you will build on, each with its path. If you add something new that looks like an existing thing, say why the existing one doesn't fit.

**Interfaces:** new or changed signatures, types, API routes, events, config keys, DB columns. Write them out exactly. Mark anything that changes a public or stored contract and say how old callers or data keep working (or that they break, and why that is acceptable).

**Tasks:** numbered. Each task:
- **Do:** what to change, with file paths.
- **Test:** the test that proves this task, named and located (`path/to/thing.test.ts: "rejects an empty name"`), written first. Or, when a test doesn't fit, the exact check that proves it.
- **Done when:** the command to run and the result expected.

Include tasks for the docs, changelog, `.env.example`, API schema and generated types the change makes stale.

**Verification:** the full set of commands to run at the end (build, typecheck, tests, lint), from the project's own scripts.

**Risks:** one line each, with the mitigation: migrations, deploy order, performance on large data, concurrency, backwards compatibility, security exposure.

**Rollout and rollback:** risk level (low/medium/high) and blast radius; one-way doors named; behind a feature flag or not (default off when it is); expand → migrate → contract for schema and API changes, each step deployable alone; a backfill plan for large tables; the exact way to undo.

**Review focus:** inputs, states and paths the spec doesn't mention but the code must survive: empty and huge inputs, concurrent calls, permission edges, old data, partial failure, retries, time zones, unicode. The reviewer checks these explicitly.

**Out of scope:** what this plan deliberately leaves alone.

## Sizing the tasks
- Each task is small: one behaviour, typically a few files, one test or a few. If you can't name its test, it's too vague; if it has five tests on five behaviours, split it.
- Each task leaves the code building and all tests passing, so work can stop after any task.
- Order tasks so each builds on finished ones: types and pure logic first, then wiring, then UI or entry points, then cleanup.
- Put risky or uncertain tasks early, so surprises show up before the bulk of the work.
- Migrations and contract changes get their own tasks.

## Rules
- No speculative abstraction, no "while we're here" refactors. A refactor the feature truly needs is its own task, behaviour-preserving, before the feature tasks.
- Don't plan what you haven't verified exists: open the file before naming its function.
- Keep it as short as it can be while still complete. A three-file change needs a ten-line plan, not a document.
- A plan is read-only work: write no code while planning.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.