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

  1. Identify the rule string(s) and action from the user's request (e.g., "kubectl get *"allow)
  2. Determine the subcommand: add / remove / list / list-all / format
  3. 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 *"
    
  4. Confirm the change was written
  5. Remind the user: 修改配置后需要重启 OpenCode 才能生效
Installs
8
Repository
cnife/skills
First Seen
Apr 28, 2026
opencode-permission — cnife/skills