AI & agents · Review & audit
skill-graph-audit
/skill-graph-audit
Audit Skill() refs; detect hubs, isolates, and dangling targets. Use when auditing skills.
- Author
- athola ↗
- Repository
- claude-night-market ↗
- Licence
- MIT
- Last repository change
- 01.10.2026
Assessment and security
100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 01.10.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Audit Skill() refs; detect hubs, isolates, and dangling targets. Use when auditing skills.
Original author description
Audit Skill() refs; detect hubs, isolates, and dangling targets. Use when auditing skills.
How it works
- Overview
- When To Use
- When NOT To Use
- Quick Start
- Core Outputs
- Dogfood Evidence
- Verification
- Exit Criteria
- Related Skills
- References
Original SKILL.md headings · 123 lines, 625 words
SKILL.md preview
---
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
```bash
# 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:
```bash
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`
Files in this package (3)
- SKILL.md 5 KB
- modules/interpretation.md 4 KB
- modules/usage.md 2 KB
Versions
The database has no other skills named skill-graph-audit.
Database snapshot: 13.11.2026 · package version bcac46837cf3 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100skill-atlas
Graph, categorize and visualize the installed Claude Code skill collection. Use when the user wants to map, audit or categorize their skills, move skills into the searchable tier, or asks which skills are broken, dangling, dead, disabled or duplicated — and for any mention of… - 100skill-stocktake
Audit the skill inventory for quality, coverage, and staleness. Detect overlapping, incomplete, or outdated skills and produce a health report. Activate when: skill audit, stocktake, skill inventory, check skills, which skills exist, audit skills, skill quality, skill coverage. - 100update-agent-config
Use if auditing AGENTS.md/CLAUDE.md/REVIEW.md for drift after refactors — stale refs, rules. - 100audit-skill-conflicts
Read-only audit of a skill pack for contradictory directives, overlapping triggers, stale cross-refs, and context bloat. Use when "audit my skills", "conflicting skills", "wrong skill triggered", or after adding a batch. Authoring → meta-skill-creator. - 100skills-eval
Evaluate Claude skill quality through auditing. Use when reviewing or auditing skills. - 100vibe-skill-audit
Use when the user wants to create, update, review, or audit a repo-local Vibe skill under `skills/`, mentions "/vibe-skill-audit", "vibe-skill", "vibe skill", "创建 skill", "审查 skill", "skill 文案", or "自动匹配语义", or needs a Vibe-specific wrapper around `skill-creator` rather than a…