一键导入
regression
This skill should be used when reviewing changes that may remove exports, change signatures, or alter behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
This skill should be used when reviewing changes that may remove exports, change signatures, or alter behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Canonical algorithm for consuming DECISIONS_CONTEXT index — scan index, identify relevant entries, Read full bodies on demand, cite verbatim IDs inline.
This skill should be used when evaluating implementation quality before submission, checking correctness, security, and simplicity.
This skill should be used when performing a code review to apply the standard 6-step review process.
This skill should be used when the user asks to "add accessibility", "check ARIA", "handle keyboard navigation", "add focus management", or creates UI components, forms, or interactive elements. Provides WCAG 2.2 AA patterns for keyboard navigation, ARIA roles and states, focus management, color contrast, and screen reader support.
Consumption algorithm for FEATURE_KNOWLEDGE variable — pre-computed feature context
This skill should be used when reviewing code for SOLID violations, tight coupling, or layering issues.
| name | regression |
| description | This skill should be used when reviewing changes that may remove exports, change signatures, or alter behavior. |
| user-invocable | false |
| allowed-tools | Read, Grep, Glob |
Domain expertise for detecting functionality regressions and validating implementation intent. Use alongside devflow:review-methodology for complete regression reviews.
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.
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 |
// VIOLATION: Export removed without deprecation
// BEFORE: export function deleteUser(id: string): void { }
// AFTER: (removed) - consumers will break!
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 |
// VIOLATION: Return type widened without migration
// BEFORE: function getUser(id: string): User { }
// AFTER: function getUser(id: string): User | null { }
// Callers assuming non-null will break!
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 |
// VIOLATION: Commit says "Add retry logic" but no retry implemented
async function fetchData(): Promise<Data> {
return api.get('/data'); // No retry!
}
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 |
// VIOLATION: Migration incomplete
// file1.ts: newFunction({ a, b }) // Updated
// file2.ts: oldFunction(a, b) // NOT updated!
# Find removed exports
git diff main...HEAD | grep "^-export"
# Find removed files
git diff main...HEAD --name-status | grep "^D"
# Find incomplete migration (old API still used)
grep -r "oldFunction" src/ --include="*.ts"
# Find new TODOs (incomplete work)
git diff main...HEAD | grep "^\+.*TODO"
For extended examples and detection techniques:
| 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 |
Before approving changes: