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.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- template/AGENTS.mdAGENTS.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
- Very specific: line 20
When a project has Roll skills, use them ($roll-design, $roll-build, $roll-fix, etc.).
- Distinctive: line 21
Use plan mode for complex multi-step tasks before executing.
- Distinctive: line 22
Prefer Edit tool over Bash for file modifications.
- Distinctive: line 23
Use Agent tool with worktree isolation for parallel independent subtasks.
- Distinctive: line 24
When I say "帮我看下" or "处理下", go ahead and do it, not just analyze it.
- Distinctive: line 29
Use shadcn/ui components first.
- Distinctive: line 50
Automation scope: never assume manual vs automatic — state the assumption and confirm.
- Distinctive: line 58
No server, no frontend. CLI tool only.
- Distinctive: line 59
Test commands by running them in Bash, not just unit tests.
- Very specific: line 60
Use $roll-design to plan command structure and options before implementation.
- Very specific: line 61
Verify --help output is clear and complete for each command.
- Very specific: line 62
Run npm run build && node dist/index.js --help before pushing.
≈ “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.
Files
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-designto plan command structure and options before implementation. - Verify
--helpoutput is clear and complete for each command. - Run
npm run build && node dist/index.js --helpbefore pushing.
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.

