night-market-debugging-playbook

night-market-debugging-playbook is a skill for Claude Code from athola/claude-night-market. It costs 41 tokens per session (3,984 once invoked), scanned A, original, MIT.

A troubleshooting guide for recurring failures in the Night Market repository's hooks, continuous integration checks, and tests.

In plain words
What is it for?
Use it when a hook errors, a test or CI check fails unexpectedly, or Python environment and import-chain problems need to be diagnosed.
Why use it?
It maps known symptoms to previously identified causes and the single command that distinguishes them. This avoids repeating investigations for failures the repository has already documented.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md; mentions Claude Code.

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Good fit Use it when a hook errors, a test or CI check fails unexpectedly, or Python environment and import-chain problems need to be diagnosed.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 night-market-debugging-playbook

README.md
[![agentmods](https://agentmods.dev/badge/skills/athola/claude-night-market/night-market-debugging-playbook/github.svg)](https://agentmods.dev/skills/athola/claude-night-market/night-market-debugging-playbook)
Your own site
<a href="https://agentmods.dev/skills/athola/claude-night-market/night-market-debugging-playbook"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/night-market-debugging-playbook/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 night-market-debugging-playbook

Your own site · 80×15
<a href="https://agentmods.dev/skills/athola/claude-night-market/night-market-debugging-playbook"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/night-market-debugging-playbook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,984 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.
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.00041 $0.03984
Opus 5 $0.00020 $0.01992
Sonnet 5 $0.00008 $0.00797
Haiku 4.5 $0.00004 $0.00398

Measured 13d ago against content hash f64fb78a77d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

night-market-debugging-playbook 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 13d 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.

.claude/skills/night-market-debugging-playbook/SKILL.md · 368 lines

How it starts

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

Night Market Debugging Playbook

Match the symptom to a row, run the one discriminating command, apply the known fix. Every row below is a failure this repo has already paid for, with the commit hash that settled it. Do not re-derive a diagnosis that archaeology already produced.

Vocabulary

Terms used throughout, defined once:

  • Hook: a script Claude Code runs on events (PreToolUse, PostToolUse, Stop, SessionStart). Registered in a plugin's hooks/hooks.json with a command and a timeout.
  • Hook budget: that registered timeout in seconds. The harness kills the hook when it expires, before any output is honored.
  • Host interpreter: hooks run as python3 ... under the machine's system Python (floor: 3.9), NOT the repo's uv-managed 3.12 venv. Third-party packages a plugin declares are not guaranteed present.
  • skrills: optional Rust binary for skill validation and analysis. Every Makefile target that uses it has a Python fallback.
  • Import chain: everything a import x transitively pulls in, including the plugin's __init__.py.

Symptom index

# Symptom Likely cause Story
1 PreToolUse hook error / ModuleNotFoundError on every git commit Unguarded third-party import in a plugin __init__.py reachable from a hook 45dd77ef, 9bfc0a7a
2 python39-compat is the only failing CI check A 3.10+/3.11+ construct (datetime.UTC, bare X | Y union) entered a hook import chain 18c9340d, PR #511
3 Hook exits 0 but never does anything Hook reads CLAUDE_TOOL_* env vars instead of stdin JSON CHANGELOG 1.9.14
4 capabilities-sync CI fails plugin.json registrations drifted from the book reference capabilities-sync.yml
5 Root pytest raises ImportPathMismatchError Plugin tests collected from repo root instead of per plugin conftest.py, pyproject norecursedirs
6 slop-check fails on a PR Slop score over 3.0 in a docs/ or book/src/ markdown file slop-check.yml
7 Stop hook produces no verdict at all Inner subprocess timeout >= registered hook budget 268cff89
8 CI broken on a GitHub action or tool pin Stale or nonexistent pinned version f81d89a5, 25bf5a9d
9 Scanner reports nothing on input you know is bad Swallowed exception (except-and-continue) drops files silently 666171c3, b6de71cf
10 skrills: not found Missing optional binary (a Python fallback exists) Makefile validate-skills

Read the full file on GitHub · 368 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. 13d ago First seen · 368 lines · 41 tokens per session scan A f64fb78a77d9

Subscribe to this mod's changes

night-market-debugging-playbook is a skill published in the GitHub repository athola/claude-night-market (337 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 3,984 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

health-check

Runs plugin health checks (venv packages, skill registration, and album slug collisions). Use when the user asks to check plugin health, verify setup, or troubleshoot missing skills.

bitwize-music-studio/claude-ai-music-skills · 38 tokens

compress

Vault alignment engine. Detects and fixes 5 types of structural misalignments: broken backlinks, concept fragmentation, entity miscategorization, duplicated entities, and misnamed entities. Delegates all writes to /bedrock:preserve. Supports interactive mode (user confirmation) and cron mode (autonomous mechanical…

ccplugins/awesome-claude-code-plugins · 104 tokens

healthcheck

Read-only vault health diagnostic. Generates a report without modifying any files. Checks: graphify-out integrity, setup verification, orphan entities, dangling content, old content (>15 days). Safe to run at any frequency. Use when: "bedrock healthcheck", "bedrock-healthcheck", "vault health", "check vault", "vault…

ccplugins/awesome-claude-code-plugins · 80 tokens

fact-checker

Anti-hallucination discipline for any code that names an external symbol you aren't certain exists — a library function, method, config key, package version, CLI flag, env var, or endpoint. Before you call it, cite it, or import it, confirm it's real: grep the codebase, read the installed package's actual signature…

ccplugins/awesome-claude-code-plugins · 178 tokens

stop-digging

Anti-thrashing circuit-breaker. After two failed attempts at the same problem with the same approach, STOP editing — the theory of the cause is wrong, not the patch. Re-examine assumptions, add instrumentation, and trace from the source before touching code again, instead of re-trying variations of the fix that…

ccplugins/awesome-claude-code-plugins · 159 tokens

toy

Build a world the human drives until how a thing behaves is intuitive. Use when the user needs to hold how something behaves and reading has not made it intuitive.

saadshahd/moo.md · 34 tokens