skill-debug

skill-debug is a skill for Claude Code, Codex from yknothing/skills-refiner. It costs 38 tokens per session (3,424 once invoked), scanned A, original, MIT.

A diagnostic guide for examining whether locally installed agent skills are discoverable, activated, and represented by local usage evidence.

In plain words
What is it for?
Checking discovery locations, activation canaries, usage patterns, and installed skill identities that have no recorded local evidence.
Why use it?
It separates observed local signals from stronger claims about whether a platform loaded or followed a skill. This helps investigate missing or seemingly inactive skills without treating non-use as proof of a problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

Good fit Checking discovery locations, activation canaries, usage patterns, and installed skill identities that have no recorded local evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yknothing/skills-refiner/skill-debug
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 yknothing/skills-refiner --skill skill-debug
Clone the repo
git clone --depth 1 https://github.com/yknothing/skills-refiner

Made for: Claude Code, Codex.

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 skill-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/yknothing/skills-refiner/skill-debug/github.svg)](https://agentmods.dev/skills/yknothing/skills-refiner/skill-debug)
Your own site
<a href="https://agentmods.dev/skills/yknothing/skills-refiner/skill-debug"><img src="https://agentmods.dev/badge/skills/yknothing/skills-refiner/skill-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 skill-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/yknothing/skills-refiner/skill-debug"><img src="https://agentmods.dev/badge/skills/yknothing/skills-refiner/skill-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,424 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 warn 7 Sept 2026
SkillSpector: 4 findings, up to high

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 →

  • high Rogue Agent · line 21
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • medium Agent Snooping · line 67
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 113
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 119
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00038 $0.03424
Opus 5.5 $0.00015 $0.01370
Sonnet 5.5 $0.00008 $0.00685
Haiku 4.5 $0.00004 $0.00342

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

Security

Grade A, and why

skill-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 1mo ago.

The scan reads SKILL.md. This mod also ships 15 executable files (bin/pi-skill-catalog.mjs, bin/skill-canary.sh, bin/skill-dashboard.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/skill-debug/SKILL.md · 259 lines

How it starts

The opening of the file, as written. The whole thing — 259 lines — stays where its author put it; the contents beside it link to each section on GitHub.

skill-debug

You are a skill observability advisor. Your job is to help users understand what local evidence exists about their skills: likely discovery surfaces, canary activations, and usage patterns. Do not overstate these signals as platform-level proof of loading, obedience, or outcome quality.

Philosophy

  1. Observe, don't assume. The tools collect facts about skill discovery and activation. You interpret patterns and correlate them with the user's actual experience.
  2. Respect the topology. Skills are installed to ~/.agents/skills/ and symlinked to agent directories. Symlinks pointing to the same source are distribution links, not redundancy. The probe must distinguish symlinks from real duplicates.
  3. No false alarms. A skill with no observed activation may simply not have been needed. "Not observed" is an observation, not a verdict. Cross-reference with the user's actual workflow before recommending removal.

Running tools from an agent session

When you have shell access and the user asks for discovery diagnostics, activation statistics, or a general skills health snapshot:

  • Prefer executing read-only scripts yourself (skills-refiner-doctor.sh, skill-probe.sh, skill-dashboard.sh) rather than instructing the user to run them manually.
  • Do not run skill-trace.sh --inject / --inject-dir / --strip / --strip-dir unless the user explicitly asks to modify skills on disk for canary tracing.

One-shot read-only snapshot:

bash ~/.agents/skills/skill-debug/bin/skills-refiner-doctor.sh
bash ~/.agents/skills/skill-debug/bin/skills-refiner-doctor.sh --json
bash ~/.agents/skills/skill-debug/bin/skills-refiner-doctor.sh --lang zh
bash ~/.agents/skills/skill-debug/bin/skills-refiner-doctor.sh --raw

The Problem

Agent skills are "fire and forget" by design. You install them, hope the agent finds them, and have limited ways to verify:

  • Is the skill present on a local discovery surface this diagnostic knows how to scan?
  • Was the canary command observed during a skill-guided run?
  • Did the agent appear to follow the skill's instructions?
  • Which installed skill identities have observed canary events vs. no local canary evidence?

Read the full file on GitHub · 259 lines

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. 1mo ago Changed · +32 lines 559f29dc7568
  2. 2mo ago Changed · +8 lines b2858bc5df50
  3. 2mo ago First seen · 219 lines · 38 tokens per session scan A b4606dbafcf2

Subscribe to this mod's changes

skill-debug is a skill published in the GitHub repository yknothing/skills-refiner (24 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 3,424 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

skill-debug compared with skills from other repositories

skill-debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skill-debugyknothing/skills-refinerSkill241mo agoMITA38Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
cwv-optimizeradobe/skillsSkill326todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex
triaging-web-analytics-supportPostHog/posthogSkill41ktodaynoneA151Claude Code, Codex