Keeping Routines Focused
CommunityFocus your code, simplify your life.
Software Engineering#code quality#refactoring#software design#clean code#code complexity#functional cohesion#single responsibility
Authorbarrydobson
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses code complexity, hard-to-understand routines, and maintenance nightmares caused by functions doing too many things. It helps developers write cleaner, more manageable, and less error-prone code by ensuring each routine has a single, clear purpose.
Core Features & Use Cases
- Single Responsibility Principle: Guides you to ensure each routine performs one task exceptionally well, improving functional cohesion.
- Complexity Reduction: Provides techniques to break down "god functions" into smaller, focused units, such as extracting responsibilities or levels of abstraction.
- Improved Testability & Maintainability: Makes code easier to test, modify, and reuse by clearly defining routine boundaries and purposes.
- Use Case: When refactoring a 300-line
processOrderfunction that validates, calculates, and saves, this skill helps you extractvalidateOrder,calculatePricing, andsaveOrderinto separate, focused routines.
Quick Start
Analyze the attached Python function handle_user_request. Identify if it has multiple responsibilities and suggest how to refactor it into more focused routines, applying the "and" test.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Keeping Routines Focused Download link: https://github.com/barrydobson/dotfiles_extra/archive/main.zip#keeping-routines-focused Please download this .zip file, extract it, and install it in the .claude/skills/ directory.