Single-commit clean baseline after security scrub of niche-tells, project codenames, internal jargon, and contributor-email leaks. Contents: - 100 Rust crates (_primitives/_rust/) - 37 agent manifests (_manifests/) + generated specs (_generated/) - 67 user-invocable skills (skills/) - 33 hooks (hooks/) - Composition blocks (_blocks/) - Documentation (docs/, README.md) - TS adapter packages (_ts_packages/) - Assembler (_assembler/) - Roles (_roles/) - Templates (_templates/) - Forgejo CI (.forgejo/) Author: Denis Parfionovich <info@greendragon.info> License: see LICENSE.
1.8 KiB
1.8 KiB
DOCS — CLAUDE.md (project bootstrap template)
A per-project CLAUDE.md answers one question: what does a Claude agent need to know in the first 30 seconds on this repo? It is read before any code work. Keep it under ~150 lines.
Canonical sections (in this order):
- Project one-liner — name, domain, status (
active | maintenance | archived), primary stack, public-surface flag. - Architecture — 2-5 bullets + optional Mermaid block. Layer names match the code tree. If a layer diagram helps,
_blocks/docs-architecture-diagrams.mdhas the patterns. - Stack / dependencies — language(s), major frameworks, DB, queue, deploy target. One line per item.
- Constraints — API rate limits, licensing, cost tiers, platform quirks (e.g. "Flux 2 Pro zero-config", "SPM needs
-Xlinker"). - Known issues — bugs that aren't fixable now, workarounds, tickets. Keep dated.
- Test invariants — how tests are run (
cargo test --release,pytest,flutter test), coverage floor, which tests are load-bearing. - Commands cheatsheet — 5-8 commands the agent will type most: build, test, lint, deploy, format.
- Secrets / credentials — env var NAMES only (RULE 0.8). Never literal tokens. Path:
secrets/*.env. - Related files —
DECISIONS.md,HOTPATHS.md,TODO.md, runbooks.
Placeholders used by kei-docs-scaffold.sh:
{{PROJECT_NAME}}, {{STACK}}, {{DEPLOY}}, {{PRIMARY_LANGUAGE}}, {{TEST_CMD}}.
Forbidden:
- Copying the umbrella
~/.claude/CLAUDE.mdhere — link to it, do not duplicate. - Storing API tokens / private URLs (use
secrets/*.env). - Marketing prose. Every line must be actionable by the agent.
Source: Anthropic Claude Code docs — claude.ai/code project-memory convention (E4). Karpathy viral CLAUDE.md (forrestchang/andrej-karpathy-skills, 15K+ stars) [E4].