- name
SKILL.md
技能文件保留在发布者的仓库中。
在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add athola/claude-night-market --skill night-market-diagnostics-toolkit -a cursor -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add athola/claude-night-market --skill night-market-diagnostics-toolkit -a claude-code -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add athola/claude-night-market --skill night-market-diagnostics-toolkit -a codex -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add athola/claude-night-market --skill night-market-diagnostics-toolkit -a grok -y在 Grok Bot 聊天中发送复制的消息。Bot 会从 GitHub 获取这个 SKILL.md,并添加到你所有 Bot 共享的技能中。
Install this skill: https://github.com/athola/claude-night-market/tree/HEAD/.claude/skills/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:
/home/alext/claude-night-market).python3 is enough for every script in the table except
mutation testing, which needs uv.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:
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.
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).
stats on a directory with
no --format flag produces empty output and exit 0. Always pass
--format json (clean JSON) rather than --format table, which
dumps a raw Python dict.scripts/check_skill_graph_drift.py itself (plus the _comment
in scripts/skill_graph_baseline.json) instructs you to raise
max_uncalled_libraries to record the 30-day consumer grace
period that .claude/rules/shared-utility-consumer-rule.md
grants (the rule grants the grace period, and the script defines the
baseline mechanics). night-market-architecture-contract records
the same exception in its ratchet invariants..github/workflows/mutation-testing.yml) treats exit 0 and
exit 2 as success and posts survivors to the step summary. Only
exits other than 0 and 2 fail the workflow. So a green mutation
run does NOT mean zero survivors. Read the report.scripts/health-snapshot.sh (in this skill directory) runs the six
cheap checks and prints a PASS/FAIL table. It is read-only,
needs only bash and python3, requires no network, and completes in
about 6 seconds (measured 2026-07-02).
bash .claude/skills/night-market-diagnostics-toolkit/scripts/health-snapshot.sh
It runs: plugin structure validation (all plugins), capabilities sync, supply-chain scan, both drift ratchets, and the description budget. Exit 0 means all six passed. Exit 1 means at least one failed, and the failing check's full output is printed to stderr above the table. Run it at session start, before a PR, and after any bulk skill edit.
Which failures stop a merge and which are signals:
bash .claude/skills/night-market-diagnostics-toolkit/scripts/health-snapshot.sh
runs from the repo root, prints a six-row PASS/FAIL table,
and exits 0 when all checks pass and 1 when any fails..pre-commit-config.yaml
entries..github/workflows/mutation-testing.yml.Compiled 2026-07-02 against repo v1.9.15 on branch discussions-fix-1.9.14. Volatile numbers observed that day: 197 skills, 134 commands, 56 agents registered; description budget 73,135 of 90,000 chars used (81.3%); ratchet live counts 5 dangling refs (baseline 31), 7 uncalled libraries (baseline 8), 1 missing Exit Criteria (baseline 127); 13 version pins current with bandit intentionally held at 1.8.6.
Re-verification one-liners:
# Baselines and live ratchet counts
python3 scripts/check_skill_graph_drift.py; python3 scripts/check_skill_exit_criteria_drift.py
# Registration counts and budget usage
bash scripts/capabilities-sync-check.sh | tail -3; python3 plugins/abstract/scripts/validate_budget.py | tail -3
# Pre-commit wiring of the blocking table
rg -n "check_skill_graph_drift|check_noqa|validate_budget|check_pinned_versions" .pre-commit-config.yaml
# Mutation exit-code contract
rg -n "exit_code" .github/workflows/mutation-testing.yml
Run and interpret repo diagnostic scripts (ratchets, validators, token stats). Use when measuring health. Do not use to run tests; use night-market-operations.
---name: night-market-diagnostics-toolkitdescription: Run and interpret repo diagnostic scripts (ratchets, validators, token stats). Use when measuring health. Do…---# .claude/skills/night-market-diagnostics-toolkit/SKILL.md常见问题
从发布者处下载 .claude/skills/night-market-diagnostics-toolkit/SKILL.md,或复制路径后打开仓库。PlugMCP 只收录该技能,不托管文件。
发布者将它存放在 https://github.com/athola/claude-night-market。
Claude、Cursor、Codex 和 Grok Build 可以读取你从发布者仓库添加的 SKILL.md。在聊天中发送技能的 GitHub 文件夹链接,Grok Bot 就会安装它。