Keeping Routines Focused

Each routine does one thing and does it well - extract when routines have multiple responsibilities

43 stars 26 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add obra/clank --skill Keeping Routines Focused
Manual install
git 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-Focused

Personal 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:**
Read the full skill on GitHub

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

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.