git-subtree-dir: aiui git-subtree-mainline:0c4826f8ccgit-subtree-split:e30ac1d106
1.2 KiB
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
-
Read seed prompts: Read
packages/app/src/__tests__/fixtures/seedPrompts.tsto get all test cases. -
Run extraction tests: For each seed prompt, run the test via
pnpm --filter @aiui/app test -- --run -t "seed"and report results. -
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
-
Verify tab routing: For each scenario, check that
filterTabsByContext()returns the expected tabs in the expected order. -
Report: Summary of what works, what's broken, and what's missing. Include specific test cases that fail.