jmagly/aiwg/corpus-snapshot
Claude Code and agent skill by jmagly/aiwg
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
Generate a corpus snapshot report — computes dimensions, topology, degree distribution, delta from previous. Helps with cluster, chain, and gap analysis sections.
Install
npx vskill@latest install jmagly/aiwg/corpus-snapshotSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jmagly/aiwg/corpus-snapshot.
Corpus Snapshot
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:
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.
Triggers
- "take a corpus snapshot"
- "generate corpus report"
- "snapshot the research"
- "corpus snapshot"
/corpus-snapshot
Parameters
--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).
Prerequisites
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.
Execution Flow
Phase 1: Collect Raw Metrics
Scan the corpus and compute:
Dimensions:
- Total papers (node count)
- Total citation edges (edge count)
- Topics (unique tag count)
- Authors (unique author count)
- Year range (oldest → newest)
- Source types distribution
Topology (from citation-network index):
- Graph density: edges / (nodes * (nodes-1))
- Average degree (mean edges per node)
- Max hub (node with most connections)
- Connected components count
- Isolated nodes (degree 0)
- Diameter estimate (longest shortest path in largest component)
Degree Distribution:
- Histogram: how many nodes have degree 0, 1-2, 3-5, 6-10, 11-20, 20+
- Power law fit (if applicable)
Quality Distribution:
- GRADE breakdown: High / Moderate / Low / Very Low
- Doc depth: Full / Adequate / Stub / Skeleton (from quality-audit)
- Source availability: PDF present / Full text extracted / Missing
Phase 2: Compute Delta (if previous snapshot exists)
Compare current metrics against the most recent snapshot:
Phase 3: Fill Template Sections
Read the snapshot template and fill sections:
`[COMPUTE]` sections — fully automated:
- Dimensions table
- Topology metrics
- Degree distribution histogram
- GRADE distribution
- Delta table
`[ANALYZE]` sections — agent-assisted:
- Cluster narrative: describe the main clusters and their themes
- Chain analysis: identify citation chains (A→B→C→D) and their significance
- Gap narrative: summarize disconnected areas and bridge opportunities
- Trend analysis: what's growing, what's stagnant
Phase 4: Write Report
Write the completed snapshot to:
With frontmatter:
Phase 5: Report Summary
Template Format
The default template uses markers for computed vs analyzed sections:
Integration Points
| 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 |
Fortemi Core Migration Note
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.
Examples
References
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/skills/corpus-index-build/SKILL.md — Index metrics source
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/skills/research-quality-audit/SKILL.md — Depth distribution source
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/skills/citation-backfill/SKILL.md — Prerequisite for topology
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/skills/research-gap-detect/SKILL.md — Cluster data for narrative
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/skills/research-status/SKILL.md — Health scoring complement
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagentic/code/plugins/research/skills/corpus-snapshot/SKILL.md
Popularity
- Repository stars
- 161
- Repository forks
- 25
- Repository npm downloads, 7 days
- 9,610
- 7-day trend score
- 47
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 3 Oct 2026, a month ago.
Extension points
templateCustom templates for code generation
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jmagly/aiwg/corpus-snapshot)