regression-tests
Use when fixing a bug, changing behaviour or adding a feature in code that has tests, or when the user asks whether a change is covered by tests, wants…
Skill by jeancarlos
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jeancarlos-regression-tests-35d263
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
regression-tests- Description
- Use when fixing a bug, changing behaviour or adding a feature in code that has tests, or when the user asks whether a change is covered by tests, wants regression tests, or wants coverage of the changed lines.
- License
- Apache-2.0
- Instructions
- 50 lines in SKILL.md · view on GitHub
Files (2)
- .codex-harness
- SKILL.md
SKILL.md (first lines)
# Regression tests Every behaviour change ships with a test that fails without the change and passes with it. ## Bug fix 1. Write the smallest test that reproduces the bug through the public interface. 2. Run it and watch it fail for the reason in the bug report, not for a typo or a missing import. 3. Fix the code, not the test. 4. Run the test, then the whole suite. ## New or changed behaviour Write the test first, watch it fail, implement, watch it pass. When the change comes from a requirement, tag the test with its ID (see the `hld-trace` skill). ## Follow the repo Put tests where the repo already keeps them, with its framework, naming and fixtures. Do not add a test framework the repo does not use. ## Coverage of the changed lines [diff-cover](https://github.com/Bachmann1234/diff_cover) reads a Cobertura XML report and lists the changed lines no test executes. Install it with `pip install diff-cover`. | Stack | Produce `coverage.xml` | |---|---| | Python | `coverage run -m pytest`, then `coverage xml` (in PowerShell 5.1, which has no `&&`: `coverage run -m pytest; coverage xml`) | | .NET | `DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet test --collect:"XPlat Code Coverage"` writes `TestResults/*/coverage.cobertura.xml` | | Node with c8 | `npx c8 --reporter=cobertura npm test` writes `coverage/cobertura-coverage.xml` | | Vitest | `npx vitest run --coverage --coverage.reporter=cobertura` writes `coverage/cobertura-coverage.xml` | | Jest | `npx jest --coverage --coverageReporters=cobertura` writes `coverage/cobertura-coverage.xml` | Windows PowerShell has no `NAME=value command` form: write the variable first in the same command, for example `$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'; dotnet test --collect:"XPlat Code Coverage"`. Then: ``` diff-cover <report.xml> --compare-branch=origin/main --include-untracked ``` Pass several reports at once for a multi-stack repo. Every uncovered changed line is either covered by a new test or explained: generated code, logging, a branch that only a real outage reaches. ## Is the test good enough A test that never fails proves nothing. For important logic, run mutation testing on the changed files (the `bug-hunt` skill): a surviving mutant is a regression the tests would miss. ## Report Name the test that failed before the change and passes after it, the full suite result, and each changed line diff-cover listed with the test that now covers it or the reason it stays uncovered.
From jeancarlos/code-jig, Apache-2.0.
More from jeancarlos/code-jig
- 0.565score
skill-validate
jeancarlos
Use when a SKILL.md is about to ship or was just edited, when a skill is reviewed or audited, when a skill seems ignored, skipped or misread by agents, or…
SkillAFreshness: AClaude Code +9 - 0.565score
web-consensus
jeancarlos
Use when a question has to be settled against the live web rather than from memory - researching a topic, proving or disproving a claim, checking whether…
SkillAFreshness: AClaude Code +9 - 0.565score
cross-review
jeancarlos
Use when a plan, design, document or diff would benefit from a review by a model from a different family before it is committed, or when the user asks for a…
SkillAFreshness: AClaude Code +9 - 0.565score
hld-trace
jeancarlos
Use when the user asks whether the code follows the high-level design (HLD), which requirements have tests, which are untested, or wants tests linked to…
SkillAFreshness: AClaude Code +9 - 0.565score
redacao
jeancarlos
Use when writing, rewriting or editing a technical article or blog post in Portuguese, or when the user says "escreve um artigo", "reescreve o post"…
SkillAFreshness: AClaude Code +9 - 0.565score
regression-tests
jeancarlos
Use when fixing a bug, changing behaviour or adding a feature in code that has tests, or when the user asks whether a change is covered by tests, wants…
SkillAFreshness: AClaude Code +9 - 0.539score
improve
jeancarlos
Use when the user asks to improve code-jig, its rules, Guardian policy, skills or knowledge from experience on this machine, or says "remember this for next…
SkillAFreshness: AClaude Code +9 - 0.539score
codegen
jeancarlos
Use when the user asks to generate an API client or server stubs from an OpenAPI spec, scaffold a project or component, or apply the same mechanical change…
SkillAFreshness: AClaude Code +9 - 0.539score
improve
jeancarlos
Use when the user asks to improve the harness, its rules, Guardian policy, skills or knowledge from experience on this machine, or says "remember this for…
SkillAFreshness: AClaude Code +9 - 0.539score
bug-hunt
jeancarlos
Use when the user asks to hunt for bugs nobody reported, audit a codebase or a path for latent bugs and vulnerabilities, fuzz code, write property-based…
SkillAFreshness: AClaude Code +9 - 0.539score
grilling
jeancarlos
Use when the user wants a plan, decision, design or idea stress-tested before committing to it, or says "grill me", "grill this", "stress-test this", "poke…
SkillAFreshness: AClaude Code +9 - 0.539score
code-analysis
jeancarlos
Use when the user asks to analyse code quality, find bugs, code smells, complexity, duplication, security issues, leaked secrets or vulnerable dependencies…
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 7
- Last commit (this folder)
- Oct 16, 2026 (13 days ago)
- Last release
- Oct 20, 2026 (10 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/jeancarlos/code-jig
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from jeancarlos
- 0.565score
skill-validate
jeancarlos
Use when a SKILL.md is about to ship or was just edited, when a skill is reviewed or audited, when a skill seems ignored, skipped or misread by agents, or…
SkillAFreshness: AClaude Code +9 - 0.565score
web-consensus
jeancarlos
Use when a question has to be settled against the live web rather than from memory - researching a topic, proving or disproving a claim, checking whether…
SkillAFreshness: AClaude Code +9 - 0.565score
cross-review
jeancarlos
Use when a plan, design, document or diff would benefit from a review by a model from a different family before it is committed, or when the user asks for a…
SkillAFreshness: AClaude Code +9 - 0.565score
hld-trace
jeancarlos
Use when the user asks whether the code follows the high-level design (HLD), which requirements have tests, which are untested, or wants tests linked to…
SkillAFreshness: AClaude Code +9 - 0.565score
redacao
jeancarlos
Use when writing, rewriting or editing a technical article or blog post in Portuguese, or when the user says "escreve um artigo", "reescreve o post"…
SkillAFreshness: AClaude Code +9 - 0.565score
regression-tests
jeancarlos
Use when fixing a bug, changing behaviour or adding a feature in code that has tests, or when the user asks whether a change is covered by tests, wants…
SkillAFreshness: AClaude Code +9
Cite this page
regression-tests skill. Agent Mart. https://agentmart.dev/skills/jeancarlos-regression-tests-35d263 (last updated 2026-10-24)