用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/athola/claude-night-market --skill skill-graph-audit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | skill-graph-audit |
| role | library |
| description | Audit Skill() refs; detect hubs, isolates, and dangling targets. Use when auditing skills. |
| category | skill-management |
| alwaysApply | false |
| tools | [] |
| modules | ["modules/usage.md","modules/interpretation.md"] |
Build a directed graph of Skill(plugin:name) invocations across the
marketplace and surface composition patterns: which skills are heavily
referenced (hubs), which orchestrate many others (orchestrators), which
have no incoming or outgoing references (isolates), and which point at
non-existent skills (dangling references).
The federation graph is now derivable from source rather than hand-curated.
Skill() referencesSkill(abstract:skills-eval) insteadSkill(abstract:plugin-review)Skill(abstract:hooks-eval)python3 plugins/abstract/scripts/skill_graph.py \
--plugins-root plugins --top-n 10
For machine-readable output:
python3 plugins/abstract/scripts/skill_graph.py \
--plugins-root plugins --format json --output reports/skill-graph.json
See modules/usage.md for full CLI reference and example workflows.
| Output | Meaning | Action when high |
|---|---|---|
| Hubs | Most-referenced skills | Treat as core API; retire with extreme care |
| Orchestrators | Skills that call many others | Verify each ref still resolves |
| Isolates | Zero in / zero out | Check role: library? entrypoint? typo? |
| Dangling: bugs | Missing internal target | Fix immediately (typo or retired skill) |
| Dangling: external | Reference to external plugin | Document plugin dependency |
| Dangling: placeholders | Template text like -NAME | Verify intentional |
See modules/interpretation.md for false-positive guidance and
isolation taxonomy.
This skill itself was scaffolded TDD-first; on first run against
plugins/, it caught two genuine dangling refs that the manual
audit (2026-04-25) had missed:
attune:makefile-generation -> abstract:makefile-dogfooder
(script name confused with skill name)imbue:karpathy-principles -> spec-kit:speckit-clarify
(command referenced as skill)Both were converted to correct command-style references in the same session.
Two ways to validate the audit output is trustworthy:
pytest -o addopts= plugins/abstract/tests/scripts/test_skill_graph.py to confirm
extraction, graph construction, ranking, isolate detection, and
dangling-ref classification all pass on the current code. The
-o addopts= flag bypasses the package-wide coverage gate, which
would otherwise fail on a single-file run.skill_graph.py runs against plugins/
without error and emits a node/edge count.Core Outputs rows resolve).Dangling: bugs entry is either fixed in the same
session or filed as a tracked issue.pytest -o addopts= plugins/abstract/tests/scripts/test_skill_graph.py
passes.Skill(abstract:skills-eval): per-skill quality scoringSkill(abstract:plugin-review): plugin manifest and structureSkill(abstract:hooks-eval): hook-specific validationSkill(abstract:rules-eval): rules directory validationplugins/abstract/scripts/skill_graph.pyplugins/abstract/tests/scripts/test_skill_graph.pydocs/quality-gates.md#skill-level-quality-gate-compositiondocs/skill-integration-guide.md#skill-role-taxonomyTurn hunches into accepted results: worthiness score, evidence bar, research-to-rules. Use when vetting ideas. Not for QA; use night-market-validation-and-qa.
Generates and self-executes a diff-derived test plan for a PR. Use when validating PR changes before merge. Do not use for code review; use sanctum:pr-review.
Curate the web-capture index. Use when the capture backlog grows, captures sit unprocessed at seedling/pending, or to surface stored research during work.