claude-dotfiles
AGENTS.md3 starsChanged 8 months agoMITView on GitHub
Production-ready configurations, skills, and templates for Claude Code optimization. Stack: Markdown, JSON, YAML, Bash, Python (scripts only) | Target: Claude Code 2.1+ - CLAUDE.md templates: 60-100 lines optimal, max 150 (upstream Claude Code truncates around 200 lines) - SKILL.md files: name is optional upstream and defaults to the directory name. This repo requires it anyway, so a skill is identified by what it says rather than by where it sits. description is recommended; the validator checks both against schemas/skill.schema.json -…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository72 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- api-designerSkill
- backend-patternsSkill
- code-reviewerSkill
- debugging-assistantSkill
- golang-testingSkill
- project-guidelines-exampleSkill
- python-testingSkill
- refactoring-guideSkill
- spec-driven-developmentSkill
- tdd-workflowSkill
- verification-loopSkill
- update-docsSkill
- api-docsSkill
- changelog-writerSkill
- readme-generatorSkill
- django-patternsSkill
- django-securitySkill
- django-tddSkill
- django-verificationSkill
- fastapi-patternsSkill
- nextjs-patternsSkill
- react-patternsSkill
- springboot-patternsSkill
- springboot-securitySkill
- springboot-tddSkill
- branch-strategySkill
- changelogSkill
- commit-helperSkill
- pr-creatorSkill
- prSkill
- evolveSkill
- instinct-exportSkill
- instinct-importSkill
- instinct-statusSkill
- cleanupSkill
- lint-fixSkill
- refactor-cleanSkill
- update-depsSkill
- continuous-learningSkill
- continuous-learning-v2Skill
- eval-harnessSkill
- iterative-retrievalSkill
- strategic-compactSkill
- golang-patternsSkill
- python-patternsSkill
- rust-patternsSkill
- typescript-patternsSkill
- accessibility-checkerSkill
- build-fixSkill
- code-reviewSkill
- e2eSkill
- performance-reviewerSkill
- security-auditorSkill
- security-reviewSkill
- test-coverageSkill
- checkpointSkill
- deploySkill
- evalSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 57
Use "// SECTION": for documentation comments
- Distinctive: line 58
Always include security deny list
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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-dotfiles
Production-ready configurations, skills, and templates for Claude Code optimization.
Stack: Markdown, JSON, YAML, Bash, Python (scripts only) | Target: Claude Code 2.1+
Commands
./install.sh # Interactive installation
./install.sh --all # Install everything
./install.sh --minimal # Settings only
./scripts/validate.py # Validate all configs
./scripts/token-count.py # Count tokens in CLAUDE.md filesKey Directories
templates/ # Starter configs (minimal, standard, power-user)
claude-md/ # CLAUDE.md templates by language/framework/domain
skills/ # Curated SKILL.md implementations
hooks/ # Hook configurations (formatters, validators)
settings/ # settings.json profiles
mcp/ # MCP server configurations
scripts/ # Utility scriptsCode Standards
- CLAUDE.md templates: 60-100 lines optimal, max 150 (upstream Claude Code truncates around 200 lines)
- SKILL.md files:
nameis optional upstream and defaults to the directory name. This repo requires it anyway, so a skill is identified by what it says rather than by where it sits.descriptionis recommended; the validator checks both againstschemas/skill.schema.json - JSON configs: Use
"// KEY":comment pattern - Bash scripts: POSIX-compliant, work on macOS + Linux
- Python scripts: 3.12+, minimal external dependencies
Implementation Patterns
CLAUDE.md Templates
- Header comment with token count:
<!-- Tokens: ~X | Lines: Y --> - Required sections: Stack, Commands, Key Directories
- Include Gotchas section for non-obvious behaviors
SKILL.md Files
---
name: lowercase-with-hyphens # Required, 64 chars max
description: | # Required, 1024 chars max
Multi-line description
---settings.json
- Use
"// SECTION":for documentation comments - Always include security deny list
- Four profiles: sandbox-on, sandbox-off, autoMode-strict, autoMode-permissive
Gotchas
- settings.json:
~/.claude/(global) vs.claude/(project) - Skills:
~/.claude/skills/(global) vs.claude/skills/(project) - CLAUDE.md inheritance: reads from repo root AND parent directories
- Hooks:
$CLAUDE_FILE_PATHis unreliable; read the file path from stdin JSON viajq -r '.tool_input.file_path' - MCP servers: require Claude Desktop restart after config changes
Testing
mkdir /tmp/test-project && cd /tmp/test-project
cp -r ~/.claude-dotfiles/templates/standard/* .
claude # Ask Claude to describe the setupReferences
- Skills Spec: https://github.com/anthropics/skills
- Claude Code Docs: https://code.claude.com/docs/en
- MCP Spec: https://modelcontextprotocol.io
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.

