Skip to content

Instantly share code, notes, and snippets.

@Nikkely
Last active February 26, 2026 09:54
Show Gist options
  • Select an option

  • Save Nikkely/b9251b2fa663828eae797a7aaacbed97 to your computer and use it in GitHub Desktop.

Select an option

Save Nikkely/b9251b2fa663828eae797a7aaacbed97 to your computer and use it in GitHub Desktop.
claudeデフォルトルールセット
{
"permissions": {
"deny": [
"Bash(git push --force:*)",
"Bash(git push -f:*)",
"Bash(git branch -D main:*)",
"Bash(git branch -D master:*)",
"Bash(git reset --hard:*)",
"Bash(gh pr merge:*)"
],
"allow": [
"Bash(git status:*)",
"Bash(git diff:*)",
"Bash(git log:*)",
"Bash(git add:*)",
"Bash(git commit:*)",
"Bash(git branch:*)",
"Bash(git checkout:*)",
"Bash(git switch:*)",
"Bash(git stash:*)",
"Bash(git fetch:*)",
"Bash(git pull:*)",
"Bash(git push:*)",
"Bash(git rebase:*)",
"Bash(git merge:*)",
"Bash(git rev-parse:*)",
"Bash(git remote:*)",
"Bash(gh pr:*)",
"Bash(gh issue:*)",
"Bash(gh repo view:*)",
"Bash(gh api:*)",
"Bash(gh run:*)",
"Bash(grep:*)",
"Bash(rg:*)",
"Bash(find:*)",
"Bash(ls:*)",
"Bash(cat:*)",
"Bash(head:*)",
"Bash(tail:*)",
"Bash(wc:*)",
"Bash(file:*)",
"Bash(which:*)",
"Bash(npm test:*)",
"Bash(npm run:*)",
"Bash(npx next build:*)",
"Bash(npx prettier:*)",
"Bash(sips:*)"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment