Problem-first guidance for choosing, rejecting, and reviewing classic design patterns in Python. Use when selecting a Python design pattern, comparing Factory vs Builder, replacing conditionals with Strategy, evaluating a Refactoring.Guru pattern, refactoring toward or away from a GoF pattern, or deciding whether an abstraction is over-engineered. Do not trigger for generic pattern words, framework patterns, backend topology, or readability-only cleanup.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Choose the least powerful design that solves a demonstrated problem. A named pattern is a hypothesis with cost, not a default implementation.
Start with direct code. Use a named pattern only when direct code leaves a real, recurring pressure that the pattern makes clearer or safer. Prefer:
match, or guard clauses over speculative strategy/chain objectsfunctools, and collections before custom machineryIf no pressure survives this gate, stop at DP-00.
@decorator: use wrappers for object contracts; use callable decorators for callable concerns. Do not hide lifecycle or I/O in syntax.For every pattern decision, report:
clean-code diagnoses smells and behavior-preserving cleanup; see its catalog for IDs such as F3, G15, G22, G23, G30, G31, G32, G34, and G36. This skill decides structural pattern trade-offs. Do not use a pattern to mask a naming, duplication, size, or control-flow problem.
Backend Repository, dependency-injection, distributed, and messaging choices remain in backend-development. React and UI patterns remain in frontend-development. Pipeline/runtime choices remain in the DeepStream skill.
What SKILL.md sets; muted values are Claude Code's defaults
23 skills in this plugin
/agent-selectionSelect Pi agents from compact local agent index./anti-patternsCommon mistakes to avoid with explanations and correct alternatives/clean-codeApply Robert C. Martin Clean Code principles and the clean-code-skills rule catalog when code quality is explicit or when an agent is reviewing, simplifying, refactoring, or cleaning touched code. Use for clean code, code smells, maintainability, readability, naming, small functions, comments/docstrings, DRY, duplication, magic numbers, boundary conditions, Boy Scout cleanup, refactor review, PR review, code quality review, test readability, boundary test coverage, test maintainability, pytest monkeypatch rejection, fixture/conftest cleanup, or requests like "make this cleaner", "review for maintainability", "is this clean code", "simplify this", "remove code smells", "rename this", "split this function", "clean up comments", "clean up tests", or "review tests for clarity". For Python or TypeScript, load only the matching language reference file for files in active scope.Other plugins' skills for the same job
/core:python-design-patternsfrom core
npx claudepluginhub dxta/claude-code-skills --plugin core