speq-plan
Skill56 starsChanged 14 days agoMITView on GitHub
Plans a feature or change through a clarifying interview, producing spec deltas, plan.md, and intent.md with a fresh-context review. Use to plan, spec, design, or scope a feature, change, removal, refactor, or fix, before any implementation.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- exasol-labs/speq-skillword for word, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 1
- exasol-labs/speq-skill★ 56100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- speq-auditSkill
- speq-cliSkill
- speq-code-guardrailsSkill
- speq-code-reviewSkill
- speq-design-philosophySkill
- speq-formatsSkill
- speq-git-operationsSkill
- speq-implement-prSkill
- speq-implementSkill
- speq-missionSkill
- speq-patch-prSkill
- speq-patchSkill
- speq-plan-prSkill
- speq-plan-reviewSkill
- speq-recordSkill
- speq-writing-guardrailsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
Run the clarifying interview, write the plan, then have a plan reviewer with a fresh context challenge it.
- Distinctive: line 28
Read-only investigation: read code, tests, specs, and docs.
- Very specific: line 30
Architecture by delta: never edit specs/architecture.md.
- Very specific: line 32
One copy: never embed spec content in plan.md or intent.md.
- Distinctive: line 33
Specs describe the software, not its tests: never encode test suites, Docker setups, or the test environment as scenarios or Background.
- Very specific: line 44
Read the ADR digest per /speq-cli.
- Distinctive: line 48
Ask the user; never assume.
- Distinctive: line 76
Write the artifacts in this order.
- Very specific: line 84
Prose drift check: after a scenario delta on an existing feature, check that feature's ## Background and # Feature: <name> description.
- Very specific: line 92
plan.mdbody: Write every section of references/plan-template.md: - Very specific: line 127
Non-blocking findings: never loop and are never persisted.
- Very specific: line 136
Every direction in ## Directions, one line each with what it affects in the plan, so the user can correct one through a plan revision
- Distinctive: line 137
If step 5 ran a fix pass, one line ("N review findings fixed")
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spec Planner
User Arguments
$ARGUMENTS
Run the clarifying interview, write the plan, then have a plan reviewer with a fresh context challenge it.
Required Skills
Invoke before starting:
/speq-cli: spec discovery and validation/speq-design-philosophy: module boundaries, decision ownership, and dependency direction for the implementation design/speq-writing-guardrails: prose style
Guiding Principles
- BDD (Gherkin syntax): scenarios use GIVEN/WHEN/THEN; integration tests by default, unit tests only for isolated pure computation
- RFC 2119 keywords: THEN steps use MUST, MUST NOT, SHALL, SHALL NOT, SHOULD, SHOULD NOT, MAY (uppercase)
Rules
- Read-only investigation: read code, tests, specs, and docs. Never build, test, or run the software; plan the commands instead.
- Short Background:
## Backgroundis a concise summary of the context every scenario shares, 3-5 one-line bullets at most. It never encodes features, behavior, or requirements; each of those is a scenario (or a step in one). When a change adds behavior, add or change a scenario, not a Background line. When you rewrite a Background that has grown past this, cut it down in the sameDELTA:CHANGEDblock. - Architecture by delta: never edit
specs/architecture.md;/speq-recordmerges the delta. When the plan changes no architecture, write no delta. - Proof is tests and manual runs:
speqcommands (speq plan validate,speq feature get) check the plan, not the product, so never list them as test or manual evidence. - One copy: never embed spec content in
plan.mdorintent.md; reference the delta files. - Specs describe the software, not its tests: never encode test suites, Docker setups, or the test environment as scenarios or Background. The plan's Verification section covers testing.
Workflow
1. Discovery
speq domain list
speq feature listRead the ADR digest per /speq-cli. Name the features that relate to the request, per /speq-cli's absence check. Collect only enough context for good interview questions, not a full exploration.
2. Clarifying Interview
Ask the user; never assume. Offer alternatives as options where the request leaves a design choice open.
Gap hunt. The goal of the interview is to find what the request leaves open, including what the user has not thought of. Before you close it, check each lens below against the request and the discovery results. Ask about every lens that applies and that the request does not settle. Skip a lens that does not apply.
- Who and what is affected: users, callers, and existing features that touch the change
- Conflicts: existing specs, ADRs, or behavior the request contradicts or changes
- Edge cases and failures: empty, invalid, or boundary input, and what happens on error
- Boundaries: what is explicitly out of scope
- Compatibility: breaking changes, migration of existing data or specs
Split check. A plan may be too big when it holds parts that ship and verify on their own (two or more user-visible outcomes where neither needs the other), or when the deltas hold more than about 12 new or changed scenarios. Then ask the user whether to split, and propose the parts. The user decides the scope. On a split, plan the part the user picks, and end its plan.md Context with a Follow-up plans list (name and one-line scope each).
3. Plan Name
Pattern: <verb>-<feature-scope>[-<qualifier>]
| Verb | When |
add | New feature |
change | Modify existing |
remove | Deprecate/delete |
refactor | Restructure, same behavior |
fix | Bug or spec mismatch |
Once the name is set, write specs/_plans/<plan-name>/intent.md with the H1 # Intent: <plan-name> and an ## Interview section with one entry per step 2 exchange, per references/intent-template.md. This is the only copy of the interview.
4. Author the Plan
Write the artifacts in this order. Do not start a step before the previous one is done.
- Read the context.
speq feature get <domain>/<feature>for each related feature. Ifspecs/architecture.mdexists, read the sections the plan touches. Check the plan against every accepted ADR in the digest, per ADR rule 4 inadr-rules.mdin/speq-formats; read the full fragment of any ADR the plan touches. Before you author a NEW feature or state that no spec covers a behavior, run/speq-cli's absence check. Spec deltas. For each feature in scope, write
specs/_plans/<plan-name>/<domain>/<feature>/spec.md:- The feature exists → DELTA markers per
references/delta-template.md. - It does not → a full spec per
references/feature-template.md.
Prose drift check: after a scenario delta on an existing feature, check that feature's
## Backgroundand# Feature: <name>description. When the scenario change makes either inaccurate, add aDELTA:CHANGEDblock for that section too.- The feature exists → DELTA markers per
- Architecture delta. Shape every new module, interface, or boundary per
/speq-design-philosophy's Quick Diagnostic. If the plan changes a component, boundary, interface, data flow, constraint, or external dependency, writespecs/_plans/<plan-name>/architecture.mdperarchitecture-delta-template.mdin/speq-formats. Copy each changed section fromspecs/architecture.md, edit it, and set the BASE hash withgit hash-object specs/architecture.md. Ifspecs/architecture.mdis absent, write no delta. - Validate the deltas:
speq plan validate <plan-name>. Fix failures before you go on. Common fixes: close delta markers (<!-- /DELTA:CHANGED -->,<!-- /DELTA:NEW -->,<!-- /DELTA:REMOVED -->), uppercase RFC 2119 keywords, bold step keywords (*GIVEN*,*WHEN*,*THEN*,*AND*). - Directions. Add every choice you made without a user answer to
## Directionsinintent.md, perreferences/intent-template.md. Gaps you found while authoring land here too. Keep the section short: the template's rules say what earns an entry. Before you mark a directionADR: yes, read the ADR rules inadr-rules.mdin/speq-formats. Most plans mark none. plan.mdbody. Write every section ofreferences/plan-template.md:- Context, Features (referencing the delta files), and Impact (breaking changes called out, or "None").
- Dead Code Removal: existing code and tests the change or the new tests make redundant.
- Verification. Scenario Coverage maps each new or changed scenario to an integration test (file path + test name), one test per scenario by default. Manual Testing gives concrete commands against the built software and their expected output, one per feature. Checklist commands come from
specs/mission.md.
- Final validation:
speq plan validate <plan-name>.
5. Plan Review
Spawn the plan reviewer once as a sub-agent. There is one review round.
Set its model to opus. <!-- claude-only -->
Prompt:
Invoke /speq-plan-review and follow it.
## Plan Name
<plan-name>
## User Intent
<verbatim original request>
## Clarifying Interview Results
Read `specs/_plans/<plan-name>/intent.md`.
## Plan Artifacts
plan.md, intent.md, every specs/_plans/<plan-name>/**/spec.md delta, and specs/_plans/<plan-name>/architecture.md when presentIt writes specs/_plans/<plan-name>/plan-review.md and returns PLAN REVIEW: BLOCKERS: <n>, FINDINGS: <n>, INTENT: <n> — <path>. INTENT counts the BLOCKERs on the Intent Fidelity axis alone.
INTENT > 0: the reviewer holds that the plan solves a different problem than the one asked. Ask the user about those findings before any fix. The user accepts the plan as-is, or gives guidance and you revise.INTENT == 0andBLOCKERS > 0: fix the blockers perreferences/revision-mode.md. Do not review again.- Any blocker you could not resolve, or a failed
speq plan validate: ask the user, one line of context each plus a pointer to the review file. - Non-blocking findings never loop and are never persisted. Carry them into step 6's report. An
[UNSTATED_ASSUMPTION]or[INTENT_GAP]finding becomes an entry in## Directions, whatever its severity.
6. Explain Next Steps
Print to the terminal:
plan.md's## ImpactsectionADR candidates: none, or eachADR: yesdirection- The non-blocking findings from step 5
- Every direction in
## Directions, one line each with what it affects in the plan, so the user can correct one through a plan revision - If step 5 ran a fix pass, one line ("N review findings fixed")
- Tell the user to run
/speq-implement <plan-name>to continue, after/clearfor a fresh context window
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

