Codex

build-artifact-index

Build or rebuild the SDLC artifact index for agent-navigable discovery

104 stars

Best use case

build-artifact-index is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

It is a strong fit for teams already working in Codex.

Build or rebuild the SDLC artifact index for agent-navigable discovery

Teams using build-artifact-index should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/build-artifact-index/SKILL.md --create-dirs "https://raw.githubusercontent.com/jmagly/aiwg/main/.agents/skills/build-artifact-index/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/build-artifact-index/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How build-artifact-index Compares

Feature / Agentbuild-artifact-indexStandard Approach
Platform SupportCodexLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Build or rebuild the SDLC artifact index for agent-navigable discovery

Which AI agents support this skill?

This skill is designed for Codex.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Build Artifact Index

## Task

Build or refresh the artifact index that powers `aiwg index query`, `aiwg index deps`, and `aiwg index stats`. This is the entry point for ensuring agents can discover and navigate project artifacts efficiently.

## Behavior

### Primary: Use `aiwg index build`

```bash
# Standard rebuild (incremental)
aiwg index build

# Full rebuild (ignore cache)
aiwg index build --force

# With progress output
aiwg index build --verbose
```

Report what changed: new artifacts indexed, updated, unchanged, and removed counts.

### Archived Query Answers

The index includes files in `.aiwg/working/answers/` automatically. These are answers persisted by the `archive-answer` skill and appear in query results and dependency graphs alongside permanent artifacts. Their `status: working` frontmatter field signals they are candidates for promotion to a permanent destination (e.g., `.aiwg/architecture/`, `.aiwg/reports/`). Use the index to find stale working answers that should be promoted or discarded.

### Fallback: Manual Digest Generation

If `aiwg index build` is not available (CLI not installed), fall back to manual scanning:

1. Walk `.aiwg/` for all artifact files
2. Extract titles and short summaries from frontmatter/headings
3. Write digest files to `.aiwg/working/digests/`
4. Generate or update `_index.yaml` with paths, summaries, and timestamps

### Post-Build Verification

After building, verify the index is healthy:

```bash
aiwg index stats --json
```

Report total artifacts indexed, coverage by phase, and any orphaned artifacts.

## When to Run

- After creating new SDLC artifacts
- After modifying existing artifact references
- At the start of a new SDLC phase
- When `aiwg index query` returns stale results

## References

- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/artifact-discovery.md — Agent protocol rules
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/artifact-lookup/SKILL.md — Query skill
- @$AIWG_ROOT/src/artifacts/cli.ts — CLI implementation

Related Skills

customize-rebuild

104
from jmagly/aiwg

Rebuild and redeploy AIWG from local customization source — makes recent edits live

skill-builder

104
from jmagly/aiwg

Build Claude skills from extracted documentation. Use after doc-scraper/pdf-extractor to generate uploadable skill packages.

Codex

index

104
from jmagly/aiwg

Build, query, inspect dependencies, and report statistics for the searchable index of SDLC artifacts in .aiwg/

Codex

corpus-index-build

104
from jmagly/aiwg

Build graph indices (by-topic, by-year, authors, citation-network) from corpus state using definitions in .aiwg/config.yaml. Replaces manual 3-agent dispatch with a single command.

Codex

build-poc

104
from jmagly/aiwg

Build a Proof of Concept (PoC) to validate technical feasibility and retire architectural risks

Codex

artifact-orchestration

104
from jmagly/aiwg

Orchestrate multi-agent artifact generation using the Primary Author, Parallel Reviewers, Synthesizer, Archive pattern

Codex

artifact-metadata

104
from jmagly/aiwg

Manage artifact metadata, versioning, ownership, and review history across the SDLC lifecycle

Codex

artifact-lookup

104
from jmagly/aiwg

Search and navigate SDLC artifacts by topic, type, phase, or tag using the aiwg index CLI

Codex

aiwg-orchestrate

104
from jmagly/aiwg

Route structured artifact work to AIWG workflows via MCP with zero parent context cost

venv-manager

104
from jmagly/aiwg

Create, manage, and validate Python virtual environments. Use for project isolation and dependency management.

pytest-runner

104
from jmagly/aiwg

Execute Python tests with pytest, supporting fixtures, markers, coverage, and parallel execution. Use for Python test automation.

vitest-runner

104
from jmagly/aiwg

Execute JavaScript/TypeScript tests with Vitest, supporting coverage, watch mode, and parallel execution. Use for JS/TS test automation.