claude-code-kit
CLAUDE.md92 starsChanged 24 days agoMITView on GitHub
This is a documentation-only library of reusable prompts, guides, and agent definitions for optimizing Claude Code workflows. There is no application code, no build system, no tests. All content is Markdown files organized in numbered directories. The library follows a sequential learning path (01 through 14), where each directory is a self-contained topic: Agent-facing entry points (root): INSTALL.md is the runbook an outside agent follows to install parts of this library into a user's setup; llms.txt is the index. When…
- Commits and pushes
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 58
Keep the numbered directory ordering consistent (don't renumber)
- Distinctive: line 59
Update the version history in README.md when adding new sections or making significant changes
- Distinctive: line 66
Every version bump produces four artifacts, kept in sync:
- Distinctive: line 73
Before publishing, sweep changed files for private references (personal project names, hostnames, usernames, local paths) — this is a …
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md 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.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Repository Purpose
This is a documentation-only library of reusable prompts, guides, and agent definitions for optimizing Claude Code workflows. There is no application code, no build system, no tests. All content is Markdown files organized in numbered directories.
Architecture
The library follows a sequential learning path (01 through 14), where each directory is a self-contained topic:
- 01-global-optimization - One-time
~/.claude/setup (CLAUDE.md global instructions, agents, skills) - 02-project-activation - Per-project Serena MCP activation and memory creation
- 03-custom-skills - Skill authoring guide + template (YAML frontmatter + Markdown body, placed in
~/.claude/skills/<name>/SKILL.md) - 04-research-integration - Keeping docs current with Claude API changes
- 05-token-optimization - Token reduction techniques and measurement
- 06-advanced-patterns - Multi-agent coordination, Agent Teams (v2.1.32+), checkpoint systems, constitutions, selective deep plan analysis, session observability
- 07-custom-commands - Ready-to-use slash commands (debug, i18n, qa, seo, deploy, refactor, perf)
- 08-ui-ux-development - UI/UX implementation workflow with browser testing via Chrome MCP
- 09-laravel-mcp-integration - Laravel Boost + LaraPlugins.io MCP setup, CLAUDE.md template for Laravel projects
- 10-subagents - Custom subagent creation (YAML frontmatter format with model/tools/mcpServers fields)
- 11-mobile-development - iOS, Android, React Native, Flutter guides with MCP servers, subagents, CLAUDE.md templates, and cross-platform skills
- 12-desktop-development - macOS, Tauri, Electron guides with MCP servers, subagents, CLAUDE.md templates, and cross-platform skills
- 13-security-hardening - MCP CVEs, vetting checklists, prompt injection defense hooks, production safety rules, permissions.deny templates
- 14-webmcp - WebMCP (W3C Draft) integration guide: navigator.modelContext API, browser tool registration, Chrome/Playwright MCP integration
- 15-context-mode - context-mode MCP plugin: sandbox tool output to protect context window, session continuity after compaction, tool hierarchy (ctx_batch_execute → ctx_search → ctx_execute)
- 16-autonomous-agents - Running Claude Code unattended: cron journaling agents, heartbeat watchdog protocol, watchdog detection patterns, /loop usage, heartbeat template + session-summary Stop hook
- 17-mods - Claude Code mods (v2.1.287+): guide + example marketplace of 13 tested TypeScript mods (the only section with code; run
claude plugin teston a changed mod)
Agent-facing entry points (root): INSTALL.md is the runbook an outside agent follows to install parts of this library into a user's setup; llms.txt is the index. When you add, rename or remove a skill, mod, hook, subagent or command, update the bundle and dependency tables in INSTALL.md and the lists in llms.txt in the same change.
Key Patterns
Document format: Most files use YAML frontmatter (--- delimited) for metadata, followed by structured Markdown. Skill files and subagent definitions both use this pattern.
Two types of actionable files:
- Guides (
guide.md) - Human-readable walkthroughs meant to be read - Agents (
*-agent.md, subagent examples) - Executable prompts meant to be pasted into Claude Code conversations
Serena MCP integration: Many guides reference Serena memories (stored in .serena/memories/) for project-specific context. Memory files use plain Markdown.
Constitution files: Architectural decision frameworks stored as JSON in .claude/settings/constitution.json per project.
Conventions
- Directory names are zero-padded numbers followed by kebab-case topic names
- Each directory has a
guide.mdas its primary entry point - Templates use bracket placeholders:
[Description],[Step 1] - Token savings estimates are included in guides where applicable
- Version history is tracked in the root
README.md(current: v1.35.1) - Compatible with Claude Fable 5, Opus 5, Opus 4.8/4.7/4.6, Sonnet 5/4.6, Haiku 4.5
When Editing
- Maintain the existing Markdown heading hierarchy and section structure
- Preserve YAML frontmatter fields and format in skill/agent templates
- Keep the numbered directory ordering consistent (don't renumber)
- Update the version history in
README.mdwhen adding new sections or making significant changes - Cross-reference related guides when adding new content, and make links bidirectional — if a new file points at an existing one, add a reciprocal link back from that file. Use relative paths (e.g., link a new skill to
03-custom-skills/guide.md, and the related numbered sections back to the skill). Treat the library as a network of cross-links, not a flat list. - For content that spans many variants (frameworks, platforms, providers), use the reference-split (matrix) shape: a thin core with a dispatcher table routing to per-variant files, as in
11-mobile-development/12-desktop-development. See03-custom-skills/guide.md→ Pattern 5. - Enable the Tier-2 skill-lint pre-commit gate once per clone:
git config core.hooksPath .githooks(runsskill-lint.pyover01-global-optimization/skills/on skill changes; see.githooks/README.md).
Releasing
Every version bump produces four artifacts, kept in sync:
- CHANGELOG.md — full entry (
## [X.Y.Z] — YYYY-MM-DDwith Added/Updated sections) - README.md — "Version History" entry + footer
**Version**:bump; also bump thecurrent: vX.Y.Zline in this file - Annotated git tag —
git tag -a vX.Y.Z -m "vX.Y.Z — <theme>", pushed with--follow-tags - GitHub Release —
gh release create vX.Y.Z --verify-tag --title "vX.Y.Z — <Theme>" --notes-file <file>, where the notes file is that version's CHANGELOG section body
Before publishing, sweep changed files for private references (personal project names, hostnames, usernames, local paths) — this is a public repo.
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
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.

