~ / rigs / kokatsu / dotfiles

kokatsu/dotfiles

No description.

↗ GitHub ★ 0 mit updated 9d ago personal setup Claude CodeCodex Claude plugin
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~498 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 kokatsu/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.

$ npx degit kokatsu/dotfiles/.claude/skills/commit .claude/skills/commit
$ npx degit kokatsu/dotfiles/.config/claude/skills/browser-research .claude/skills/browser-research
$ npx degit kokatsu/dotfiles/.config/claude/skills/herdr-peer .claude/skills/herdr-peer
$ npx degit kokatsu/dotfiles/.config/claude/skills/japanese-writing .claude/skills/japanese-writing
$ npx degit kokatsu/dotfiles/.config/claude/skills/logging .claude/skills/logging

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": "command -v agent-guard >/dev/null || { echo 'agent-guard not found; run home-manager switch' >&2; exit 2; }; exec agent-guard banned"
          },
          {
            "type": "command",
            "command": "~/.config/claude/hooks/gh-api-guard.sh"
          }
        ]
      },
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "command -v agent-guard >/dev/null || { echo 'agent-guard not found; run home-manager switch' >&2; exit 2; }; exec agent-guard managed-paths"
          }
        ]
      }
    ]
  }
}

Skills (5)

Hooks (11)

eventmatcherruns
PostToolUseWrite|Editbash "$CLAUDE_PROJECT_DIR/.codex/hooks/format-post-tool-use.sh"
Notificationpermission_prompt~/.config/claude/hooks/notify.sh permission
PreToolUseBashcommand -v agent-guard >/dev/null || { echo 'agent-guard not found; run home-manager switch' >&2; exit 2; }; exec agent-guard banned
PreToolUseBash~/.config/claude/hooks/gh-api-guard.sh
PreToolUseEdit|Writecommand -v agent-guard >/dev/null || { echo 'agent-guard not found; run home-manager switch' >&2; exit 2; }; exec agent-guard managed-paths
SessionStart*bash ~/.config/herdr/hooks/report-agent-session.sh session claude
SessionStart*~/.config/claude/hooks/herdr-cache-token.sh session
Stop*~/.config/claude/hooks/herdr-cache-token.sh stop
Stop*~/.config/claude/hooks/notify.sh
PostToolUseEdit|Write~/.config/claude/hooks/check-ai-writing.sh
PostCompact*~/.config/claude/hooks/herdr-cache-token.sh compact

Plugins (8)

cc-plugin-you-should-know@builtinfeature-dev@claude-plugins-officialfrontend-design@claude-plugins-officialpr-review-toolkit@claude-plugins-officialsecurity-guidance@claude-plugins-officialsession-report@claude-plugins-officialskill-creator@claude-plugins-officialcodex@openai-codex

Permissions

deny (0)
—
ask (0)
—
allow (3)
Skill(browser-research)
WebFetch(domain:github.com)
WebSearch

Similar rigs

copied ✓