agentleFS
aradmanamnaoonaradmanamnaoon/vibe-coding-skills/skills/testing/regression-detector/SKILL.md

regression-detector

Skill0 starsChanged 18 days agoMITView on GitHub

Detect behavior regressions introduced by a change by comparing baselines, requirements, tests, and adjacent flows. Use after a fix, refactor, dependency change, or generated patch.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read applicable repository instructions before edits.

    line 20
  2. Distinctive:

    Run the relevant baseline before editing when practical, then run the same checks after the change.

    line 34
  3. Distinctive:

    Add a regression test for the fixed defect when it provides durable value.

    line 37
  4. Distinctive:

    Never weaken or delete a failing test to make the regression report green without proving the contract changed.

    line 46
  5. Distinctive:

    No previously passing relevant check fails after the patch without an accepted contract change.

    line 50
  6. Distinctive:

    Before/after command evidence

    line 57
  7. Distinctive:

    If a baseline cannot run in the current environment, mark that check not executed and identify the clean environment or CI target needed.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Prove the requested behavior improved without silently breaking preserved behavior.

When to activate

A patch changes executable behavior or crosses module/API boundaries.

When not to activate

Documentation-only changes with no executable behavior and no generated artifacts.

Preconditions

  • Read applicable repository instructions before edits.
  • Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
  • Identify which tools and environments are actually available; do not claim unavailable checks ran.

Required inputs

  • Diff or changed-file list
  • Baseline tests/behavior
  • Requested acceptance criteria

Workflow

  1. Map each changed production file to the behaviors or interfaces it can affect.
  2. Identify the narrow regression suite plus at least one adjacent preserved path for each high-impact change.
  3. Run the relevant baseline before editing when practical, then run the same checks after the change.
  4. Compare failures, warnings, snapshots, API shapes, persisted data, and performance guardrails that are part of the contract.
  5. Investigate every new failure; do not update snapshots/fixtures until the behavior change is confirmed intentional.
  6. Add a regression test for the fixed defect when it provides durable value.
  7. Report preserved behaviors separately from newly validated requirements.

Relevant tools

Version control, test runners, build/type/lint checks, API/schema comparison.

Safety restrictions

Never weaken or delete a failing test to make the regression report green without proving the contract changed.

Validation

  • No previously passing relevant check fails after the patch without an accepted contract change.
  • The original defect is covered when feasible.
  • Snapshot/golden changes are justified by an explicit behavior change.

Expected output

  • Regression matrix
  • Before/after command evidence
  • New or changed tests
  • Unresolved regressions

Failure handling

If a baseline cannot run in the current environment, mark that check not executed and identify the clean environment or CI target needed.

Completion criteria

The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.

Research mapping

This skill was selected from research problems: P009, P048. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.