Skip to content
Development
Skill

/skill-graph-audit

Audit Skill() refs; detect hubs, isolates, and dangling targets. Use when auditing skills.

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill skill-graph-audit --agent claude-code

SKILL.md

skill-graph-audit.SKILL.md
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

Skill Graph Audit

Overview

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.

When To Use

  • Before a documentation pass on skill composition
  • After a renaming or retirement to catch broken `Skill()` references
  • During quarterly audits to spot orphaned skills
  • When evaluating consolidation candidates (hubs are higher-risk to merge)
  • When a new skill's outbound references should be sanity-checked

When NOT To Use

  • For per-skill quality scoring, use `Skill(abstract:skills-eval)` instead
  • For frontmatter/structure validation, use `Skill(abstract:plugin-review)`
  • For hook-specific audits, use `Skill(abstract:hooks-eval)`

Quick Start

# Positive control first. The fixture tree has a known answer (1
# bug-class dangling ref, 1 isolate, 2 edges); a regex that stopped
# matching would report plugins/ as clean, and this catches it.
uv run pytest -o addopts= -q plugins/abstract/tests/scripts/test_skill_graph.py -k Planted

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.

Core Outputs

| 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.

Dogfood Evidence

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.

Verification

Two ways to validate the audit output is trustworthy:

1. **Test-suite correctness check**: Run `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. 2. **Round-trip smoke check**: Note the dangling-ref count from a baseline run, fix one or more flagged references, then rerun and verify the count drops by at least the number fixed. If the count does not move, the report is stale or the regex missed a syntax variant.

Exit Criteria

  • [ ] The planted fixture test passed before the audit ran; a clean

report on `plugins/` is not reportable without it

  • [ ] The graph builds: `skill_graph.py` runs against `plugins/`

without error and emits a node/edge count.

  • [ ] Dangling references are classified into bugs, external, and

placeholders (the three `Core Outputs` rows resolve).

  • [ ] Every `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.

  • [ ] The round-trip smoke check shows the dangling-ref count drops

by at least the number of references fixed.

Related Skills

  • `Skill(abstract:skills-eval)`: per-skill quality scoring
  • `Skill(abstract:plugin-review)`: plugin manifest and structure
  • `Skill(abstract:hooks-eval)`: hook-specific validation
  • `Skill(abstract:rules-eval)`: rules directory validation

References

  • Implementation: `plugins/abstract/scripts/skill_graph.py`
  • Tests: `plugins/abstract/tests/scripts/test_skill_graph.py`
  • Composition documentation:

`docs/quality-gates.md#skill-level-quality-gate-composition`

  • Skill role taxonomy: `docs/skill-integration-guide.md#skill-role-taxonomy`
Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about skill-graph-audit.

Which coding agents can use skill-graph-audit?
skill-graph-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.