spencer-life/dotfiles
Personal dotfiles — git config, global gitignore, Claude Code hooks. Auto-applied to GitHub Codespaces.
ARCHETYPE
Minimalist
Lean instructions, few tools, tiny context tax. Lets the model think.
Copy this rig
# review before running: this installs third-party code
$ npx degit spencer-life/dotfiles/.claude ./rig-dotfiles # inspect, then merge into .claude/ 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(sudo:*)",
"Bash(chmod:*)",
"Bash(chown:*)",
"Bash(git push --force:*)",
"Bash(git push -f:*)",
"Bash(git reset --hard:*)",
"Bash(git clean -f:*)",
"Bash(git checkout .:*)",
"Bash(git restore .:*)",
"Bash(git branch -D:*)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "bash -c 'if echo \"$CLAUDE_TOOL_INPUT\" | grep -q \"git commit\"; then SENSITIVE=$(git diff --cached --name-only 2>/dev/null | grep -iE \"\\.(env|pem|key|secret|credentials|p12|pfx|jks)$|credentials|secrets\" || true); if [ -n \"$SENSITIVE\" ]; then"
}
]
}
]
}
} Hooks (2)
| event | matcher | runs |
|---|---|---|
| SessionStart | * | bash -c 'git rev-parse --is-inside-work-tree > /dev/null 2>&1 && echo "--- Git Context ---" && echo "Branch: $(git branch --show-current)" && echo "--- Changed Files ---" && git status --short && echo "--- Recent Commits ---" && git log --o |
| PreToolUse | Bash | bash -c 'if echo "$CLAUDE_TOOL_INPUT" | grep -q "git commit"; then SENSITIVE=$(git diff --cached --name-only 2>/dev/null | grep -iE "\.(env|pem|key|secret|credentials|p12|pfx|jks)$|credentials|secrets" || true); if [ -n "$SENSITIVE" ]; then |
Permissions
deny (11)
Bash(rm -rf:*)
Bash(sudo:*)
Bash(chmod:*)
Bash(chown:*)
Bash(git push --force:*)
Bash(git push -f:*)
Bash(git reset --hard:*)
Bash(git clean -f:*)
Bash(git checkout .:*)
Bash(git restore .:*)
Bash(git branch -D:*)
ask (0)
—
allow (0)
—
Similar rigs
multica-ai/andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Minimalist 723 tok ·
shareAI-lab/learn-claude-code
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Minimalist 156 tok ·
tt-a1i/archify
Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.
Minimalist 484 tok ·
ayghri/i-have-adhd
A skill to stop your coding agent from burying the answer. ADHD-friendly output.
Minimalist 1.4k tok ·