~ / rigs / y-miyazaki / config

y-miyazaki/config

A repository of initial settings around the editor

↗ GitHub ★ 1 Apache-2.0 updated today personal setup Claude CodeCodexCursor
stack: PythonShell
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
up to ~15.3k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Context hog · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · No YOLO mode · Sandbox or ask-first rules · details
Quality 51/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add context7 -- npx -y @upstash/context7-mcp@4.7.0
$ claude mcp add fetch -- uvx mcp-server-fetch==2026.11.11
$ claude mcp add codebase-memory-mcp -- uvx mcp-compressor==0.34.0 --exclude-tools=delete_project -- codebase-memory-mcp
$ npx degit y-miyazaki/config/.claude ./rig-config  # 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.

$ claude mcp add context7 -- npx -y @upstash/context7-mcp@4.7.0
$ claude mcp add fetch -- uvx mcp-server-fetch==2026.11.11
$ claude mcp add codebase-memory-mcp -- uvx mcp-compressor==0.34.0 --exclude-tools=delete_project -- codebase-memory-mcp
$ npx degit y-miyazaki/config/.agents/skills/agent-skills-review .claude/skills/agent-skills-review
$ npx degit y-miyazaki/config/.agents/skills/ci-sweeper .claude/skills/ci-sweeper
$ npx degit y-miyazaki/config/.agents/skills/docs-creator .claude/skills/docs-creator
$ npx degit y-miyazaki/config/.agents/skills/docs-updater .claude/skills/docs-updater
$ npx degit y-miyazaki/config/.agents/skills/github-actions-review .claude/skills/github-actions-review
$ npx degit y-miyazaki/config/.agents/skills/github-actions-validation .claude/skills/github-actions-validation
$ npx degit y-miyazaki/config/.agents/skills/github-issue-autofix .claude/skills/github-issue-autofix
$ npx degit y-miyazaki/config/.agents/skills/github-issue-triage .claude/skills/github-issue-triage
$ npx degit y-miyazaki/config/.agents/skills/github-pr-body .claude/skills/github-pr-body
$ npx degit y-miyazaki/config/.agents/skills/github-pr-review .claude/skills/github-pr-review
$ npx degit y-miyazaki/config/.agents/skills/github-pr-revise .claude/skills/github-pr-revise
$ npx degit y-miyazaki/config/.agents/skills/go-review .claude/skills/go-review
$ npx degit y-miyazaki/config/.agents/skills/go-validation .claude/skills/go-validation
$ npx degit y-miyazaki/config/.agents/skills/instructions-review .claude/skills/instructions-review
$ npx degit y-miyazaki/config/.agents/skills/loop-verifier .claude/skills/loop-verifier
$ npx degit y-miyazaki/config/.agents/skills/markdown-validation .claude/skills/markdown-validation
$ npx degit y-miyazaki/config/.agents/skills/refactor .claude/skills/refactor
$ npx degit y-miyazaki/config/.agents/skills/shell-script-review .claude/skills/shell-script-review
$ npx degit y-miyazaki/config/.agents/skills/shell-script-validation .claude/skills/shell-script-validation
$ npx degit y-miyazaki/config/.agents/skills/tech-debt .claude/skills/tech-debt
$ npx degit y-miyazaki/config/.agents/skills/test-gap .claude/skills/test-gap
$ npx degit y-miyazaki/config/.apm/packages/terraform/.apm/skills/terraform-review .claude/skills/terraform-review
$ npx degit y-miyazaki/config/.apm/packages/terraform/.apm/skills/terraform-validation .claude/skills/terraform-validation
$ curl -fsSL --create-dirs -o .claude/agents/test-engineer.md https://raw.githubusercontent.com/y-miyazaki/config/main/.claude/agents/test-engineer.md

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(actionlint:*)",
      "Bash(apm:*)",
      "Bash(aws * delete-*)",
      "Bash(aws * put-*)",
      "Bash(bundle install:*)",
      "Bash(cargo install:*)",
      "Bash(composer install:*)",
      "Bash(curl:*)",
      "Bash(env:*)",
      "Bash(find * -delete*)",
      "Bash(find * -exec*)",
      "Bash(find * -execdir*)",
      "Bash(ghalint:*)",
      "Bash(gitleaks:*)",
      "Bash(go get:*)",
      "Bash(gofmt:*)",
      "Bash(golangci-lint:*)",
      "Bash(go fmt:*)",
      "Bash(go mod download:*)",
      "Bash(go vet:*)",
      "Bash(markdown-link-check:*)",
      "Bash(markdownlint-cli2:*)",
      "Bash(mix deps.get:*)",
      "Bash(npm install:*)",
      "Bash(pip install:*)",
      "Bash(pnpm install:*)",
      "Bash(poetry install:*)",
      "Bash(prettier:*)",
      "Bash(printenv:*)",
      "Bash(rm -rf:*)",
      "Bash(shellcheck:*)",
      "Bash(shfmt:*)",
      "Bash(sudo:*)",
      "Bash(terraform apply:*)",
      "Bash(terraform destroy:*)",
      "Bash(terraform fmt:*)",
      "Bash(terraform force-unlock:*)",
      "Bash(terraform import:*)",
      "Bash(terraform state mv:*)",
      "Bash(terraform state push:*)",
      "Bash(terraform state rm:*)",
      "Bash(terraform taint:*)",
      "Bash(terraform workspace delete:*)",
      "Bash(wget:*)",
      "Bash(yarn:*)",
      "Bash(zizmor:*)",
      "Edit(**/credentials/**)",
      "Edit(**/*.crt)",
      "Edit(**/*.key)",
      "Edit(**/*.p12)",
      "Edit(**/*.pem)",
      "Edit(**/*.pfx)",
      "Edit(**/*.tfstate)",
      "Edit(**/*.tfstate.*)",
      "Edit(**/*.tfbackend)",
      "Edit(./.env)",
      "Edit(./.env.*)",
      "Edit(./secrets/**)",
      "Edit(~/.aws/**)",
      "Edit(~/.azure/**)",
      "Edit(~/.bash_profile)",
      "Edit(~/.bashrc)",
      "Edit(~/.cache/**)",
      "Edit(~/.claude.json)",
      "Edit(~/.claude/agents/**)",
      "Edit(~/.claude/commands/**)",
      "Edit(~/.claude/hooks/**)",
      "Edit(~/.claude/plugins/**)",
      "Edit(~/.claude/settings*.json)",
      "Edit(~/.claude/skills/**)",
      "Edit(~/.config/**)",
      "Edit(~/.cursor/**)",
      "Edit(~/.docker/**)",
      "Edit(~/.gitconfig)",
      "Edit(~/.gnupg/**)",
      "Edit(~/.helm/**)",
      "Edit(~/.kube/**)",
      "Edit(~/.local/**)",
      "Edit(~/.netrc)",
      "Edit(~/.npmrc)"
    ],
    "ask": [
      "Bash(gh api * --method *)",
      "Bash(gh api * -X *)",
      "Bash(gh api --method *)",
      "Bash(gh api -X *)",
      "Bash(gh pr close:*)",
      "Bash(gh pr merge:*)",
      "Bash(gh pr ready:*)",
      "Bash(gh workflow run:*)",
      "Bash(git branch -D:*)",
      "Bash(git checkout:*)",
      "Bash(git clean -f:*)",
      "Bash(git push --force:*)",
      "Bash(git push -f:*)",
      "Bash(git push:*)",
      "Bash(git rebase:*)",
      "Bash(git reset --hard:*)",
      "Bash(npm publish:*)",
      "Edit(.claude/settings.json)",
      "Edit(.claude/settings.local.json)",
      "Edit(.editorconfig)",
      "Edit(.eslintrc*)",
      "Edit(.github/workflows/**)",
      "Edit(.gitleaks.toml)",
      "Edit(.golangci.yaml)",
      "Edit(.prettierrc*)",
      "Edit(docker-compose*.yml)",
      "Edit(Dockerfile)",
      "Edit(go.mod)",
      "Edit(jest.config.*)",
      "Edit(Makefile)",
      "Edit(mise.toml)",
      "Edit(package.json)",
      "Edit(renovate.json)",
      "Edit(tsconfig.json)"
    ]
  }
}

MCP servers (4)

serversourceest. tokens
Context7 npm 1.2k
Fetch pypi 450
mcp-compressor · "codebase-memory-mcp" pypi 2.5k
github local / custom 2.5k

Skills (23)

Subagents (1)

test-engineer>-

Hooks (12)

eventmatcherruns
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/common-hooks-claude/scripts/actionlint.sh"
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/common-hooks-claude/scripts/ghalint.sh"
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/common-hooks-claude/scripts/zizmor.sh"
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/common-hooks-claude/scripts/gitleaks.sh"
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/common-hooks-claude/scripts/markdown_link_check.sh"
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/common-hooks-claude/scripts/markdownlint_cli2.sh"
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/go-hooks-claude/scripts/go_test.sh"
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/go-hooks-claude/scripts/golangci_lint.sh"
Stop*"${CLAUDE_PROJECT_DIR}/.claude/hooks/shell-script-hooks-claude/scripts/shellcheck.sh"
PostToolUseEdit|Write"${CLAUDE_PROJECT_DIR}/.claude/hooks/common-hooks-claude/scripts/prettier.sh"
PostToolUseEdit|Write"${CLAUDE_PROJECT_DIR}/.claude/hooks/shell-script-hooks-claude/scripts/shfmt.sh"
UserPromptSubmit*"${CLAUDE_PROJECT_DIR}/.claude/hooks/common-hooks-claude/scripts/gitleaks_prompt.sh"

Cursor rules (10)

agent-skillsbatsclaude-settingscursor-settingsgithub-actions-workflowgo-testgoinstructionsmarkdownshell-script

Permissions

deny (120)
Bash(actionlint:*)
Bash(apm:*)
Bash(aws * delete-*)
Bash(aws * put-*)
Bash(bundle install:*)
Bash(cargo install:*)
Bash(composer install:*)
Bash(curl:*)
Bash(env:*)
Bash(find * -delete*)
Bash(find * -exec*)
Bash(find * -execdir*)
Bash(ghalint:*)
Bash(gitleaks:*)
Bash(go get:*)
Bash(gofmt:*)
Bash(golangci-lint:*)
Bash(go fmt:*)
Bash(go mod download:*)
Bash(go vet:*)
Bash(markdown-link-check:*)
Bash(markdownlint-cli2:*)
Bash(mix deps.get:*)
Bash(npm install:*)
Bash(pip install:*)
Bash(pnpm install:*)
Bash(poetry install:*)
Bash(prettier:*)
Bash(printenv:*)
Bash(rm -rf:*)
Bash(shellcheck:*)
Bash(shfmt:*)
Bash(sudo:*)
Bash(terraform apply:*)
Bash(terraform destroy:*)
Bash(terraform fmt:*)
Bash(terraform force-unlock:*)
Bash(terraform import:*)
Bash(terraform state mv:*)
Bash(terraform state push:*)
Bash(terraform state rm:*)
Bash(terraform taint:*)
Bash(terraform workspace delete:*)
Bash(wget:*)
Bash(yarn:*)
Bash(zizmor:*)
Edit(**/credentials/**)
Edit(**/*.crt)
Edit(**/*.key)
Edit(**/*.p12)
Edit(**/*.pem)
Edit(**/*.pfx)
Edit(**/*.tfstate)
Edit(**/*.tfstate.*)
Edit(**/*.tfbackend)
Edit(./.env)
Edit(./.env.*)
Edit(./secrets/**)
Edit(~/.aws/**)
Edit(~/.azure/**)
ask (34)
Bash(gh api * --method *)
Bash(gh api * -X *)
Bash(gh api --method *)
Bash(gh api -X *)
Bash(gh pr close:*)
Bash(gh pr merge:*)
Bash(gh pr ready:*)
Bash(gh workflow run:*)
Bash(git branch -D:*)
Bash(git checkout:*)
Bash(git clean -f:*)
Bash(git push --force:*)
Bash(git push -f:*)
Bash(git push:*)
Bash(git rebase:*)
Bash(git reset --hard:*)
Bash(npm publish:*)
Edit(.claude/settings.json)
Edit(.claude/settings.local.json)
Edit(.editorconfig)
Edit(.eslintrc*)
Edit(.github/workflows/**)
Edit(.gitleaks.toml)
Edit(.golangci.yaml)
Edit(.prettierrc*)
Edit(docker-compose*.yml)
Edit(Dockerfile)
Edit(go.mod)
Edit(jest.config.*)
Edit(Makefile)
Edit(mise.toml)
Edit(package.json)
Edit(renovate.json)
Edit(tsconfig.json)
allow (120)
Bash(awk:*)
Bash(basename:*)
Bash(bash -n:*)
Bash(bash scripts/:*)
Bash(bats:*)
Bash(cat:*)
Bash(cd:*)
Bash(cmp:*)
Bash(command -v:*)
Bash(cut:*)
Bash(date:*)
Bash(df:*)
Bash(diff:*)
Bash(dirname:*)
Bash(du:*)
Bash(echo:*)
Bash(file:*)
Bash(find:*)
Bash(gh api:*)
Bash(gh issue comment:*)
Bash(gh issue edit:*)
Bash(gh issue list)
Bash(gh issue view:*)
Bash(gh label create:*)
Bash(gh label list)
Bash(gh label list:*)
Bash(gh pr checks:*)
Bash(gh pr comment:*)
Bash(gh pr create:*)
Bash(gh pr diff:*)
Bash(gh pr edit:*)
Bash(gh pr list)
Bash(gh pr view:*)
Bash(gh repo view:*)
Bash(gh run list:*)
Bash(gh run view:*)
Bash(gh run watch:*)
Bash(gh workflow list)
Bash(git add:*)
Bash(git blame:*)
Bash(git branch:*)
Bash(git diff:*)
Bash(git fetch:*)
Bash(git grep:*)
Bash(git log:*)
Bash(git remote -v:*)
Bash(git remote show:*)
Bash(git rev-parse:*)
Bash(git show:*)
Bash(git stash list:*)
Bash(git stash show:*)
Bash(git status)
Bash(git worktree list)
Bash(go build:*)
Bash(go doc:*)
Bash(go env:*)
Bash(go list:*)
Bash(go mod tidy:*)
Bash(go test:*)
Bash(go version:*)

Similar rigs

copied ✓