testing

Enforce structured testing guidance across unit, integration, and UI tests.

1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/matteobortolazzo/claude-tools --skill testing-matteobortolazzo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/matteobortolazzo/claude-tools/tree/main/ccflow/skills/testing
Command: npx skills add https://github.com/matteobortolazzo/claude-tools --skill testing-matteobortolazzo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write tests first. Tests encode requirements, not implementation details.

Core Features & Use Cases

  • Integration Tests (Preferred): End-to-end flows that exercise the actual application stack, favoring integration over isolated unit tests.
  • Unit Tests (For Complex Logic Only): Cover state machines, calculations, validation rules, and parsing logic.
  • UI Component Testing (Frontend Stacks): Classify components (Presentational, Smart/Container, Form-heavy) and choose test strategies accordingly.
  • Quality-First Rule: If a component spans multiple categories, apply all applicable test types.
  • Test Type Definitions: Define Unit, Integration/Component, E2E, and Visual tests to standardize coverage.
  • Browser Testing Tools: Use Playwright for interactive development and Playwright Test for CI regression.
  • Anti-Patterns and Good Assertions: Avoid brittle tests; encode requirements, not implementation, and validate essential business rules.

Quick Start

Draft a failing test for a key requirement, then implement the feature and run the full suite until all tests pass.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I enforce structured testing patterns across my codebase?

Integration tests are end-to-end flows exercising the actual application stack, while unit tests cover complex logic like state machines and validation rules. The guidance favors integration tests for broad coverage and reserves unit tests for calculations, validation, and parsing logic.

How do I implement a TDD workflow using guided testing patterns?

Implement TDD by drafting a failing test for a key requirement, then building the feature until the test passes. Run the full suite until all tests pass to ensure code reliability. This quality-first rule applies all applicable test types if a component spans multiple categories.

What is the best way to choose UI testing strategies for frontend components?

Choose UI testing strategies by classifying components as Presentational, Smart/Container, or Form-heavy. Apply matching test strategies for each type, and if a component spans multiple categories, apply all applicable test types to ensure comprehensive coverage of business rules.

Can I use Playwright for both interactive development and CI regression testing?

Yes, you can use Playwright for interactive development and Playwright Test for CI regression. The guidance standardizes browser testing tools by utilizing Playwright to drive interactive development workflows and Playwright Test to automate regression checks in continuous integration pipelines.

Why should I avoid brittle tests and how do I write good assertions?

Avoid brittle tests by encoding requirements instead of implementation details, ensuring tests validate essential business rules rather than internal mechanics. Good assertions focus on behavioral outcomes and application flows, preventing test failures from minor code refactoring.