AGENT SKILL
review-dry
Review codebase for DRY (duplication) issues
- License 许可
- MIT
- 所属仓库
- yida29/archrip
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- review-dry
- description
- Review codebase for DRY (duplication) issues
- argument-hint
- [scope: git diff | path | PR | notes]
- user-invocable
- true
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md360 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
DRY review — duplication, single source of truth
Review the target codebase with a DRY lens and report actionable duplication.
Scope
Use $ARGUMENTS to decide scope:
- If it mentions
git diff/ PR / commit: focus on changed areas first. - If it mentions a path: review that subtree.
- If empty: scan the repository for high-impact duplication.
What to look for (examples)
- Duplicated types/interfaces across packages
- Duplicated constants (paths, magic strings, category metadata, colors)
- Duplicated validation rules / parsing logic
- Repeated error messages and CLI usage guidance
- Copy-pasted command steps (install/build/serve)
Output format
Produce:
- Top duplications (priority order)
- Evidence: file paths + short excerpt references
- Why it hurts (change amplification / inconsistency risk)
- Smallest refactor that removes duplication (shared module, helper, constant)
- Quick wins (low effort, high payoff)
- Risks of over-abstraction (what NOT to DRY)
$ARGUMENTS
04 同仓库更多 Skills
review-ux-diagnostics
Review UX and diagnostics (errors, hints, verbose mode)
★ 1
review-typescript-strict
TypeScript Strict Modeガイドラインを適用してコードレビュー・修正を行う。
★ 1
review-test-strategy
Review test strategy and regression resistance
★ 1
review-supply-chain
Review supply-chain and code-execution risks
★ 1
review-srp
Review codebase for SRP (Single Responsibility) and boundaries
★ 1
review-schema-first
Review schema as a single source of truth (Schema-first)
★ 1