mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 15:36:53 +02:00
Add slash commands for common workflows: - /commit-push-pr: Streamlined PR creation - /verify: Full verification suite (lint + test + build) - /test: Run tests with results summary - /lint-fix: Auto-fix lint and formatting - /review: Code review for quality and Nostr patterns Update settings.json: - Expand permissions for common safe bash commands - Add PostToolUse hook for auto-formatting with Prettier Update CLAUDE.md: - Add Verification Requirements section - Document available slash commands - Emphasize running /verify before PRs Co-authored-by: Claude <noreply@anthropic.com>
50 lines
977 B
JSON
50 lines
977 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(npm:*)",
|
|
"Bash(npx:*)",
|
|
"Bash(git:*)",
|
|
"Bash(gh:*)",
|
|
"Bash(find:*)",
|
|
"Bash(grep:*)",
|
|
"Bash(cat:*)",
|
|
"Bash(ls:*)",
|
|
"Bash(tree:*)",
|
|
"Bash(awk:*)",
|
|
"Bash(sed:*)",
|
|
"Bash(head:*)",
|
|
"Bash(tail:*)",
|
|
"Bash(wc:*)",
|
|
"Bash(tee:*)",
|
|
"Bash(source ~/.zshrc)",
|
|
"Bash(nvm use:*)",
|
|
"Bash(nvm install:*)",
|
|
"Bash(node --version:*)",
|
|
"Bash(mkdir:*)",
|
|
"Bash(cp:*)",
|
|
"Bash(mv:*)",
|
|
"Bash(rm:*)",
|
|
"Bash(touch:*)",
|
|
"Bash(pwd)",
|
|
"Bash(which:*)",
|
|
"Bash(echo:*)",
|
|
"Bash(curl:*)",
|
|
"Bash(jq:*)"
|
|
],
|
|
"deny": []
|
|
},
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write|MultiEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "npx prettier --write \"$FILEPATH\" 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|