permissions-debug
できること
Kodeの承認済みのツールとコマンドの制限を確認する方法を説明し、必要最小限の権限の変更を行います。予期せずツールがブロックされるKodeの利用者が対象です。
使う場面
- ✓承認したはずのツールを、Kodeがブロックするとき。
- ✓同じ許可を何度も求められるとき。
- ✓補助エージェントが、メインのKodeエージェントと違う動きをするとき。
スキルのリンク
https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/permissions-debug/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“承認したファイル検索ツールを、Kodeがブロックし続けます。なぜか調べて、直し方を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、ブロックされた正確な操作を確認し、承認済みのツールの一覧を調べて、コマンドの制限を探します。元に戻しやすい最小限の変更を加え、その操作を繰り返して確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Permissions Debug (Kode-first, fail-closed)
Non-negotiables
- Do not auto-escalate permissions. If an action would normally require user approval, keep it interactive and explain why.
- Prefer minimal, reversible permission changes and verify immediately.
- In
dontAskcontexts, treat “would prompt” as deny (fail-closed). Do not try to bypass.
Fast triage (what to check first)
Confirm what is blocked
- Look for the exact tool name and the rejection message.
- If the failure is from a subagent, confirm whether the parent context was more restricted.
Inspect approved tools / project allowlist
- Use
SlashCommandto run/approved-tools listand confirm whether the tool (or its rule category) is present. - If the list is unexpectedly long or contains stale entries, remove only the minimum needed with
/approved-tools remove <tool>.
- Use
Check per-command constraints
- Some flows apply
commandAllowedToolsconstraints (slash command / skill execution contexts). Confirm the command’sallowed-toolsfrontmatter and whether it should be restrictive.
- Some flows apply
Verification loop (keep it tight)
- Re-run the exact action that was blocked and confirm:
- whether the prompt appears (interactive modes), or
- whether the tool is allowed/denied deterministically (headless /
dontAsk).
Forensics (when “it should have worked”)
- Inspect the latest session artifacts under
~/.kode/(messages + errors) to confirm what tool call was attempted and why it was denied. - If a background shell was involved, cross-check task output files in
~/.kode/**/tasks/for the correspondingbashId.
よくある質問
エージェントは権限を自動で有効にしますか?
いいえ。スキルは、通常なら承認が必要な操作を自動で承認しません。
プロンプトが表示されない実行では、どうなりますか?
承認が必要な操作はすべて拒否されたものとして扱われ、安全性が保たれます。
エージェントは修正をどう確認しますか?
ブロックされた操作を繰り返し、今は許可されているか、まだ拒否されているかを確かめます。
詳細
作者による元の説明
Troubleshoot Kode permission prompts/denials (tool allowlists, commandAllowedTools, dontAsk fail-closed, subagent inheritance). Use when tools are unexpectedly blocked, permission prompts repeat, or behavior differs between main agent and subagents.
repo: shareAI-lab/Kode-CLI
人気
- GitHubのスター
- 5.2k
- ランキング
- #15023
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
capabilities-manage
5.2kエージェントが、言語サーバー、ステータスライン、プラグインなどのKode CLIの機能を、平易な依頼でオン、オフ、または動く状態にできるよう支援します。
doc-coauthoring
5.2kエージェントが、雑然としたメモから明確な提案書、仕様書、意思決定の文書を作れるよう、段階を追って支援します。新しい読み手の視点で検証もします。
lsp-maintain
5.2kエージェントが、Kodeでコードの候補が出ない理由を調べ、言語サーバーを提供するプラグインを設定できるよう支援します。
mcp-builder
5.2kエージェントが、TypeScriptかPythonで、外部サービスのためのMCPサーバーを作れるよう支援します。AIが使いやすい、明確に名付けられた操作を提供します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。