writing-ratchet-tests
OfficialGuide ratchet tests to curb code anti-patterns.
Authorimbue-ai
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Ratchet tests prevent the accumulation of common code anti-patterns by tracking their presence in the codebase and enforcing improvements via snapshots.
Core Features & Use Cases
- Define measurable ratchets for patterns like TODO comments, inline imports, use of eval or exec, and broad exception handling.
- Generate and compare inline snapshot data to detect increases and allow decreases as improvements.
- Provide scaffolding and guidance to integrate tests into CI and development workflows.
Quick Start
Create a test_ratchets.py in your project and follow this guide to start tracking a chosen anti-pattern.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: writing-ratchet-tests Download link: https://github.com/imbue-ai/mng/archive/main.zip#writing-ratchet-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.