~ / rigs / tktcorporation / dotfiles

tktcorporation/dotfiles

💻 macOS / Ubuntu dotfiles

↗ GitHub ★ 0 MIT updated 10d ago personal setup Claude Code
stack: Shell
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
up to ~2.6k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · details
Quality 16/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit tktcorporation/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 tktcorporation/dotfiles/.claude/skills/autonomous-dev .claude/skills/autonomous-dev
$ npx degit tktcorporation/dotfiles/.claude/skills/faithful-doc-writing .claude/skills/faithful-doc-writing
$ npx degit tktcorporation/dotfiles/.claude/skills/ui-craft .claude/skills/ui-craft
$ npx degit tktcorporation/dotfiles/.claude/skills/ui-design-research .claude/skills/ui-design-research
$ npx degit tktcorporation/dotfiles/.claude/skills/upstream-fix .claude/skills/upstream-fix

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

{
  "permissions": {
    "deny": [
      "Read(./secrets/**)",
      "Write(./secrets/**)",
      "Read(./*/**/.env)",
      "Read(./*/**/.env.*)",
      "Write(./*/**/.env)",
      "Write(./*/**/.env.*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE 'lsof.*-ti.*\\|.*xargs.*kill|lsof.*-ti.*\\|.*kill|kill.*\\$\\(lsof|kill.*lsof|fuser.*-k'; then echo 'BLOCKED: lsof+kill / fuser+kill はポートフォワーディングプロセスを巻き込んで devcontainer を殺す。代わりに pkill -f で特定プロセス名を指定して kil"
          },
          {
            "type": "command",
            "command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE 'git\\s+checkout\\s+--\\s+\\.|git\\s+restore\\s+\\.|git\\s+reset\\s+--hard|git\\s+clean\\s+-[a-z]*f|jj\\s+restore\\s+--(from|to|changes-in)'; then echo 'BLOCKED: 全ファイル対象の revert/reset は他プロセスの変更を巻き込む。特定ファイルを指定するか、ワ"
          },
          {
            "type": "command",
            "command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE 'git\\s+worktree\\s+add'; then if ! echo \"$CLAUDE_TOOL_INPUT\" | grep -qE 'git\\s+worktree\\s+add\\s+\\.claude/worktrees/'; then echo 'BLOCKED: worktree は .claude/worktrees/ 配下に作成すること。例: git worktree add .cl"
          }
        ]
      }
    ]
  }
}

MCP servers (1)

serversourceest. tokens
chrome-devtools local / custom 2.5k

Skills (5)

Hooks (3)

eventmatcherruns
PreToolUseBashif echo "$CLAUDE_TOOL_INPUT" | grep -qE 'lsof.*-ti.*\|.*xargs.*kill|lsof.*-ti.*\|.*kill|kill.*\$\(lsof|kill.*lsof|fuser.*-k'; then echo 'BLOCKED: lsof+kill / fuser+kill はポートフォワーディングプロセスを巻き込んで devcontainer を殺す。代わりに pkill -f で特定プロセス名を指定して kil
PreToolUseBashif echo "$CLAUDE_TOOL_INPUT" | grep -qE 'git\s+checkout\s+--\s+\.|git\s+restore\s+\.|git\s+reset\s+--hard|git\s+clean\s+-[a-z]*f|jj\s+restore\s+--(from|to|changes-in)'; then echo 'BLOCKED: 全ファイル対象の revert/reset は他プロセスの変更を巻き込む。特定ファイルを指定するか、ワ
PreToolUseBashif echo "$CLAUDE_TOOL_INPUT" | grep -qE 'git\s+worktree\s+add'; then if ! echo "$CLAUDE_TOOL_INPUT" | grep -qE 'git\s+worktree\s+add\s+\.claude/worktrees/'; then echo 'BLOCKED: worktree は .claude/worktrees/ 配下に作成すること。例: git worktree add .cl

Plugins (60)

document-skills@anthropic-agent-skillsexample-skills@anthropic-agent-skillsagent-sdk-dev@claude-plugins-officialcode-review@claude-plugins-officialexplanatory-output-style@claude-plugins-officiallearning-output-style@claude-plugins-officialplugin-dev@claude-plugins-officialsecurity-guidance@claude-plugins-officialfrontend-design@claude-plugins-officialfeature-dev@claude-plugins-officialcommit-commands@claude-plugins-officialtypescript-lsp@claude-plugins-officialcontext7@claude-plugins-officialhookify@claude-plugins-officialpr-review-toolkit@claude-plugins-officialpyright-lsp@claude-plugins-officialrust-analyzer-lsp@claude-plugins-officialcode-simplifier@claude-plugins-officialralph-loop@claude-plugins-officialsuperpowers@claude-plugins-officialgopls-lsp@claude-plugins-officialclaude-md-management@claude-plugins-officialclaude-code-setup@claude-plugins-officialplayground@claude-plugins-officialskill-creator@claude-plugins-officialqodo-skills@claude-plugins-officialmintlify@claude-plugins-officialclangd-lsp@claude-plugins-officialcsharp-lsp@claude-plugins-officialjdtls-lsp@claude-plugins-officialkotlin-lsp@claude-plugins-officiallua-lsp@claude-plugins-officialphp-lsp@claude-plugins-officialruby-lsp@claude-plugins-officialswift-lsp@claude-plugins-officialclaude-api@anthropic-agent-skillsadspirer-ads-agent@claude-plugins-officiallegalzoom@claude-plugins-officialdata@claude-plugins-officialproductivity@knowledge-work-pluginsenterprise-search@knowledge-work-pluginscowork-plugin-management@knowledge-work-pluginssales@knowledge-work-pluginsfinance@knowledge-work-pluginslegal@knowledge-work-pluginsmarketing@knowledge-work-pluginscustomer-support@knowledge-work-pluginsproduct-management@knowledge-work-pluginsengineering@knowledge-work-pluginshuman-resources@knowledge-work-pluginsdesign@knowledge-work-pluginsoperations@knowledge-work-pluginsfinancial-analysis@financial-services-pluginsinvestment-banking@financial-services-pluginsequity-research@financial-services-pluginsprivate-equity@financial-services-pluginswealth-management@financial-services-pluginslseg@financial-services-pluginssp-global@financial-services-pluginssentry@claude-plugins-official

Permissions

deny (6)
Read(./secrets/**)
Write(./secrets/**)
Read(./*/**/.env)
Read(./*/**/.env.*)
Write(./*/**/.env)
Write(./*/**/.env.*)
ask (0)
—
allow (4)
Bash(find:*)
Bash(rg:*)
Bash(grep:*)
Bash(ls:*)

Similar rigs

copied ✓