~ / rigs / khaosdoctor / dotfiles

khaosdoctor/dotfiles

My dotFiles

↗ GitHub ★ 12 GPL-3.0 updated 2d 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.0k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 15/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit khaosdoctor/dotfiles/general/claude/.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.

$ npx degit khaosdoctor/dotfiles/general/ai-agents/.config/opencode/skills/cloudflare-workers .claude/skills/cloudflare-workers
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/autocommit .claude/skills/autocommit
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/autoreview .claude/skills/autoreview
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/autotest .claude/skills/autotest
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/avoid-tropes .claude/skills/avoid-tropes
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/documentation-writer .claude/skills/documentation-writer
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/explain .claude/skills/explain
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/find-skills .claude/skills/find-skills
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/followup .claude/skills/followup
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/gh-stack .claude/skills/gh-stack
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/obsidian-post-mortem .claude/skills/obsidian-post-mortem
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/obsidian-refresh .claude/skills/obsidian-refresh
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/obsidian .claude/skills/obsidian
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/opencode-delegate .claude/skills/opencode-delegate
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/orchestrator-mode .claude/skills/orchestrator-mode
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/post-mortem .claude/skills/post-mortem
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/reverse-engineer-anything .claude/skills/reverse-engineer-anything
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/up-to-speed .claude/skills/up-to-speed
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/voice .claude/skills/voice
$ npx degit khaosdoctor/dotfiles/general/claude/.claude/skills/writeup .claude/skills/writeup

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": "~/.claude/bin/redact-proc-guard.sh"
          },
          {
            "type": "command",
            "command": "jq -r '.tool_input.command' | grep -qE '^\\s*(git |git$|/usr/bin/git )' && echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"additionalContext\":\"IMPORTANT: git commands hang due to mise/shell hooks. You MUST prefix git commands with"
          },
          {
            "type": "command",
            "command": "rtk hook claude"
          },
          {
            "type": "command",
            "command": "cmd=$(jq -r .tool_input.command); echo \"$cmd\" | grep -qE \"git +push\" && { GIT=\"env -i HOME=$HOME PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin /usr/bin/git --no-pager\"; OUT=$($GIT fetch 2>&1; $GIT status -sb 2>&1); jq -n --arg ctx \"B"
          }
        ]
      },
      {
        "matcher": "^Bash$",
        "hooks": [
          {
            "type": "command",
            "command": "command -v atuin >/dev/null && atuin hook claude-code || true"
          }
        ]
      }
    ]
  }
}

Skills (20)

Hooks (11)

eventmatcherruns
PostCompact*h="$HOME/.claude/skills/obsidian-second-brain/hooks/obsidian-bg-agent.sh"; [ -x "$h" ] && "$h" || true
PreToolUseBash~/.claude/bin/redact-proc-guard.sh
PreToolUseBashjq -r '.tool_input.command' | grep -qE '^\s*(git |git$|/usr/bin/git )' && echo '{"hookSpecificOutput":{"hookEventName":"PreToolUse","additionalContext":"IMPORTANT: git commands hang due to mise/shell hooks. You MUST prefix git commands with
PreToolUseBashrtk hook claude
PreToolUseBashcmd=$(jq -r .tool_input.command); echo "$cmd" | grep -qE "git +push" && { GIT="env -i HOME=$HOME PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin /usr/bin/git --no-pager"; OUT=$($GIT fetch 2>&1; $GIT status -sb 2>&1); jq -n --arg ctx "B
PreToolUse^Bash$command -v atuin >/dev/null && atuin hook claude-code || true
SessionStart*h="$HOME/.claude/skills/obsidian-second-brain/hooks/load_vault_context.py"; [ -f "$h" ] && python3 "$h" || true
SessionStart*h="$HOME/.claude/hooks/herdr-agent-state.sh"; [ -f "$h" ] && bash "$h" session || true
SessionStart*f="$HOME/.claude/skills/avoid-tropes/SKILL.md"; [ -f "$f" ] && { echo "AVOID-TROPES ACTIVE - these writing rules apply to every response this session, including replies to the user:"; cat "$f"; } || true
PostToolUse^Bash$command -v atuin >/dev/null && atuin hook claude-code || true
PostToolUseFailure^Bash$command -v atuin >/dev/null && atuin hook claude-code || true

Slash commands (10)

/brainstorm/commit/rubber-duck/sigil/decode/sigil/doctor/sigil/encode/sigil/init/sigil/purge/sigil/remember/sigil/wrap-up

Plugins (20)

ponytail@ponytailsigil@sigilpr-review@hemnetcaveman@cavemanplaywright@claude-plugins-officialobsidian-second-brain@obsidian-second-braini-have-adhd@i-have-adhdcloudflare@claude-plugins-officialfrontend-design@claude-plugins-officialclaude-md-management@claude-plugins-officialralph-loop@claude-plugins-officialgitlab@claude-plugins-officialcc-plugin-you-should-know@builtintypescript-lsp@claude-plugins-officialimage-view@claude-image-viewprismantis@prismantisflightdeck@claude-flightdeckfiletree@claude-code-filetreepr-deck@claude-pr-list-modclangd-lsp@claude-plugins-official

Permissions

deny (0)
—
ask (0)
—
allow (101)
Bash(find:*)
Bash(nvim:*)
Read(**/Obsidian/**)
Grep(**/Obsidian/**)
Read(**/.claude/**)
Grep(**/.claude/**)
Bash(grep:*)
Bash(ps:*)
Bash(cat:*)
Read
Bash(git status:*)
Bash(git log:*)
Bash(git diff:*)
Bash(git show:*)
Bash(git branch:*)
Bash(git fetch:*)
Bash(git remote:*)
Bash(git stash list:*)
Bash(git tag:*)
Bash(docker ps:*)
Bash(docker logs:*)
Bash(docker images:*)
Bash(docker inspect:*)
Bash(docker stats:*)
Bash(docker compose ps:*)
Bash(docker compose logs:*)
Bash(npm list:*)
Bash(npm ls:*)
Bash(npm outdated:*)
Bash(npm info:*)
Bash(npm view:*)
Bash(npm test:*)
Bash(rtk find:*)
Bash(rtk grep:*)
Bash(rtk ps:*)
Bash(rtk cat:*)
Bash(rtk ls:*)
Bash(rtk head:*)
Bash(rtk tail:*)
Bash(rtk git status:*)
Bash(rtk git log:*)
Bash(rtk git diff:*)
Bash(rtk git show:*)
Bash(rtk git branch:*)
Bash(rtk git fetch:*)
Bash(rtk git remote:*)
Bash(rtk git stash list:*)
Bash(rtk git tag:*)
Bash(rtk docker ps:*)
Bash(rtk docker logs:*)
Bash(rtk docker images:*)
Bash(rtk docker inspect:*)
Bash(rtk docker stats:*)
Bash(rtk docker compose ps:*)
Bash(rtk docker compose logs:*)
Bash(rtk npm list:*)
Bash(rtk npm ls:*)
Bash(rtk npm outdated:*)
Bash(rtk npm info:*)
Bash(rtk npm view:*)

Similar rigs

copied ✓