Corpus index build

From jmagly/aiwg · View interactive version

Corpus index build is an AI agent skill from the GitHub repository jmagly/aiwg. Render research-corpus markdown index views (by-topic, by-year, authors, citation-network, ...) from corpus state. As of #1490 these are rendered natively by `aiwg index build` — this skill points you at it.

How to use this skill

Skill file

Corpus Index Build

Render the human-readable markdown index views for a research corpus — by-topic,

by-year, authors, by-venue, by-method, by-model-size, training-pipeline,

citation-network, by-author, by-org, by-bridge, unprofiled-hubs.

As of #1490, aiwg index build renders these views natively. The former

standalone build.py has been retired; the JSON graph index and the markdown

views are now produced by a single command, in one process, from one config

(.aiwg/aiwg.config, #1491). There is no longer a "these are two different

things" split to manage.

How to build the views

aiwg index build            # JSON graphs + all configured markdown views
aiwg index build --all      # same (every configured view)
aiwg index build --graph by-topic     # a single view
aiwg index build --graph citation-network
aiwg index build --force    # re-render even when the source checksum is unchanged

Views render to the output path declared per manifest entry (default

indices/<name>.md). The command renders views only when the project has a

documentation/references/ corpus — it is a no-op in ordinary SDLC projects.

Triggers

In every case: run aiwg index build (optionally --graph <view> / --force).

Configuration

Views are declared under index.graphs.indices.manifest in .aiwg/aiwg.config

(JSON, validated against aiwg.config.v1.json; the legacy .aiwg/config.yaml

still works as a deprecated fallback — see #1491). Each manifest entry's name

selects the renderer and optional output sets the path:

{
  "index": {
    "graphs": {
      "indices": {
        "manifest": [
          { "name": "by-topic",         "output": "indices/by-topic.md" },
          { "name": "by-year",          "output": "indices/by-year.md" },
          { "name": "authors",          "output": "indices/authors.md" },
          { "name": "citation-network", "output": "indices/citation-network.md" }
        ]
      }
    }
  }
}

Supported renderer names — paper views: by-topic, by-year, authors,

by-venue, by-method, by-model-size, training-pipeline, citation-network,

by-author, by-org, by-bridge, unprofiled-hubs; **radar/discovery/funder

views (#1492)**: by-grade, radar-stale-queue, by-trajectory, by-source,

by-curator, by-funder. An unrecognized name fails the build (non-zero exit).

If the manifest is absent, a default set renders (by-topic, by-year,

authors, by-venue, by-method, training-pipeline, by-model-size);

citation-network is added when it is present as an index.graphs key. The

radar/discovery/funder views are opt-in (declare them in the manifest) — they

read radar sidecars, the citation discovery block, and funders[]

respectively (see the corpus data model).

What the views contain

(frontmatter topics override the classifier when present).

enriched table linking PROF-P-* people profiles when they exist.

spanning ≥2 affiliations.

Each view records a Source-Checksum: header; incremental builds skip a view

when its corpus checksum is unchanged (override with --force).

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.