spec-init
Skill0 starsChanged 6 months agoMITView on GitHub
Bootstrap the spec corpus for this project
We split this skill into the rules it gives an agent
18 rules. 0 are common, 11 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
11
Distinctive
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
- Very specific: line 15
Check that jq is installed:
- Distinctive: line 19
If missing, tell the user to install jq and stop.
- Very specific: line 21
Check that .spec/CLAUDE.md exists.
- Very specific: line 28
Check that .spec/registry/manifest.json does NOT exist.
- Distinctive: line 52
If the user says "infer":
- Very specific: line 53
Read the project's top-level directory structure and any existing .kb/CLAUDE.md topic map and .decisions/CLAUDE.md decision index
- Distinctive: line 56
Wait for user confirmation or adjustment
- Distinctive: line 65
Create the registry directory and files:
- Very specific: line 122
Add a row to the Domain Taxonomy table in .spec/CLAUDE.md for each domain:
- Distinctive: line 139
If files are provided:
- Distinctive: line 144
If validation passes, copy to the appropriate domain directory
- Distinctive: line 146
Update the domain shard INDEX.md
- Distinctive: line 147
Update domain feature_count in manifest
- Distinctive: line 149
If validation fails for any file, report the errors and skip that file.
- Distinctive: line 155
Run corpus health check:
- Very specific: line 176
Never create .spec/decisions/ or .spec/changelog/ — decisions live in .decisions/, not duplicated inside .spec/
- Very specific: line 178
Never overwrite an existing manifest.json — this skill is for first-time bootstrap only
- Distinctive: line 180
All file writes use atomic tmp + mv pattern for JSON files
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
/spec-init
Bootstrap the .spec/ directory structure for operational specifications.
Creates the registry, domain taxonomy, and shard indexes. Run once per project.
Pre-flight guard
- Check that
jqis installed:
If missing, tell the user to install jq and stop.command -v jq >/dev/null 2>&1 - Check that
.spec/CLAUDE.mdexists. If not:
Stop.The spec system seed file is missing. Run /setup-vallorcine or /upgrade-vallorcine to install the latest vallorcine version first. - Check that
.spec/registry/manifest.jsondoes NOT exist. If it does:
Stop.Spec corpus already initialized. Use /spec-write to add specs or /spec-resolve to query the corpus.
Step 1 — Collect domain taxonomy
Ask the user:
What are the major technical domains in this project?
Domains group related specifications. Examples:
- storage, networking, encryption, query, compaction
- auth, billing, api, persistence, messaging
List 4-10 domain names (comma-separated), each with a 5-10 word description.
Or say "infer" and I'll suggest domains based on the codebase.If the user says "infer":
- Read the project's top-level directory structure and any existing
.kb/CLAUDE.mdtopic map and.decisions/CLAUDE.mddecision index - Suggest 4-10 domains based on what you find
- Wait for user confirmation or adjustment
Each domain needs: a slug (lowercase, hyphenated) and a description (keywords that the resolver uses for matching).
Step 2 — Scaffold registry
Create the registry directory and files:
mkdir -p .spec/registryWrite .spec/registry/manifest.json:
{
"version": 1,
"generated": "<ISO-8601 timestamp>",
"domains": {
"<domain-slug>": {
"shard_path": "domains/<domain-slug>/INDEX.md",
"description": "<domain description keywords>",
"feature_count": 0
}
},
"features": {}
}Write .spec/registry/_obligations.json:
{
"version": 1,
"obligations": []
}Step 3 — Create domain directories and shard indexes
For each domain:
mkdir -p .spec/domains/<domain-slug>Write .spec/domains/<domain-slug>/INDEX.md:
# <Domain Name> — Spec Index
> Shard index for the <domain> domain.
> Split this file when it exceeds ~50 entries.
## Feature Registry
| ID | Title | Status | Amends | Decision Refs |
|----|-------|--------|--------|---------------|Step 4 — Update .spec/CLAUDE.md
Add a row to the Domain Taxonomy table in .spec/CLAUDE.md for each domain:
| <domain-slug> | domains/<domain-slug>/ | <description> | 0 |Step 5 — Ingest existing specs (optional)
Ask the user:
Do you have any existing spec files to import? If so, provide the
directory path. Otherwise, say "skip" to start with an empty corpus.If files are provided:
- For each file, run structural validation:
bash .claude/scripts/spec-validate.sh "<file>" - If validation passes, copy to the appropriate domain directory
- Register in manifest via
spec_registry_update() - Update the domain shard INDEX.md
- Update domain feature_count in manifest
If validation fails for any file, report the errors and skip that file.
Step 6 — Final validation
Run corpus health check:
bash .claude/scripts/spec-stats.shReport the results and confirm initialization is complete:
Spec corpus initialized.
Domains: <count>
Specs: <count> (if any were ingested)
Next steps:
/spec-write "<id>" "<title>" — author a new spec
/spec-resolve "<description>" — resolve context for a featureHard constraints
- Never create
.spec/decisions/or.spec/changelog/— decisions live in.decisions/, not duplicated inside.spec/ - Never overwrite an existing manifest.json — this skill is for first-time bootstrap only
- All file writes use atomic tmp + mv pattern for JSON files
- Domain slugs must be lowercase with hyphens only (no spaces, no underscores)
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- legeling/PromptHub★ 1.8ksame name
- HHU3637kr/skills★ 146same name
- maurigre/mgr-method★ 2same name
- fernandoxavier02/Pipeline-Orchestrator★ 1same name
- stjarnstrom/spec-system★ 0same name
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.
Used alongsideProjects 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.
MicrosoftSkillspec-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
In this repository45 other files it gives its agents.
- decisions/CLAUDE.mdCLAUDE.md
- kb/CLAUDE.mdCLAUDE.md
- spec/CLAUDE.mdCLAUDE.md
- work/CLAUDE.mdCLAUDE.md
- script-devSkill
- architectSkill
- auditSkill
- capabilitiesSkill
- curateSkill
- decisionsSkill
- feature-cleanupSkill
- feature-completeSkill
- feature-coordinateSkill
- feature-domainsSkill
- feature-hardenSkill
- feature-implementSkill
- feature-planSkill
- feature-prSkill
- feature-quickSkill
- feature-refactorSkill
- feature-resumeSkill
- feature-retroSkill
- featureSkill
- feature-testSkill
- kbSkill
- project-contextSkill
- researchSkill
- setup-vallorcineSkill
- spec-authorSkill
- spec-backfillSkill
- spec-resolveSkill
- specSkill
- spec-splitSkill
- spec-verifySkill
- spec-writeSkill
- uninstall-vallorcineSkill
- upgrade-vallorcineSkill
- vallorcine-helpSkill
- work-decomposeSkill
- work-planSkill
- work-resumeSkill
- work-runSkill
- workSkill
- work-startSkill
- work-statusSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

