writing-quality-tests
Writing Quality Tests
Overview
High-signal tests prove behavior, not implementation. While TDD focuses on the process of writing tests first, this skill focuses on the artifact—making tests stable, explicit, and valuable long-term.
Core rule: If a test is nondeterministic or tied to internals, it is debt. Fix it.
When to Use
- New features: "I need to add tests for this new API endpoint/component."
- Bug fixes: "Help me write a regression test for this bug before fixing it."
- Flaky tests: "This test fails randomly on CI. How do I make it deterministic?"
- Refactoring: "I want to refactor this legacy code but the tests are brittle. How do I improve them first?"
- Slow tests: "The test suite takes too long. How can I speed it up or mock dependencies effectively?"
- Test Design: "Should I use a unit test or integration test for this logic?"
- Review: "Check these tests for maintainability, coverage, and clarity."
- Not for manual exploratory testing or load/perf-only work.
More from ederheisler/agent-skills
tailwind-v4-shadcn
Set up Tailwind v4 with shadcn/ui using @theme inline pattern and CSS variable architecture. Four-step pattern: CSS variables, Tailwind mapping, base styles, automatic dark mode. Prevents 8 documented errors. Use when initializing React projects with Tailwind v4, or fixing colors not working, tw-animate-css errors, @theme inline dark mode conflicts, @apply breaking, v3 migration issues.
26frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
19canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
17mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
16ask-questions-if-underspecified
Clarify requirements before implementing. Use when serious doubts araise.
16pdf
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When the agent needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
15