~ / rigs / kkhys / dotfiles

kkhys/dotfiles

My personal dotfiles.

↗ GitHub ★ 0 no license updated today personal setup Claude CodeCodex
stack: Nix
share on X
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
CONTEXT TAX · EVERY TURN
~651 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · Sandbox or ask-first rules · details
Quality 36/100 Guardrails v2

Copy this rig

$ git clone --depth 1 https://github.com/kkhys/dotfiles

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": [
      "mcp__plugin_base_serena__execute_shell_command",
      "Bash(rm* -rf*)",
      "Bash(chmod* 777*)",
      "Bash(dd:*)",
      "Bash(gh* repo delete*)",
      "Bash(gh auth logout:*)",
      "Bash(gh* secret delete*)",
      "Bash(gh* variable delete*)",
      "Read(.env)",
      "Read(.env.*)",
      "Read(.envrc)",
      "Read(~/.aws/**)",
      "Read(~/.ssh/id_*)",
      "Read(~/.gnupg/**)",
      "Read(**/secrets/*.age)",
      "Read(//run/agenix/**)",
      "Read(//run/agenix.d/**)",
      "Read(~/.config/age/**)",
      "Read(~/.config/secrets/**)",
      "Read(**/credentials.json)",
      "Edit(.env*)",
      "Edit(~/.ssh/**)",
      "Edit(~/.aws/**)",
      "Bash(brew* install*)",
      "Bash(brew* uninstall*)",
      "Bash(brew* bundle*)",
      "Read(**/*.token)",
      "Read(**/.*token*)",
      "Bash(rm* -fr*)",
      "Bash(rm* -r -f*)",
      "Bash(rm* -f -r*)",
      "Bash(rm* --recursive*)"
    ],
    "ask": [
      "Bash(git push* --force *)",
      "Bash(git push* --force)",
      "Bash(git push* -f *)",
      "Bash(git push* -f)",
      "Bash(git reset* --hard*)",
      "Bash(gh issue create:*)",
      "Bash(gh release create:*)",
      "Bash(sudo:*)",
      "Bash(npm uninstall:*)",
      "Bash(npm remove:*)",
      "Bash(git clean:*)",
      "Bash(gh* pr merge*)",
      "Bash(gh gist create:*)",
      "Bash(npm* publish*)",
      "Bash(pnpm* publish*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "if [ -z \"${HOME-}\" ]; then case \"${OSTYPE-}\" in msys*|cygwin*|win32*) printf '{}\\n'; if [ -z \"${ORCA_AGENT_HOOK_PORT-}\" ] || [ -z \"${ORCA_AGENT_HOOK_TOKEN-}\" ] || [ -z \"${ORCA_PANE_KEY-}\" ]; then exit 0; fi; { command -p cat 2>/dev/null || "
          }
        ]
      }
    ]
  }
}

Hooks (16)

eventmatcherruns
SessionStart*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
UserPromptSubmit*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
Stop*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
StopFailure*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
SubagentStart*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
SubagentStop*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
TeammateIdle*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PreToolUse*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PostToolUse*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PostToolUseFailure*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PermissionRequest*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PostCompact*if [ -n "${HOME-}" ] && [ -f "${HOME-}/.orca/agent-hooks/claude-hook.sh" ] && [ -r "${HOME-}/.orca/agent-hooks/claude-hook.sh" ] && [ -x "${HOME-}/.orca/agent-hooks/claude-hook.sh" ]; then ORCA_HOOK_AGENT_PID="${PPID:-}"; export ORCA_HOOK_A
SessionEnd*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
Elicitation*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
ElicitationResult*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||
PostToolBatch*if [ -z "${HOME-}" ]; then case "${OSTYPE-}" in msys*|cygwin*|win32*) printf '{}\n'; if [ -z "${ORCA_AGENT_HOOK_PORT-}" ] || [ -z "${ORCA_AGENT_HOOK_TOKEN-}" ] || [ -z "${ORCA_PANE_KEY-}" ]; then exit 0; fi; { command -p cat 2>/dev/null ||

Plugins (6)

base@my-marketplacecodex@openai-codexsecurity-guidance@claude-plugins-officialpr-review-toolkit@claude-plugins-officialskill-creator@claude-plugins-officialmodern-web-guidance@googlechrome

Permissions

deny (32)
mcp__plugin_base_serena__execute_shell_command
Bash(rm* -rf*)
Bash(chmod* 777*)
Bash(dd:*)
Bash(gh* repo delete*)
Bash(gh auth logout:*)
Bash(gh* secret delete*)
Bash(gh* variable delete*)
Read(.env)
Read(.env.*)
Read(.envrc)
Read(~/.aws/**)
Read(~/.ssh/id_*)
Read(~/.gnupg/**)
Read(**/secrets/*.age)
Read(//run/agenix/**)
Read(//run/agenix.d/**)
Read(~/.config/age/**)
Read(~/.config/secrets/**)
Read(**/credentials.json)
Edit(.env*)
Edit(~/.ssh/**)
Edit(~/.aws/**)
Bash(brew* install*)
Bash(brew* uninstall*)
Bash(brew* bundle*)
Read(**/*.token)
Read(**/.*token*)
Bash(rm* -fr*)
Bash(rm* -r -f*)
Bash(rm* -f -r*)
Bash(rm* --recursive*)
ask (15)
Bash(git push* --force *)
Bash(git push* --force)
Bash(git push* -f *)
Bash(git push* -f)
Bash(git reset* --hard*)
Bash(gh issue create:*)
Bash(gh release create:*)
Bash(sudo:*)
Bash(npm uninstall:*)
Bash(npm remove:*)
Bash(git clean:*)
Bash(gh* pr merge*)
Bash(gh gist create:*)
Bash(npm* publish*)
Bash(pnpm* publish*)
allow (18)
Bash
Read
Edit
Write
WebFetch
WebSearch
mcp__plugin_base_serena__*
mcp__claude-in-chrome__*
Skill(base:*)
Skill(pr-review-toolkit:*)
Skill(codex:*)
Skill(skill-creator:*)
Skill(modern-web-guidance:*)
Skill(gh-stack *)
Skill(gh-actions-lock *)
Skill(claude-in-chrome *)
Skill(claude-api *)
Skill(artifact-design *)

Similar rigs

copied ✓