/dyc:checkfrom dyc
Reviews code diffs, PRs, release readiness, and project or document audits, then reports evidence-grounded findings. Use when users ask for code review, issue or PR triage, release gates, project scorecards, security/performance/coverage review, or doc proofreading. Not for debugging root causes (hunt) or drafting prose (write).
Ships in dyc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Note: this skill is named
check. Some runtimes alias it ascode-review. Do not invoke any other review command from inside this skill.
check is the last gate between code and users. It reads diffs, PRs, issues, releases, and documents, then produces findings grounded in evidence from the current session — never from memory or inference alone.
/think when the user needs planning before review/hunt when the regression point itself is unknown/health when the user wants ongoing monitoring rather than a point-in-time reviewBefore any review, triage, ship, release, or PR operation, read the current worktree with:
git status --short --branch -uall
Treat modified, staged, and untracked files as user work. Do not move, hide, overwrite, clean, or discard them without explicit approval in the current turn. If a branch change or cleanup is genuinely required, stop and ask. When a clean tree is required, use a separate worktree from a known commit.
For commit or push follow-through in a dirty or multi-agent checkout, record git rev-parse HEAD before staging, re-read git status and git rev-parse HEAD immediately before commit and again before push. If HEAD moved or the worktree changed outside your intended files, stop and report.
For PR inspection, prefer commands that do not switch the current working tree: gh pr view, gh pr diff, git fetch origin pull/<n>/head:refs/tmp/pr-<n>, and git merge-tree.
Pick the mode that matches the user's intent, then read it in full before acting. Modes layer on top of the shared review surface (Scope, Hard Stops, Autofix, Specialist Review, Verification, Sign-off) further down, which applies in every mode. Load a mode file only when its row matches; the default review path needs none of them. Mode Picker rows are mutually exclusive; Conformance checklists stack by the surfaces the diff touches; Review References load on demand.
| User intent | Mode |
|---|---|
"implement this plan", /think output handed off | load references/mode-ship.md (Plan Execution Mode) |
| Diff or PR ready, "review", "看看代码", "合并前" | Default review (start at Get the Diff in references/review-patterns.md) |
| "能删什么", "过度工程", "over-engineering review", "what can we delete" | load references/simplification-and-deletion.md |
| "look at issues", "review PRs", "triage", "批量处理" | load references/mode-triage.md |
| "is this worth a release", "值不值得发版" | load references/mode-ship.md (Release Worthiness Analysis) |
| "commit", "push", "publish", "release", "close issue", "发布表情" | load references/mode-ship.md (Ship / Release Follow-through) |
| "audit", "项目体检", "项目评分", "给项目打分", "深入分析项目代码", "scorecard", "linus review" | load references/mode-audit.md |
| A review prompt, skill, persona, or model changed; "is review still catching bugs" | load references/incident-ledger.md (Replay eval) |
| Document, PDF, prose review | load references/writing-review.md |
Before any mode, run Project Context Extraction and (if memory is in scope) Durable Context Preflight.
Before reviewing, extract project constraints from repository context:
For the context shape, see references/project-context.md. For release readiness or publication, also fill the Release Gate 2.0 matrix there; missing matrix evidence is a blocker for a "ready to release" claim. A commit/push-only task uses the source-delivery checks in references/mode-ship.md; unrelated release assets and registry state are out of scope.
When the user names memory, a prior decision, or a memory path, apply three durable-context rules: current state wins over memory; memory is never authorization for a state change; the redaction gate — a memory item becomes a durable project rule only after secrets, private paths, and one-off identifiers are stripped.
For /check: public project rules come from README files, manifests, CI workflows, release docs, and explicit instructions in the current thread. Never cite private memory as a public project requirement.
references/review-patterns.md sections, by need: baseline resolution (Get the Diff), depth classification (Scope Classification), scope drift (Scope Drift Detection), approach-level verdicts (Question the Approach, Not Just the Diff), behavior contract impact (Behavior Contract Impact), pattern-fix completeness (Pattern-Fix Completeness).
Examples, not exhaustive -- flag any diff that could cause irreversible harm if merged unreviewed.
references/security-checklist.md (Security Handoff Gate).references/security-checklist.md.references/review-quality.md (Dependency Discipline).references/project-context.md (Safety Sink Review), the canonical procedure.Before writing any finding into the report, run this gate:
Pre-report self-check (four questions, every finding must pass): Can I cite the exact file:line? Can I describe the specific input or state that triggers the bad outcome? Have I read the upstream callers / downstream consumers, not just the function in isolation? Is the severity defensible — would a senior reviewer raise this at this level in a real PR?
If any answer is "no", drop the finding or downgrade it to advisory.
Finding titles stand alone and lead with the consequence. Counts, absences, and similarities to known-bad patterns are leads to verify, not findings — promote one only with a live trigger path.
HIGH and CRITICAL require three pieces of evidence: the exact file:line where the bug lives; the specific trigger; and why existing guards (validation, type system, upstream catch, framework default) do not already prevent it. Cannot supply all three? Downgrade to MEDIUM, or drop.
Severity vocabulary. HIGH and CRITICAL are the evidence-gated levels. Map Critical: to CRITICAL, an unprefixed required finding to HIGH, and Nit: / Optional: / FYI to advisory. Audit labels CRIT / STRUCT / INCR map to CRITICAL / HIGH / MEDIUM until the audit template says otherwise. A tier disagreement keeps the more severe label and names the missing evidence.
Report shape. Group findings by bug class, highest severity first, each class listing every same-class site with its file:line, then give the total; with none, write no issues found against the stated surface. Issues the diff did not introduce go in a separate pre-existing list and do not count toward the verdict.
Rounds converge. One task gets at most three review/fix rounds. From round two, review only the new diff plus the re-checks Autofix Routing requires, and never re-report a finding already reported. A third round that still finds new problems stops the patch loop: return to the review-patterns reference (Question the Approach, Not Just the Diff). A class that comes back in a second round or a second review is fixed at its source (lint, source gate, type, routed rule), not site by site.
Beyond correctness, run the domain checklists when the diff touches the relevant surface:
| Diff touches | Load checklist |
|---|---|
| User input, auth, data storage, external integrations, uploads, payments, PII, LLM output | references/security-checklist.md |
| Logic, bug fixes, behavior changes, or new features | references/testing.md |
| Load time, interaction, data fetching, queries, bundle | references/performance-checklist.md |
| Production features, I/O, retries, queues, cross-service calls | references/observability-checklist.md |
Pages, components, styles, or DESIGN.md tokens (.vue .tsx .css tailwind.config etc.) | Route to /ui if available for a rendered-surface visual review; otherwise review rendered interaction states yourself (hover cursor, focus ring, tap targets, responsive states) |
Name which checklists you ran in the sign-off and mark each green/blocked. If none apply, state conformance: n/a. A clean pass is a valid result.
Load the matching reference when the review enters that territory:
| When reviewing | Load |
|---|---|
| Findings need sharpening, severity labels, change sizing, dependency discipline, stale or drifting comments | references/review-quality.md |
| Code works but is over-complicated, hard to read, or has removable complexity | references/simplification-and-deletion.md |
| An in-flight single decision needs adversarial, fresh-context checking (not the whole-diff deep pass) | references/doubt-review.md |
| Commits, branching, or release/versioning decisions | references/git-workflow.md |
| Drafting a maintainer reply on a public issue or PR (triage or ship follow-through) | references/public-reply.md |
| CLI entrypoint, installer, completion, config/env, or mutating command (cleanup/update/uninstall/migration) | references/release-surfaces.md (CLI Command Surface); after changing CLI-facing text, re-run the command and read the real output |
| Skill, plugin, marketplace entry, package allowlist/manifest, generated mirror, or published archive | references/release-surfaces.md (Packaged Install Surface); manifest JSON or source tests never substitute for installed-runtime proof |
| Build/deploy pipeline changes or automated checks | references/ci-cd.md |
| Release-worthiness or launch readiness beyond the basic gate | references/mode-ship.md (Launch Readiness) |
| A multi-file or multi-slice change (scope/feature-flag/rollback discipline) | references/incremental-guardrails.md |
| Removing an API/feature, migrating consumers, or a schema change | references/migration.md |
| The standing project-wide bar every change clears before done | references/definition-of-done.md |
| Concrete JS/TS testing syntax within the testing reference (Jest, RTL, Supertest, Playwright) | references/testing.md (JS/TS Syntax Appendix) |
When a finding recurs, or the diff introduces an invariant not yet in project docs, load references/knowledge-sync.md and propose the durable rule; write it only when the current request authorizes edits, otherwise report it as doc debt. Sign-off reports doc debt: none when no new invariant exists.
Specialist reviewers are harness-provided agent definitions; this skill ships none. When the environment provides registered specialists, dispatch the activated ones with the full diff; otherwise run the domain passes yourself through Conformance Review.
Merge findings: two passes flagging the same code location keep the higher severity; different locations are never duplicates.
Every pass finding is a claim to verify, not a fact. For HIGH and CRITICAL claims, re-read the cited code this turn and confirm the claim is real and live; drop what dissolves on direct read, and cite the verification path before routing anything to Autofix or sign-off.
Wait for every active pass before a whole-scope verdict, or name its scope as unreviewed.
| Class | Definition | Action |
|---|---|---|
safe_auto | Unambiguous, risk-free (typos, imports, style) | Apply only after explicit write authorization; otherwise report it |
gated_auto | Behavior fix with clear intended result | Apply within explicit repair authorization; ask only for scope expansion or unresolved user choice |
manual | Architecture or security tradeoff | Resolve from project context; present any remaining user decision |
advisory | Informational only | Note in sign-off |
Write authorization covers necessary fixes within its scope. A routing class does not create another approval step. In report-only mode, do not modify the worktree.
Any fix made during review invalidates the pre-fix verdict. Re-freeze the baseline, re-run the check that exposed the finding, refresh the sibling sweep, and complete the final adversarial pass required by the review depth before declaring ready.
"If I were trying to break this system through this specific diff, what would I exploit?" Four angles: assumption violation, composition failures, cascade construction, abuse cases. Run each angle blind to the others' findings. Suppress any finding that cannot supply the three pieces of evidence required of HIGH/CRITICAL findings (see Finding Quality Gate).
When project docs or CI name a verification command, run that command. Otherwise run bash <skill-base-dir>/scripts/run-tests.sh from the target project root (auto-detects the project's test command). Report exit status and summary, with failure output rather than full passing logs.
A failed check needs diagnosis; no detected command is a discovery gap, not proof of failure. Inspect project docs, manifests, and CI for an appropriate check. Block a fix or readiness claim only when required evidence is missing or failing.
For bug fixes: when a correct test seam exists, a regression test that fails on the old code must exist before the fix is done; when no seam exists, record a no-seam architecture finding with the missing seam instead of treating the fix as fully guarded. When the defect reached users or a published build and the project keeps an incident ledger, the same change adds its row; load references/incident-ledger.md. When a review prompt, skill, persona, or model changes, use that ledger's replay eval to compare recovered rows and noise against the previous run.
In a dirty or multi-agent checkout, a passing local run is not proof: unrelated WIP can supply missing symbols or mask a break. Verify in isolation — git worktree add --detach <known-good-commit>, git apply only your diff, then build/test there.
| What happened | Rule |
|---|---|
| Public reply went to the wrong thread, or read like a report | Follow the public-reply reference — the single source for public reply rules |
| Deployed without provider runtime or env checks | Follow the project's public deployment docs and compare provider config with local required env and runtime settings |
Open the final message with one plain-prose sentence stating where the work stands now (e.g. "已提交并推送为 abc1234"), with the hash, tag, or blocker; then the status block below. A verdict buried under verification tables reads as unfinished; the tables support the verdict, they do not replace it. Audit Mode and Writing Review use their stricter output templates; apply this status block only when the mode does not define one.
status: [committed and pushed as <hash> / staged, not committed / released vX.Y.Z / blocked on <what>]
files changed: N (+X -Y)
scope: on target / drift: [what]
user-visible delta: none / [entry, UI, copy, behavior added, removed, or changed]
review depth: quick / standard / deep
risk tier: [tier]: [gates], human review done / pending (only when a tier applies)
hard stops: N found, N fixed, N deferred
sibling sweep: N same-shape sites checked, N fixed / none found / not applicable
checklists: [security, test, ui] green/blocked or n/a
new tests: N
public actions: replied #N, closed #N, reactions done / none pending
doc debt: none / AGENTS.md needs X / rules need Y
verification: [command] -> pass / fail
public actions lists every outward-facing step the task implied (issue replies, closures, release reactions) with its done or pending state. risk tier is present only when a path tier applies; name its gates and whether the human maintainer reviewed.
Derive every count from the findings, never estimate. If the stated count and the listed findings disagree, the findings win and the count gets recomputed.
For a whole-scope or post-fix verdict, scope is backed by the frozen baseline and current inventory, not by the last patch viewed. Multi-step or ship-action runs close with a numbered completion ledger (done / not applicable / remaining) covering every delegated review and currently authorized step; never say "all read", "full audit complete", or "no issues" while any pass or required verification is still pending.
A turn that wrote files ends with the actual output of git status --short --branch and, when it pushed, the status,conclusion of the CI run for that sha; if either command was not run, the first line says which.
evals/cases/incident-replay.yaml (opens in a new tab)evals/cases/proofread-readme.yaml (opens in a new tab)evals/cases/review-sql-injection.yaml (opens in a new tab)evals/cases/review-without-tests.yaml (opens in a new tab)evals/cases/risk-tier-gate.yaml (opens in a new tab)evals/eval.yaml (opens in a new tab)references/ci-cd.md (opens in a new tab)references/definition-of-done.md (opens in a new tab)references/doubt-review.md (opens in a new tab)references/git-workflow.md (opens in a new tab)references/incident-ledger.md (opens in a new tab)references/incremental-guardrails.md (opens in a new tab)references/knowledge-sync.md (opens in a new tab)references/migration.md (opens in a new tab)references/mode-audit.md (opens in a new tab)references/mode-ship.md (opens in a new tab)references/mode-triage.md (opens in a new tab)references/observability-checklist.md (opens in a new tab)references/performance-checklist.md (opens in a new tab)references/project-context.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
review, 看看代码, 检查一下, 有没有问题, 是否需要优化, 合并前, 继续优化, 优化代码, 看看issue, 看看PR, release, publish, push, release reaction, GitHub reaction, 发布, 提交, 关闭issue, 发布表情, release表情, close issue, issue close, review my code, check changes, before merge, before release, 值得发布, ready to release, code review, audit, project audit, 项目体检, 项目评分, 给项目打分, 深入分析项目代码, 评估项目质量, 代码质量评分, scorecard, linus review, rate this codebase, score this project, 安全审查, 安全加固, security review, 性能检查, performance review, 测试覆盖, test coverage, 可观测性, observability, review docs, 审稿, 文档检查, writing review, proofread files
Other plugins' skills for the same job
npx claudepluginhub mymx2/m2-plugins --plugin dyc12 skills in this plugin
/chromeDrives a real Chrome browser through the chrome-devtools-mcp MCP server for page automation, network and console analysis, emulation, and extension testing. Use when a task needs operating a live browser: navigating, snapshotting the accessibility tree, interacting by element uid, capture a screenshot or full-page capture, console errors, traces, or heap snapshots, or fixing the MCP server setup. Not for diagnosing application logic root causes (use hunt) or judging visual quality (use ui)./forge插件与技能的全生命周期管理:基于 Agent Plugins Spec 创建标准插件、通过 extensions + init 模式适配多厂商(Claude Code / Qoder / Codex / CodeBuddy),以及发现、安装、编写、校验技能。Use when creating a plugin, scaffolding a multi-vendor plugin, writing plugin.json, generating init.ts, finding/installing skills, or authoring/validating SKILL.md. Not for runtime debugging of deployed skills (route to hunt) or reviewing plugin code quality (route to check)./healthRuns a budget-aware agent-assisted engineering health audit for instruction/config drift, hooks/MCP, verifier surfaces, and AI maintainability. Use when users ask to audit Claude, Codex, Pi, agent instructions, MCP or hooks, verifier coverage, or AI-maintainability drift. Not for debugging application code or reviewing PRs./huntFinds the actual root cause of a failing test, error, crash, regression, a page rendered blank or wrong, or a request that throws, before applying fixes, proven against a known-good reference (prior version, release artifact, or "good" screenshot). Use when users report errors, crashes, broken behavior, blank rendering, failing tests, or a used-to-work state that now fails. Not for code review (route to check) or a first-impression visual complaint with no working baseline (route to ui)./learnRuns a six-phase research workflow that turns unfamiliar domains, real docs, source bundles, or collected material into a publish-ready comparison or reference. Use when users ask for multi-source research: deep-dives, comparing tradeoffs, compiling sources, synthesizing unfamiliar material, or turning a source bundle into a coherent reference. Not for quick lookups or single-URL fetches (route to read)./pmProduces PM deliverables and decision frameworks: PRD, user stories, Epic breakdown, backlog prioritization (RICE, MoSCoW), feedback analysis, competitive comparison, metrics reviews (DAU, funnel, retention), roadmaps, GTM (pricing, channels, positioning). Use when users ask to write a PRD, split stories, rank a backlog, analyze feedback or competitors, review metrics, or plan GTM. Not for engineering planning (think), open research (learn), prose polishing (write), or code review (check).