跳到正文
Skillpedia
安全48k · #5435

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/permission-manager/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Read current config: Load ~/.config/opencode/opencode.json or project-level opencode.json
  2. Summarize permissions: Identify currently allowed commands and skill permissions
  3. Suggest additions: Propose safe read-only commands for auto-allow (see recommended list below)
  4. Apply changes: Edit the config to add/remove permission entries
  5. 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, and ls -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

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5435
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能