night-market-diagnostics-toolkit

night-market-diagnostics-toolkit is a skill for Claude Code from athola/claude-night-market. It costs 40 tokens per session (3,028 once invoked), scanned A, original, MIT.

A toolkit for measuring the health of a software repository with diagnostic scripts. It explains checks that produce counts or pass/fail results, including ratchets that prevent existing problems from increasing.

In plain words
What is it for?
Use it to run repository health checks, inspect skill-graph or description problems, review token statistics, and check for dependency issues. It is not for running tests.
Why use it?
It replaces subjective inspection with repeatable measurements and shows how to interpret tolerated existing issues versus new violations.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/check_skill_graph_drift.py; python3 scripts/check_skill_exit_criteria_drift.py.

Good fit Use it to run repository health checks, inspect skill-graph or description problems, review token statistics, and check for dependency issues. It is not for running tests.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/athola/claude-night-market
agentmods
npx agentmods add skills/athola/claude-night-market/night-market-diagnostics-toolkit

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-diagnostics-toolkit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/athola/claude-night-market/night-market-diagnostics-toolkit"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/night-market-diagnostics-toolkit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,028 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.00040 $0.03028
Opus 5.5 $0.00016 $0.01211
Sonnet 5.5 $0.00008 $0.00606
Haiku 4.5 $0.00004 $0.00303

Measured 13d ago against content hash 17ae96e0362e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

night-market-diagnostics-toolkit 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/health-snapshot.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.

.claude/skills/night-market-diagnostics-toolkit/SKILL.md · 191 lines

How it starts

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

Night Market Diagnostics Toolkit

Measure instead of eyeballing. Every claim about the health of this repo ("the skill graph is clean", "descriptions fit the budget", "no compromised dependencies") has a script that produces a number or a PASS/FAIL. This skill catalogs those scripts, their exact invocations, and how to read their output.

Conventions for everything below:

  • Run all commands from the repo root.
  • Plain python3 is enough for every script in the table except mutation testing, which needs uv.
  • All checks here are read-only. None of them mutate the repo.

The ratchet-baseline concept

Several checks are ratchets. A ratchet check counts a category of existing debt (for example, SKILL.md files missing an Exit Criteria section), compares the live count against a frozen number in a baseline JSON file, and:

  • passes while the live count is at or below the baseline (pre-existing debt is tolerated),
  • fails the moment a NEW violation pushes the count above the baseline (debt may not grow),
  • nudges you to lower the baseline number when the live count drops (locking in the win so the debt cannot silently return).

The goal is a baseline that only shrinks, eventually to zero. The two ratchet baselines are at scripts/skill_graph_baseline.json (keys max_dangling_bugs, max_uncalled_libraries) and scripts/skill_exit_criteria_baseline.json (key max_missing_exit_criteria). When a ratchet prints a "dropped to N (baseline M). Lower ... to lock the win." line, edit the baseline JSON down to N in the same PR.

Tool table

Jargon used in the table: "dangling Skill() ref" means a Skill(plugin:name) reference in a skill/command/agent file whose target skill does not exist. "Uncalled library" means a library-role skill no other skill invokes (the risk targeted by .claude/rules/shared-utility-consumer-rule.md).

Tool Invocation What it measures How to interpret When to run
Plugin structure validator python3 plugins/abstract/scripts/validate_plugin.py plugins/<name> plugin.json validity, kebab-case naming, directory layout Exit 0 with "Plugin validation passed". Any FAIL line names the broken file Before committing plugin changes. make validate-all loops it over every plugin
Skill-graph drift ratchet python3 scripts/check_skill_graph_drift.py Dangling Skill() refs and uncalled libraries vs skill_graph_baseline.json Exit 0 at/below baseline. Nonzero exit lists the new dangling refs. "Lower ... to lock the win" means shrink the baseline After adding, renaming, or deleting skills or Skill() refs
Exit-criteria drift ratchet python3 scripts/check_skill_exit_criteria_drift.py SKILL.md files under plugins/ missing an ## Exit Criteria heading vs skill_exit_criteria_baseline.json Same ratchet semantics as above After adding or editing any SKILL.md
Pinned-version checker python3 scripts/check_pinned_versions.py GitHub-sourced tool pins vs the latest upstream release (needs network) "N pin(s) current" is healthy. A "holding X at ..." line documents an intentional hold with its reason (for example bandit 1.8.6 for the Python 3.9 hook floor) In pre-commit, and whenever a CI tool-setup step breaks
Capabilities sync bash scripts/capabilities-sync-check.sh plugin.json registrations vs the generated capabilities reference in book/src/ "PASSED: All capabilities are in sync" plus counts. On drift, run /sanctum:sync-capabilities --fix After changing any skill, command, or agent registration
Supply-chain scan python3 scripts/supply_chain_scan.py Lockfiles vs the known-compromised-versions blocklist, plus known malicious artifacts Two [OK] lines is clean. Any hit must be resolved before release When adding dependencies, during incidents, before releases
Token stats python3 plugins/abstract/scripts/context_optimizer.py stats plugins/ --format json Bytes and estimated tokens per SKILL.md, bucketed small/medium/large Skills over ~5,000 estimated tokens breach the quality-gates file limit and are split candidates When a skill feels bloated, before modularizing
Description budget python3 plugins/abstract/scripts/validate_budget.py Sum of all skill/command description characters vs the 90,000-char ecosystem ceiling (ADR-0004, 160 chars per description) Prints used/ceiling and headroom. Exit 0 means within budget After editing any frontmatter description
skrills validate skrills validate --skill-dir plugins --target claude Skill frontmatter validity per target framework (Claude, Codex, Copilot) "Validated N skills: ..." then an Errors (n): list with file:line. Fix every listed error Skill audits. make validate-skills falls back to uv run python scripts/check_plugin_hooks.py when skrills is absent
skrills analyze skrills analyze --skill-dir plugins Skill token usage and dependency structure Large-token outliers are split candidates Budget planning. make analyze-skills falls back to scripts/generate_dependency_map.py
Mutation testing cd plugins/<name> && uv run mutmut run --paths-to-mutate=scripts/,src/ --tests-dir=tests/ Whether the test suite kills injected code mutations (surviving mutants = untested behavior) Exit 0 = no survivors. Exit 2 = survivors found (CI treats this as pass-with-report). Any other exit = crash, investigate Weekly CI (Sunday) or manually before hardening a test suite
Markdown link checker python3 scripts/check-markdown-links.py [file.md ...] Broken relative links and anchors. No args = scan the whole repo Exit 1 prints each broken link as file: link After moving or renaming docs or skills
Lint-suppression guard python3 scripts/check_noqa.py <files...> Inline lint/type suppressions that lack a stated reason "BLOCKED" plus a hit list. Fix the issue, or append a reason after the suppression marker Pre-commit runs it on changed files
Docstring quality python3 scripts/check_docstring_quality.py <files.py...> Docstrings that merely restate the function name Each hit says "delete it or add information". Do exactly that Pre-commit runs it on changed Python files
JSON-utils drift bash scripts/shared/check-json-utils-drift.sh Vendored JSON helper copies in plugin hooks vs the canonical scripts/shared/json_utils.sh "OK: all vendored JSON utilities match canonical." Anything else names the drifted copy After editing json_utils.sh or any inlined copy
Export stats python3 scripts/clawhub_export.py --stats Skill counts per plugin and top-20 membership for cross-framework export Totals line plus a per-plugin table Before cross-framework publishing
Framework detect python3 scripts/framework_detect.py [--json] Which agent-framework capabilities the current directory exposes (skills, agents, hooks, commands, mcp, a2a) [+]/[-] capability checklist When debugging cross-framework export targets

Read the full file on GitHub · 191 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -1 lines 17ae96e0362e
  2. 16d ago Changed 20d95a145029
  3. 1mo ago Changed · -11 lines 6e35f42e8ce1
  4. 3mo ago First seen · 203 lines · 40 tokens per session scan A 0b621a8db4ab

Subscribe to this mod's changes

night-market-diagnostics-toolkit is a skill published in the GitHub repository athola/claude-night-market (358 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 3,028 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

night-market-diagnostics-toolkit compared with skills from other repositories

night-market-diagnostics-toolkit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
night-market-diagnostics-toolkitathola/claude-night-marketSkill358yesterdayMITA40Claude Code
health-checkbitwize-music-studio/claude-ai-music-skillsSkill7234d agoCC0-1.0A38Claude Code
compressccplugins/awesome-claude-code-pluginsSkill1.0k3mo agoApache-2.0A104Claude Code
healthcheckccplugins/awesome-claude-code-pluginsSkill1.0k3mo agoApache-2.0A80Claude Code
toysaadshahd/moo.mdSkill38yesterdayMITA34Claude Code
fact-checkerccplugins/awesome-claude-code-pluginsSkill1.0k3mo agoApache-2.0A178Claude Code
stop-diggingccplugins/awesome-claude-code-pluginsSkill1.0k3mo agoApache-2.0A159Claude Code