Content
82%Weight 40%Scale 1-5Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
The body delivers fully executable, well-organized guidance for writing and running error-processor tests, with a valuable gotcha section on stream mock event sequences. Minor improvements are possible around trimming the dual mock block and adding a test-failure feedback loop.
Suggestions
Trim the doStream mock (or move the full reference mock to a reference file) instead of the '// Same error logic as doGenerate' placeholder, keeping SKILL.md leaner.
Add a short feedback loop for test failures, e.g. 'If tests fail with empty text output, check the stream event sequence (see Stream Mock Gotcha)' or guidance on re-running a single focused test after a fix.
Fold the 'Devin Secrets Needed' section into a one-line note (e.g. 'Mock-based tests need no secrets; live API tests need ANTHROPIC_API_KEY / OPENROUTER_API_KEY') to save tokens.
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | The body is efficient and assumes competence (e.g., 'No build needed: Vitest resolves @mastra/core... from source' adds non-obvious value), but the combined doGenerate/doStream mock block with a '// Same error logic' placeholder comment and the partly extraneous 'Devin Secrets Needed' section could be trimmed. It is not 5 because a few tokens do not earn their place; not 3 because padding is minor. | 4 / 5 |
Actionability | Fully executable, copy-paste-ready guidance: a complete MockLanguageModelV2 TypeScript mock, a concrete AI SDK message-format example, and exact commands ('npx vitest run packages/core/src/processors/my-processor.test.ts', 'pnpm test:core'). The examples cover the common cases of error simulation, retry verification, and tool-call history seeding. | 5 / 5 |
Workflow Clarity | A clear sequence is present — mock pattern, then a numbered 3-part test structure with explicit assertions per test, then run commands — and the 'Stream Mock Gotcha' section addresses a real failure mode. It is not 5 because there is no explicit run→verify→fix feedback loop for test failures; not 3 because checkpoints (assertions) are explicit and the sequence is coherent. | 4 / 5 |
Progressive Disclosure | No bundle files exist, and the body is organized into clear, well-sized sections with a pointer to 'prefill-error-recovery.test.ts' as the reference pattern. It is not 5 because at ~110 lines the large mock code block is inlined where a reference file could keep SKILL.md leaner, and the secrets section is slightly off-topic; not 3 because nothing that clearly belongs in a separate file is buried. | 4 / 5 |
Total | 17 / 20 Passed |