Files
grimoire/.claude/settings.json
Alejandro c223deb4b9 feat: enhance Claude Code setup with slash commands, hooks, and verification (#38)
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>
2026-01-05 12:45:49 +01:00

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"
}
]
}
]
}
}