opencode-permission
Installation
SKILL.md
OpenCode Permission Manager
Manage permission rules in ~/.config/opencode/opencode.jsonc. Add, remove, list, or format auto-approval rules for shell commands and tool invocations.
Workflow
- Identify the rule string(s) and action from the user's request (e.g.,
"kubectl get *"→allow) - Determine the subcommand:
add/remove/list/list-all/format - Run the bundled script:
# 单条添加 uv run --script <skill-path>/scripts/manage_permission.py add "kubectl get *" --action allow # 批量添加 uv run --script <skill-path>/scripts/manage_permission.py add "kubectl get *" "kubectl describe *" "kubectl logs *" - Confirm the change was written
- Remind the user: 修改配置后需要重启 OpenCode 才能生效