本文へスキップ
Skillpedia
エージェント5.2k · #15023

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/permissions-debug/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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 dontAsk contexts, treat “would prompt” as deny (fail-closed). Do not try to bypass.

Fast triage (what to check first)

  1. 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.
  2. Inspect approved tools / project allowlist

    • Use SlashCommand to run /approved-tools list and 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>.
  3. Check per-command constraints

    • Some flows apply commandAllowedTools constraints (slash command / skill execution contexts). Confirm the command’s allowed-tools frontmatter and whether it should be restrictive.

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 corresponding bashId.
よくある質問

エージェントは権限を自動で有効にしますか?

いいえ。スキルは、通常なら承認が必要な操作を自動で承認しません。

プロンプトが表示されない実行では、どうなりますか?

承認が必要な操作はすべて拒否されたものとして扱われ、安全性が保たれます。

エージェントは修正をどう確認しますか?

ブロックされた操作を繰り返し、今は許可されているか、まだ拒否されているかを確かめます。

詳細

作者による元の説明

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル