atomic-habits

atomic-habits is a skill for Claude Code, Codex from muyuhill/100books-to-skills. It costs 63 tokens per session (1,743 once invoked), scanned A, original, MIT.

A behaviour-change framework from James Clear’s book Atomic Habits. It explains habits as a cycle of trigger, desire, action, and reward, and uses small changes to make good behaviours easier to repeat.

In plain words
What is it for?
Building routines, stopping unwanted behaviours, creating habit trackers, linking new actions to existing routines, and designing a more supportive environment.
Why use it?
It reduces reliance on willpower by changing routines and surroundings. It also provides a way to notice unwanted habits and replace them gradually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Building routines, stopping unwanted behaviours, creating habit trackers, linking new actions to existing routines, and designing a more supportive environment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/muyuhill/100books-to-skills/atomic-habits
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add muyuhill/100books-to-skills --skill atomic-habits
Clone the repo
git clone --depth 1 https://github.com/muyuhill/100books-to-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for atomic-habits

README.md
[![agentmods](https://agentmods.dev/badge/skills/muyuhill/100books-to-skills/atomic-habits/github.svg)](https://agentmods.dev/skills/muyuhill/100books-to-skills/atomic-habits)
Your own site
<a href="https://agentmods.dev/skills/muyuhill/100books-to-skills/atomic-habits"><img src="https://agentmods.dev/badge/skills/muyuhill/100books-to-skills/atomic-habits/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for atomic-habits

Your own site · 80×15
<a href="https://agentmods.dev/skills/muyuhill/100books-to-skills/atomic-habits"><img src="https://agentmods.dev/badge/skills/muyuhill/100books-to-skills/atomic-habits.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01743
Opus 5 $0.00032 $0.00872
Sonnet 5 $0.00013 $0.00349
Haiku 4.5 $0.00006 $0.00174

Measured 12d ago against content hash 2b97dd5a1020, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

atomic-habits scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/原子习惯-atomic-habits/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Atomic Habits — 原子习惯四步法

你不决定你的未来,你的习惯决定。每天进步 1%,一年后你会变好 37 倍。

James Clear 的核心主张:不要把焦点放在目标上,放在系统上。 赢家和输家有同样的目标——区别在于前者有一套每天执行的系统。


习惯的四步循环

提示(Cue)→ 渴求(Craving)→ 反应(Response)→ 奖励(Reward)
    ↑                                                    │
    └──────────────── 循环强化 ──────────────────────────┘
步骤 问题 大脑在做什么
提示 触发行为 检测奖励的信号
渴求 驱动行为 想要那个奖励
反应 执行行为 实际做这件事
奖励 强化行为 得到满足感

行为改变四大法则

第一法则:让它显而易见(Make It Obvious)

很多人认为自己缺乏动力,其实缺乏的是清晰度。

具体策略

1. 习惯记分卡 写下你每天做的所有事,标注是好习惯(+)、坏习惯(-)还是中性(=)。先觉察,再改变。

2. 执行意图(Implementation Intention) 公式:「我会在 [时间] 在 [地点] 做 [行为]」

  • ✘ 「我要多运动」
  • ✔ 「我每天下午 6 点在小区的健身房跑步 20 分钟」

3. 习惯叠加(Habit Stacking) 公式:「在 [现有习惯] 之后,我会做 [新习惯]」

  • 「冲完咖啡之后,我会冥想一分钟」
  • 「脱下工作鞋之后,我会立刻换上运动服」

4. 环境设计

与其依赖自控力,不如设计环境。

  • 想多读书?把书放在枕头上——不拿开没法睡
  • 想少刷手机?睡前一小时把手机放在另一个房间

第二法则:让它有吸引力(Make It Attractive)

我们之所以有习惯,是因为我们对奖励的预期驱动了我们。

具体策略

1. 诱惑捆绑(Temptation Bundling) 公式:「做完 [需要的习惯] 之后,我可以做 [想做的事]」

  • 「健完身之后,我才能看 Netflix」
  • 「写完 500 字之后,才能刷小红书」

2. 加入一个群体

我们模仿三种人:亲近的人、多数人、有权势的人。

加入一个已经有你想要的行为习惯的群体——习惯会传染。

3. 重构心态 不是「我必须做」,是「我选择做」。

  • 「我必须早起」→「我选择早起,因为我想要安静的两小时」
  • 「我得去健身」→「我能去健身,说明我身体还健康」

第三法则:让它简单易行(Make It Easy)

最有效的学习方式是实践,不是计划。专注于行动,而非完美。

具体策略

1. 减少阻力

不是培养习惯的意志力,是降低习惯的门槛。

  • 想健身?提前一晚把运动服放在床边
  • 想写作?提前打开文档,只写一句话——通常写完第一句后面就停不下来了

2. 两分钟规则

新习惯开始时,控制在两分钟以内。

  • 「每晚阅读」→「读一页」
  • 「做 30 分钟瑜伽」→「铺开瑜伽垫」
  • 「复习功课」→「打开笔记本」

先标准化,再优化。 先把习惯建立起来,然后再慢慢增加强度。

3. 一次一个习惯

同时培养多个习惯 = 全部失败。


第四法则:让它令人满足(Make It Satisfying)

能立刻得到奖励的行为会被重复。延迟奖励的行为不会被重复。

具体策略

1. 即时奖励 坏习惯的奖励是即时的(吃薯片当下就爽),后果是延迟的(变胖需要时间)。好习惯恰好相反——好处延迟,痛苦即时。

解法:为好习惯创造即时奖励。

  • 健完身 → 往「旅行基金」里转 20 元
  • 连续写作 5 天 → 周末去喜欢的咖啡馆

2. 习惯追踪(Habit Tracker)

不要打破链条。

在日历上每天打勾。连续的天数越长,你越不想断——这就是「链条效应」。

3. 问责伙伴 找一个会监督你的人。给别人一个承诺,你执行的概率会翻倍。

4. 永不错过两次

每个人都会偶尔断一天。顶尖高手和普通人的区别:高手不会连续错过两次。

Read the full file on GitHub · 177 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 177 lines · 63 tokens per session scan A 2b97dd5a1020

Subscribe to this mod's changes

atomic-habits is a skill published in the GitHub repository muyuhill/100books-to-skills (12 stars, last pushed 2mo ago), licensed MIT. It adds 63 tokens to every session and 1,743 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories