allow-agent-commands
/allow-agent-commands
Dodaje lub zmienia dozwolone polecenia w konfiguracji uprawnień agentów OpenCode i Claude Code, np. gdy użytkownik chce przestać być pytany o dane polecenie.
- Autor
- aspiers ↗
- Repozytorium
- ai-config ↗
- Licencja
- GPL-3.0
- Ostatnia zmiana repozytorium
- 08.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 08.10.2026, bez odwołań do wycofanych modeli i API.
GPL-3.0, otwarta.
Co robi i kiedy
Dodaje lub zmienia dozwolone polecenia w konfiguracji uprawnień agentów OpenCode i Claude Code, np. gdy użytkownik chce przestać być pytany o dane polecenie.
Oryginalny opis (EN)
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.
Jak działa
- When to use this skill
- How it works
- OpenCode Configuration
- Claude Code Configuration
- General Pattern for New AI Tools
- After Adding Commands
- Examples
Podgląd SKILL.md
--- 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:*)", ```
Wersje
W bazie nie ma innych skilli o nazwie allow-agent-commands.
Migawka bazy z 13.11.2026 · wersja paczki 1f9f0e3124c8 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 85explaining-permissions
Wyjaśnia, dlaczego Claude Code zapytał o polecenie Bash, zezwolił na nie lub je odrzucił, i wskazuje nieskuteczne lub ryzykowne reguły uprawnień. - 90claude-settings-audit
Audytuje uprawnienia poleceń agenta i wskazuje, które polecenia bash tylko do odczytu oraz domeny warto zezwolić, przy konfiguracji projektu. - 100agent-command-authoring
Tworzy polecenia slash dla Claude Code, pliki poleceń OpenCode, szablony promptów Pi i własne prompty Codex, które delegują do właściwego subagenta lub skilla. - 90claude-settings-audit
Sprawdza uprawnienia agenta i wskazuje, które polecenia tylko do odczytu oraz domeny można bezpiecznie dopuścić. - 90claude-permissions
Stosuje konwencje Esposter dla reguł uprawnień Claude Code w .agents/settings.local.json, gdy edytujesz settings.local.json lub debugujesz, dlaczego polecenie nadal pyta o zgodę. - 100claude-settings-audit
Analizuje repozytorium i generuje zalecane uprawnienia settings.json Claude Code, wykrywając stos, narzędzia buildu i strukturę monorepo, w tym dozwolone polecenia bash tylko do odczytu.