agentleFS
seanyaoseanyao/roll/.claude/CLAUDE.md

roll

CLAUDE.md14 starsChanged 4 months agoMITView on GitHub

Extends AGENTS.md — read that first for shared conventions. This file adds Claude Code-specific configuration only. Extends global CLAUDE.md + project AGENTS.md.

The file

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

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When a project has Roll skills, use them ($roll-design, $roll-build, $roll-fix, etc.).

    line 20
  2. Distinctive:

    Use plan mode for complex multi-step tasks before executing.

    line 21
  3. Distinctive:

    Prefer Edit tool over Bash for file modifications.

    line 22
  4. Distinctive:

    Use Agent tool with worktree isolation for parallel independent subtasks.

    line 23
  5. Distinctive:

    When I say "帮我看下" or "处理下", go ahead and do it, not just analyze it.

    line 24
  6. Distinctive:

    Use shadcn/ui components first.

    line 29
  7. Distinctive:

    Automation scope: never assume manual vs automatic — state the assumption and confirm.

    line 50
  8. Distinctive:

    No server, no frontend. CLI tool only.

    line 58
  9. Distinctive:

    Test commands by running them in Bash, not just unit tests.

    line 59
  10. Very specific:

    Use $roll-design to plan command structure and options before implementation.

    line 60
  11. Very specific:

    Verify --help output is clear and complete for each command.

    line 61
  12. Very specific:

    Run npm run build && node dist/index.js --help before pushing.

    line 62

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

Global Preferences — Claude Code

Extends AGENTS.md — read that first for shared conventions. This file adds Claude Code-specific configuration only.

Identity

  • Git: Sean Yao <sean.dlut@gmail.com>
  • Default branch: main

Commit Message Format

  • Format: <type>: <description> (遵循 Git Hook 自动生成的前缀)
  • TCR micro-commits: tcr: <description> (No prefix)
  • Types: Story N, Fix, Refactor, Docs, Chore
  • Example: Story 7: Review assignment by org structure

Claude Code-Specific

  • When a project has Roll skills, use them ($roll-design, $roll-build, $roll-fix, etc.).
  • Use plan mode for complex multi-step tasks before executing.
  • Prefer Edit tool over Bash for file modifications.
  • Use Agent tool with worktree isolation for parallel independent subtasks.
  • When I say "帮我看下" or "处理下", go ahead and do it, not just analyze it.

Frontend Default Stack

  • React + shadcn/ui + Tailwind CSS is the default.
  • Use shadcn/ui components first. Custom components only when shadcn doesn't cover it.
  • components/ui/ is shadcn-generated — never edit manually.
  • Tailwind utility classes only. No inline styles, no CSS modules.
  • Icons: Lucide React.

Project Preferences — CLI Tool (Claude Code)

Extends global CLAUDE.md + project AGENTS.md.

Stack

  • Node.js / TypeScript
  • CLI framework: commander or citty
  • Testing: Vitest + execa (CLI integration tests)
  • Distribution: npm package with bin entry

Scope Discipline

  • Approach confirmation required for UX, output format, or automation-level decisions: output a 2–3 bullet plan and wait for confirmation before editing files.
  • Automation scope: never assume manual vs automatic — state the assumption and confirm.

Bilingual Output Convention

  • EN + ZH CLI output or docs: English and Chinese on separate lines, never inline on the same line.

Claude Code Notes

  • No server, no frontend. CLI tool only.
  • Test commands by running them in Bash, not just unit tests.
  • Use $roll-design to plan command structure and options before implementation.
  • Verify --help output is clear and complete for each command.
  • Run npm run build && node dist/index.js --help before pushing.

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.