Keeping Routines Focused
Each routine does one thing and does it well - extract when routines have multiple responsibilities
Install
npx skills add obra/clank --skill Keeping Routines Focusedgit clone --depth 1 https://github.com/obra/clank.git /tmp/clank
mkdir -p ~/.claude/skills
cp -r /tmp/clank/skills/coding/keeping-routines-focused ~/.claude/skills/Keeping-Routines-FocusedPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Keeping Routines Focused ## Overview A routine should do ONE thing and do it well. This is called functional cohesion - the strongest, best kind of cohesion. **Core principle:** If a routine's description contains "and", it's doing too many things. Extract into focused routines. **Goal:** Improve intellectual manageability. The more focused a routine, the easier to understand, test, modify, and reuse. ## When to Use **Proactively (writing new code):** - Designing new functions/methods - Writing routine specifications - Naming routines (if name is vague or has "and", too many responsibilities) **Reactively (improving existing code):** - Reviewing code with long routines - Refactoring when routine does multiple things - When routine is hard to understand or test - When routine keeps growing with each modification **Warning signs routine needs focus:** - Description has "and" in it - Routine name is vague or long - Routine is hard to name clearly - Routine is > 200 lines (strong signal) - Parameter list > 7 parameters - Many local variables (> 10) - Multiple levels of abstraction mixed - Does validation AND calculation AND side-effects - Hard to write test (does too much to test atomically) ## What is "One Thing"? **One thing means one level of abstraction:** ✅ **Does one thing:**
Details
- Skill name
Keeping Routines Focused- Repository
- obra/clank
- Path
skills/coding/keeping-routines-focused/SKILL.md- Repo updated
- 9 October 2025
FAQ
What does the Keeping Routines Focused skill do?
Each routine does one thing and does it well - extract when routines have multiple responsibilities
How do I install the Keeping Routines Focused skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add obra/clank --skill Keeping Routines Focused. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Keeping Routines Focused popular?
It lives in obra/clank, which has 43 GitHub stars and 26 forks.
Related skills
Gardening Skills Wiki
43obra/clank
Maintain skills wiki health - check links, naming, cross-references, and coverage
Remembering Conversations
43obra/clank
Search previous Claude Code conversations for facts, patterns, decisions, and context using semantic or text search
Brainstorming Ideas Into Designs
43obra/clank
Interactive idea refinement using Socratic method to develop fully-formed designs
Localizing Variables
43obra/clank
Declare variables in smallest possible scope, initialize close to first use, minimize span and live time
Exploring Alternatives
43obra/clank
Try 2-3 different approaches before implementing - don't settle for first design you think of
Maintaining Consistent Abstractions
43obra/clank
Class interfaces present one cohesive abstraction - don't mix domain logic with serialization, persistence, or unrelated concerns
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.