| name | source-command-permission-audit |
| description | View and analyze HITL permission requests to optimize settings.json |
source-command-permission-audit
Use this skill when the user asks to run the migrated source command permission-audit.
Command Template
Permission Audit Command
You are analyzing permission requests that required human-in-the-loop (HITL) approval.
Your Task
Run the permission audit script with the requested action and present the results clearly.
Available Actions
- View Log (default): Show recent permission requests
- Analyze: Show patterns and frequency of permission requests
- Suggest: Recommend permissions to add to settings.json based on history
Execution
Based on the user's request, run ONE of these commands:
.claude/scripts/permission-audit.sh view
.claude/scripts/permission-audit.sh analyze
.claude/scripts/permission-audit.sh suggest
Output Format
After running the script, provide:
- Summary: Key findings from the output
- Recommendations: If using
suggest, format the recommended additions as JSON that can be copy-pasted into settings.json
- Next Steps: How to apply the changes
Example Response
If suggesting permissions:
## Permission Audit Results
Based on 47 logged permission requests, here are suggested additions:
### High-Value Additions (requested 5+ times)
- `Bash(flyctl:*)` - 12 requests
- `Bash(pm2:*)` - 8 requests
### To add these, update `.claude/settings.json`:
```json
"permissions": {
"allow": [
// ... existing permissions ...
"Bash(flyctl:*)",
"Bash(pm2:*)"
]
}
After adding, these commands will auto-approve in future sessions.