check-test-diff
CommunityGuard test-file diffs from destructive edits.
AuthorCOLDTURNIP
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill prevents risky git diffs by blocking deletions or mass removals of Go test files.
Core Features & Use Cases
- Guards against deletions of *_test.go files in diffs.
- Flags large deletions in test files (>100 lines) and reports violations.
- Ideal for CI/pre-merge checks to preserve test coverage.
Quick Start
Run the script to scan the current repository for test-file changes: bash ./check_test_diff.sh
You can also specify a repository path to run the check against: bash ./check_test_diff.sh --repo /path/to/your/repo
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: check-test-diff Download link: https://github.com/COLDTURNIP/longhorn-workspace/archive/main.zip#check-test-diff 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.