agentleFS
b33eepb33eep/claude-code-setup/CLAUDE.md

claude-code-setup

CLAUDE.md57 starsChanged 10 months agoMITArchived repositoryView on GitHub

A modular, minimal setup for Claude Code with clear workflow and persistent memory via Markdown files. Open source release. Legend: Open | In Progress | Done Next Step: Merge PR #51. When creating PRs, use this structure (see PRs #45, #46 for examples): Important: - Use "Test plan" section with checkboxes, NOT "Actions taken" - Include /do-review results in test plan if applicable - Keep summary concise (3-5 bullets max) Install-time and runtime are separate concerns: The installer is a…

  • Deletes or force-pushes

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When creating PRs, use this structure (see PRs #45, #46 for examples):

    line 52
  2. Distinctive:

    Use "Test plan" section with checkboxes, NOT "Actions taken"

    line 74
  3. Distinctive:

    Keep summary concise (3-5 bullets max)

    line 76
  4. Distinctive:

    When changing managed content (templates, commands, skills, mcp):

    line 191
  5. Very specific:

    Update badge in README.md (search for content-v)

    line 194
  6. Distinctive:

    When changing commands, skills, or features:

    line 209
  7. Very specific:

    Update relevant pages in website/pages/

    line 211

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- project-template: 48 -->

Claude Code Setup

About

A modular, minimal setup for Claude Code with clear workflow and persistent memory via Markdown files. Open source release.

Tech Stack

  • Bash (install.sh)
  • Markdown (templates, commands)
  • Node.js (MCP servers via npx, Nextra docs site)
  • GitHub Actions (CI/CD)

Current Status

StoryStatusNotes
JetBrains Integration GuideIn ProgressPR #51 — docs-only guide for Debugger MCP + Built-in MCP

Legend: Open | In Progress | Done

Next Step: Merge PR #51.

Future

TodoPriorityProblemSolution
Docker Matrix TestsLowdeps.json install commands not tested on real distrosGitHub Actions with Docker matrix (Record 022)

Recent Decisions

DateDecisionWhy
2026-04-24Keep create-slidev-presentation as type: commandAuto-loading (context) would pull 10+ reference files on any "slidev" match; "slidev" also isn't a tech-stack users list in CLAUDE.md. Progressive disclosure via explicit invocation preserves context budget.
2026-02-272 agents default + --security/--full flag for 3rdBalance between review quality and token cost; security-auditor not needed for every review
2026-02-27Tracking update after plugin install, not beforePrevents state mismatch if claude plugin install fails (review feedback)
2026-02-11Replaced team-setup.mdx with customizing.mdxAll custom module topics (skills, commands, scripts, MCP) belong in one page; team-setup was redundant; Solo vs Team already in init-project

Project Instructions

<!-- PROJECT INSTRUCTIONS START -->

Pull Request Format

When creating PRs, use this structure (see PRs #45, #46 for examples):

## Summary
- Bullet points of what changed

## Problem
Why this change is needed

## Solution
How the problem is solved

## Test plan
- [ ] Test description 1
- [ ] Test description 2
- [ ] All tests pass

## Files Changed (optional)
- List of changed files

Important:

  • Use "Test plan" section with checkboxes, NOT "Actions taken"
  • Include /do-review results in test plan if applicable
  • Keep summary concise (3-5 bullets max)
<!-- PROJECT INSTRUCTIONS END -->

Architecture

Install-time and runtime are separate concerns:

Install-time: install.sh + lib/

The installer is a modular Bash script. install.sh is the entry point, sourcing libraries from lib/:

LibraryResponsibility
platform.shOS detection (macOS/Ubuntu/Arch/Fedora), package manager
helpers.shColors, printing, JSON utilities, TTY-aware input, custom command/script install
modules.shInteractive toggle selection UI, module discovery
mcp.shMCP server installation (JSON config → ~/.claude.json)
skills.shSkill installation + build_claude_md()
update.sh--update mode, content version comparison
uninstall.sh--remove mode
external-plugins.shThird-party plugin installation (document-skills, comprehensive-review)
statusline.shccstatusline configuration
hooks.shClaude Code hooks setup
agent-teams.shAgent Teams env var toggle in settings.json
setup-status.shDiscovery script for /claude-code-setup — outputs JSON status (standalone, NOT sourced by install.sh)

Install flow: detect OS → select modules (interactive toggle) → copy commands to ~/.claude/commands/ → install MCP configs to ~/.claude.json → copy skills to ~/.claude/skills/ → build global CLAUDE.md from template + dynamic tables → install external plugins → configure statusline/hooks/agent-teams.

Runtime: Markdown files consumed by Claude Code

Nothing runs at runtime. The installer produces static Markdown files that Claude Code reads:

~/.claude/
├── CLAUDE.md              ← Global instructions (built from templates/base/global-CLAUDE.md + dynamic tables)
├── commands/*.md          ← Slash commands (Claude reads on /command invocation)
├── skills/*/SKILL.md      ← Context skills (Claude reads based on tech stack / file type)
└── templates/             ← Project CLAUDE.md template (used by /init-project)

project/
├── CLAUDE.md              ← Project-specific instructions (created by /init-project)
└── docs/records/*.md      ← Design decisions, feature specs (created by /design)

Module types

TypeSource formatInstalled toConsumed by
Commandscommands/*.md~/.claude/commands/Claude on /command
Skillsskills/*/SKILL.md~/.claude/skills/*/Claude via auto-loading (tech stack match or file extension)
MCP serversmcp/*.json~/.claude.json (merged)Claude Code MCP client
Templatestemplates/*.md~/.claude/templates//init-project, /catchup (migration)

Content versioning

templates/VERSION tracks all managed content. <!-- project-template: N --> in templates/project-CLAUDE.md tracks template structure separately. The installer compares installed vs available versions for --update.


Files

claude-code-setup/
├── .github/
│   ├── workflows/test.yml
│   ├── ISSUE_TEMPLATE/{bug_report,feature_request}.md
│   └── PULL_REQUEST_TEMPLATE.md
├── README.md
├── LICENSE (MIT)
├── CHANGELOG.md
├── CONTRIBUTING.md
├── SECURITY.md
├── install.sh
├── lib/                       # Modular install script components
├── templates/
├── mcp/
├── commands/
├── skills/                    # Coding standards + tool skills
│   └── user-stories/          # INVEST stories, Given-When-Then AC
├── website/                   # Nextra documentation site
│   ├── components/
│   ├── pages/
│   └── scripts/               # Prebuild generators
└── docs/records/

Development

Tests

./tests/test.sh              # Run all tests
./tests/test.sh 01           # Run scenario 01 only
./tests/test.sh version      # Pattern match

Tests run in isolation (/tmp/claude-test-*), real ~/.claude stays untouched.

Tests use expect for real interactive simulation (toggle selection, API key input, etc.).

Manual Testing

HOME=/tmp/claude-manual-test && rm -rf $HOME && mkdir -p $HOME && ./install.sh

Creates a clean test environment under /tmp/claude-manual-test/.

Bump Content Version

When changing managed content (templates, commands, skills, mcp):

  1. Increment templates/VERSION
  2. Update badge in README.md (search for content-v)
  3. Add CHANGELOG.md entry
  4. Run tests: ./tests/test.sh

Two separate versions — don't confuse them:

VersionFileTracksBump when
Content versiontemplates/VERSIONAll managed content (commands, skills, MCP, templates)Any managed content changes
Template version<!-- project-template: N --> in templates/project-CLAUDE.mdProject CLAUDE.md structure onlySet to current content version when template structure changes

Content version >= template version. Adding a command bumps content version but NOT the template version (template didn't change). When project-CLAUDE.md itself changes, set template version = content version (don't increment independently).

Documentation Site

When changing commands, skills, or features:

  1. Update relevant pages in website/pages/
  2. Test locally: cd website && npm run dev
  3. Changes deploy automatically on merge to main

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.