/atomic-habits:habit-trackfrom atomic-habits
Implements habit tracking with visual feedback loops for agent operations. Tracks behaviors like test runs, doc updates, and lint scores to measure consistency and catch regressions.
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 Habit Tracking framework from Atomic Habits by James Clear to your operational workflows. Use this skill to create visual feedback loops that make progress measurable, regressions detectable, and consistency the default.
"The 4th Law of Behavior Change: Make It Satisfying." Agents repeat behaviors that produce visible, positive signals. Habit Tracking provides immediate feedback — a test passes, a coverage number goes up, a lint score improves. The signal reinforces the behavior.
Track the behavior, not the outcome:
Choose a quantifiable, automatable metric:
| Domain | Metric | Tool |
|---|---|---|
| Code Quality | Lint score, code coverage % | run_command ([lint_command], [coverage_command]) |
| Testing | Tests written per feature | grep_search for test files |
| Documentation | Docstring coverage | Custom script or view_file_outline |
| Security | Vulnerabilities detected | run_command ([security_audit_command]) |
| Performance | Response time, bundle size | Benchmark scripts |
| Task Completion | Steps completed vs planned | Checklist in task.md |
The measurement must happen immediately after the action. Build it into the pipeline:
After [writing code] → run_command("[test_command]") → record result
After [modifying API] → run_command("[lint_command]") → record score
After [completing task] → update task.md → mark [x]
This is the most important rule for agents.
If a metric drops (test coverage decreases, lint score worsens, a test fails):
"The first mistake is never the one that ruins you. It is the spiral of repeated regressions that follows."
Output progress as a simple table or log:
| Day | Tests Written | Coverage | Lint Score |
|-----|--------------|----------|------------|
| Mon | 12 | 78% | 94 |
| Tue | 8 | 81% | 96 |
| Wed | 15 | 84% | 97 |
The upward trend becomes its own motivator.
When applying this skill, produce:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub supratikpm/atomic-habits-skills --plugin atomic-habits9 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./identity-shiftReframe the agent's approach from outcome-chasing to identity-aligned execution. Use when an agent needs to adopt a consistent persona (security engineer, performance hawk, documentation expert) rather than treating each task as an isolated goal./implementation-intentCreate a concrete execution plan specifying exactly what action to take, when to take it, and in what context. Use when starting a complex task, breaking down ambiguous requirements, or preventing scope drift during multi-step operations./reflect-reviewConduct a periodic audit of the agent's workflows, outputs, and patterns to course-correct and compound improvements. Use after completing a project phase, before starting a new sprint, or when performance has plateaued.