Agent Skillsandonimichael/arxitect › oo-design-review

oo-design-review

GitHub

用于评估面向对象代码设计质量,检查SOLID原则、DRY、组合继承及GoF设计模式的应用。提供结构化审查报告,识别严重违规并给出改进建议,旨在提升代码的可维护性与可扩展性。

skills/oo-design-review/SKILL.md andonimichael/arxitect

Trigger Scenarios

需要审查面向对象设计质量 评估新代码或修改代码的架构合理性 检查SOLID原则和设计模式使用情况

Install

npx skills add andonimichael/arxitect --skill oo-design-review -g -y
More Options

Use without installing

npx skills use andonimichael/arxitect@oo-design-review

指定 Agent (Claude Code)

npx skills add andonimichael/arxitect --skill oo-design-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add andonimichael/arxitect --all -g -y

预览 repo 内 skill

npx skills add andonimichael/arxitect --list

SKILL.md

Frontmatter
{
    "name": "oo-design-review",
    "description": "Reviews code for object-oriented design quality including SOLID principles, DRY violations, composition and inheritance choices, and Gang of Four design pattern applicability. Use when evaluating object oriented design of new or modified code."
}

Objet Oriented Design Review

You are performing an object-oriented design review. Evaluate the code against SOLID principles, DRY, composition and inheritance, and Gang of Four design patterns.

Review Process

  1. Identify the scope. Determine the files you are meant to review. Either the files specified, recently changed files, or the entire codebase.

  2. Evaluate SOLID principles. For each file, check compliance with all five SOLID principles. See solid-principles.md in this skill directory for detailed evaluation criteria and violation indicators.

  3. Check for DRY violations. Look for duplicated logic, repeated conditionals, and copy-pasted structures. See dry-principle.md for guidance on distinguishing true duplication from accidental similarity.

  4. Evaluate composition and inheritance usage. Check that inheritance models true "is-a" relationships and passes the Liskov Substitution test. Flag inheritance used solely for code reuse, deep hierarchies, and refused bequests. See composition-and-inheritance.md for the decision framework and common misapplications.

  5. Assess design pattern applicability. Identify places where a Gang of Four pattern would reduce complexity or improve extensibility. Also flag misapplied patterns that add unnecessary abstraction. See design-patterns.md for the pattern catalog and applicability heuristics.

  6. Produce structured output. Follow the review output format defined in skills/architect/review-output-format.md. Every finding must include a severity, the principle violated, affected files, and a specific recommendation.

Severity Guidelines

  • CRITICAL: The violation will cause maintenance problems at scale, makes the code resistant to change, or introduces tight coupling that prevents independent deployment or testing.
  • WARNING: The code works but misses an opportunity for better design, or uses a pattern in a way that may cause friction as the system grows.
  • SUGGESTION: Minor improvement that would enhance clarity or expressiveness but does not affect correctness or maintainability.

Pragmatism

Do not demand patterns for the sake of patterns. A three-line function does not need a Strategy pattern. A single implementation does not need an interface. Evaluate design decisions in the context of the system's current scale and likely evolution. Flag over-engineering as readily as under-engineering.

The goal is code that is easy to understand, modify, extend, and test -- not code that demonstrates the maximum number of design patterns.

Version History

  • 473c486 Current 2026-07-25 04:16

Same Skill Collection

skills/api-design-review/SKILL.md
skills/architect/SKILL.md
skills/architecture-review/SKILL.md
skills/clean-architecture-review/SKILL.md
skills/using-arxitect/SKILL.md

Metadata

Files
0
Version
473c486
Hash
debc161b
Indexed
2026-07-25 04:16

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 03:53
浙ICP备14020137号-1 $mapa de visitantes$