用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aspiers/ai-config --skill allow-agent-commands命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | allow-agent-commands |
| description | Add or change allowed commands in AI agent permission configs (OpenCode, Claude Code) |
Use this skill when:
Commands must be explicitly allowed in the permission configs before agents can run them. This skill covers adding entries to both OpenCode and Claude Code configuration files.
IMPORTANT: The config files are stowed into ~ via GNU Stow symlinks.
Always edit them directly from within the ai-config repository, NOT from ~.
The paths below are relative to the ai-config repository root.
File: .config/opencode/opencode.json under permission.bash
Format:
"uname *": "allow",
Pattern: "command argpatterns": "action" where * matches any args
Important: Insert new entries in alphabetical order by command name. When adding a new command, find the correct position to maintain sorting. Do NOT reorder existing entries.
File: .claude/settings.json under permissions.allow
Format:
"Bash(uname:*)",
Important: Insert new entries in alphabetical order. Commands are sorted
by the command name (the part after Bash( and before :).
Do NOT reorder existing entries.
When adding new AI tools:
~/.config/ or project root)permissions, allowedCommands, or similar sectionsAfter adding the new command entries to both config files:
git statusgit-stager subagent (be careful not to stage
unrelated changes)git-committer subagent to commit the changesAdding rg (ripgrep) to both configs:
OpenCode (insert after rev *, before rpm -q*):
"rg *": "allow",
Claude Code (insert after Bash(rg:*), before Bash(rpm -q:*)):
"Bash(rg:*)",