crux-init
Skill4 starsChanged 19 days agoMITView on GitHub
Bootstrap the documentation repo of a new project under the standard, or formalize one that lives without documentation. Creates the repo on the remote, materializes the minimal structure from the kernel templates, writes the crux.json contract and generates the pointers for the code repos. Use when you are starting a project or want to put an existing one under the standard.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-repo-to-docsSkill
- adrSkill
- auth-bypass-localSkill
- before-afterSkill
- bug-huntSkill
- carry-envSkill
- code-healthSkill
- crux-doctorSkill
- css-to-componentsSkill
- deploy-fallbackSkill
- deploy-watchSkill
- device-loopSkill
- drive-browserSkill
- e2eSkill
- end-sessionSkill
- eval-fixturesSkill
- explain-planSkill
- flowSkill
- grillSkill
- merge-conflictsSkill
- motion-videoSkill
- oauth-reauthorizeSkill
- prod-signalsSkill
- promote-to-docsSkill
- prose-checkSkill
- read-documentSkill
- render-loopSkill
- repo-mapSkill
- review-prSkill
- root-causeSkill
- runbookSkill
- security-auditSkill
- share-localSkill
- shipSkill
- skill-auditSkill
- skill-creatorSkill
- teachSkill
- ui-behaviourSkill
- ui-tellsSkill
- visual-diffSkill
- visual-testSkill
- wizardSkill
- workspaceSkill
- write-testsSkill
- x-postsSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
If the project already has a docs repo with content, use crux adopt, which registers it without touching what is already there.
- Distinctive: line 39
When in doubt, ask explicitly instead of assuming.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
crux-init
Creates the docs repo of a new project following the standard.
When to use
- You are starting a project and want its documentation set up from day one.
- You have a project that lives without documentation and want to formalize it.
If the project already has a docs repo with content, use crux adopt, which
registers it without touching what is already there.
Preconditions
- The kernel installed on this machine (
crux versionresponds). ghauthenticated, unless you use--no-remote.
Flow
1. Collect the data
Ask the user:
- Project name, in lowercase kebab-case. It will also be the name of the parent folder, so it is best if it is short.
- Description, one line.
- Repos that already exist, if any.
- Profile:
multi-repoif the code is your own,client-repoif the code belongs to a client and can't be touched. - Visibility of the docs repo: private by default.
The profile is the decision with the most consequences: it determines whether the code repos are written to or not, and which rules the verification enforces. When in doubt, ask explicitly instead of assuming.
2. Run
crux init <project> \
--description "..." \
--repos "repo-a,repo-b" \
--profile multi-repoThe command creates the repo on the remote, clones it, materializes the structure
from the templates, writes crux.json, makes the initial commit and generates
the pointers for the repos it finds on disk.
It is deterministic: it comes from the kernel templates, not from files being reproduced by hand. Two runs give the same tree.
3. Verify
crux doctorIt must come out conformant before accepting the bootstrap.
4. Explain to the user what they now have
- Where each thing ended up and which folders will appear later, on demand:
architecture/,conventions/,operations/andtopics/<topic>/only when the project needs them. - That the code repos are placed as siblings of the docs repo.
- That
/add-repo-to-docsexists for adding a new one.
Common errors
- The repo already exists on the remote. Decide between another name or cleaning up by hand; the command doesn't delete anything that isn't its own.
- The name is not kebab-case. The command rejects it on purpose: half the convention depends on the folder being named exactly like the project.
- The project already had documentation. This is not the command; it is
crux adopt.
Related
/add-repo-to-docs: register a repo in an already set up project/crux-doctor: verify conformance/end-session: the closing ritual that keeps all this alive
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.

