permissions-debug

permissions-debug is a skill for Claude Code from shareAI-lab/Kode-CLI. It costs 53 tokens per session (437 once invoked), scanned A, original, Apache-2.0.

A troubleshooting guide for Kode permission prompts and denials, including tool allowlists and restrictions inherited by subagents.

In plain words
What is it for?
Use it to inspect approved tools, command-specific limits, fail-closed settings, and differences between the main agent and its subagents.
Why use it?
It helps identify why an action is blocked or why permission prompts keep repeating without bypassing safety checks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the SlashCommand tool.

Good fit Use it to inspect approved tools, command-specific limits, fail-closed settings, and differences between the main agent and its subagents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shareai-lab/kode-cli/permissions-debug
About the project

Kode is a command-line coding agent that helps people work with software projects through AI models and providers. Developers use it for coding tasks, project instructions, and delegating work to subagents across supported environments. The catalogue entries provide Kode-specific skills, agents, and instruction files.

shareAI-lab/Kode-CLI · 5,237 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shareAI-lab/Kode-CLI --skill permissions-debug
Clone the repo
git clone --depth 1 https://github.com/shareAI-lab/Kode-CLI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for permissions-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/shareai-lab/kode-cli/permissions-debug/github.svg)](https://agentmods.dev/skills/shareai-lab/kode-cli/permissions-debug)
Your own site
<a href="https://agentmods.dev/skills/shareai-lab/kode-cli/permissions-debug"><img src="https://agentmods.dev/badge/skills/shareai-lab/kode-cli/permissions-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for permissions-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/shareai-lab/kode-cli/permissions-debug"><img src="https://agentmods.dev/badge/skills/shareai-lab/kode-cli/permissions-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 437 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Privilege Escalation · line 11
    Skill requests more permissions than appear necessary for its stated functionality. Review if elevated access is justified.
    Fix: Request only the minimum permissions required. Document why each permission is needed. Remove broad permissions like '*' or 'all'.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00437
Opus 5.5 $0.00021 $0.00175
Sonnet 5.5 $0.00011 $0.00087
Haiku 4.5 $0.00005 $0.00044

Measured 3mo ago against content hash b42c9d3dfc6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

permissions-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/builtin-skills/skills/permissions-debug/SKILL.md · 38 lines

What it actually says

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.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 38 lines · 53 tokens per session scan A b42c9d3dfc6b

Subscribe to this mod's changes

permissions-debug is a skill published in the GitHub repository shareAI-lab/Kode-CLI (5,237 stars, last pushed 28d ago), licensed Apache-2.0. It adds 53 tokens to every session and 437 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

permissions-debug compared with skills from other repositories

permissions-debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
permissions-debugshareAI-lab/Kode-CLISkill5.2k28d agoApache-2.0A53Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16kyesterdayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7k4d agoMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9k3d agoApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill339todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
triaging-web-analytics-supportPostHog/posthogSkill41ktodaynoneA151Claude Code, Codex