dennisonbertram/developer-skill-pack/regression-guard
Claude Code and agent skill by dennisonbertram/developer-skill-pack
- community
Checking that the SKILL.md file is still in the repository.
Post-fix test-coverage analysis. Reviews a just-landed fix, generates targeted unit and regression tests, audits how the bug could have been caught earlier. Use after a fix is merged, when asked to 'add regression tests', 'pay off test debt', 'guard against regression', or 'ensure this doesn't happen again'.
Install
npx vskill@latest install dennisonbertram/developer-skill-pack/regression-guardSKILL.md
Regression Guard
Post-fix test-debt payoff loop. Takes the git diff of a recent fix as input and generates targeted tests to prevent the bug from returning.
Usage
If no commit range is specified, uses HEAD~3..HEAD.
Step 1 — Review What Was Fixed
Build a structured summary from git:
Produce:
- What broke — the failure mode
- What changed — specific code paths
- Files and functions touched
- Issue/PR reference
Step 2 — Generate Unit Tests
Write the smallest set of unit tests that lock in the correct behavior:
Rules:
- Each test must be red when reverted against the pre-fix state
- Cover the happy path AND the corrected edge cases
- State which assertion would be red if reverted
Step 3 — Generate Regression Tests
Write regression tests that construct the exact pre-fix state:
Rules:
- Include a top-of-file comment identifying the pre-fix state and symptom
- The test must pass the full check suite with no manual edits
Step 4 — Audit: Could This Have Been Caught Earlier?
Answer honestly. Pick the most relevant gap category:
- Missing boundary test — contract assertion at a module seam
- Missing negative test — error path never exercised
- Non-hermetic test harness — shared state leaked between tests
- Missing integration coverage — only reproduced under production shape
- Contract drift — upstream contract widened/narrowed without downstream rebase
For each gap, write a concrete, actionable suggestion. No generic "add more tests."
Step 5 — Recommend Integration Testing Additions
Name:
- The specific test command to extend
- The specific file to add a test into (or create)
- A concrete test stub that would have caught the bug
Output Report
Write to docs/investigations/<date>-regression-guard-<fix-slug>.md:
- Fix summary
- Generated unit tests (file paths + descriptions)
- Generated regression tests (file paths + pre-fix state each reconstructs)
- "Could this have been caught earlier?" diagnosis
- Integration testing recommendations
- Baseline comparison table
Ship as a Draft PR
- Create a new branch
- Commit the generated test files and output report
- Open a draft PR against main
- Never push directly to main
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/regression-guard/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dennisonbertram/developer-skill-pack/regression-guard)