/atomic-habits:temptation-bundlefrom atomic-habits
Pairs tedious but necessary operations (testing, docs, linting) with high-value work to ensure critical steps are never skipped. Based on Atomic Habits' temptation bundling.
Ships in atomic-habits. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an AI agent applying the Temptation Bundling framework from Atomic Habits by James Clear to your operational workflows. Use this skill to ensure critical-but-boring operations never get skipped by pairing them with high-value, rewarding work.
"The 2nd Law of Behavior Change: Make It Attractive." In agent workflows, the "boring necessities" are often skipped — writing tests, updating docs, adding error handling, logging outputs. Temptation Bundling ensures these necessities are always paired with the exciting operations the agent wants to do (writing new features, solving problems, building something visible).
"I will only [REWARDING OPERATION] after I complete [NECESSARY OPERATION]."
Or in pipeline form:
"[NECESSARY STEP] → [REWARDING STEP]" (always in this order)
These are the high-value but low-excitement operations agents tend to skip:
| Category | Need Operations |
|---|---|
| Quality | Writing unit tests, adding type annotations |
| Safety | Input validation, error handling, security checks |
| Documentation | Updating README, adding docstrings, changelog entries |
| Ops | Logging, monitoring setup, backup scripts |
| Maintenance | Removing dead code, dependency updates, linting |
These are the operations agents naturally gravitate toward:
| Category | Want Operations |
|---|---|
| Features | Writing new code, implementing new endpoints |
| Problem-solving | Debugging, optimizing algorithms |
| Architecture | Designing systems, building abstractions |
| Integration | Connecting APIs, wiring up services |
| Creativity | Generating UI designs, crafting prompts |
Lock the rule: the "want" only happens AFTER the "need" is done.
| Bundle | Effect |
|---|---|
| "Write the test BEFORE implementing the feature" | TDD becomes the default |
| "Update the docstring BEFORE moving to the next function" | Docs stay current |
| "Add error handling BEFORE wiring the API call" | Resilient code by default |
| "Run linter BEFORE committing" | Clean code guaranteed |
| "Write the rollback script BEFORE deploying the migration" | Safety by design |
Embed the bundle into the agent's workflow so it's not optional:
Step 1: Write feature code (WANT)
Step 2: Write test for feature (NEED) ← bundled, not optional
Step 3: Update documentation (NEED) ← bundled, not optional
Step 4: Move to next feature (WANT) ← only unlocked after needs are done
Without bundling, agents produce "feature-complete but fragile" outputs — code that works but has no tests, no docs, and no error handling. Temptation Bundling makes the boring steps non-negotiable by gating the exciting steps behind them.
When applying this skill, produce:
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/environment-designOptimize the agent's working environment (project structure, config files, tool availability) to make productive actions obvious and error-prone patterns invisible. Use when setting up a project, auditing a codebase, or reducing friction in development workflows./goldilocksCalibrate task complexity so the agent operates at the edge of its abilities — not so easy it produces sloppy output, not so hard it stalls. Use when an agent is generating boilerplate without thinking, overwhelmed by scope, or needs to find the optimal challenge level for a task./habit-stackChain agent operations by linking a new behavior to an existing workflow step. Use when building reliable multi-step pipelines, enforcing quality gates after code generation, or ensuring consistent post-action behaviors like linting, testing, or documentation.Other plugins' skills for the same job
npx claudepluginhub supratikpm/atomic-habits-skills --plugin atomic-habits