write-tests

Generate behavior-first unit tests across pyramid testing tiers.

5|3|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/leifericf/agentic-sdk --skill write-tests-leifericf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-tests
Source: https://github.com/leifericf/agentic-sdk/tree/main/skills/write-tests
Command: npx skills add https://github.com/leifericf/agentic-sdk --skill write-tests-leifericf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

The Skill automates the creation of tests for software development, enhancing quality assurance by providing a systematic approach to test generation and maintenance.

Core Features & Use Cases

  • Systematic Test Creation: Writes tests according to the pyramid pattern, targeting pure core, native edge, shell, and full vertical tests.
  • Tier Mapping: Matches tests with appropriate testing tiers as per the pyramid.md documentation.
  • Behavior-First Approach: Emphasizes writing tests that describe expected behaviors, rather than focusing on internal processes or implementations.
  • Tolerance-Based Numeric Testing: Asserts numerical results within specified tolerances, accommodating floating-point arithmetic nuances.
  • Spec-First Discipline: Encourages writing tests based on the specification of intended behavior, rather than the implementation.

Quick Start

Execute the command: write-tests my-project <path-to-source>

Frequently Asked Questions about write-tests

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

FAQPage Schema
How do I automate test case generation following the test pyramid pattern?

Automate test case generation by mapping tests to pyramid tiers—pure core, native edge, shell, and full vertical. This systematic approach targets specific testing layers, ensuring comprehensive coverage across behaviors and specifications for enhanced software quality.

What is a behavior-first approach to writing unit tests?

A behavior-first approach to writing unit tests focuses on describing expected behaviors rather than internal implementation details. This spec-first discipline ensures tests validate intended outcomes, including tolerance-based numeric testing for floating-point arithmetic nuances.

How do I write tests that handle floating-point arithmetic and numeric tolerance?

Write tests that handle numeric tolerance by asserting numerical results within specified tolerances. This behavior-first approach accommodates floating-point arithmetic nuances, ensuring tests validate expected outcomes rather than exact implementation values.

Can I generate tests systematically from a specification instead of implementation details?

Generate tests systematically from a specification using a spec-first discipline. This approach encourages writing tests based on the specification of intended behavior, rather than focusing on internal processes or implementation details.

What testing tiers should I target when automating test creation for software quality?

Target testing tiers including pure core, native edge, shell, and full vertical tests when automating test creation. This pyramid pattern maps tests to appropriate tiers, ensuring systematic coverage across different levels of software behavior.