agentleFS
peopleforresterpeopleforrester/claude-dotfiles/AGENTS.md

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 -…

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
  1. Very specific:

    Use "// SECTION": for documentation comments

    line 57
  2. Distinctive:

    Always include security deny list

    line 58

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 files

Key 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 scripts

Code Standards

  • 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
  • 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_PATH is unreliable; read the file path from stdin JSON via jq -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 setup

References

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.