用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/anasgets111/dotfiles --skill code-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | code-review |
| description | Two-axis code review (Standards vs. Spec). Parallel execution. Enforces YAGNI and systems-level discipline. |
| disable-model-invocation | true |
Review the diff between HEAD and a target fixed point across two independent axes:
Run axes as parallel sub-agents to prevent context pollution.
HEAD~5, main, commit SHA) if not provided.git diff <fixed-point>...HEAD.git log <fixed-point>..HEAD --oneline.git rev-parse) and the diff is not empty before spawning agents.Locate the originating requirement in this order:
#123, Closes #45, GitLab !67).docs/, specs/, or .scratch/).Combine repo-specific docs (CODING_STANDARDS.md) with the Baseline Smells.
Rule of Law: Documented repo standards override the baseline. Skip anything enforced by automated tooling (e.g., PHP_CodeSniffer, ESLint).
| Smell | Definition | The Fix |
|---|---|---|
| Mysterious Name | Unclear variable, function, or type name. | Rename it. If you cannot name it, the architecture is flawed. |
| Duplicated Code | Repeated logic shapes across the diff. | Extract to an Action, Trait, or Vue Composable. |
| Feature Envy | A method querying another object's data heavily. | Move the method onto the Eloquent model/object it envies. |
| Data Clumps | The same 3-4 parameters travel together constantly. | Extract a DTO (Data Transfer Object) or Value Object. |
| Primitive Obsession | Strings/Ints acting as domain concepts. | Use Enums, Value Objects, or custom Casts. |
| Repeated Switches | Identical switch/if cascades on one type. | Replace with Polymorphism or a Config/Match Map. |
| Shotgun Surgery | One logical change scatters edits across 10 files. | Consolidate the logic into a cohesive domain module. |
| Divergent Change | One file edits for 5 unrelated reasons. | Split the class. Enforce Single Responsibility. |
| Speculative Generality | Interfaces/hooks built for "future needs". | YAGNI. Delete it. Inline until a concrete requirement exists. |
| Message Chains | a->b()->c()->d() navigation. | Hide the walk behind a single method on the root object. |
| Middle Man | A class/function that just delegates (Shallow Module). | Delete it. Call the target directly. |
Agent A: Standards Review
CODING_STANDARDS.md, Baseline Smells.Agent B: Spec Review
Output both reports verbatim under ## Standards and ## Spec. Do not merge them. A feature can flawlessly execute the spec while introducing architectural garbage (or vice versa).
End with a brutal one-line summary:
Total Findings: [X] Standards, [Y] Spec. Critical Blockers: [List the absolute worst offense in each category].
| Refused Bequest | Subclass overriding/ignoring most inherited logic. | Drop inheritance. Use Composition. |