agentleFS
mp-web3mp-web3/claude-starter-kit/skills/bootstrap/SKILL.md

bootstrap

Skill108 starsChanged 9 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.

75 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use surprise-me, ppt-generation 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.
  • stophobiaSkill

    surprise-me

    Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".

    Also in 3 projects that use this

  • HK-hubSkill

    ppt-generation

    Use this skill when the user requests to generate, create, or make presentations (PPT/PPTX). Creates visually rich slides by generating images for each slide and composing them into a PowerPoint file.

    Also in 3 projects that use this

  • stophobiaSkill

    github-deep-research

    Conduct multi-round deep research on any GitHub Repo. Use when users request comprehensive analysis, timeline reconstruction, competitive analysis, or in-depth investigation of GitHub. Produces structured markdown reports with executive summaries, chronological timelines, metrics analysis, and Mermaid diagrams. Triggers on Github repository URL or open source projects.

    Also in 3 projects that use this

  • HK-hubSkill

    consulting-analysis

    Use this skill when the user requests to generate, create, or write professional research reports including but not limited to market analysis, consumer insights, brand analysis, financial analysis, industry research, competitive intelligence, investment due diligence, or any consulting-grade analytical report. This skill operates in two phases — (1) generating a structured analysis framework with chapter skeleton, data query requirements, and analysis logic, and (2) after data collection by other skills, producing the final consulting-grade report with structured narratives, embedded charts, and strategic insights.

    Also in 3 projects that use this

  • MicrosoftSkill

    podcast-generation

    Generate AI-powered podcast-style audio narratives using Azure OpenAI's GPT Realtime Mini model via WebSocket. Use when building text-to-speech features, audio narrative generation, podcast creation from content, or integrating with Azure OpenAI Realtime API for real audio output. Covers full-stack implementation from React frontend to Python FastAPI backend with WebSocket streaming.

    Also in 3 projects that use this

  • VercelSkill

    vercel-deploy

    Deploy applications and websites to Vercel with a claimable preview. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment". No authentication required - returns preview URL and claimable deployment link.

    Also in 4 projects that use this

  • +1 more from HK-hub

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 64 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
  1. Very specific:

    First: Read LEARNINGS.md in this skill's directory.

    line 14
  2. Very specific:

    If no project path given, use the current working directory.

    line 18
  3. Very specific:

    If --type not specified, infer from context (has src/, package.json, Cargo.toml -> code.

    line 19
  4. Distinctive:

    Before creating anything, understand what exists.

    line 23
  5. Very specific:

    Read the project's existing README, package.json/Cargo.toml/pyproject.toml, or equivalent

    line 25
  6. Very specific:

    Check if .claude/ already exists — if so, audit what's there and fill gaps instead of overwriting

    line 27
  7. Distinctive:

    Create the directories. Do NOT create empty placeholder files.

    line 56
  8. Distinctive:

    Use an Agent subagent per module (parallel) to scan source code and produce the doc.

    line 126
  9. Very specific:

    Create knowledge/<topic>.md for each relevant framework/language convention.

    line 130
  10. Distinctive:

    Only create files for technologies actually used — don't speculate.

    line 131
  11. Distinctive:

    Only add hooks when the project has specific needs:

    line 150
  12. Very specific:

    Write hooks to scripts/ and register in .claude/settings.local.json.

    line 158
  13. Distinctive:

    Run through the checklist:

    line 162
  14. Distinctive:

    Do NOT push without user approval.

    line 181
  15. Distinctive:

    Docs describe behavior, not API surface: Write for an agent that needs to understand the codebase without reading every file.

    line 187
  16. Very specific:

    Only create files for things that exist: Don't create knowledge/react.md if the project doesn't use React.

    line 188
  17. Very specific:

    Third-party projects get isolation: Add to CLAUDE.md: Do NOT update ~/claude-assistant/knowledge/, MEMORY.md, or task backlog for this …

    line 189
  18. Distinctive:

    Don't over-document: Start lean. Fill gaps over time as you learn what's actually needed.

    line 190
  19. Distinctive:

    Adapt, don't template: Every project is different.

    line 191

“Common” is measured: kept by at least 6 in 10 of the 64 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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.

  1. Read the project's existing README, package.json/Cargo.toml/pyproject.toml, or equivalent
  2. ls the top-level directory structure
  3. Check if .claude/ already exists — if so, audit what's there and fill gaps instead of overwriting
  4. 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) or knowledge (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 logs

Create 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:

  1. What the project does (2-3 sentences)
  2. Tech stack summary
  3. Module index — one line per module linking to its doc file
  4. <!-- 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:

NeedHookExample
Security boundariesPreToolUse guardBlock writes outside project dir
Session continuityPreCompact state dumpSave critical context before compaction
RemindersStop hook"Update docs before ending"

Write hooks to scripts/ and register in .claude/settings.local.json.

Step 8: Verify

Run through the checklist:

#ItemCheck
1CLAUDE.md exists and is under 40 lines
2CLAUDE.md lists all doc and knowledge files
3CLAUDE.md has build/lint/test commands
4CODEBASE.md exists with module index (code projects)
5Each major module has a docs/ file (code projects)
6knowledge/ files exist for each framework used
7No placeholder/empty files
8CLAUDE.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.md if 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.