بنقرة واحدة
analyze-permissions
Analyze accumulated permissions and suggest smart wildcard patterns
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Analyze accumulated permissions and suggest smart wildcard patterns
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Monitor CI checks after pushing, detect flaky vs legit failures, and auto-fix
End-of-day counterpart to wake-me-up. Reads today's morning briefing at ~/dev/ai/notes/wake-me-up/{date}.md, asks the user what they shipped or resolved, drafts a Slack wrap-up post in the user's voice, shows the draft for explicit confirmation, then posts it on the user's behalf via the Slack MCP. Appends the posted summary back to the briefing file so the file is a full day record. Use when the user says "/closing-time", "wrap the day", "end of day post", or wants help summarizing what they did.
Commit staged/unstaged changes with a well-crafted commit message.
Create or update a GitHub PR with automatic template detection and filling
Plan, implement, and iteratively review a task end-to-end using Claude + Copilot reviewers in a linear flow.
Investigate what it would take to upgrade a library from its currently pinned version to a target version (or "latest"). Produces a migration assessment — version delta, breaking changes that apply to us, impacted files, estimated blast radius, suggested rollout — and STOPS there. Does not perform the upgrade unless the user explicitly asks. Use when the user says "investigate updating <pkg> from X to Y", "investigate updating <pkg> to latest", "we are behind on <pkg>", or "let's update <pkg> to version N".
| name | analyze-permissions |
| description | Analyze accumulated permissions and suggest smart wildcard patterns |
| argument-hint | ["analyze|apply|cleanup"] |
| disable-model-invocation | true |
Analyze accumulated permissions in settings.local.json and suggest smart wildcard patterns to add to the shared configuration.
analyze (default), apply, or cleanupExample invocations:
/analyze-permissions → analyze and suggest patterns/analyze-permissions apply → apply suggested patterns to shared config/analyze-permissions cleanup → just run the cleanup scriptRead these files:
<project-root>/.claude/settings.local.json - accumulated "Always allow" permissions (per-project, not at ~/.claude/)~/.claude/settings.json - shared/base permissions managed by the configure script~/.dotfiles/ai/configure-tool-permissions.sh - canonical source for global permissionsNote: settings.local.json is project-specific. Each repo has its own at <repo>/.claude/settings.local.json. The global ~/.claude/settings.json is shared across all projects.
For each entry in settings.local.json:
Check if already covered - Is there a wildcard in settings.json that covers this?
Bash(git commit -m "Fix bug") is covered by Bash(git commit:*)Bash(curl https://api.example.com) is covered by Bash(curl:*)Identify pattern opportunities - Group similar commands:
kubectl commands → suggest Bash(kubectl:*)docker commands → suggest Bash(docker:*)WebFetch(https://example.com/*)Decide global vs local - Where should the pattern live?
npx, python, docker compose, etc.)git push for a personal repo)Assess safety - Consider if the pattern is safe for auto-approval:
Output a structured report:
## Permission Analysis
### Settings Overview
- settings.local.json: X entries
- settings.json: Y entries (Z wildcards)
### Already Covered (can be removed)
These entries in settings.local.json are redundant:
| Entry | Covered by |
|-------|------------|
| Bash(git commit -m "...") | Bash(git commit:*) |
### Suggested New Patterns
These patterns would consolidate multiple specific entries:
| Pattern | Covers | Safety |
|---------|--------|--------|
| Bash(kubectl:*) | 4 entries | ✅ Safe (read-heavy) |
| Bash(docker exec:*) | 3 entries | ⚠️ Review (can modify) |
### Uncategorized
These entries don't fit a pattern (one-offs):
- Bash(some-specific-command)
Based on the action argument:
analyze (default):
apply:
configure-tool-permissions.sh in the PERMISSIONS_CONFIG sectioncleanup:
~/.claude/skills/analyze-permissions/scripts/cleanup-settings-local.shWhen adding patterns to configure-tool-permissions.sh:
PERMISSIONS_CONFIG JSON arrayif statement so the script knows to re-run~/.dotfiles/ai/configure-tool-permissions.sh~/.dotfiles/ai/skills/analyze-permissions/scripts/cleanup-settings-local.shImportant: The configure script merges new entries into settings.json but never removes existing ones. This means settings.json also accumulates "don't ask again" entries over time. The cleanup script only cleans settings.local.json. To fully clean settings.json, you'd need to manually remove redundant entries or rebuild it from the script.
Safe to auto-approve (commonly needed):
Bash(npx:*), Bash(node:*), Bash(npm:*), Bash(pnpm:*) - JS/Node toolingBash(python:*), Bash(python3:*), Bash(pip:*) - Python toolingBash(cargo :*), Bash(cd :* && cargo:*) - Rust toolingBash(docker compose:*), Bash(docker ps:*) - DockerBash(kubectl get:*), Bash(kubectl describe:*) - K8s read operationsBash(git:*) subcommands (add, commit, log, diff, etc.)Bash(gh:*) read operations (pr view, issue list, api, etc.)Bash(chmod:*), Bash(ln:*), Bash(wc:*), Bash(which:*) - basic utilitiesBash(ssh:*), Bash(tmux:*), Bash(bash:*), Bash(zsh:*) - shell/systemWebFetch(domain:*), WebSearch - web accessRequire review (side effects):
Bash(kubectl delete:*), Bash(kubectl apply:*)Bash(docker rm:*), Bash(docker exec:*)Bash(aws s3 rm:*)Bash(rm:*), Bash(mv:*)Bash(git push:*) - consider keeping per-project in local settingsNever auto-approve:
Bash(sudo:*)Bash(chmod 777:*)