test-pyramid

Define a balanced automated testing strategy across unit, contract, integration, and end-to-end layers.

1|Updated Jun 20, 2026
One-click install
npx skills add https://github.com/shafibabar/SDLC-Artifact-Factory --skill test-pyramid-shafibabar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-pyramid
Source: https://github.com/shafibabar/SDLC-Artifact-Factory/tree/main/skills/test-pyramid
Command: npx skills add https://github.com/shafibabar/SDLC-Artifact-Factory --skill test-pyramid-shafibabar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill solves the problem of unbalanced, slow, and flaky test suites that result from an inverted test pyramid, where too many end-to-end tests create maintenance bottlenecks and slow feedback loops.

Core Features & Use Cases

  • Strategic Balancing: Provides a framework to distribute tests across unit, contract, integration, and e2e layers to optimize for speed and confidence.
  • Shift-Left & Shift-Right Integration: Guides the implementation of TDD, BDD, and mutation testing for early defect prevention, alongside load and chaos testing for production resilience.
  • Quality Governance: Establishes clear policies for branch coverage, flaky-test quarantine, and regression testing to ensure the test suite remains a trustworthy asset.

Quick Start

Consult the test-pyramid skill to generate a new test strategy document for your current product phase.

Frequently Asked Questions about test-pyramid

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

FAQPage Schema
How do I balance my test suite to fix an inverted test pyramid?

To balance an inverted test pyramid, distribute automated tests across unit, contract, integration, and end-to-end layers. This strategic distribution optimizes feedback speed and system reliability while reducing the maintenance bottlenecks caused by too many slow end-to-end tests.

What is the best way to integrate shift-left and shift-right testing in CI/CD?

The best way to integrate shift-left and shift-right testing is to apply TDD and mutation testing for early defect prevention, combined with load and chaos testing for production resilience. This ensures comprehensive validation across the entire software development lifecycle.

How do I handle flaky tests and enforce branch coverage in automated testing?

Handle flaky tests and enforce branch coverage by establishing quality governance policies. Implement strict flaky-test quarantine procedures and set clear branch coverage requirements within your CI/CD pipelines to keep the test suite a trustworthy asset.

Does this test strategy support mutation testing and contract testing layers?

Yes, this test strategy supports both mutation testing and contract testing layers. It defines a comprehensive framework across unit, contract, integration, and end-to-end layers to satisfy requirements for early defect prevention and system reliability.

Why are my end-to-end tests creating maintenance bottlenecks and slow feedback loops?

End-to-end tests create maintenance bottlenecks and slow feedback loops when your test suite has an inverted test pyramid. Rebalancing tests by shifting focus to unit and integration layers maximizes feedback speed and improves overall system confidence.