bootstrap
Skill2 starsChanged 3 months agoMITView on GitHub
Bootstrap a new project with a proper .claude/ setup for agentic development. Use when: setting up a new codebase for Claude Code, user says "set up this project", "bootstrap", "add Claude to this repo", or when .claude/ is missing in a project. Creates CLAUDE.md, CODEBASE.md, docs/, knowledge/, and optionally skills and hooks.
46 other projects use a version of this.
Adopted by
Most recently taken up by
- joi-fairshare/agentic-workflowtheir own version, first seen Oct 5, 2026
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 4, 2026
- Drix10/agent-flowtheir own version, first seen Oct 4, 2026
- ArcticFox2029/chamnantheir own version, first seen Sep 30, 2026
- jscraik/Agent-Skillstheir own version, first seen Sep 27, 2026
- tykisgod/quick-questiontheir own version, first seen Sep 19, 2026
Used with
Projects with it also use design, review and 6 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.
Microsoft AzureSkilldesign
Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.
Also in 4 projects that use this
SentrySkillreview
Fixture review skill.
Also in 7 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 3 projects that use this
Microsoft AzureSkilltest
Also in 3 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 4 projects that use this
AnthropicSkillverify
Drive the contracts engine's runtime surface (the stdio MCP server) to verify changes end-to-end. Scoped to public-plugins/plugins/healthcare/skills/contracts/ and ../../servers/documents/.
Also in 3 projects that use this
Other versions46 projects use a version of this.
Word for word · 1
- mp-web3/claude-starter-kit★ 109100% same
Edited · 0
None found.
Wrote their own version · 45
- bytedance/deer-flow★ 83ksame name
- openai/plugins★ 7.3ksame name
- agentscope-ai/OpenJudge★ 865same name
- infragate/capa★ 726same name
- vercel/vercel-plugin★ 297same name
- Mindrally/skills★ 266same name
- MJbae/awesome-novel-studio★ 155same name
- microsoft/PromptKit★ 109same name
- flavien-ia/hypervibe-harness★ 44same name
- treylom/ThisCode★ 39same name
35 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 repository5 other files it gives its agents.
- create-skillSkill
- onboardSkill
- planSkill
- reflectSkill
- tasksSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 10 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 40 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
First: Read LEARNINGS.md in this skill's directory.
- Very specific: line 18
If no project path given, use the current working directory.
- Very specific: line 19
If --type not specified, infer from context (has src/, package.json, Cargo.toml -> code.
- Distinctive: line 23
Before creating anything, understand what exists.
- Very specific: line 25
Read the project's existing README, package.json/Cargo.toml/pyproject.toml, or equivalent
- Very specific: line 27
Check if .claude/ already exists — if so, audit what's there and fill gaps instead of overwriting
- Distinctive: line 56
Create the directories. Do NOT create empty placeholder files.
- Distinctive: line 126
Use an Agent subagent per module (parallel) to scan source code and produce the doc.
- Very specific: line 130
Create knowledge/<topic>.md for each relevant framework/language convention.
- Distinctive: line 131
Only create files for technologies actually used — don't speculate.
- Distinctive: line 150
Only add hooks when the project has specific needs:
- Very specific: line 158
Write hooks to scripts/ and register in .claude/settings.local.json.
- Distinctive: line 162
Run through the checklist:
- Distinctive: line 181
Do NOT push without user approval.
- Distinctive: line 187
Docs describe behavior, not API surface: Write for an agent that needs to understand the codebase without reading every file.
- Very specific: line 188
Only create files for things that exist: Don't create knowledge/react.md if the project doesn't use React.
- Very specific: line 189
Third-party projects get isolation: Add to CLAUDE.md: Do NOT update ~/claude-assistant/knowledge/, MEMORY.md, or task backlog for this …
- Distinctive: line 190
Don't over-document: Start lean. Fill gaps over time as you learn what's actually needed.
- Distinctive: line 191
Adapt, don't template: Every project is different.
“Common” is measured: kept by at least 6 in 10 of the 40 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
/bootstrap — Set Up a Project for Claude Code
First: Read LEARNINGS.md in this skill's directory.
Arguments: $ARGUMENTS
If no project path given, use the current working directory.
If --type not specified, infer from context (has src/, package.json, Cargo.toml -> code; otherwise -> knowledge).
Step 1: Reconnaissance
Before creating anything, understand what exists.
- Read the project's existing README, package.json/Cargo.toml/pyproject.toml, or equivalent
lsthe top-level directory structure- Check if
.claude/already exists — if so, audit what's there and fill gaps instead of overwriting - Identify:
- Tech stack (languages, frameworks, package manager)
- Build/lint/test commands (from package.json scripts, Makefile, etc.)
- Major modules (top-level dirs that represent distinct concerns)
- Project type:
code(has source code, build system) orknowledge(notes, docs, automation)
Present findings to the user in a table. Confirm before proceeding.
Step 2: Create Directory Structure
.claude/
CLAUDE.md # Behavioral core (always created)
CODEBASE.md # Project overview + module index (code projects only)
docs/ # Module documentation (code projects only)
<module>.md # One per major module
knowledge/ # On-demand context
<framework>.md # Language/framework conventions
settings.local.json # Project-scoped settings (if hooks needed)For knowledge projects, skip CODEBASE.md and docs/. Add instead:
.claude/
rules/ # Domain rules (always loaded)
knowledge/sessions/ # Session logsCreate the directories. Do NOT create empty placeholder files.
Step 3: Write CLAUDE.md
Target: 30-40 lines max. This burns context tokens every session.
Structure — adapt sections to the project:
# <Project Name>
## Commands
- `<build command>` -- build the project
- `<test command>` -- run tests
- `<lint command>` -- lint/typecheck
## Process
- Before starting, read `.claude/CODEBASE.md` and relevant `.claude/docs/` files
- Do NOT use the Explore agent by default -- read documentation first
- After code changes, update documentation if interfaces or behavior changed
- When fetching context, state which documents you loaded
## Available Documentation
- `.claude/CODEBASE.md` -- project overview and module index
- `.claude/docs/<module>.md` -- <one-line description>
## Available Knowledge
- `.claude/knowledge/<topic>.md` -- <one-line description>What goes in CLAUDE.md: commands, process instructions, file listings. What does NOT go in CLAUDE.md: architecture details (-> CODEBASE.md), code conventions (-> knowledge/), module descriptions (-> docs/).
Step 4: Write CODEBASE.md (Code Projects Only)
The entry point Claude reads first. Include:
- What the project does (2-3 sentences)
- Tech stack summary
- Module index — one line per module linking to its doc file
<!-- docs-synced-at: <commit-hash> -->marker on line 1
<!-- docs-synced-at: abc1234 -->
# <Project Name> — Codebase Overview
<What this project does. 2-3 sentences.>
## Tech Stack
<Language, framework, database, key libraries>
## Modules
| Module | Description | Docs |
|--------|-------------|------|
| `src/api/` | REST API routes and handlers | [docs/api.md](docs/api.md) |
| `src/web/` | Frontend application | [docs/web.md](docs/web.md) |Step 5: Write Module Docs (Code Projects Only)
One file per major module in docs/. Each file:
- What the module does (2-3 sentences)
- Key interfaces and type signatures (actual code, not prose)
- Links to source files
- Important design decisions and why
- Behavioral description (what happens when X is called)
These describe behavior and intent for an agent, not auto-generated API docs.
Use an Agent subagent per module (parallel) to scan source code and produce the doc.
Step 6: Write Knowledge Files
Create knowledge/<topic>.md for each relevant framework/language convention.
Only create files for technologies actually used — don't speculate.
For knowledge projects, also create any needed rules/*.md files.
Knowledge file design principles:
- YAML frontmatter on every file (tags, created, last_reviewed, type)
- Imperative phrasing ("Use X for Y" not "X is used for Y")
- Tables over prose for structured data
- 40-80 lines per file, no redundancy — each fact lives in ONE place
- Actionable: "what do I need to know to act", not complete documentation
For knowledge projects, also set up MEMORY.md:
- Under 200 lines always (silently truncated beyond)
- Structure: Active State table, Key Decisions, Next Up, File Map
- Concise index pointing to topic files — not a comprehensive document
- "Next Up" section is mandatory — next session reads this first
Step 7: Configure Hooks (If Needed)
Only add hooks when the project has specific needs:
| Need | Hook | Example |
| Security boundaries | PreToolUse guard | Block writes outside project dir |
| Session continuity | PreCompact state dump | Save critical context before compaction |
| Reminders | Stop hook | "Update docs before ending" |
Write hooks to scripts/ and register in .claude/settings.local.json.
Step 8: Verify
Run through the checklist:
| # | Item | Check |
| 1 | CLAUDE.md exists and is under 40 lines | |
| 2 | CLAUDE.md lists all doc and knowledge files | |
| 3 | CLAUDE.md has build/lint/test commands | |
| 4 | CODEBASE.md exists with module index (code projects) | |
| 5 | Each major module has a docs/ file (code projects) | |
| 6 | knowledge/ files exist for each framework used | |
| 7 | No placeholder/empty files | |
| 8 | CLAUDE.md disables Explore agent by default |
Present the completed checklist to the user.
Step 9: Initial Commit
Stage all .claude/ files. Commit message: feat: bootstrap .claude/ for agentic development
Do NOT push without user approval.
Rules
- Minimal CLAUDE.md is non-negotiable. 30-40 lines. Minimize noise, maximize signal — it gets very bad, very fast if you give information that you might not use.
- Never dump architecture into CLAUDE.md. That's what CODEBASE.md and docs/ are for.
- Docs describe behavior, not API surface. Write for an agent that needs to understand the codebase without reading every file.
- Only create files for things that exist. Don't create
knowledge/react.mdif the project doesn't use React. - Third-party projects get isolation. Add to CLAUDE.md:
Do NOT update ~/claude-assistant/knowledge/, MEMORY.md, or task backlog for this project. - Don't over-document. Start lean. Fill gaps over time as you learn what's actually needed.
- Adapt, don't template. Every project is different. The structure above is a guide, not a rigid template. A 3-file Python script doesn't need module docs.
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.

