skills/dbx-linus-review/SKILL.md
Strict pragmatic, evidence-driven technical review for code changes, architecture plans, data models, and implementation proposals. Use when the user explicitly requests Linus-style review, harsh/strict review, pragmatic critique, over-engineering judgment, merge/readiness judgment, or asks whether a technical plan or code change is good enough. Shares judgment principles with dbx-diff-review-control but uses a stricter artifact-agnostic critique loop. Do not use for ordinary code explanation, implementation-only requests, generic encouragement, interpersonal judgment, or normal diff review unless strict/pragmatic critique is explicitly requested.
npx skillsauth add dbvc/skills dbx-linus-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides direct technical judgment grounded in real problems, data structures, compatibility, simplicity, and practical impact. It is inspired by strict pragmatic engineering principles, not persona roleplay.
Do not claim to be Linus Torvalds. Do not insult the author. Do not perform anger. Be blunt about the technical issue and kind about the person.
dbx-diff-review-controlThe two skills share the same judgment substrate but use different control loops.
dbx-diff-review-control for ordinary concrete diff review, especially PR/staged/commit-range/selected-file review where target selection is the main failure mode.dbx-linus-review for strict pragmatic judgment across diffs, architecture plans, implementation proposals, data model choices, and merge/readiness decisions.This skill should not replace dbx-diff-review-control. It sharpens the judgment lens. The diff skill controls change-set scope. When both are relevant, use the diff skill to establish target/evidence, then use this skill's stricter judgment only if the user asks for it.
Use this skill when the user explicitly asks for:
Do not use it when:
Select one mode before reviewing:
| Mode | Input | Main question |
| --- | --- | --- |
| diff_strict | concrete diff, PR, patch, staged/commit/file target | Is this change safe and good enough under strict pragmatic criteria? |
| plan_strict | architecture plan, implementation proposal, ADR draft | Is the direction worth doing, proportionate, and correctly modeled? |
| model_strict | schema, state model, domain model, API contract | Are identity, ownership, lifecycle, and invariants correct? |
| merge_risk | near-merge change or release gate | What blocks merge/release and what is merely advisory? |
If the input is a diff with ambiguous target, apply the compact target gate below. For ordinary target-heavy review, route to dbx-diff-review-control.
Before reviewing, check:
If artifact or scope is missing, ask for the minimum missing input. Do not invent findings from vibes.
If the user asks you to insult a person, refuse that framing and review the technical issue only.
Use this gate only when this skill is explicitly invoked for a diff/code-change review.
Do not blindly run a broad git diff if the user might intend staged-only, selected-file, or commit-range review. This skill is harsh about engineering, not sloppy about scope.
Use this contract to keep the review grounded. Do not print it unless the user asks for review process details.
review_contract:
target_type: diff | code | architecture_plan | implementation_proposal | data_model | merge_risk
review_mode: strict_pragmatic
artifact_present: true
scope_clear: true
evidence_required: true
persona_roleplay_allowed: false
finding_fields:
- severity
- evidence
- impact
- fix
- confidence
Before detailed review, answer internally:
These questions shape the review. Do not necessarily print them unless useful.
Use only the lenses that matter for the current artifact.
For concrete code or diff review, findings should be sorted by severity:
[S0 blocker | S1 high | S2 medium | S3 low]
Evidence:
Impact:
Fix:
Confidence: high | medium | low
Rules:
For architecture or plan review, adapt Evidence to proposal sections, assumptions, interfaces, data model, migration steps, rollout claims, or omitted constraints.
Default output in Chinese. Fill the structure with concrete evidence; omit sections that do not apply.
## 核心判断
- 结论:可以合并 / 需要修改后合并 / 不建议合并 / 信息不足
- 置信度:high / medium / low
- 最危险的问题:...
## 关键洞察
- 数据结构/状态模型:...
- 用户/兼容性风险:...
- 复杂度判断:...
## 主要发现
1. [S1 high] 标题
- Evidence: 指向具体代码、diff 行为、数据路径或用户路径
- Impact: 谁会受影响、什么条件下出错、为什么重要
- Fix: 最小可行修复方向
- Confidence: high / medium / low
## 更简单的方向
- 删除没有证明价值的同步层、全局 mutable 状态或重复 source of truth。
## 验证建议
- 用最小回归用例覆盖被指出的不变量、兼容性边界或用户路径。
## 核心判断
- 结论:值得做 / 方向对但方案错 / 不值得做 / 信息不足
- 置信度:high / medium / low
## 最大问题
- 一句话指出真正的问题,不要绕。
## 数据结构和模型判断
- 核心实体:...
- 状态/所有权:...
- 不变量:...
- 错误模型:...
## 主要风险
1. [S1 high] 标题
- Evidence: 引用方案中的假设、接口、流程、迁移或遗漏条件
- Impact: 会破坏什么,或会制造什么长期维护成本
- Fix: 更小、更稳的方向
- Confidence: high / medium / low
## 应该砍掉什么
- 砍掉无法降低风险、无法简化模型、只增加协调成本的概念。
## 更小的可行方案
- 先收敛核心实体、状态 owner 和不变量,再选择最薄的一层实现。
## 需要验证的事实
- 验证真实用户路径、迁移/回滚条件、兼容性假设和性能/操作成本。
If there are no major findings, say so directly, then list residual risks and validation suggestions. Do not pad the answer with invented drama.
You may say the review is complete when:
You may not claim tests passed, behavior was verified, or the change is safe unless the evidence exists in the current session.
references/pragmatic-review-rubric.md: compact review rubric and severity guide.references/linus-role.md: background principles only. Do not copy persona language into user-facing output.references/plan-vs-diff-routing.md: how to choose between plan review and diff review.references/data-model-invariants.md: stricter data structure and ownership review guide.references/examples.md: example outputs and anti-patterns.scripts/validate-pragmatic-review.py: optional shape checker for saved strict pragmatic review reports.testing
Manual trigger only. Use only when the user explicitly names `dbx-software-plan-first-showhand`, `$dbx-software-plan-first-showhand`, or asks to manually trigger this exact DBX Software Plan-First safe automatic execution phase. Do not auto-trigger for ordinary automatic execution, do-it-all, showhand, or plan-first requests.
testing
Manual trigger only. Use only when the user explicitly names `dbx-software-plan-first-plan-issue`, `$dbx-software-plan-first-plan-issue`, or asks to manually trigger this exact DBX Software Plan-First plan convergence phase. Do not auto-trigger for ordinary planning, Plan mode, repository exploration, or implementation requests.
testing
Manual trigger only. Use only when the user explicitly names `dbx-software-plan-first-implement-feature`, `$dbx-software-plan-first-implement-feature`, or asks to manually trigger this exact DBX Software Plan-First review-gated single-task implementation phase. Do not auto-trigger for ordinary implementation, tasks.md, next-task, or plan-first requests.
testing
Manual trigger only. Use only when the user explicitly names `dbx-software-plan-first-ground-plan`, `$dbx-software-plan-first-ground-plan`, or asks to manually trigger this exact DBX Software Plan-First read-only grounding phase. Do not auto-trigger for ordinary repo reading, fact checking, plan writing, or implementation requests.