artifact-lookup
Search and navigate SDLC artifacts by topic, type, phase, or tag using the aiwg index CLI
What this skill does
# 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): - "where is [artifact]" → artifact location query - "find my [SAD/test plan/ADR]" → artifact search shorthand ## 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: ```bash # 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 ``` Parse the JSON output and present results in a readable summary: - List matching artifacts with path, title, and relevance score - Highlight the most relevant result - Suggest related queries if results are sparse ### Check Dependencies When the user asks what depends on or references an artifact: ```bash # 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 ``` Present the dependency tree in a readable format: - Show upstream dependencies (what the artifact relies on) - Show downstream dependents (what would be impacted by changes) - Flag high fan-out artifacts (many dependents) ### Show Statistics When the user asks about project health or artifact stats: ```bash aiwg index stats --json ``` Summarize: - Total artifacts by phase and type - Coverage percentage - Orphaned artifacts (no connections) - Most referenced artifacts ### Rebuild Index When the user creates new artifacts or asks to refresh: ```bash 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: - `title` derived from the query string - `content` set to the formatted result summary - `source-query` set to the original query expression - `tags` forwarded if provided 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 - Artifact index must exist (`aiwg index build` must have been run) - If index doesn't exist, offer to build it first ## References - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/artifact-discovery.md — Agent protocol rules - @$AIWG_ROOT/src/artifacts/cli.ts — CLI implementation
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.