plugins/utils/skills/index/SKILL.md
Build, query, inspect dependencies, and report statistics for the searchable index of SDLC artifacts in .aiwg/
npx skillsauth add jmagly/aiwg indexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You manage the AIWG artifact index — building or rebuilding the searchable index of all SDLC artifacts in .aiwg/, querying it by text, inspecting dependency graphs, and reporting index statistics.
Scope: SDLC artifacts, not research corpora. This skill (and
aiwg index ...) operates on the SDLC artifact graph stored under.aiwg/.index/*(JSON: nodes, edges, checksums). It does not generate the human-readable markdown indices declared in.aiwg/config.yamlunderindex.graphs.indices.manifestfor research-papers-style corpora. For those rendered indices (indices/by-topic.md,indices/by-year.md,indices/authors.md, etc.), use thecorpus-index-buildskill fromresearch-complete.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action |
|---------|---------|--------|
| Build index | "build the artifact index" | Run aiwg index build |
| Force rebuild | "rebuild the index from scratch" | Run aiwg index build --force --verbose |
| Text search | "search artifacts for authentication" | Run aiwg index query "authentication" |
| Dependency graph | "show dependencies for the SAD" | Run aiwg index deps .aiwg/architecture/software-architecture-doc.md |
| Statistics | "how many artifacts are indexed?" | Run aiwg index stats |
| JSON output | "get index stats as JSON" | Run aiwg index stats --json |
When triggered:
Identify the subcommand:
--force, --verbose, or --json appropriate?Run the appropriate command:
# Build or rebuild the index
aiwg index build
# Full rebuild with progress output
aiwg index build --force --verbose
# Semantic search across all artifacts
aiwg index query "<text>"
# Machine-readable search results
aiwg index query "<text>" --json
# Show dependency graph for an artifact
aiwg index deps <artifact-path>
# Machine-readable dependency graph
aiwg index deps <artifact-path> --json
# Show index statistics
aiwg index stats
# Machine-readable statistics
aiwg index stats --json
Report the result — surface the relevant matches, dependencies, or counts.
User: "Build the artifact index"
Extraction: Build subcommand, no flags
Action:
aiwg index build
Response: "Index built. Indexed 47 artifacts across 8 categories in .aiwg/. Run aiwg index query to search."
User: "Rebuild the index from scratch"
Extraction: Build subcommand, --force --verbose
Action:
aiwg index build --force --verbose
Response: "Full rebuild complete. Scanned 52 files, indexed 47 artifacts (5 skipped: working/). Categories: requirements (12), architecture (8), testing (7), security (5), deployment (4), planning (6), risks (5)."
User: "Search artifacts for anything about authentication"
Extraction: Query subcommand, text = authentication
Action:
aiwg index query "authentication"
Response: "5 artifacts match 'authentication': UC-003-user-authentication.md (requirements), SAD section 4.2 (architecture), threat-model-v1.md (security), test-plan-auth.md (testing), deployment-runbook.md (deployment)."
User: "What does UC-001 depend on, and what depends on it?"
Extraction: Deps subcommand, artifact = .aiwg/requirements/UC-001.md
Action:
aiwg index deps .aiwg/requirements/UC-001.md
Response: "UC-001 (User Registration) dependencies: none (root artifact). Dependents: UC-003-user-authentication.md, test-plan-registration.md, SAD section 3.1, deployment-runbook.md."
User: "How many artifacts are indexed?"
Extraction: Stats subcommand
Action:
aiwg index stats
Response: "Index contains 47 artifacts. Coverage: 90% (5 unindexed files in working/). Last built: 2026-04-01T14:22:00Z. Categories with highest artifact count: requirements (12), architecture (8), testing (7)."
If the user's intent is ambiguous:
data-ai
Report which research-corpus radar sidecars are overdue for refresh. Computes staleness (days since last refresh vs the cadence window) for every radar, sorted most-overdue-first. Runs via `aiwg corpus radar-status`.
data-ai
Aggregate research-corpus radar sidecars into a corpus or per-cluster freshness report — totals, overdue count, per-cluster / per-GRADE / per-trajectory breakdowns, an overdue table, and per-radar rationale snippets. Runs via `aiwg corpus radar-report`.
testing
Scaffold radar/freshness sidecars for research-corpus REFs. Pulls title/authors from the citation sidecar and GRADE from the analysis doc, defaults the refresh cadence from GRADE and the cluster from a corpus-local map, and stamps documentation/radar/REF-XXX-radar.md. Runs via `aiwg corpus radar-init`.
data-ai
Compute an entity's publication trajectory — per-year paper counts, topic drift, hot-streak detection (≥3 consecutive A-grade years), and career phase. Runs via `aiwg corpus profile-temporal`.