test-discipline

Analyze code diffs to flag detrimental test edits in pull requests.

1|Updated May 15, 2026
One-click install
npx skills add https://github.com/thrillmade/agent-skills --skill test-discipline-thrillmade
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-discipline
Source: https://github.com/thrillmade/agent-skills/tree/main/skills/test-discipline
Command: npx skills add https://github.com/thrillmade/agent-skills --skill test-discipline-thrillmade

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents the gradual decline of a test suite by flagging changes that compromise its effectiveness, like overly-mocked tests, snapshot churn, and asserting on the implementation.

Core Features & Use Cases

  • Pattern Detection: Identifies and flags various types of detrimental test changes.
  • Applicability: Applies to PRs modifying any test file.
  • Use Case: By analyzing code diffs, it helps ensure that test suite changes do not inadvertently weaken the suite's ability to catch regressions.

Quick Start

Apply the test-discipline skill to the upcoming pull request containing changes to the test suite.

Frequently Asked Questions about test-discipline

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

FAQPage Schema
How do I prevent test suite degradation when modifying tests in a pull request?

Test decay patterns include overly-mocked tests, snapshot churn, and asserting on implementation details rather than behavior. Recognizing these detrimental changes helps maintain the suite's ability to catch regressions effectively.

How do I detect inappropriate mocks and snapshot churn in code reviews?

Pattern detection applies to pull requests modifying any test file, specifically targeting files in test-related directories and specific file extensions. It parses diffs to identify and flag various types of detrimental test changes.

Do I need Python code to analyze diffs for test quality issues?

Yes, you need Python code for parsing diffs and identifying patterns indicative of test suite degradation. The Skill requires this code to process changes and flag detrimental test edits like deletions or inappropriate mocks.

What's the best way to flag rewritten assertions in test files?

The best way to flag rewritten assertions is to analyze code changes for patterns indicative of test suite degradation. By applying pattern detection to PRs modifying test files, you can ensure changes do not weaken the suite.