Skip to content
Back to skills

Planning Skill

ASecurity

Detailed implementation-planning skill — the "think before you code" step. Produces a concrete, codebase-grounded plan for HOW to build a feature or resolve an issue BEFORE any implementation: the approach, affected layers, exact files to look at and to touch, data/contract/event changes, a step-by-step build order, edge cases and risks, the cross-layer test plan, acceptance criteria, and open decisions. Invoked FIRST by sdlc-skill (right after the requirement is understood and recorded, befo...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
developmentgoapidatabasefrontendbackendsecurity

Works with

  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add elhajahmadj/SDLCskill --skill planning-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Planning Skill?

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

Security grade badge for Planning Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elhajahmadj-planning-skill/badge)](https://www.skillsdirectory.com/skills/elhajahmadj-planning-skill)

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: planning-skill
description: >-
  Detailed implementation-planning skill — the "think before you code" step. Produces a concrete,
  codebase-grounded plan for HOW to build a feature or resolve an issue BEFORE any implementation:
  the approach, affected layers, exact files to look at and to touch, data/contract/event changes,
  a step-by-step build order, edge cases and risks, the cross-layer test plan, acceptance criteria,
  and open decisions. Invoked FIRST by sdlc-skill (right after the requirement is understood and
  recorded, before backend/frontend/mobile work) so every later phase executes a vetted plan rather
  than improvising. Also use standalone when asked to "plan this", "how should we build/fix this",
  "write a plan", "design the approach", or before running a plan (F-###). Triggers:
  plan, planning, how to implement, how to fix, design the approach, implementation plan, break this
  down, scope this, before coding.
---

# Planning Skill — plan the implementation in detail, before coding

This is the **first substantive step** of the SDLC workflow. Its job is to turn a understood
requirement or bug report into a **concrete, codebase-grounded implementation plan** that every later
phase (backend → frontend → mobile → UI/UX → security → tests → review → docs) executes against. No
production code is written here — the output is a plan good enough that implementation becomes
mechanical and low-risk.

> **Where it runs.** `sdlc-skill` invokes `planning-skill` in Phase 1, **after** the request is
> understood and the requirement is recorded (`requirements` skill) and **before** Phase 2 (backend).
> For a backlog item, the plan is captured in `docs/plans.md` — including an `## Execution` section (the
> execute-ready steps to run it cold). For an in-flight change, the plan guides the current cycle directly.

## Principle

Plan with the **real code**, not from memory. A plan that names files that don't exist, misses a second
enforcement site, or ignores an existing helper is worse than no plan. Ground every claim in the
codebase before writing it down.

## Step 1 — Ground yourself in the codebase (graphify-first)

Use the project's knowledge graph as the default (`sdlc-skill` ensures graphify is installed):
`graphify query "<question>"`, `graphify explain "<symbol>"`, `graphify path "A" "B"` to find **every**
call-site, enforcement gate, and existing test — then fall back to targeted `grep`/`Read` for a single
known file. Confirm:

- Where the behavior lives today (the entry points, the layers it crosses).
- What already exists to reuse (services, helpers, components, events, test fixtures) — **do not plan
  net-new code for something the codebase already provides.**
- Every place that must change together (a second enforcement site, a mirrored mobile screen, a shared
  contract/event, a guard/ratchet, a doc).

## Step 2 — Classify and scope

- **Feature / behavior change** vs **bug fix** vs **refactor** vs **tooling/DX** vs **docs/test-only**.
- Which layers have a real surface: **backend, frontend (web), mobile, API, database, tests, docs** —
  and which are genuinely **N/A** (state why). Mobile parity is assumed unless there's a reason.
- Size it: a single-cycle change, or several items that each need their own full cycle.

## Step 3 — Write the plan

Produce a plan with these sections (keep it concrete — real paths, real types, real steps):

### For a feature / change
1. **Goal & why** — one paragraph: the behavior to deliver and the user value.
2. **Approach** — the chosen design in prose; the key decision(s) and the alternative(s) rejected, with
   one line on why. Prefer the simplest design that satisfies the requirement (KISS/YAGNI).
3. **Files to look at first** — the handful that define the current behavior (so the implementer orients
   fast).
4. **Files to touch** — grouped by layer, each with a one-line "what changes":
   - **Backend:** domain/entities, services, endpoints, DTOs/contracts, events (`App.Shared.Events`),
     EF model + migration, DI wiring.
   - **Frontend (web):** components, services/state, routes, design-tokens usage.
   - **Mobile:** mirrored screens/navigation/state/services (parity), or a stated reason it's web-only.
   - **API/DB:** contract shape, auth/authz, validation, migration.
   - **Tests:** which backend-unit / frontend-unit / API / functional / (perf) tests to add or extend.
5. **Data / contract / event changes** — new/changed tables, DTO fields (mass-assignment allow-listing),
   and any new integration event (name, payload, producer, idempotent consumer). Flag any change that
   would make a contract asynchronous.
6. **Step-by-step build order** — the sequence to implement in, so each step compiles/tests green before
   the next. Note what can be parallelized vs what's strictly ordered.
7. **Edge cases & failure modes** — empty/invalid input, auth failures, concurrency, idempotency,
   partial failure, large inputs, offline/mobile.
8. **Security considerations** — the classes this change must defend (authz/IDOR, injection, XSS/CSRF,
   SSRF, file upload, secrets) so Phase 7b has a target list.
9. **Test plan** — concrete tests per layer, including the **failing-first** test (for a bug) or the
   **red guard** (for a ratchet) that proves the change bites. State what must run green before done and
   what is authored-but-run-in-CI.
10. **Acceptance criteria** — the checklist that means "done" (behavioral, not "it compiles").
11. **Dependencies & open decisions** — any missing subsystem/credential/infra (→ `dependencies.md`),
    and any choice the rules don't settle (resolve from `memory.md`/standing rules if possible; only ask
    the user when it's costly to undo).
12. **Risks & rollback** — what could regress, blast radius, and how to back out.

### For a bug fix (lead with diagnosis)
1. **Symptom & repro** — exact steps/inputs that trigger it; expected vs actual.
2. **Root-cause hypothesis** — grounded in the code path (graphify the call chain); the specific line(s)
   responsible and why.
3. **Failing-first test** — the test to write that fails against current behavior.
4. **Fix approach** — the minimal correct change; why it fixes the root cause, not the symptom.
5. **Blast radius** — everything that shares the faulty code path; other call-sites to re-check.
6. **Test + acceptance** — the failing test now passes; regression coverage; what else to verify.

## Step 4 — Record and hand off

- **Backlog item** → write the plan into `docs/plans.md` (the approach + files to look at/touch + phasing
  + revealed dependencies) **including an `## Execution` section** — the ordered, execute-ready steps so a
  future session can run it cold. **In-flight change** → keep the plan as the working spec for this cycle.
- **Surface the plan to the user** before heavy implementation when the approach has a meaningful
  trade-off or an irreversible choice; otherwise proceed.
- Hand control back to `sdlc-skill` to execute Phases 2→14 against this plan. If implementation reveals
  the plan was wrong, **stop and revise the plan**, don't improvise around it.

## Quality bar for a good plan

- ✓ Every file/symbol named actually exists (or is explicitly new).
- ✓ Reuses what the codebase already provides; no duplicated logic planned.
- ✓ Names **every** site that must change together (no missed second enforcement point / mobile mirror).
- ✓ Has a concrete, layered test plan including the test that proves the change bites.
- ✓ States N/A areas with a reason; surfaces dependencies and open decisions.
- ✓ Simplest design that meets the requirement — no speculative generality.

## Anti-patterns

- Planning from memory instead of the real code.
- A vague plan ("update the service, add a test") that defers the real thinking to implementation time.
- Over-engineering: abstractions, config, or extensibility the requirement doesn't need (YAGNI).
- Skipping the failing-first/red-guard test in the plan.
- Silently dropping mobile parity or a second enforcement site.

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 development →

Comments

Loading comments…

Newsletter

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