~ / rigs / chanjd / dotfiles

chanjd/dotfiles

Claude Code config and dotfiles

↗ GitHub ★ 0 no license updated 3mo ago personal setup Claude Code
share on X
ARCHETYPE
Skill Collector
Ten-plus skills loaded on demand. A procedural-knowledge library.
CONTEXT TAX · EVERY TURN
~1.9k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit chanjd/dotfiles/skills ./rig-dotfiles/skills
$ npx degit chanjd/dotfiles/hooks ./rig-dotfiles/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.

$ npx degit chanjd/dotfiles/skills/catchup .claude/skills/catchup
$ npx degit chanjd/dotfiles/skills/changelog-generator .claude/skills/changelog-generator
$ npx degit chanjd/dotfiles/skills/lint .claude/skills/lint
$ npx degit chanjd/dotfiles/skills/memory-audit .claude/skills/memory-audit
$ npx degit chanjd/dotfiles/skills/plan-contract .claude/skills/plan-contract
$ npx degit chanjd/dotfiles/skills/review-portability .claude/skills/review-portability
$ npx degit chanjd/dotfiles/skills/review-pr .claude/skills/review-pr
$ npx degit chanjd/dotfiles/skills/review-tests .claude/skills/review-tests
$ npx degit chanjd/dotfiles/skills/root-cause-tracing .claude/skills/root-cause-tracing
$ npx degit chanjd/dotfiles/skills/summarize .claude/skills/summarize
$ npx degit chanjd/dotfiles/skills/test-fixing .claude/skills/test-fixing

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\\.py$'); if [ -z \"$FILES\" ]; then exit 0; fi; echo \"$FILES\" | xargs ruff format 2>&1; echo \"$FILES\" | xargs ruff check --fix 2>&1; EXIT=$?; echo \"$FILES\" | xargs git add 2>/"
          }
        ]
      }
    ]
  }
}

Skills (11)

Hooks (1)

eventmatcherruns
PreToolUseBashFILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.py$'); if [ -z "$FILES" ]; then exit 0; fi; echo "$FILES" | xargs ruff format 2>&1; echo "$FILES" | xargs ruff check --fix 2>&1; EXIT=$?; echo "$FILES" | xargs git add 2>/

Similar rigs

copied ✓