spec-init
Skill0 starsChanged 7 months agoMITView on GitHub
Bootstrap the spec corpus for this project
2 other projects use a version of this.
Adopted by
Most recently taken up by
- HHU3637kr/skillstheir own version, first seen Sep 22, 2026
- legeling/PromptHubtheir own version, first seen Jun 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- legeling/PromptHub★ 1.7ksame name
- HHU3637kr/skills★ 145same 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.
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
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 11 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
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
- 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 an estimate: at least 1 in 5 of the 213,897 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-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)
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.

