permission-manager
它能做什么
这个智能体可以帮你管理 opencode 系统中的命令权限。它会检查哪些命令被允许执行,推荐可以安全地无需确认直接运行的命令,并帮你设置谁能执行哪些操作。
适用场景
- ✓你想了解 opencode 中允许执行哪些命令时。
- ✓你在设置 AI 智能体可以安全运行哪些命令时。
- ✓你想检查命令权限的安全性时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/permission-manager/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我管理一下 opencode 的权限。”
每周 5 个新技能,1 分钟读完。
工作原理
它会读取当前的权限设置,展示一份允许项的摘要,并提出让系统更安全的修改建议,尤其是把只读取信息的命令设为允许。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
What I do
- Review and summarize currently always-allowed commands
- Suggest safe read-only commands for auto-approval
- Add or remove commands from the allow list in opencode.json
- Configure skill-level permissions (allow/deny/ask) with wildcard patterns
- Audit permission configs for security and usability
When to Use
Use this when optimizing opencode's permission settings, reviewing allowed commands, or configuring skill access controls.
Workflow Steps
- Read current config: Load
~/.config/opencode/opencode.jsonor project-levelopencode.json - Summarize permissions: Identify currently allowed commands and skill permissions
- Suggest additions: Propose safe read-only commands for auto-allow (see recommended list below)
- Apply changes: Edit the config to add/remove permission entries
- Validate: Ensure JSON is valid after changes
Complements opencode's built-in allow/deny/ask permissions by auditing current config and recommending adjustments through conversation.
Key Rules
- Never allow commands that modify files, commit, push, or change system state
- Prefer exact command entries such as
git status --short,git diff --stat, andls -la - Avoid trailing wildcards such as
git status*unless the expanded command family has been manually reviewed as read-only - Confirm with user before modifying permission config
- Distinguish between bash command permissions and skill permissions
- Keep config organized: group related commands together
Limitations
- This skill is scoped to opencode permission configuration and should not modify other agent hosts' permission stores.
- Treat all write-capable command permissions as high-risk; review them manually even when a pattern looks narrow.
How to trigger me
Use the Task tool with the permission-manager subagent type:
/permissions
Or in natural language, ask opencode to "manage opencode permissions" or "review allowed commands".
常见问题
什么是“opencode”?
opencode 是一个让 AI 智能体在你的电脑上执行命令的系统。这个智能体可以帮你控制它们能执行哪些命令。
什么是“始终允许列表”?
这是一些 opencode 系统可以直接运行、无需每次都询问你许可的命令清单。
为什么要检查命令权限?
为了确保 AI 智能体不会在你不知情的情况下执行危险命令,比如改动你的文件或系统。
详情
作者的原始描述
Manage opencode permissions: review always-allow lists, suggest safe read-only commands, configure permission patterns
热度
- GitHub 星标
- 48k
- 排名
- #5435
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。