Skip to content
Back to skills

Plan

ASecurity

Writes the <app> plan document under docs/plans/ - problem, constraints, design, files, risks, tests and gate commands - as an ordered, verifiable sequence that ends at `make ci`.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
developmentgonode

Works with

  • cli

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add Facta-Dev/ai-coding-playbook --skill plan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plan?

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

Security grade badge for Plan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/facta-dev-plan/badge)](https://www.skillsdirectory.com/skills/facta-dev-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: plan
description: "Writes the <app> plan document under docs/plans/ - problem, constraints, design, files, risks, tests and gate commands - as an ordered, verifiable sequence that ends at `make ci`."
division: core
---

# <app> Plan

A reusable workflow for producing the plan document of a change in the `<app>` CLI. The plan is a sequence of gate-checked steps, not a wish list: each step names the files it touches, the order it must land in, and the command that proves it. The output is the plan document itself plus the ordered step list.

## When to Activate

- A feature request needs to be broken into ordered steps before any code is written.
- A change touches more than one layer - the core, the adapters or the composition root.
- A change adds a command, an output shape or an exit-code mapping, and the ordering matters.
- A reviewer asks "what is the order here?" before approving the work.

Do not activate for a single-file, single-layer change that one engineer can sequence in their head - the plan for that is the diff.

## Core Principles

- Every step is verifiable. A step without a named gate command is not a step; "test it" is not a command.
- Order is part of the plan. A contract lands before the code that emits it, an adapter lands before the handler that depends on it, the wiring lands last.
- The blast radius is stated up front: which layers are touched, which are deliberately not, and what the contract consequences are.
- The smallest correct change. The plan extends the existing seams - the existing port, the existing use case, the existing contract - instead of introducing a new layer or dependency.
- The plan ends at `make ci`. Lint, test, evals and build are the definition of done; a plan that stops earlier is incomplete.

## Rules

- Anti-hallucination: every file path in the plan must exist or be created by a named step; never cite a path that was not read.
- Every claim needs a source: cite the local file or playbook for a repository rule.
- Do not emit the final plan as a fenced code block when raw output is expected - the document is plain Markdown text.
- Each step names exactly one gate command, so a failure points at the step that caused it.
- A plan never proposes a `process` or `node:` call outside `src/adapters/`, and never an exit-code change without the version bump as an earlier step.
- A plan that changes a durable record includes the version bump, the migration and the fixture of the previous version as explicit steps.
- Do not schedule work the request does not need: no speculative refactors, no future-proofing, no second abstraction.

## Research References

Provenance table - every claim in a finding needs a row.

| claim | source | year | link |
| --- | --- | --- | --- |
| A CLI process starts cold on every invocation; nothing survives between runs but what is written | `PLAYBOOK_CLI.md` section 3 | 2024 | local file |
| stdout is data, stderr is diagnostics; no prompt in a pipe | `PLAYBOOK_CLI.md` section 4.1 | 2024 | local file |
| The exit-code table and the envelope the plan must respect | `src/core/contracts.ts` | 2024 | local file |
| The layer walls and the dependency direction | `eslint.config.mjs`, `tests/architecture.test.ts` | 2024 | local file |
| The gate commands and what each one proves | `Makefile`, `package.json` | 2024 | local file |

## Output Format

The plan document, written to `docs/plans/<slug>.md` (the directory is created on demand), then the ordered step list. Plain Markdown - not a fenced block:

```
# Plan - <title>

## Problem
One paragraph: what is missing today and what changes for the user.

## Constraints
The rules that bound the solution: the layer walls, the stream split, the
envelope version, the exit-code table, the gates.

## Design
The chosen approach and the alternatives rejected, with the reason.

## Files
The files created and edited, with one line each.

## Risks
What can go wrong, how it is detected, and what happens if it does.

## Tests
The tests to write, per tier, and the red-first order.

## Steps
1. <file> - <what changes>
   Gate: <command>
2. ...

## Definition of done
make ci green; npm run evals green; docs updated where the public surface
changed.
```

Summary line: `plan: <slug> - N step(s), M risk(s) - verdict: READY | NEEDS-CLARIFICATION`.

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.