sun-flat-yamada/dotfiles
2026-era cross-platform & AI-native dotfiles for Windows 11, WSL2 (Ubuntu), and Linux/macOS — WezTerm, PowerShell 7, Zsh, Starship, VS Code, WinGet DSC, Scoop, mise, and Multi-AI Agents (Claude Code, Google Antigravity, Gemini CLI, Codex CL
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
GUARDRAILS
5/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 49/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit sun-flat-yamada/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 sun-flat-yamada/dotfiles/.agents/skills/adr-management .claude/skills/adr-management $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-c .claude/skills/code-review-c $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-cpp .claude/skills/code-review-cpp $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-csharp .claude/skills/code-review-csharp $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-dart .claude/skills/code-review-dart $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-gatekeeper .claude/skills/code-review-gatekeeper $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-go .claude/skills/code-review-go $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-javascript .claude/skills/code-review-javascript $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-python .claude/skills/code-review-python $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-rust .claude/skills/code-review-rust $ npx degit sun-flat-yamada/dotfiles/.agents/skills/code-review-typescript .claude/skills/code-review-typescript $ npx degit sun-flat-yamada/dotfiles/.agents/skills/git-workflow .claude/skills/git-workflow $ npx degit sun-flat-yamada/dotfiles/.agents/skills/security-secret-audit .claude/skills/security-secret-audit $ npx degit sun-flat-yamada/dotfiles/.agents/skills/tdd-cycle .claude/skills/tdd-cycle $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-c .claude/skills/toolchain-c $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-cpp .claude/skills/toolchain-cpp $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-csharp .claude/skills/toolchain-csharp $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-dart .claude/skills/toolchain-dart $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-go .claude/skills/toolchain-go $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-javascript .claude/skills/toolchain-javascript $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-python .claude/skills/toolchain-python $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-rust .claude/skills/toolchain-rust $ npx degit sun-flat-yamada/dotfiles/.agents/skills/toolchain-typescript .claude/skills/toolchain-typescript
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Bash(git credential fill*)",
"Bash(op read *)",
"Bash(op item get *)",
"Bash(vault kv get *)",
"Bash(vault read *)",
"Bash(pass show *)",
"Bash(security find-generic-password*)",
"Bash(security find-internet-password*)",
"Bash(security dump-keychain*)",
"Bash(kubectl config view * --raw*)",
"Bash(kubectl config view --raw*)",
"Bash(aws ecr get-login-password*)",
"Bash(gh auth token*)",
"Bash(gh auth status * --show-token*)",
"Bash(kubectl get secret*)",
"Bash(aws secretsmanager get-secret-value*)",
"Bash(gcloud auth print-access-token*)",
"Bash(gcloud auth print-identity-token*)",
"Bash(az account get-access-token*)",
"PowerShell(gh auth token*)",
"Read(**/.env)",
"Read(**/.env.*)",
"Read(**/*.env)",
"Read(**/*.pem)",
"Read(**/*.key)",
"Read(**/*.p12)",
"Read(**/*.pfx)",
"Read(**/*.jks)",
"Read(**/*.keystore)",
"Read(**/*.kdbx)",
"Read(**/id_rsa)",
"Read(**/id_dsa)",
"Read(**/id_ecdsa)",
"Read(**/id_ed25519)",
"Read(**/*.tfstate)",
"Read(**/*.tfstate.backup)",
"Read(**/credentials.json)",
"Read(**/client_secret*.json)",
"Read(**/service-account*.json)",
"Read(**/service_account*.json)",
"Read(**/.npmrc)",
"Read(**/.pypirc)",
"Read(**/.netrc)",
"Read(**/.git-credentials)",
"Read(~/.ssh/**)",
"Read(~/.gnupg/**)",
"Read(~/.aws/**)",
"Read(~/.azure/**)",
"Read(~/.config/gcloud/**)",
"Read(~/.kube/**)",
"Read(~/.docker/config.json)",
"Read(~/.config/gh/**)",
"Read(~/.git-credentials)",
"Read(~/.netrc)",
"Read(~/.npmrc)",
"Read(~/.pypirc)",
"Read(~/.gem/credentials)",
"Read(~/.cargo/credentials)",
"Read(~/.cargo/credentials.toml)",
"Read(~/.claude/.credentials.json)",
"Read(~/.codex/auth.json)",
"Read(~/.gemini/oauth_creds.json)",
"Read(~/.claude.json)",
"Read(~/.claude/history.jsonl)",
"Read(~/.codex/history.jsonl)",
"Read(~/.config/github-copilot/**)",
"Read(~/.local/share/opencode/auth.json)",
"Read(~/.config/op/**)",
"Read(~/.vault-token)",
"Read(~/.terraform.d/credentials.tfrc.json)",
"Read(**/*.ppk)",
"Read(**/*.ovpn)",
"Read(~/.bash_history)",
"Read(~/.zsh_history)",
"Read(~/.local/state/zsh_history)",
"Read(~/<redacted>**)",
"Read(~/.gitconfig.local)",
"Read(~/.powershell.local.ps1)",
"Read(~/.zshrc.local)",
"Read(~/.bashrc.local)"
],
"ask": [
"Bash(eval *)",
"Bash(systemctl *)",
"Bash(launchctl *)",
"PowerShell(Start-Process *)",
"PowerShell(Set-ExecutionPolicy *)",
"Bash(git push *)",
"Bash(git clone *)",
"Bash(git submodule add *)",
"Bash(git remote add *)",
"Bash(git remote set-url *)",
"Bash(gh *)",
"PowerShell(git push *)",
"PowerShell(git clone *)",
"PowerShell(gh *)",
"Bash(npm install *)",
"Bash(npm i *)",
"Bash(npm add *)",
"Bash(npm update *)",
"Bash(npm uninstall *)",
"Bash(npm exec *)",
"Bash(npx *)",
"Bash(pnpm add *)",
"Bash(pnpm update *)",
"Bash(pnpm remove *)",
"Bash(pnpm dlx *)",
"Bash(yarn add *)",
"Bash(yarn upgrade *)",
"Bash(yarn remove *)",
"Bash(yarn dlx *)",
"Bash(bun add *)",
"Bash(bun update *)",
"Bash(bun remove *)",
"Bash(bunx *)",
"Bash(pip install *)",
"Bash(pip3 install *)",
"Bash(pip uninstall *)",
"Bash(python -m pip *)",
"Bash(python3 -m pip *)",
"Bash(uv add *)",
"Bash(uv remove *)",
"Bash(uv pip install *)",
"Bash(uv tool install *)",
"Bash(uvx *)",
"Bash(poetry add *)",
"Bash(poetry remove *)",
"Bash(pipx *)",
"Bash(cargo add *)",
"Bash(cargo remove *)",
"Bash(cargo install *)",
"Bash(cargo update*)",
"Bash(go get *)",
"Bash(go install *)",
"Bash(dotnet add *)",
"Bash(dotnet remove *)",
"Bash(dotnet tool install *)",
"Bash(dart pub add *)",
"Bash(dart pub remove *)",
"Bash(dart pub upgrade*)",
"Bash(flutter pub add *)",
"Bash(flutter pub upgrade*)",
"Bash(brew install *)",
"Bash(choco install *)",
"Bash(winget install *)",
"Bash(scoop install *)",
"PowerShell(npm install *)",
"PowerShell(npx *)",
"PowerShell(pip install *)",
"PowerShell(uvx *)",
"PowerShell(winget install *)",
"PowerShell(scoop install *)",
"PowerShell(choco install *)",
"Edit(**/package.json)",
"Edit(**/package-lock.json)",
"Edit(**/npm-shrinkwrap.json)",
"Edit(**/pnpm-lock.yaml)",
"Edit(**/yarn.lock)",
"Edit(**/bun.lock)",
"Edit(**/bun.lockb)",
"Edit(**/pyproject.toml)",
"Edit(**/requirements*.txt)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash|PowerShell|Edit|Write|MultiEdit|NotebookEdit",
"hooks": [
{
"type": "command",
"command": "python3 \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/permission-guard.py\""
}
]
}
]
},
"sandbox": {
"enabled": true
}
} Skills (23)
adr-managementcode-review-ccode-review-cppcode-review-csharpcode-review-dartcode-review-gatekeepercode-review-gocode-review-javascriptcode-review-pythoncode-review-rustcode-review-typescriptgit-workflowsecurity-secret-audittdd-cycletoolchain-ctoolchain-cpptoolchain-csharptoolchain-darttoolchain-gotoolchain-javascripttoolchain-pythontoolchain-rusttoolchain-typescript
Hooks (1)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash|PowerShell|Edit|Write|MultiEdit|NotebookEdit | python3 "${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/permission-guard.py" |
Permissions
deny (120)
Bash(git credential fill*)
Bash(op read *)
Bash(op item get *)
Bash(vault kv get *)
Bash(vault read *)
Bash(pass show *)
Bash(security find-generic-password*)
Bash(security find-internet-password*)
Bash(security dump-keychain*)
Bash(kubectl config view * --raw*)
Bash(kubectl config view --raw*)
Bash(aws ecr get-login-password*)
Bash(gh auth token*)
Bash(gh auth status * --show-token*)
Bash(kubectl get secret*)
Bash(aws secretsmanager get-secret-value*)
Bash(gcloud auth print-access-token*)
Bash(gcloud auth print-identity-token*)
Bash(az account get-access-token*)
PowerShell(gh auth token*)
Read(**/.env)
Read(**/.env.*)
Read(**/*.env)
Read(**/*.pem)
Read(**/*.key)
Read(**/*.p12)
Read(**/*.pfx)
Read(**/*.jks)
Read(**/*.keystore)
Read(**/*.kdbx)
Read(**/id_rsa)
Read(**/id_dsa)
Read(**/id_ecdsa)
Read(**/id_ed25519)
Read(**/*.tfstate)
Read(**/*.tfstate.backup)
Read(**/credentials.json)
Read(**/client_secret*.json)
Read(**/service-account*.json)
Read(**/service_account*.json)
Read(**/.npmrc)
Read(**/.pypirc)
Read(**/.netrc)
Read(**/.git-credentials)
Read(~/.ssh/**)
Read(~/.gnupg/**)
Read(~/.aws/**)
Read(~/.azure/**)
Read(~/.config/gcloud/**)
Read(~/.kube/**)
Read(~/.docker/config.json)
Read(~/.config/gh/**)
Read(~/.git-credentials)
Read(~/.netrc)
Read(~/.npmrc)
Read(~/.pypirc)
Read(~/.gem/credentials)
Read(~/.cargo/credentials)
Read(~/.cargo/credentials.toml)
Read(~/.claude/.credentials.json)
ask (120)
Bash(eval *)
Bash(systemctl *)
Bash(launchctl *)
PowerShell(Start-Process *)
PowerShell(Set-ExecutionPolicy *)
Bash(git push *)
Bash(git clone *)
Bash(git submodule add *)
Bash(git remote add *)
Bash(git remote set-url *)
Bash(gh *)
PowerShell(git push *)
PowerShell(git clone *)
PowerShell(gh *)
Bash(npm install *)
Bash(npm i *)
Bash(npm add *)
Bash(npm update *)
Bash(npm uninstall *)
Bash(npm exec *)
Bash(npx *)
Bash(pnpm add *)
Bash(pnpm update *)
Bash(pnpm remove *)
Bash(pnpm dlx *)
Bash(yarn add *)
Bash(yarn upgrade *)
Bash(yarn remove *)
Bash(yarn dlx *)
Bash(bun add *)
Bash(bun update *)
Bash(bun remove *)
Bash(bunx *)
Bash(pip install *)
Bash(pip3 install *)
Bash(pip uninstall *)
Bash(python -m pip *)
Bash(python3 -m pip *)
Bash(uv add *)
Bash(uv remove *)
Bash(uv pip install *)
Bash(uv tool install *)
Bash(uvx *)
Bash(poetry add *)
Bash(poetry remove *)
Bash(pipx *)
Bash(cargo add *)
Bash(cargo remove *)
Bash(cargo install *)
Bash(cargo update*)
Bash(go get *)
Bash(go install *)
Bash(dotnet add *)
Bash(dotnet remove *)
Bash(dotnet tool install *)
Bash(dart pub add *)
Bash(dart pub remove *)
Bash(dart pub upgrade*)
Bash(flutter pub add *)
Bash(flutter pub upgrade*)
allow (16)
Edit(/**)
WebSearch
WebFetch(domain:docs.github.com)
WebFetch(domain:docs.python.org)
WebFetch(domain:developer.mozilla.org)
WebFetch(domain:nodejs.org)
WebFetch(domain:www.typescriptlang.org)
WebFetch(domain:go.dev)
WebFetch(domain:pkg.go.dev)
WebFetch(domain:doc.rust-lang.org)
WebFetch(domain:docs.rs)
WebFetch(domain:learn.microsoft.com)
WebFetch(domain:dart.dev)
WebFetch(domain:api.dart.dev)
WebFetch(domain:en.cppreference.com)
WebFetch(domain:code.claude.com)
Similar rigs
anIcedAntFA/dotfiles
Personal Linux dotfiles for EndeavourOS (Arch) — niri scrollable-tiling Wayland compositor + Noctalia shell, fish, Ghostty. Reproducible with chezmoi.
Minimalist 1.8k tok · · Q3
anIcedAntFA/goshort
Self-hosted URL shortener in Go — single binary, SQLite-backed, zero config. Custom aliases, expiration, CLI, Redis cache, MCP server for AI agents (Claude Code, Cursor). Deploy anywhere: Docker, Fly.io, bare VPS.
Pragmatist 2.8k tok · · Q15
jefflester/claude-skills-supercharged
A "supercharged" implementation of Claude Code Skills – using Haiku prompt analysis/critical skill scoring and skill auto-injection for friction-free, context-driven workflows.
Pragmatist 256 tok · · Q15
Megatron-HQ/Megatron
Megatron: The local-first desktop app for tracking and managing your Claude Code setup.
Pragmatist 3.6k tok · · Q18