Agent skill

data-audit

Report on data completeness for the SPARTA QRA pipeline (Control -> URL -> Knowledge -> QRA). Queries DuckDB to show coverage percentages at each stage.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/data-audit

Metadata

Additional technical details for this skill

project path
/home/graham/workspace/experiments/pi-mono/.agent/skills/data-audit
short description
SPARTA data completeness auditor.

SKILL.md

Data Audit

Audits the SPARTA pipeline data coverage.

Usage

bash
# Run full audit
.agent/skills/data-audit/run.sh

# Run for specific run ID (points to specific DB path if needed)
.agent/skills/data-audit/run.sh --run-id <run-id>

Logic

Connects to SPARTA DuckDB and calculates coverage for:

  1. Controls: Base set.
  2. URLs: Controls mapped to at least one URL.
  3. Knowledge: Controls mapped to URLs that have extracted chunks.
  4. QRA: Controls that have generated QRA pairs.

Visualization

After generating coverage data, offer to visualize via /create-figure:

bash
# Pipeline coverage as stacked bar chart
create-figure metrics --input audit.json --output coverage.png --type bar --title "SPARTA Pipeline Coverage"

# Coverage heatmap by category
create-figure heatmap --input audit.json --output coverage-heatmap.png

When to offer: After presenting coverage percentages, ask: "Want me to chart the pipeline coverage?"

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results