agentleFS
b310-digitalb310-digital/speculatius/skills/spec-init/SKILL.md

spec-init

Skill3 starsChanged 9 days agoMITView on GitHub

Set up a repo for the spec process by creating the default files from scaffolds - AGENTS.md, docs/glossary.md, docs/architecture.md, docs/specs/ with its scenario ID config, docs/decisions/ and the .speculatius/ gitignore entry. Never overwrites existing files. Use when the user asks to init, set up, bootstrap or scaffold the spec process or the docs structure. Only the user starts it; no other skill runs it.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use spec-review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    spec-review

    Independent, multi-model review of a design or spec **before** any code is written, for the microsoft/winappcli repo. Activate when a contributor asks to "review this spec", "review my design", "review this design doc", "validate this approach", "should we build this", "spec review", "design review", or "feature review". Fans out parallel sub-agents — each doing its OWN research against the real codebase and ecosystem rather than trusting the spec — covering necessity & scope, approach & alternatives, feasibility vs reality, risks & unknowns, DX & user impact, and a different-model-family cross-check. Emits a decision-oriented recommendation (proceed / proceed-with-changes / reconsider) to stdout. This is the PRE-CODE companion to the pr-review skill (which reviews code already written); use spec-review at the design/spec stage, not on an implemented diff. Does NOT write code or edit the spec.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the repo keeps its glossary elsewhere, adjust the glossary path in AGENTS.md.

    line 21

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

spec-init

Creates the default files of the spec process from the scaffolds/ folder of this skill. Safe to run again: it creates only what is missing and never overwrites.

Steps

TargetScaffoldRule
AGENTS.mdscaffolds/AGENTS.mdIf it exists, add only the missing lines and limit the file to about 20 lines. If only CLAUDE.md exists, also add one line there pointing to AGENTS.md.
Glossaryscaffolds/glossary.mdUse the one the repo already has (docs/glossary.md, GLOSSARY.md or similar). Create docs/glossary.md only if there is none.
docs/architecture.mdscaffolds/architecture.mdFill it from the code where the repo shows the answer. Leave the placeholder where it does not; never guess.
docs/specs/.spec-config.yamlscaffolds/spec-config.yamlIf specs already exist, set each area's last_scenario_id to its highest ID in docs/specs/.
docs/decisions/noneEmpty folder with a .gitkeep.
Root .gitignorenoneAdd the line .speculatius/, so plans and reports are never committed.

If the repo keeps its glossary elsewhere, adjust the glossary path in AGENTS.md.

After

Tell the user which files were created, which were left untouched, and which placeholders in docs/architecture.md are still open. Name spec-write as the next step.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.