/research:corpus-snapshotfrom research
Generates a corpus snapshot report with dimensions, topology, degree distribution, and delta tracking. Useful for cluster, chain, and gap analysis.
Ships in research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate a point-in-time snapshot of the research corpus with computed metrics and analysis. Reads a snapshot template, fills [COMPUTE] sections with data, assists with [ANALYZE] sections, and writes the completed report.
Use the native CLI first:
aiwg corpus snapshot [--compute-only] [--delta-only] [--template <path>] \
[--format full|summary|json] [--out <path>] [--date <YYYY-MM-DD>] [--write]
The command is backed by the declarative Flow playbook at
agentic/code/frameworks/research-complete/flows/corpus-snapshot.playbook.yaml.
The skill remains the orchestration wrapper for narrative [ANALYZE] sections.
/corpus-snapshot--compute-only (optional)Only compute data sections — skip analysis sections. Faster, fully automated.
--delta-only (optional)Only compute the delta from the previous snapshot. Useful for tracking session progress.
--template <path> (optional)Custom template path. Default: .aiwg/reports/corpus-snapshot-template.md.
--format (optional)Output format: full (default for the report file), summary (terminal), json (programmatic).
Before generating a snapshot, the following should be current:
| Prerequisite | Command | Gates on |
|---|---|---|
| Citation edges complete | /citation-backfill | Topology metrics |
| Indices up to date | /corpus-index-build | Group counts, hub analysis |
| Stub rate < 10% | /research-quality-audit | Snapshot validity |
If prerequisites are stale, the snapshot will include warnings.
Scan the corpus and compute:
Dimensions:
Topology (from citation-network index):
Degree Distribution:
Quality Distribution:
Compare current metrics against the most recent snapshot:
Delta from previous snapshot (2026-04-10):
Papers: +12 (360 → 372)
Edges: +87 (1,160 → 1,247)
Density: +0.001 (0.008 → 0.009)
New topics: +2 (gui-agents, code-generation)
Stubs fixed: 23 (88 → 65)
New hubs: REF-364 (entered top 10)
Read the snapshot template and fill sections:
[COMPUTE] sections — fully automated:
[ANALYZE] sections — agent-assisted:
Write the completed snapshot to:
.aiwg/reports/corpus-snapshot-YYYY-MM-DD.md
With frontmatter:
---
type: corpus-snapshot
date: 2026-04-13
papers: 372
edges: 1247
density: 0.009
components: 9
stub_rate: 0.17
previous: corpus-snapshot-2026-04-10.md
---
Corpus Snapshot Generated
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Papers: 372 (+12) | Edges: 1,247 (+87)
Density: 0.009 | Components: 9
Hub: REF-016 (34) | Isolated: 3
GRADE: 33% High, 24% Mod, 26% Low, 16% VLow
Stubs: 65 (17%) | Full text: 54%
Delta highlights:
+12 papers inducted
+87 citation edges (backfill)
-23 stubs (expanded)
+2 new topics
Written to: .aiwg/reports/corpus-snapshot-2026-04-13.md
The default template uses markers for computed vs analyzed sections:
# Corpus Snapshot — [DATE]
## Dimensions
[COMPUTE: dimensions-table]
## Topology
[COMPUTE: topology-metrics]
## Degree Distribution
[COMPUTE: degree-histogram]
## Quality Distribution
[COMPUTE: grade-distribution]
[COMPUTE: depth-distribution]
## Delta
[COMPUTE: delta-from-previous]
## Cluster Analysis
[ANALYZE: describe main clusters, their themes, and notable papers]
## Citation Chains
[ANALYZE: identify significant citation chains and their meaning]
## Gaps and Opportunities
[ANALYZE: summarize disconnected areas and bridge opportunities]
## Recommendations
[ANALYZE: what should be inducted next, what needs expansion]
| Component | Relationship |
|---|---|
corpus-index-build | Reads index metrics (topology, hubs, components) |
research-quality-audit | Reads depth distribution; gates if stub rate > 10% |
citation-backfill | Must run before snapshot for accurate topology |
research-gap-detect | Cluster data feeds into gap narrative |
research-status | Snapshot is the detailed version of the health score |
By the #1690 boundary decision, corpus snapshots remain AIWG-rendered from
corpus sidecars, corpus views, and the local .aiwg/.index artifacts. Fortemi
v2 projects the underlying research and KB records for search and traversal;
it does not replace the snapshot renderer. The golden corpus-view fixtures
remain the parity contract for REF/PROF, citation, profile, radar, discovery,
and quality metrics.
# Full snapshot
aiwg corpus snapshot --write
# Just data, no analysis sections
aiwg corpus snapshot --compute-only --write
# Delta from previous snapshot only
aiwg corpus snapshot --delta-only
# Custom template
aiwg corpus snapshot --template .aiwg/reports/custom-template.md --write
# JSON metrics for dashboards
aiwg corpus snapshot --format json
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jmagly/aiwg --plugin research42 skills in this plugin
/best-practices-auditResearch-grounded validation of a target (file, directory, or topic) against external best practices and vendor docs. Produces a cited, evidence-grounded comparison./citation-backfillRebuild bidirectional citation edges in a research corpus. Scans outgoing citations, computes the inverse map, rewrites incoming tables. Fixes one-directional graphs./corpus-exportPackage corpus subsets as distribution archives. Filter by cluster, topic, REF range, or custom expression; bundles PDFs, analysis, citations, and BibTeX into tar.gz.Other plugins' skills for the same job