agentleFS
Guz007Guz007/claude-code-os-plugin/skills/claude-md-bootstrap/SKILL.md

claude-md-bootstrap

Skill0 starsChanged 4 months agoMITView on GitHub

Generate or rewrite a project's CLAUDE.md instruction file. Use when a project has no CLAUDE.md, when the existing one has drifted from the codebase, or when the user asks to bootstrap agent instructions for a repo.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. wanwrick/noosphere-public★ 0same 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 repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

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

    Read README, package.json / pyproject.toml / Cargo.toml, and the top-level directory.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

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

CLAUDE.md Bootstrap

CLAUDE.md is auto-loaded into every session in the project — every byte costs context tokens forever, but every byte that prevents a wrong path saves 100x more. Optimize for that ratio.

Three rules govern the file:

  1. Specific over general. "Use ruff for linting" beats "follow Python best practices."
  2. Constraints over aspirations. "Do not add type annotations to unchanged code" beats "write clean code."
  3. Pointers over content. Link to the style guide; don't inline 500 lines of it.

Procedure

  1. Read README, package.json / pyproject.toml / Cargo.toml, and the top-level directory.
  2. Fill the template below. Leave placeholders only where the codebase genuinely has no signal.
  3. For Conventions — extract real rules from existing code (import style, test patterns, naming). Do not invent.
  4. For Applied Learning — start empty unless commit history reveals a recurring fix pattern (3+ commits fixing the same bug class).
  5. Output the filled CLAUDE.md and wait for approval before writing to disk.

Template

# Claude Instructions — <Project Name>

<One sentence: what this project is, who it serves, what state it's in.>

## Confidence Gate

Do not make changes until you have 95% confidence in the requirement. Ask follow-up questions until you reach it. Wrong paths cost more than clarifying questions.

## Tech Stack

- **<Language + version>** — <package manager, e.g. "Node 24 ES modules, no bundler">
- **<Test runner>** — <invocation, e.g. "node --test">
- **<Lint/format>** — <invocation>
- **<Platform notes>** — <e.g. "Windows 11 / Git Bash, forward slashes">

## Conventions

### <Language A>
- <Specific rule, e.g. "ES modules with explicit .js extensions in imports">
- <Test pattern, e.g. "Node built-in test runner — no jest/vitest">
- <Type policy, e.g. "No TypeScript unless project already uses it">

### General
- No unnecessary abstractions — three similar lines beats premature helper.
- No added comments, docstrings, or type annotations to unchanged code.
- Lean PRs — do what was asked, nothing more.

## Build Commands

| Task    | <Lang A>     | <Lang B>      |
|---------|--------------|---------------|
| Test    | `<cmd>`      | `<cmd>`       |
| Lint    | `<cmd>`      | `<cmd>`       |
| Format  | `<cmd>`      | `<cmd>`       |
| Types   | `<cmd>`      | `<cmd>`       |
| Start   | `<cmd>`      | —             |

## Context Rules

- Use sub-agents for any 3+ file exploration. Return summarized insights only.
- Compact at 60% context — preserve task state, then /clear.
- Pipe long outputs through `head`/`tail`. Limit before running.
- Cite `file:line` when referencing code, never paste the file.
- Batch independent tool calls into one message.

## Key Patterns

- <Domain pattern 1>
- <Domain pattern 2>

## Applied Learning

<Append-only log of incidents and the durable rule extracted. Each entry under 15 words.>

- <Example: "Google Slides autofit crashes batch update. Set font sizes explicitly.">
- <Example: "Windows Developer Mode required for symlinks.">
- On repeated failure or workaround: auto-add a one-line bullet (<15 words) here.

Anti-Patterns

PatternWhy it fails
Inline 200-line style guideBurns context every session. Use a pointer: "See STYLE.md."
"Write clean, idiomatic code"Aspirational, not actionable. Replace with specific constraints.
Listing every dependencyThe agent can read package.json. List only non-obvious ones (custom forks, version pins).
Forbidding things the agent never doesWastes tokens on impossible scenarios.
Updating CLAUDE.md after every sessionHigh churn rots the file. Update on a cadence via memory-hygiene.

Known Gaps

  1. No multi-root support — monorepos with per-package conventions need a CLAUDE.md per root.
  2. No drift detection — nothing flags when CLAUDE.md says "use ruff" but pyproject.toml dropped it. Run memory-hygiene monthly.
  3. No size budget — soft cap 200 lines. Past that, factor into pointers.

See Also

  • memory-bootstrap — sister procedure for the memory/ directory
  • memory-hygiene — maintenance cadence for this file

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.