Skip to content
Back to skills

Regression

ASecurity

Use when reviewing changes that may break existing behavior.

  • 23 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
developmentgobashrefactoringapiperformancedocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add dean0x/devflow --skill regression --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Regression?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Regression
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dean0x-regression/badge)](https://www.skillsdirectory.com/skills/dean0x-regression)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: regression
description: Use when reviewing changes that may break existing behavior.
user-invocable: false
allowed-tools: Read, Grep, Glob
---

# Regression Patterns

Detection patterns for functionality regressions and implementation intent. Use with `devflow:review-methodology`.

## Iron Law

> **What worked before must work after.**
>
> Every change carries regression risk. Removed exports break consumers. Changed signatures
> break callers. Modified behavior breaks expectations. The burden of proof is on the change:
> demonstrate no regression, or document the intentional breaking change.

## Regression Categories

### 1. Lost Functionality

Features, exports, or capabilities that existed before but are missing after.

| Type | Risk | Detection |
|------|------|-----------|
| Removed exports | Breaks consumers | Compare `export` statements |
| Removed CLI options | Breaks scripts | Compare option definitions |
| Removed API endpoints | Breaks clients | Compare route handlers |
| Removed event handlers | Breaks integrations | Compare `.on()` calls |

### 2. Broken Behavior

Code still exists but behaves differently in breaking ways.

| Type | Risk | Detection |
|------|------|-----------|
| Changed return types | Null dereference | Compare function signatures |
| Changed defaults | Unexpected behavior | Compare default values |
| Removed side effects | Missing events/logs | Compare emit/log calls |
| Changed error handling | Uncaught errors | Compare throw/return patterns |

### 3. Intent vs Reality Mismatch

Commit message promises one thing, code does another.

| Type | Risk | Detection |
|------|------|-----------|
| Commit says X, code does Y | False confidence | Compare message to diff |
| Partial implementation | Incomplete feature | Check all stated changes |
| Missing edge cases | Fragile code | Verify claimed coverage |

### 4. Incomplete Migrations

Old API deprecated but not all consumers updated.

| Type | Risk | Detection |
|------|------|-----------|
| Some call sites updated | Mixed behavior | Search for old API usage |
| Consumers not updated | Type errors | Check all importers |
| Tests not updated | False passes | Compare test coverage |

## Quick Detection

In the diff: removed `export` lines (`^-export`), deleted files, new `TODO` lines. In the tree: grep for call sites of the old API.

## Extended References

- `references/violations.md` - Detailed violation examples for each category
- `references/patterns.md` - Correct patterns for regression-safe changes
- `references/detection.md` - Comprehensive bash commands for detection

## Severity Guidelines

| Severity | Criteria | Examples |
|----------|----------|----------|
| **CRITICAL** | Breaking changes without migration | Public exports removed, return types incompatible, required params added |
| **HIGH** | Significant behavior changes | Defaults changed, error handling changed, side effects removed |
| **MEDIUM** | Moderate regression risk | Internal APIs changed, logging reduced, performance changed |
| **LOW** | Minor concerns | Documentation drift, internal refactoring |

Files in this skill

  • SKILL.md4.6 KB
  • references/detection.md5.2 KB
  • references/patterns.md5.2 KB
  • references/violations.md5.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.