Artifact lookup

From jmagly/aiwg · View interactive version

Artifact lookup is an AI agent skill from the GitHub repository jmagly/aiwg. Search and navigate SDLC artifacts by topic, type, phase, or tag using the aiwg index CLI

How to use this skill

Skill file

artifact-lookup

Search and navigate SDLC artifacts using the artifact index.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

Purpose

This skill wraps the aiwg index CLI commands to provide natural language artifact discovery. Agents and users can query, navigate dependencies, and check project health without knowing the exact CLI syntax.

Behavior

Query Artifacts

When the user asks to find artifacts by topic, type, or phase:

# By keyword
aiwg index query "authentication" --json

# By type
aiwg index query --type use-case --json

# By phase
aiwg index query --phase testing --json

# By tag
aiwg index query --tags security,auth --json

# Combined filters
aiwg index query "login" --type use-case --phase requirements --json

# default Fortemi Core static cache
aiwg index query "login" --json

# Fortemi static semantic and filtered hybrid modes
aiwg index query "login architecture" --semantic --json
aiwg index query "login architecture" --hybrid --type adr --tags auth --json

Parse the JSON output and present results in a readable summary:

Check Dependencies

When the user asks what depends on or references an artifact:

# Both directions
aiwg index deps .aiwg/requirements/UC-001.md --json

# Upstream only (what this depends on)
aiwg index deps .aiwg/requirements/UC-001.md --direction upstream --json

# Downstream only (what depends on this)
aiwg index deps .aiwg/requirements/UC-001.md --direction downstream --json

# Fortemi Core static-cache traversal, when synced
aiwg index deps .aiwg/requirements/UC-001.md --json
aiwg index neighbors --graph project --node UC-001 --json
aiwg index set --graph project --op intersection --node-a UC-001 --node-b ADR-001 --json

Present the dependency tree in a readable format:

Show Statistics

When the user asks about project health or artifact stats:

aiwg index stats --json
aiwg index status --json

Summarize:

Rebuild Index

When the user creates new artifacts or asks to refresh:

aiwg index build

Report what changed (new, updated, unchanged counts).

Archiving Answers

`--archive-answer` flag

Pass --archive-answer to persist the query result as a structured artifact instead of (or in addition to) displaying it in chat:

artifact-lookup "authentication flow" --archive-answer
artifact-lookup --type use-case --archive-answer --tags auth,security

When this flag is present, after presenting results the skill invokes archive-answer with:

Without the flag, the skill still offers archival automatically when it detects a substantive result (3+ matching artifacts with meaningful relevance scores, or a dependency tree with 5+ nodes). In that case it asks: "This looks like a useful finding. Archive it? (y/n)"

Archived answers land in .aiwg/working/answers/ and are picked up by the next aiwg index build run.

Output Format

Always present results as structured summaries, not raw JSON dumps. Example:

Found 3 artifacts about "authentication":

1. UC-001: User Authentication (requirements, score: 0.95)
   Path: .aiwg/requirements/UC-001.md
   Tags: auth, security

2. ADR-001: JWT Token Strategy (architecture, score: 0.82)
   Path: .aiwg/architecture/adr-001.md
   Tags: auth, architecture

3. TP-001: Auth Test Plan (testing, score: 0.75)
   Path: .aiwg/testing/tp-001.md
   Tags: auth, testing

Prerequisites

static cache is missing or stale, omit the legacy backend and use the

local index

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.