permission-patterns
Rules for evaluating, classifying, and deduplicating AI tool permissions
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Permission Patterns
Unified patterns for permission safety classification and deduplication. Use these rules to evaluate permissions consistently.
Safety Classification
Classification rules for evaluating permission safety. Use these criteria to categorize permissions consistently.
Classification Rules
ALLOW - Read-Only and Safe Operations
Keywords: list, ls, show, info, view, get, describe, inspect, status, doctor, ping, check, --version, --help
Safe domains: github.com, docker.com, kubernetes.io, python.org, npmjs.com, official documentation sites
ASK - Modifications and Risky Operations
Keywords: update, set, edit, patch, modify, apply, rm, delete, remove, prune, clean, exec, run, eval, push, publish, deploy, kill, stop
Requires user confirmation before execution.
DENY - Irreversible Damage or Security Bypass
Keywords: sudo, chmod 777, dd, file patterns like **/.env, **/*_rsa, **/*.key, **/*secret*
Local addresses: localhost, 127.0.0.1, private IP ranges
Decision Criteria
- Read-only query + no secrets → ALLOW
- Modifies resources + reversible → ASK
- Irreversible or security risk → DENY
- Uncertain → ASK (conservative default)
Domain Coverage
Root domains cover their subdomains, but different root domains or TLDs are separate:
-
github.comcovers:api.github.com,docs.github.com,status.github.com -
github.iois a separate root domain (different TLD), does NOT covergithub.comand vice versa -
github.comdoes NOT covergithubusercontent.com(separate root domain) -
localhostis separate fromlocalhost:3000(ports are distinct entities, not subdomains)
Local/private addresses always DENY:
-
localhost,127.0.0.1,192.168.x.x,10.x.x.xranges
Pattern Deduplication
Rules for detecting when a specific permission is already covered by a broader existing pattern.
Coverage Rules
WebFetch Domains
Domain coverage follows the same rules as the Domain Coverage section above. Ports are distinct:
-
localhostdoes NOT coverlocalhost:3000
File Paths
Broader wildcards cover more specific patterns:
-
Read(**)covers any Read permission -
Glob(**/*)coversGlob(**/*.js),Glob(**/package.json)
Root Domain Recommendations
For well-known vendors (GitHub, Docker, Google, Apple, Microsoft), prefer root domain over individual subdomains.
If multiple subdomains found → suggest adding root domain instead.
Related Permission Suggestions
When discovering a safe permission, suggest related safe commands in the same family:
-
docker volume ls→ suggestdocker volume inspect -
aws s3 ls→ suggestaws s3 sync --dryrun -
npm list→ suggestnpm outdated,npm audit
Commands Using This Skill
-
permissions-analyzeragent - Uses classification and deduplication to filter permissions during discovery -
/sync-permissionscommand - Indirectly uses this skill through the permissions-analyzer agent
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!