allow-agent-commands
/allow-agent-commands
Adds or changes allowed commands in AI agent permission configs for OpenCode and Claude Code. Use when a command needs adding to an agent's allow list, when permission settings for existing commands need changing, when setting up a new AI tool that requires command permissions, or when the user asks to stop being prompted for a particular command.
- Author
- aspiers ↗
- Repository
- ai-config ↗
- Licence
- GPL-3.0
- Last repository change
- 08.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 08.10.2026, without references to retired models or APIs.
GPL-3.0, otwarta.
What it does and when to use it
Adds or changes allowed commands in AI agent permission configs for OpenCode and Claude Code. Use when a command needs adding to an agent's allow list, when permission settings for existing commands need changing, when setting up a new AI tool that requires command permissions, or when the user asks to stop being prompted for a particular command.
Original author description
Adds or changes allowed commands in AI agent permission configs for OpenCode and Claude Code. Use when a command needs adding to an agent's allow list, when permission settings for existing commands need changing, when setting up a new AI tool that requires command permissions, or when the user asks to stop being prompted for a particular command.
How it works
- When to use this skill
- How it works
- OpenCode Configuration
- Claude Code Configuration
- General Pattern for New AI Tools
- After Adding Commands
- Examples
SKILL.md preview
--- name: allow-agent-commands description: >- Adds or changes allowed commands in AI agent permission configs for OpenCode and Claude Code. Use when a command needs adding to an agent's allow list, when permission settings for existing commands need changing, when setting up a new AI tool that requires command permissions, or when the user asks to stop being prompted for a particular command. --- # Adding/Changing Allowed Commands ## When to use this skill Use this skill when: - A command needs to be added to the allow list for AI agents - Permission settings need to be modified for existing commands - Setting up a new AI tool that requires command permissions ## How it works 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. ## OpenCode Configuration File: `.config/opencode/opencode.json` under `permission.bash` Format: ```json "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.** ## Claude Code Configuration File: `.claude/settings.json` under `permissions.allow` Format: ```json "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.** ## General Pattern for New AI Tools When adding new AI tools: 1. Find their config file (usually in `~/.config/` or project root) 2. Look for `permissions`, `allowedCommands`, or similar sections 3. Add the command with glob patterns for arguments 4. **Insert new entries in alphabetical order by command name** 5. **Do NOT reorder existing entries.** ## After Adding Commands After adding the new command entries to both config files: 1. Check if there are any other staged changes with `git status` 2. If there are NO other staged changes, stage ONLY the new hunks in the two config files using the `git-stager` subagent (be careful not to stage unrelated changes) 3. Invoke the `git-committer` subagent to commit the changes ## Examples Adding `rg` (ripgrep) to both configs: **OpenCode** (insert after `rev *`, before `rpm -q*`): ```json "rg *": "allow", ``` **Claude Code** (insert after `Bash(rg:*)`, before `Bash(rpm -q:*)`): ```json "Bash(rg:*)", ```
Versions
The database has no other skills named allow-agent-commands.
Database snapshot: 13.11.2026 · package version 1f9f0e3124c8 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 85explaining-permissions
Explains why Claude Code prompted for, allowed or denied a Bash command, and finds ineffective or risky permission rules. Use when the user asks why a permission prompt appeared, why an allow rule doesn't work, or wants their permission settings audited. - 90claude-settings-audit
Use when setting up a project, auditing agent command permissions, or asking which read-only bash commands and domains to allow. Not for remote, credential, publish, deploy, or irreversible changes. - 100agent-command-authoring
Create Claude Code slash commands, OpenCode command files, Pi prompt templates, and Codex custom prompts that delegate to the right subagent or skill. Use when creating new commands, porting commands across agent platforms, or refactoring existing commands to follow platform conventions. - 90claude-settings-audit
Use when setting up a project, auditing agent command permissions, or asking which read-only bash commands and domains to allow. Not for remote, credential, publish, deploy, or irreversible changes. - 90claude-permissions
Apply when editing settings.local.json or debugging why a command still prompts. Esposter Claude Code permission-rule conventions for the allow-only .agents/settings.local.json. Generic harness semantics live in the update-config skill. - 100claude-settings-audit
Analyze a repository to generate recommended Claude Code settings.json permissions. Use when setting up a new project, auditing existing settings, or determining which read-only bash commands to allow. Detects tech stack, build tools, and monorepo structure.