一键导入
regression-check
After modifying code, map all consumers of changed symbols and flag unhandled mismatches. Not for debugging (use systematic-debugging).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
After modifying code, map all consumers of changed symbols and flag unhandled mismatches. Not for debugging (use systematic-debugging).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | regression-check |
| description | After modifying code, map all consumers of changed symbols and flag unhandled mismatches. Not for debugging (use systematic-debugging). |
Proactive analysis to catch regressions BEFORE they happen. Run AFTER modifying code, BEFORE committing. Maps the blast radius of changes and flags unhandled consumers.
Mandatory (not optional) when a shared-surface file changes. A shared surface is any file imported by many features. Detect it per project rather than assuming a layout:
components/ui|form|table|layout, hooks/, lib/, utils/, shared
packages (packages/* in a monorepo).grep -rl "from ['\"].*<module>" --include="*.ts*" | wc -l —
more than ~3 importers ⇒ treat as shared surface..cursor/rules/*.mdc or CLAUDE.md
section), honor it — but never require it to exist.A one-feature edit to a shared surface is the most common regression source.
Collect the list of changed symbols from one of:
git diff --name-only + git diff for modified linesFor each changed file, extract:
For each changed symbol, find ALL consumers. Use the most precise source available, in order:
Knowledge graph — if graphify-out/graph.json exists, the dependency edges are already
computed: graphify query "who imports/uses <symbol or module>?" (or graphify path between
the changed module and a suspected consumer). Start here; it catches re-exports and barrel
files that regex misses.
Compiler / LSP — exact reference resolution beats text matching:
tsc --noEmit / the typecheck script from package.json)
after the change — every consumer broken by a signature/shape change surfaces as an error
with file:line. This is the ground truth for TS projects.Grep fallback — only when neither is available, or to catch non-TS references (route strings, config, docs):
grep -r "import.*{.*symbolName.*}" --include="*.ts" --include="*.tsx"
grep -r "from ['\"].*changedModule['\"]" --include="*.ts" --include="*.tsx"
Regex misses default imports, re-exports, and barrel files (index.ts chains) — when using
this fallback, explicitly check barrels that re-export the changed module.
Trace transitively — if A imports B which imports changed module C, check both A and B.
Be monorepo-aware: scan all apps/, packages/, libs/ directories, not just the
directory containing the change.
For each consumer found, read the relevant lines and verify:
Consult references/checklist.md for change-type-specific verification steps.
Output a structured report:
## Regression Check Report
### Changed symbols
- `symbolName` in `path/to/file.ts:42` — description of change
### Verified consumers
- ✓ `path/to/consumer.ts:15` — uses `symbolName` correctly
- ✓ `path/to/other.tsx:88` — destructures updated fields
### Flagged mismatches
- ✗ `path/to/broken.ts:23` — still references old field `oldName`, should be `newName`
- ✗ `path/to/stale.tsx:55` — passes 2 args, new signature expects 3
### Needs manual review
- ? `path/to/dynamic.ts:10` — dynamic import, cannot statically verify
require(), string interpolation), flag as "needs manual review" — never silently skipcoding-convention skill for naming consistency when renames are involvedsystematic-debugging is reactive (post-bug)When asked to review a PR or branch ("review this PR", "PR review", "argus", before merging), fan the diff out to parallel read-only reviewers and return a severity-ranked verdict; optionally post inline via gh.
When the user has reviewer feedback on a GitHub PR (human or bot like gemini-code-assist) and wants the pertinent items fixed — "j'ai des retours sur la PR", "résous/corrige ce qui est pertinent", "lis les commentaires de la PR via gh" — triage every comment thread via gh, apply only the pertinent fixes (drop nits), then reply to and resolve each triaged thread. Not for publishing our own review findings — that is argus-review --post.
Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.
Enforce project coding conventions: reduce duplication, keep naming/file placement consistent, and minimize regression risk. Includes React component and layout guidelines. Use when writing or reviewing code.
Generate a Product Requirements Document from user instructions using the PRD template. Outputs a human-readable self-contained HTML file plus a markdown source for implementation tooling. Includes a macro-level task checklist at the end.
Review changed code (session, current branch, or colleague's branch) for principle violations, reinvented wheels, and dead code. Trigger after coding, before merge, or for PR review.