zolletta-metaskill-patterns

仓库创建 2026年7月15日最近提交 7 天前SkillHot 收录 4 天前
这个 Skill 做什么

做跨语言的设计模式与类级度量扫描,自动找出可能的 God class、SOLID 违规、耦合过紧或继承/组合滥用点。适合准备重构大类、评估结构质量或做模块化规划时先跑一遍结构检查。采用两步法:先用 AST/度量做自动排查,再用原则性判断区分真问题并给出可执行的重构建议。

▸ 展开 SKILL.md 英文原文

Language-agnostic design pattern analysis with automated class metrics scanning. Detects God classes, SOLID violations, tight coupling, and composition-vs-inheritance issues in Python (via AST scripts) and other languages (via manual principle application). Use when refactoring a God class, evaluating structural quality, or planning a modular architecture. Succeeds and extends python-design-patterns (MIT, wshobson/agents).

0
Stars
0
Forks
10
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Zolletta/zolletta-metaskill/main/patterns/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Zolletta/zolletta-metaskill/main/patterns/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Zolletta-metaskill Design Patterns

Identify structural problems in object-oriented codebases using a two-phase approach:

1. **Automated triage** — run the scanning scripts to find large classes with many methods/attributes. This is a signal, not a verdict.
2. **Principle-based judgment** — apply the "reason to change" test to distinguish true God classes from long-but-cohesive classes.

The principles are language-agnostic (KISS, SOLID, Separation of Concerns, Composition over Inheritance, Rule of Three). The automated scripts currently support Python via its `ast` module. For PHP and other languages, apply the principles manually by reading the code — the scripts are a triage accelerato
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有