coding-patterns
Installation
SKILL.md
Coding Patterns
Modern coding patterns and best practices for writing clean, maintainable, testable code. This skill provides structured guidance on when to apply specific design patterns, how to decompose complex functions, and how to organize code for maximum clarity and minimal token overhead.
When to Use This Skill
Use this skill when:
- Before implementing complex logic - Planning multi-step workflows, service coordination, or complex business rules
- Function complexity warning signs - Function >50 lines, cyclomatic complexity >10, or "and"/"or" in function name
- Code organization questions - Deciding between layered vs feature-based architecture
- Testing difficulties - Hard to test without extensive mocking, complex test setup required
- Code smells detected - God objects, spaghetti code, deep nesting (>4 levels)
- Design pattern questions - Unsure which pattern fits the problem
- Refactoring legacy code - Breaking down large functions or reorganizing codebase