writing-tests

Plan, write, and run test suites validating code behavior against specifications.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/maestria-co/ai-playbook --skill writing-tests-maestria-co
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-tests
Source: https://github.com/maestria-co/ai-playbook/tree/main/skills/writing-tests
Command: npx skills add https://github.com/maestria-co/ai-playbook --skill writing-tests-maestria-co

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing tests ensures code behaves as specified by validating contracts across inputs, edge cases, and regression scenarios.

Core Features & Use Cases

  • Create, organize, and run a complete test suite that protects against bugs and ensures long-term stability.
  • Align tests with implementation and spec to provide fast feedback during refactors and feature additions.
  • Use cases include validating happy paths, edge cases, and regression scenarios across modules and libraries.

Quick Start

Write and run tests with the project's existing framework to validate the implementation.

Frequently Asked Questions about writing-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write tests that cover edge cases and regression scenarios?

To write tests covering edge cases and regression scenarios, read the implementation and specification, align with existing test conventions, and validate observable behavior across happy paths and boundary inputs to maintain coverage targets.

What is the best way to automate test coverage for completed implementations?

The best way to automate test coverage is to plan and run a complete test suite that validates observable behavior against the implementation specification, ensuring long-term stability and fast feedback during refactors.

Can I use my existing test framework to run a complete test suite?

Yes, you can use the project's existing test framework to write and run tests. The process aligns with current test conventions to validate the implementation and maintain coverage targets without requiring new framework installations.

How do I ensure my test suite protects against bugs during refactoring?

To protect against bugs during refactoring, create and organize a complete test suite that aligns with the implementation and specification, providing fast feedback and validating contracts across inputs, edge cases, and regression scenarios.

When do I need regression testing for my codebase?

You need regression testing when adding features or refactoring completed implementations across modules, engines, and libraries, ensuring code continues to behave as specified and preventing long-term stability issues.