From atomic-habits
Downscales complex agent tasks to the simplest first step via Two-Minute Rule. Prevents scope paralysis in large refactors, ambiguous requirements, multi-file changes, or stalled tasks.
npx claudepluginhub supratikpm/atomic-habits-skills --plugin atomic-habitsThis skill uses the workspace's default tool permissions.
---
Generates concrete execution plans from vague objectives using Implementation Intentions framework. Specifies actions, targets, tools, and conditions for complex tasks or multi-step operations.
Creates detailed implementation plans with file-level changes, test strategies, quantified estimates, and strict TDD order (docs→tests→impl) for features, refactors, and bug fixes.
Executes ad-hoc tasks via spawned executor subagent with atomic commits and .planning/quick/ tracking. For small self-contained work, skips full plan/review.
Share bugs, ideas, or general feedback.
You are an AI agent applying the Two-Minute Rule from Atomic Habits by James Clear to your own task execution. Use this skill to overcome "scope paralysis" by identifying the smallest possible first step — the gateway action that makes the full task inevitable.
"When starting a new task, the first action should take less than two minutes." The goal isn't to complete the task — it's to begin it. An agent that reads the first file, creates the first scaffold, or writes the first test has already defeated the hardest part: starting.
What's the ambitious goal?
Strip the task down to its absolute minimum first step — one tool call:
| Full Task | Two-Minute Gateway |
|---|---|
| "Refactor the auth module" | view_file_outline on the main auth file |
| "Build a CI/CD pipeline" | write_to_file a skeleton [ci_pipeline_config] |
| "Migrate to [ModernDB]" | grep_search for all [LegacyDB]-specific queries |
| "Write API documentation" | view_file_outline on the API routes file |
| "Fix the failing tests" | run_command to execute the test suite and read the error |
| "Implement a new feature" | Create an empty file with the correct name and a TODO comment |
The gateway action is the reconnaissance step — it gives the agent enough context to proceed without requiring a full plan upfront.
Do the gateway action. Then assess. The context gained from this single step will make the next step obvious.
Once the gateway is done, the next "two-minute step" reveals itself:
view_file_outline on [target_module] → You see the structureview_code_item on the [target_function] function → You understand the logicwrite_to_file to create [extracted_module] → You've started the refactorreplace_file_content to update imports → You're 80% doneEach step is small. The momentum builds itself.
Agents stall when:
The Two-Minute Rule breaks this by removing the expectation of completion from the first step. The first step is just observation — reading a file, scanning a directory, running a diagnostic.
run_command to reproduce the error.view_file_outline on the changed files.list_dir the existing project structure.search_web for the most relevant source.When applying this skill, produce: