Flow for a non-trivial feature in an existing project (more than a few files, new behavior, or unclear scope). Not for bugs or small changes; do those directly.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Feature?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/eurie92-feature)
---
name: feature
description: Flow for a non-trivial feature in an existing project (more than a few files, new behavior, or unclear scope). Not for bugs or small changes; do those directly.
---
# Feature
1. **Understand.** Read `AGENTS.md`, `docs/STATE.md`, and the code the feature touches. Ask only what you cannot read. Restate the outcome in 2-3 lines.
2. **Scope size.** Offer minimal, balanced, hardened with scope and rough time. Recommend one. Wait for the pick.
3. **Standards.** Name the fields the feature touches; check the `standards` skill. Add a short "Standards applied" list.
4. **Spec section.** Append a section to `docs/SPEC.md` (or create it): Part A plain-language (what changes for the user, scope, risks, how "done" is judged) and acceptance criteria as Given/When/Then; Part B technical notes, including a failure-mode table (below). Show Part A and stop: build nothing until the user approves it. "Done" means the Definition of Done in Agent-kit `rules/BOTS.md` section 11, plus the project's own items in `AGENTS.md`.
5. **Plan.** Add tasks to `docs/PLAN.md`, each with its verify step. Check them against the spec. Delegate parallel parts per GLOBAL §4.
6. **Build.** On a feature branch: if you are on main/master, create `feat/<short-name>` first (unless `AGENTS.md` says otherwise). Implement within the approved scope. Tests for each Given/When/Then.
7. **Verify.** Run tests, lint, build. Paste the output. For UI, include a screenshot. Then run the `anti-slop` quick check on your own diff (skills/anti-slop) and fix every Block finding before you open a pull request.
8. **Wrap.** Commit and push to the feature branch. Update `docs/STATE.md` (`handoff` save). Report outcome and remaining limits.
## Failure modes
Part B lists how each changed flow fails and what cleans up after it. Cover all seven; write "n/a" with a reason when one cannot happen.
| Failure | Ask | Typical cleanup |
|---|---|---|
| Bad input | What if the input is empty, too long, the wrong type or hostile? | Reject at the edge with a clear error; nothing is written. |
| Timeout | What if a call to a service or the database never answers? | A deadline on every outside call; report the failure; a retry is safe (see Retry). |
| Partial write | What if it fails halfway through several writes? | One transaction, or steps that can be re-run; a job that finds and finishes or rolls back half-done records. |
| Retry | What if the same request runs twice because a client or queue retried? | Idempotency key or unique constraint; the second run changes nothing. |
| Duplicate | What if the same event arrives twice or out of order (webhooks, double clicks)? | Dedupe on the event or request id; state moves only forward. |
| Auth lost | What if the session or token expires mid-flow, or the user loses access? | Stop, keep the user's input, ask them to sign in again; never act on stale rights. |
| Abort | What if the user cancels, closes the tab or the process is killed? | No orphaned charges, files or locks; a cleanup job or a lock timeout. |
Each row with a real risk gets a Given/When/Then and a test.
A material change to the approved scope returns to the user as a specific revision before you build it.