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★ 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:
- Original finding: Full finding object (ID, CWE, severity, location, description).
- Vulnerable snippet: The original vulnerable code pattern.
- Fix applied: The diff that resolved the vulnerability.
- Fixed location: The file and line where the fix was applied.
- 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:
- Branch scope (default): All files changed on the current branch vs main. Most useful for PR checks.
- Changed scope: Only files with uncommitted changes. Useful during development.
- 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
- Extract the original
vulnerable snippetfrom the fix history. - Search for that exact snippet (or near-exact with whitespace normalization) in the current file.
- If found at any location in the file, flag as potential regression.
Standard Depth: Semantic Analysis
- Read the current code at and around the original fix location.
- 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?
- 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
- Trace the data flow from input to sink for each historical finding.
- Verify that the fix (sanitization, validation, parameterization) is still in the path.
- 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
- 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.
- 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 |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…