write-tests
Installation
SKILL.md
Write agent tests: $ARGUMENTS
Before Starting
- Read existing test examples:
{{PROJECT_ROOT}}/tests/— unit tests for catalog, router, citations, tools, context{{PROJECT_ROOT}}/e2e/— Playwright endpoint specssrc/lib/ai-lab/catalog.test.ts— catalog validation tests (local)
- Read the smoke test patterns:
{{PROJECT_ROOT}}/smoke-test-chat.ts— tool-triggering prompts{{PROJECT_ROOT}}/smoke-test-context.ts— context propagation{{PROJECT_ROOT}}/smoke-test-fidelity.ts— book fidelity (file_search + citations)
- Check test infrastructure:
- Run
pnpm test:runfor Vitest (unit tests intests/unit/) - Run
pnpm test:e2efor Playwright (e2e tests intests/e2e/)
- Run