Skip to content
Back to skills

Plan Feature

ASecurity

Use BEFORE writing code for any new feature, new screen, new integration, database or schema change, or any change likely to touch more than about 3 files. Writes a short reviewed plan in docs/DESIGN.md first. Skip for small bug fixes, copy edits and style tweaks.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgodatabase

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add spar-ai-app/spar --skill plan-feature --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plan Feature?

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

Security grade badge for Plan Feature
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/spar-ai-app-plan-feature/badge)](https://www.skillsdirectory.com/skills/spar-ai-app-plan-feature)

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: plan-feature
description: Use BEFORE writing code for any new feature, new screen, new integration, database or schema change, or any change likely to touch more than about 3 files. Writes a short reviewed plan in docs/DESIGN.md first. Skip for small bug fixes, copy edits and style tweaks.
---

# Plan the feature before building it

Most bad AI-built software comes from skipping this step. Keep the plan short (one screen), but think hard.

## 1. Understand the real problem

- Restate what the user wants in one sentence, and the pain behind it. If the request is a solution ("add a button that…"), ask yourself what problem it solves; a better solution may exist.
- Read `PROGRESS.md`, `docs/DECISIONS.md` and `docs/LESSONS.md` for anything this touches.
- If the user gave a written brief, reread it now. Don't drop or water down parts of it. If you think part of it is a bad idea, say so; don't silently skip it.
- Look at the existing code this will touch. Reuse what's there before adding anything new.

## 2. Write the plan

Add a section at the top of `docs/DESIGN.md`:

```
## YYYY-MM-DD: <Feature name>
**Goal:** one sentence. **Not doing:** what's explicitly out of scope.
**Approach:** the shape of the solution in 3–6 bullets. Name the files/modules touched.
**Data:** tables/fields/types added or changed, and how existing data migrates.
**States:** loading, empty, error, offline, permission denied, two people at once (whichever apply).
**Edge cases & failure modes:** what breaks, what happens when an outside service is down or slow, what happens if it runs twice.
**Tests:** the specific tests you'll write, by name.
**Risks / rollback:** anything irreversible and how to undo it.
```

## 3. Review your own plan, hard

Before building, check the plan against these and fix it:

- Is there a simpler version that delivers most of the value? Cut scope that doesn't serve the goal.
- Does it contradict a decision in `DECISIONS.md` or a rule in `AGENTS.md`?
- Is every external effect (email, message, payment, deletion, calendar invite) behind the project's approval rules?
- Can it lose or corrupt data? Is every migration reversible or backed up?
- Are the tests named actually going to catch a regression?

## 4. Get approval only when it matters

Show the user a 5-bullet summary and **wait for a yes** if any of these apply: it changes the database schema or migrates data; it adds a new external action or service (especially paid ones); it touches roughly 10+ files; it reverses a past decision; it involves a choice that is the user's to make (naming, pricing, licensing, product direction).

Otherwise, say in one line what you're building and start.

## 5. While building

Write the tests alongside the code, not at the end. If the plan turns out wrong, update `DESIGN.md` rather than drifting from it silently.

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.