Command Palette

Search for a command to run...

Назад к скиллам
скилл № 50798

regression

This skill should be used when the user asks to "check for regressions", "verify fixes still hold", "regression test security", "check for reintroduced…

БесплатноБез исполняемых скриптов
florianbuetowот florianbuetow★ 22 звезды на GitHub

Установить regression в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Security Regression Detection

Verify that previously fixed vulnerabilities have not been reintroduced. Reads the fix history from .appsec/fixed-history.json, checks whether vulnerable patterns have returned or fixes have been removed, and reports any regressions. Designed to run as a gate check before merges or releases.

Supported Flags

Read ../../shared/schemas/flags.md for the full flag specification.

Flag Regression Behavior
--scope Default branch. Checks regressions in all files changed on the current branch. Use changed for working tree only, full for all historical fixes.
--depth quick Pattern match only: check if the exact vulnerable code snippet reappears.
--depth standard Pattern match + semantic analysis: check if equivalent vulnerable patterns exist even if code changed.
--depth deep Standard + trace data flows to verify fix integrity across refactored code.
--depth expert Deep + attempt to bypass each fix with variant inputs and alternate code paths.
--severity Only check regressions for findings at or above this severity.
--format Default text. Use json for CI pipeline integration.

Workflow

Step 1: Load Fix History

Read .appsec/fixed-history.json. This file contains all findings that have been verified as fixed by /appsec:verify. Each entry includes:

  1. Original finding: Full finding object (ID, CWE, severity, location, description).
  2. Vulnerable snippet: The original vulnerable code pattern.
  3. Fix applied: The diff that resolved the vulnerability.
  4. Fixed location: The file and line where the fix was applied.
  5. Verified timestamp: When the fix was confirmed.

If the file does not exist or is empty, inform the user that no fix history is available and suggest running /appsec:verify on resolved findings to build the history.

Step 2: Determine Check Scope

Resolve which files to check for regressions:

  1. Branch scope (default): All files changed on the current branch vs main. Most useful for PR checks.
  2. Changed scope: Only files with uncommitted changes. Useful during development.
  3. Full scope: Check every file referenced in fix history. Most thorough, for release gates.

Intersect the scope file list with files referenced in fix history. Only check files that both (a) have historical fixes and (b) fall within scope. If scope includes files without fix history, skip them, but report in the summary: Files in scope without fix history: N (skipped).

Step 3: Check for Pattern Reintroduction

For each historical fix in scope, check whether the vulnerability has returned:

Quick Depth: Literal Pattern Match

  1. Extract the original vulnerable snippet from the fix history.
  2. Search for that exact snippet (or near-exact with whitespace normalization) in the current file.
  3. If found at any location in the file, flag as potential regression.

Standard Depth: Semantic Analysis

  1. Read the current code at and around the original fix location.
  2. Analyze whether the fix is still intact:
    • Is the parameterized query still parameterized, or has someone reverted to string interpolation?
    • Is the auth middleware still in the middleware chain?
    • Is the input validation still present and applied before the dangerous operation?
  3. Look for semantically equivalent vulnerable patterns even if the code has been refactored:
    • Same CWE pattern in different syntax.
    • Same vulnerability in a new function that handles similar input.
    • Copy-pasted code that duplicated the pre-fix version.

Deep Depth: Data Flow Verification

  1. Trace the data flow from input to sink for each historical finding.
  2. Verify that the fix (sanitization, validation, parameterization) is still in the path.
  3. Check for new code paths that bypass the fix:
    • New routes that reach the same sink without the middleware.
    • Refactored code that calls the dangerous function directly.
    • New caller of a function that previously had the vulnerability.

Expert Depth: Fix Bypass Analysis

  1. For each historical fix, attempt to construct a scenario where the fix is ineffective:
    • Input encoding that evades the validation.
    • Type confusion that bypasses the check.
    • Race condition that circumvents the guard.
  2. Check if the fix's assumptions still hold given code changes.

Step 4: Classify Results

For each historical fix checked, assign a status:

Status Meaning
HOLDING Fix is intact. No regression detected.
REGRESSION Vulnerable pattern has returned. The fix was reverted, removed, or bypassed.
DEGRADED Fix is partially intact but weakened (e.g., validation is present but less strict).
RELOCATED The fixed code was moved. Fix may be intact at new location but needs verification.
INCONCLUSIVE Code changed significantly. Cannot determine if fix is
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл regression?

This skill should be used when the user asks to "check for regressions", "verify fixes still hold", "regression test security", "check for reintroduced vulnerabilities", "security regression check", or "verify no old bugs returned". Also triggers when the user wants to confirm that previously fixed vulnerabilities have not been reintroduced by recent code changes.

Как установить скилл regression?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл regression запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить regression с