Agent skill
corpus-health
Report on research corpus health, completeness, and integrity
Install this agent skill to your Project
npx add-skill https://github.com/jmagly/aiwg/tree/main/agentic/code/frameworks/sdlc-complete/skills/corpus-health
SKILL.md
Corpus Health Command
Assess the health and completeness of the research corpus at .aiwg/research/.
Instructions
When invoked, analyze the research corpus and report on its health:
-
Scan Corpus Structure
- Count sources in
.aiwg/research/sources/ - Count findings in
.aiwg/research/findings/ - Count quality assessments in
.aiwg/research/quality-assessments/ - Count provenance records in
.aiwg/research/provenance/records/
- Count sources in
-
Frontmatter Completeness
- Check each source for required frontmatter per @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/research/frontmatter-schema.yaml
- Report sources missing: ref_id, title, authors, year, DOI, key_findings
- Calculate completeness percentage
-
PDF Integrity
- Check
.aiwg/research/pdfs/for downloaded papers - Verify SHA-256 checksums against frontmatter
pdf_hashvalues - Report missing PDFs and checksum mismatches
- Check
-
Cross-Reference Integrity
- Verify all REF-XXX in findings reference valid sources
- Check for orphaned findings (no source reference)
- Check for orphaned sources (never cited in any artifact)
-
Staleness Check
- Flag sources with
last_verified> 90 days old - Flag DOIs that haven't been re-verified
- Report sources needing refresh
- Flag sources with
-
Evidence Gaps
- Load
.aiwg/research/TODO.mdfor planned research - Count unresolved evidence gaps
- Report gap severity distribution
- Load
-
Generate Health Report
- Summary dashboard with pass/warn/fail indicators
- Detailed findings per category
- Action items prioritized by severity
Arguments
--brief- Show summary only--fix- Attempt to fix frontmatter gaps and regenerate checksums--report- Save report to.aiwg/reports/corpus-health.md
References
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/research/frontmatter-schema.yaml - Frontmatter requirements
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/research/fixity-manifest.yaml - Fixity verification
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/research-metadata.md - Research metadata rules
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/citation-verifier.md - Citation Verifier agent
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
research-document
Generate summaries and literature notes from research papers
research-archive
Package research artifacts for long-term archival
research-cite
Format citations and generate bibliographies
induct-research
Induct research sources into a research repository. Point at an issue, a single file, a directory of papers, or a URI and the skill reads, annotates, and files structured induction tasks — one per source. Similar to address-issues but for research corpora instead of code backlogs.
research-provenance
Query provenance chains and artifact relationships
research-quality
Assess source quality using GRADE methodology
Didn't find tool you were looking for?