Files
archy/aiui/.claude/skills/test-prompts/SKILL.md
T
archipelago 7ba3109b6d Add 'aiui/' from commit 'e30ac1d1069532fb6d652d87e2d4a2fe9d1b4773'
git-subtree-dir: aiui
git-subtree-mainline: 0c4826f8cc
git-subtree-split: e30ac1d106
2026-08-03 15:07:11 -04:00

1.2 KiB

name, description, allowed-tools
name description allowed-tools
test-prompts Test AI prompt quality by simulating queries and checking extraction results Bash(*), Read, Edit, Glob, Grep, Agent

Test the AIUI AI prompt and content extraction pipeline end-to-end. This skill does NOT call the actual AI — it uses the seed prompts and extraction functions directly.

Steps

  1. Read seed prompts: Read packages/app/src/__tests__/fixtures/seedPrompts.ts to get all test cases.

  2. Run extraction tests: For each seed prompt, run the test via pnpm --filter @aiui/app test -- --run -t "seed" and report results.

  3. Test edge cases: Create and test these additional scenarios by calling extraction functions in a test:

    • Mixed content response (films + songs + books in one response)
    • App recommendation response (should trigger app tab)
    • News query with web search results
    • Place/restaurant recommendations
    • Code response with 3+ code blocks
    • Nostr-related query
    • Empty/minimal response
  4. Verify tab routing: For each scenario, check that filterTabsByContext() returns the expected tabs in the expected order.

  5. Report: Summary of what works, what's broken, and what's missing. Include specific test cases that fail.