testing-principles

Design, review, and improve software tests focusing on observable behavior and determinism.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/togswr/agent-skills --skill testing-principles-togswr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-principles
Source: https://github.com/togswr/agent-skills/tree/main/skills/testing-principles
Command: npx skills add https://github.com/togswr/agent-skills --skill testing-principles-togswr

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you design, review, and improve tests by focusing on observable behavior and determinism, leading to more robust and maintainable test suites.

Core Features & Use Cases

  • Test Strategy Design: Define optimal test layers (Unit, Integration, E2E) and sizing based on risk and change frequency.
  • Flaky Test Remediation: Identify root causes of flaky tests and implement strategies to prevent recurrence.
  • Regression Prevention: Enhance test suites to catch regressions more effectively.
  • Use Case: When your CI pipeline is frequently broken by unstable tests, or when you need to ensure your tests accurately reflect user-observable behavior rather than implementation details.

Quick Start

Use the testing-principles skill to review the test strategy for the new authentication module.

Frequently Asked Questions about testing-principles

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

FAQPage Schema
How do I fix flaky tests in my CI pipeline?

Flaky test remediation involves identifying root causes of unstable behavior and implementing strategies to prevent recurrence. This skill provides workflows to review tests for determinism and ensure they validate observable behavior rather than implementation details.

What is the best way to design a test strategy for a new module?

Test strategy design defines optimal test layers (Unit, Integration, E2E) and sizing based on risk and change frequency. This skill helps you review and improve these test layers to ensure robust and maintainable test suites.

Why does focusing on observable behavior improve test quality?

Focusing on observable behavior improves test quality by ensuring tests validate user-facing outcomes rather than internal implementation details. This approach increases determinism, reduces flakiness, and makes test suites more robust and maintainable.

How do I prevent regressions in frontend testing?

Regression prevention in frontend testing enhances test suites to catch regressions more effectively. This skill provides principles and workflows to review tests for determinism and ensure they accurately reflect user-observable behavior.

When do I need to review my test suite for determinism?

You need to review your test suite for determinism when your CI pipeline is frequently broken by unstable tests or when tests fail to accurately reflect user-observable behavior. This skill provides standard workflows for such test quality assurance.