init
Skill198 starsChanged 3 months agoMITView on GitHub
Analyze project structure, populate .claude/docs/DESIGN.md, and write the thin Repository Identity section in .claude/STATE.md.
89 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- cfgaudit/cfgaudittheir own version, first seen Oct 5, 2026
- RobStrayer/voice-agent-skillstheir own version, first seen Oct 1, 2026
- hodstack/hodstacktheir own version, first seen Oct 1, 2026
- sachingulati/claude-statuslinetheir own version, first seen Sep 30, 2026
- OpenPerfAgent/who-ate-my-flopstheir own version, first seen Sep 30, 2026
Used with
Projects with it also use migrate, survey and 10 more.
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.
genomewalkerSkillmigrate
Import soul data from SQLite or shared chitta files
Also in 8 projects that use this
SNL-UCSBSkillsurvey
Literature survey assistant with four modes: /survey intent (capture student goals, expertise, and success criteria), /survey triage (landscape mapping via NotebookLM), /survey deepen (structured reading with craft and visualization extraction), /survey synthesize (cross-paper analysis for related work, area exams, gap identification). Also: /survey expand (corpus growth proposals). Use when students mention reading papers, literature review, related work, area exam prep, paper corpus, or any systematic reading task.
Also in 3 projects that use this
pvnarpSkillbug
Investigates and resolves bugs using structured diagnosis. Categorizes by system, traces root cause, proposes minimal fix, and suggests prevention. Use when debugging issues or investigating unexpected behavior.
Also in 3 projects that use this
AnthropicSkilluninstall
Uninstall a community skill that was installed via the hub. Confirms before deleting files, refuses to touch first-party plugin skills, and logs every action. Use when the user wants to fully remove a community skill ("uninstall [skill]", "remove this skill") rather than just disable it.
Also in 3 projects that use this
Eipi-TongSkilladopt
Onboard an existing codebase into the starter kit. Use when the user says "adopt this project", "add the kit to my existing repo", or "set up the kit on existing code".
Also in 3 projects that use this
mlz11Skillreset
Completely reset ClaudeNotifier installation, removing all components and permissions
Also in 3 projects that use this
Other versions89 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 89
- microsoft/vscode★ 196ksame name
- mcollina/skills★ 1.9ksame name
- skyllwt/AutoSci★ 1.7ksame name
- tmck-code/yet-another-statusline★ 242same name
- mattgierhart/PRD-driven-context-engineering★ 179same name
- atelier-fashion/adlc-toolkit★ 171same name
- guhcostan/claude-mega-brain★ 126same name
- The01Geek/prflow★ 99same name
- duthaho/claudekit★ 97same name
- Lambenthan/empiricalwiki★ 91same name
79 more not listed
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 repository17 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- catchupSkill
- checkpointingSkill
- codex-systemSkill
- context-loaderSkill
- design-trackerSkill
- featureSkill
- planSkill
- research-libSkill
- simplifySkill
- spikeSkill
- tddSkill
- team-executeSkill
- troubleshootSkill
- update-lib-docsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 80 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
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
- Very specific: line 18
Never create a CLAUDE.md: Claude Code reads AGENTS.md only when no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md exists.
- Distinctive: line 42
Read these fields before writing anything:
- Distinctive: line 65
Ask the user for the project purpose, code-language preference, and additional conventions only when repository evidence does not already …
- Very specific: line 75
Write the input JSON to .claude/logs/init-design-input.json and use only the typed keys:
- Very specific: line 138
All three must exit 0 with ok: true.
“Common” is measured: kept by at least 6 in 10 of the 80 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
Initialize Project Configuration
Initialize project-owned context without expanding the always-loaded root
AGENTS.md.
Ownership
.claude/docs/DESIGN.mdowns macro requirements and design..claude/STATE.mdowns the active main agent, thin repository identity, and cross-session working state.- Root
AGENTS.mdis template-owned and must not be edited by this skill. Never create aCLAUDE.md: Claude Code readsAGENTS.mdonly when noCLAUDE.md,.claude/CLAUDE.mdorCLAUDE.local.mdexists. PROGRESS.mdis maintained by/checkpointing.
Steps
1. Collect stack evidence
Run:
python3 .claude/skills/init/detect_stack.pyThe script reports evidence, not conclusions. It never infers a command:
evidence.tools names the [tool.*] tables declared in pyproject.toml,
evidence.scripts carries the verbatim package.json script strings, and
evidence.dependencies gives each dependency's name, its raw spec, the
manifest it came from, and the key it was declared under
(project.dependencies, project.optional-dependencies.dev,
dependency-groups.lint, devDependencies.x, …). You decide from that
evidence which commands and libraries are real; do not copy a command the
repository does not declare.
Read these fields before writing anything:
warnings— a manifest that could not be read, decoded, or parsed. Non-empty means the evidence is partial, even though the exit code is0.evidence.parsed_manifests/evidence.unparsed_manifests— "parsed and empty" versus "present but not parsed for dependencies" (Cargo.toml,go.mod,setup.py,Makefile,Dockerfile).manifests— every checked filename with an explicittrue/false, so "checked and absent" is never mistaken for "never checked".agent_bootstrap—agents_md,no_claude_md_shadow,state_md,claude_agents_dir,claude_skills_dir,cli_subagent_contract.
Exit codes: 0 normal · 1 bad arguments, including a --project-root that is
not a directory · 2 the agent bootstrap is invalid — ok: false and error
name the failed markers. Exit 2 covers the root AGENTS.md contract, the
absence of a shadowing CLAUDE.md, shared state, the CLI-subagent contract,
and both native runtime directories (.claude/agents and .claude/skills must be
real directories; a missing one silently disables all native agent and skill
discovery). Stop and repair the installation — bash scripts/check.sh diagnoses
the same layout — before writing context.
2. Ask for missing context
Ask the user for the project purpose, code-language preference, and additional conventions only when repository evidence does not already answer them.
3. Populate DESIGN.md
DESIGN.md is written through the typed writer, never by hand: it is a
user-owned document, and update_design.py supplies the dry-run preview, the
atomic replace, the concurrent-modification hash guard, per-cell | escaping,
and validation of the composed document before it replaces the original.
Write the input JSON to .claude/logs/init-design-input.json and use only the
typed keys:
| DESIGN.md target | Input key | Row fields |
## 機能要件 (Functional Requirements) | requirements | id, requirement, priority, notes |
## 非機能要件 (Non-Functional Requirements) | nfr | category, requirement, metric |
## 技術選定 (Tech Stack & Rationale) | tech_choices | area, technology, rationale, alternatives |
## アーキテクチャ (Architecture) Agent Roles table | agent_roles | agent, role, responsibilities |
## Key Decisions | decisions | decision, rationale, alternatives (date is stamped for you) |
| Prose sections (背景・目的, スコープ, 制約, TODO / Open Questions) | section_updates | heading, content |
python3 .claude/skills/_shared/update_design.py --input .claude/logs/init-design-input.json
# Read the preview at preview_file, then apply:
python3 .claude/skills/_shared/update_design.py --input .claude/logs/init-design-input.json --apply --require-changeCompletion test — result == "applied" and (decisions_appended > 0 or any
rows_appended value > 0 or sections_updated non-empty). --require-change
turns a no-op into exit 2, so an all-duplicate or all-empty input can never
be reported as populated. Exit 2 also means the DESIGN.md structure is invalid;
exit 3 means DESIGN.md changed underneath the writer — re-read and retry.
Fill only claims supported by repository evidence or the user's answers, and do
not fabricate requirements. Later incremental design changes go through
/design-tracker, which uses the same writer.
4. Update Repository Identity
## Repository Identity is also written through its typed writer, which
replaces only that section's body and aborts if ## Main Agent,
## Progress Tracker, or any working block would be lost. Write
.claude/logs/init-identity-input.json:
{"identity": "One sentence naming what this repository is."}python3 .claude/skills/_shared/append_state_block.py --type repository-identity \
--input .claude/logs/init-identity-input.json
python3 .claude/skills/_shared/append_state_block.py --type repository-identity \
--input .claude/logs/init-identity-input.json --applyThe writer emits the <!-- Managed by /init. Re-run /init to refresh. -->
marker and the docs/DESIGN.md pointer itself, so the input carries the identity
sentence only. Do not add a heading, a ---, or a second paragraph — the writer
rejects them (exit 1). Confirm result: "applied", structure_ok: true, and
progress_tracker_preserved: true (a real check: it aborts the write with exit
2 when an existing tracker line was deleted or rewritten).
5. Re-verify and report
Re-run the closing gate, and report the JSON verdicts rather than a claim:
python3 .claude/skills/init/detect_stack.py
python3 .claude/skills/_shared/validate_doc.py --contract design-doc --file .claude/docs/DESIGN.md
python3 .claude/skills/_shared/validate_doc.py --contract state-doc --file .claude/STATE.mdAll three must exit 0 with ok: true. detect_stack.py confirms shared state
and the native runtime directories are intact; the two contracts confirm the documents
this skill just wrote still have the sections every other skill reads them for —
exit 2 names the missing section. Checking the two documents directly is
stricter than inferring their health from the detector, which is why the detector
alone is no longer the gate.
Then review .claude/rules/ for irrelevant stack-specific rules, but do
not remove them without user approval. Report the evidence you used and the
evidence you rejected, the two updated files, any warnings, and your
recommendations, per .claude/rules/language.md.
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.

