Skip to content
Back to skills

Build Artifact Index

ASecurity

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

  • 207 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aigobashdocumentation

Works with

  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add jmagly/aiwg --skill build-artifact-index --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Artifact Index?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Artifact Index
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jmagly-build-artifact-index/badge)](https://www.skillsdirectory.com/skills/jmagly-build-artifact-index)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
namespace: aiwg
name: build-artifact-index
platforms: [all]
description: Build or rebuild the SDLC artifact index for agent-navigable discovery
commandHint:
  argumentHint: '[--force] [--verbose] [--interactive] [--guidance "text"]'
  allowedTools: 'Read, Write, Glob, Grep, Bash'
  model: sonnet
  category: documentation-tracking
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…