anneheartrecord/claude-code-config
Claude Code 配置最佳实践 | Battle-tested Claude Code configuration
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
Copy this rig
# review before running: this installs third-party code
$ npx degit anneheartrecord/claude-code-config/hooks ./rig-claude-code-config/hooks MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Bash(rm -rf /)",
"Bash(rm -rf /*)",
"Bash(rm -rf ~)",
"Bash(rm -rf ~/*)",
"Bash(git push --force origin main)",
"Bash(git push --force origin master)",
"Bash(git reset --hard)",
"Bash(git checkout .)",
"Bash(git clean -fd*)",
"Bash(chmod -R 777 /)",
"Bash(dd if=/dev/zero*)",
"Bash(mkfs*)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "if echo \"$TOOL_INPUT\" | grep -qE 'rm\\s+-rf\\s+\\/' ; then echo 'DENY: dangerous rm command'; exit 1; fi"
}
]
},
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/check-secrets.sh"
}
]
}
]
}
} Hooks (4)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash | if echo "$TOOL_INPUT" | grep -qE 'rm\s+-rf\s+\/' ; then echo 'DENY: dangerous rm command'; exit 1; fi |
| PreToolUse | Write|Edit | ~/.claude/hooks/check-secrets.sh |
| Stop | * | ~/.claude/hooks/cmux-notify.sh |
| PostToolUse | Task | ~/.claude/hooks/cmux-notify.sh |
Permissions
deny (12)
Bash(rm -rf /)
Bash(rm -rf /*)
Bash(rm -rf ~)
Bash(rm -rf ~/*)
Bash(git push --force origin main)
Bash(git push --force origin master)
Bash(git reset --hard)
Bash(git checkout .)
Bash(git clean -fd*)
Bash(chmod -R 777 /)
Bash(dd if=/dev/zero*)
Bash(mkfs*)
ask (0)
—
allow (10)
Bash(*)
Read(*)
Edit(*)
Write(*)
WebFetch(*)
WebSearch(*)
Glob(*)
Grep(*)
NotebookEdit(*)
Agent(*)
Similar rigs
shanraisshan/claude-code-best-practice
from vibe coding to agentic engineering - practice makes claude perfect
YOLO Cowboy 12.9k tok ·
davila7/claude-code-templates
CLI tool for configuring and monitoring Claude Code
YOLO Cowboy 80.9k tok ·
IvanMurzak/Unity-MCP
AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot
YOLO Cowboy 5.9k tok ·
MaxMiksa/Auto-Company
An auto-company works for 24/7 on your own PC - Windows/Linux/macOS.
YOLO Cowboy 7.8k tok ·