跳到正文
Skillpedia
智能体8.6k · #12384

applying-a-permission-policy

它能做什么

这个技能配置 AI 编程智能体在 OpenRig 团队设置期间使用的命令权限选项。适合希望审批清晰且有限的智能体团队搭建者。

适用场景

  • ✓你在搭建智能体团队,需要选择命令权限的时候。
  • ✓智能体对常见命令反复请求审批,你希望减少提示的时候。
  • ✓你想把已保存的权限策略应用到某个 rig 或席位的时候。

技能链接

https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请帮我为智能体团队配置命令权限,让常规的 rig 命令和测试命令不再反复提示。”

每周 5 个新技能,1 分钟读完。

工作原理

它只询问你一次选择,仅在智能体自身的设置中应用你批准的权限,并说明仍会出现哪些提示。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Applying a permission policy

Configure the user's chosen permissions in the harness that runs the agent. OpenRig operating posture, native command rules, sandbox access and launch flags are separate controls. A command rule grants execution capability, not authority to invent tasks, publish work or change another host.

Ask once before team launch

Reuse an existing explicit choice for these harnesses and this scope from the user's onboarding context; do not ask again. Existing rules are configuration, not evidence of consent to expand their scope. Preserve them without expansion.

For a team with no explicit policy, recommend keeping the team default. Claude already allows ordinary rig commands, project reads and common tests, while lifecycle commands ask. Codex already has writable workspace and pod state; its on-request policy does not guarantee lifecycle prompts. Explicit policies, seat choices and named Codex profiles keep their existing meaning.

Native restrictions can still prompt for installs, commits, other shell commands and writes outside writable roots. With the Claude team default, an allow does not override lifecycle ask rules: rig up, rig down and the other listed lifecycle commands still ask even after Yes. Do not promise prompt-free operation.

Only offer additional persistent allowances when wanted, for the selected project or explicitly user-wide scope, or to adjust an explicit seat policy:

Remember these selected OpenRig commands in your native settings for this project? This is separate from the team launch default; stricter rules and Claude lifecycle asks remain. Yes / No — keep the team default

  • Yes: require an affirmative answer, then apply the procedure below only at the agreed scope. Do not replace ask/deny rules or substitute user-wide settings when project rules are unsupported.
  • No / no answer: leave settings and any existing explicit choice unchanged. With no policy selected, keep it unset; never record none to mean keeping the team default. Do not repeat the question during this setup.

A recommendation is not consent. Broader filesystem/network access requires its own explicit choice; permission consent is separate from launch approval.

Remember an explicit Yes or No in the existing onboarding/project context the agent already reads: choice, harnesses and scope. For Yes, record the exact files and entries added, any pre-existing equivalents, and the loading/verification result. Do not add a preference service or native configuration key. No answer is not a remembered No. Offer broader permissive operation only as a separate explicit opt-in; the setup question does not select a builtin policy or mode.

Choose the intended scope

Outside the setup question above, use an existing explicit choice; otherwise explain these options and ask which the user wants. Do not reopen the menu after an answered setup question or ask again for routine steps already authorized.

Choice What the agent configures
Keep the team default Leave an unset policy unset and preserve current native settings; Claude lifecycle asks and other native restrictions remain. Preserve any existing explicit choice.
“Prompt for everything” (none) Only on an explicit request, opt out of the team allowances. Native rules still decide each prompt; none does not guarantee a prompt for every command.
Remember selected commands Add native allow rules for the chosen family or narrower verbs, leaving other rules and sandbox settings intact.
Broader permissive operation Explain filesystem/network exposure and configure only the explicitly selected native mode and compatible launch settings.

If repeated approvals later interrupt the work, name the actual commands and offer a scoped adjustment then. Keep the existing choice until the person accepts a change; do not promise to adjust later and silently leave the burden with them. Do not reopen an answered choice for each routine operation.

A whole-family allow matches all rig verbs, including lifecycle, topology/config changes and commands that can launch other processes. It is not a read-only grant, but stricter ask/deny rules still win. Offer narrower prefixes such as rig ps or rig queue list when that better fits the request. Do not widen a choice to arbitrary shell execution, an entire interpreter or a generic shell wrapper.

Apply the choice for the user

  1. Iden
常见问题

它会授予所有权限吗?

不会。技能只应用你批准的选项,不会扩大现有规则。

所有提示都会消失吗?

不会。技能说明某些生命周期和安装命令仍会询问,因此它不承诺完全无提示。

它覆盖哪些智能体工具?

它覆盖 OpenRig 团队中使用的运行环境,例如 Claude 和 Codex。

详情

作者的原始描述

Use before launching a team during agent-guided setup, or when a user asks to configure OpenRig command permissions, reduce repeated native approval prompts, or apply a selected rig/seat permission policy.

repo: mvschwarz/openrig

热度

GitHub 星标
8.6k
排名
#12384
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能