skill-graph-audit
Audit Skill() refs; detect hubs, isolates, and dangling targets. Use when auditing skills.
What this skill does
# 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
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 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`
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.