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
In this repository11 other files it gives its agents.
- create-slidev-presentationSkill
- skill-creatorSkill
- standards-gradleSkill
- standards-javascriptSkill
- standards-javaSkill
- standards-kotlinSkill
- standards-pythonSkill
- standards-shellSkill
- standards-typescriptSkill
- user-storiesSkill
- youtube-transcriptSkill
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
- Distinctive: line 52
When creating PRs, use this structure (see PRs #45, #46 for examples):
- Distinctive: line 74
Use "Test plan" section with checkboxes, NOT "Actions taken"
- Distinctive: line 76
Keep summary concise (3-5 bullets max)
- Distinctive: line 191
When changing managed content (templates, commands, skills, mcp):
- Very specific: line 194
Update badge in README.md (search for content-v)
- Distinctive: line 209
When changing commands, skills, or features:
- Very specific: line 211
Update relevant pages in website/pages/
≈ “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.
Files
<!-- 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
| Story | Status | Notes |
| JetBrains Integration Guide | In Progress | PR #51 — docs-only guide for Debugger MCP + Built-in MCP |
Legend: Open | In Progress | Done
Next Step: Merge PR #51.
Future
| Todo | Priority | Problem | Solution |
| Docker Matrix Tests | Low | deps.json install commands not tested on real distros | GitHub Actions with Docker matrix (Record 022) |
Recent Decisions
| Date | Decision | Why |
| 2026-04-24 | Keep create-slidev-presentation as type: command | Auto-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-27 | 2 agents default + --security/--full flag for 3rd | Balance between review quality and token cost; security-auditor not needed for every review |
| 2026-02-27 | Tracking update after plugin install, not before | Prevents state mismatch if claude plugin install fails (review feedback) |
| 2026-02-11 | Replaced team-setup.mdx with customizing.mdx | All 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 filesImportant:
- Use "Test plan" section with checkboxes, NOT "Actions taken"
- Include
/do-reviewresults 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/:
| Library | Responsibility |
platform.sh | OS detection (macOS/Ubuntu/Arch/Fedora), package manager |
helpers.sh | Colors, printing, JSON utilities, TTY-aware input, custom command/script install |
modules.sh | Interactive toggle selection UI, module discovery |
mcp.sh | MCP server installation (JSON config → ~/.claude.json) |
skills.sh | Skill installation + build_claude_md() |
update.sh | --update mode, content version comparison |
uninstall.sh | --remove mode |
external-plugins.sh | Third-party plugin installation (document-skills, comprehensive-review) |
statusline.sh | ccstatusline configuration |
hooks.sh | Claude Code hooks setup |
agent-teams.sh | Agent Teams env var toggle in settings.json |
setup-status.sh | Discovery 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
| Type | Source format | Installed to | Consumed by |
| Commands | commands/*.md | ~/.claude/commands/ | Claude on /command |
| Skills | skills/*/SKILL.md | ~/.claude/skills/*/ | Claude via auto-loading (tech stack match or file extension) |
| MCP servers | mcp/*.json | ~/.claude.json (merged) | Claude Code MCP client |
| Templates | templates/*.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 matchTests 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.shCreates a clean test environment under /tmp/claude-manual-test/.
Bump Content Version
When changing managed content (templates, commands, skills, mcp):
- Increment
templates/VERSION - Update badge in
README.md(search forcontent-v) - Add CHANGELOG.md entry
- Run tests:
./tests/test.sh
Two separate versions — don't confuse them:
| Version | File | Tracks | Bump when |
| Content version | templates/VERSION | All managed content (commands, skills, MCP, templates) | Any managed content changes |
| Template version | <!-- project-template: N --> in templates/project-CLAUDE.md | Project CLAUDE.md structure only | Set 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:
- Update relevant pages in
website/pages/ - Test locally:
cd website && npm run dev - Changes deploy automatically on merge to main
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.

