Agent skill

Habit Formation

by LeoYeAI in LeoYeAI/openclaw-master-skills

Evidence-based techniques for building habits and changing behavior.

MITAuto-check passedProductivity & Automation

Install Habit Formation

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill habit-formation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills habit-formation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/habit-formation .claude/skills/habit-formation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
habit-formation
GitHub stars
2.2k
Token cost
~5.8k tokens
SKILL.md length
980 words
Files
2
Skills in repo
1,235
Repo updated
First seen
Licence
MIT

At a glance

Evidence-based techniques for building habits and changing behavior.

  • Works in 9 steps: Understand the Habit Loop → Tiny Habits — Shrink the Behavior → Habit Stacking — Anchor to What You… → …
  • Someone wants to start exercising
  • SKILL.md covers Sources & Verification, When to Use, Instructions and If This Fails, plus 4 more sections
  • Calls make

What it does

Habit Formation is an agent skill from LeoYeAI/openclaw-master-skills. Evidence-based techniques for building habits and changing behavior. Use when someone wants to start exercising, quit a bad habit, build a daily practice, or has repeatedly failed to make a change stick.

Its SKILL.md is about 5.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `_meta.json`).

It sits in Productivity & Automation. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

When your agent uses it

  • Someone wants to start exercising
  • Quit a bad habit
  • Build a daily practice
  • Has repeatedly failed to make a change stick

Example prompts

  • “/habit-formation”

Requirements

  • Node.js

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Understand the Habit Loop
  2. Tiny Habits — Shrink the Behavior
  3. Habit Stacking — Anchor to What You Already Do
  4. Environment Design — Make Good Easy, Bad Hard
  5. The Identity Shift
  6. Implementation Intentions — The When-Then Plan
  7. When You Break the Chain
  8. Breaking Bad Habits
  9. How Long It Actually Takes

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Habit Formation loads about 5.8k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 980 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~5.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 980 words, ~5,776 tokens.

Download SKILL.mdSave it as .claude/skills/habit-formation/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
habit-formation
description
Evidence-based techniques for building habits and changing behavior. Use when someone wants to start exercising, quit a bad habit, build a daily practice, or has repeatedly failed to make a change stick.
metadata.category
mind
metadata.tagline
The mechanical, evidence-based system for actually changing — shrink the behavior, stack it, design your environment, and stop relying on motivation.
metadata.display_name
Habit Formation & Behavior Change
metadata.submitted_by
HowToUseHumans
metadata.last_reviewed
2026-03-19

Habit Formation & Behavior Change

Motivation is unreliable. Willpower is a limited resource that depletes throughout the day. If you're waiting to "feel like it" to start exercising, stop drinking, or build a meditation practice, you'll wait forever — because the feeling follows the behavior, not the other way around. Habit formation is mechanical, not motivational. The research is clear on this: the people who consistently do hard things didn't find a secret reserve of discipline. They built systems that make the behavior automatic, so it doesn't require a decision every time. This skill is the engineering manual. No inspirational quotes. No "just believe in yourself." Specific, testable techniques backed by decades of behavioral science.

This skill references and extends: emotional-regulation, fitness-for-desk-workers.

agent-adaptation
# Localization note — habit formation principles are universal, but contexts vary.
- Health behavior context:
  Access to gyms, healthy food, and wellness resources varies enormously by
  income, location, and culture. Don't assume everyone can "just join a gym."
  Adjust environment design advice for the user's actual environment.
- Substance habits:
  Quitting smoking, drinking, or other substances follows these principles
  but may also require medical support (nicotine replacement, supervised
  detox). In the US: SAMHSA helpline 1-800-662-4357. UK: NHS stop smoking
  services, FRANK helpline. AU: Quitline (13 78 48), DrugInfo (1300 85 85 84).
- Cultural habits:
  Some habits are culturally embedded (daily prayer, tea ceremonies, siesta).
  Frame habit formation as adding what serves you, not replacing cultural
  practices.
- Work schedule constraints:
  Shift workers, gig workers, and people with irregular schedules can't
  always use time-based triggers. Use event-based triggers instead
  ("after I finish my shift" rather than "at 6pm").
- Technology access:
  Not everyone has a smartphone for habit tracking apps. A paper calendar
  with X marks works just as well — and the research was done before
  apps existed.

Sources & Verification

  • BJ Fogg, "Tiny Habits" -- Stanford behavior scientist. The tiny habit method: shrink the behavior, anchor it to an existing routine. Harvest, 2020.
  • James Clear, "Atomic Habits" -- Practical synthesis of habit research. The habit loop, identity-based habits, environment design. Avery, 2018.
  • Phillippa Lally et al., habit formation research -- "How are habits formed: Modelling habit formation in the real world." University College London, published in European Journal of Social Psychology, 2009. Found median 66 days to automaticity.
  • Peter Gollwitzer, implementation intentions -- "Implementation intentions: Strong effects of simple plans." Research showing implementation intentions double success rates. American Psychologist, 1999.
  • Wendy Wood, "Good Habits, Bad Habits" -- Habit formation research from USC. The role of context and repetition. Farrar, Straus and Giroux, 2019.
  • Roy Baumeister, willpower research -- Ego depletion and the limits of self-control. (Note: some ego depletion findings have been debated in replication studies, but the practical advice — don't rely solely on willpower — holds.)

When to Use

  • Someone wants to start exercising and can't stick with it
  • Wants to quit smoking, drinking, scrolling, or another unwanted habit
  • Has tried to change a behavior multiple times and keeps failing
  • Wants to build a daily practice (meditation, journaling, reading, stretching)
  • Knows what they should do but can't get themselves to do it consistently
  • Is overwhelmed by the gap between where they are and where they want to be
  • Needs a system, not motivation

Instructions

Step 1: Understand the Habit Loop

Agent action: Explain the cue-routine-reward loop clearly. This is the foundation.

THE HABIT LOOP — HOW EVERY HABIT WORKS

Every habit — good or bad — runs on the same neurological loop:

CUE --> ROUTINE --> REWARD

CUE: The trigger. What starts the behavior.
  - Time of day ("it's 3pm")
  - Location ("I'm on the couch")
  - Emotional state ("I'm bored/stressed/tired")
  - Preceding action ("I just finished lunch")
  - Other people ("my coworker is going for a smoke")

ROUTINE: The behavior itself.
  - Scrolling your phone
  - Going for a run
  - Eating a snack
  - Having a drink

REWARD: What the behavior gives you.
  - Stress relief
  - Social connection
  - Dopamine hit
  - Relaxation
  - Distraction from discomfort

TO BUILD A NEW HABIT: Design all three parts deliberately.
TO BREAK AN OLD HABIT: Identify the cue and reward, then swap the
routine for something that delivers the same reward.

EXAMPLE — BREAKING THE AFTER-WORK BEER HABIT:
Cue: Walking in the door after work.
Current routine: Open a beer.
Reward: Transition from work mode to home mode. Relaxation signal.
New routine: Sparkling water + 5-minute sit on the porch.
Same cue. Same reward (transition ritual, relaxation). Different routine.
Step 2: Tiny Habits — Shrink the Behavior

Agent action: Teach the BJ Fogg tiny habits method with specific examples.

TINY HABITS — THE BJ FOGG METHOD

The #1 reason people fail at habits: they start too big.

"I'll work out for an hour every day" = failure within 2 weeks.
"I'll do 2 pushups after I brush my teeth" = still doing it 6 months later.

THE RULE: Make the habit so small it's laughable. You should feel
slightly embarrassed by how easy it is. That's the point.

THE FORMULA:
After I [EXISTING HABIT], I will [TINY NEW HABIT].

EXAMPLES:
After I pour my morning coffee, I will write one sentence in my journal.
After I sit down at my desk, I will open my task list.
After I put on my shoes, I will walk to the end of the driveway.
After I brush my teeth at night, I will do 2 pushups.
After I park my car at work, I will take 3 deep breaths.

WHY TINY WORKS:
1. Zero motivation required. You don't need to "feel like" doing
   2 pushups. You just do them.
2. It builds the neural pathway. The habit loop forms from repetition,
   not intensity. 2 pushups every day for 60 days builds a stronger
   habit than 50 pushups done twice and then abandoned.
3. It naturally grows. After a week of 2 pushups, you'll often do 5.
   Then 10. The tiny version is the entry point, not the ceiling.
   But the ceiling is optional. The floor is mandatory.

THE CRITICAL RULE:
On your worst day — sick, exhausted, no time, everything is terrible —
do the tiny version. Never zero. 2 pushups. One sentence. Walk to
the mailbox. The habit survives because it has a floor so low that
"I don't have time" is never a valid excuse.
Step 3: Habit Stacking — Anchor to What You Already Do

Agent action: Provide the habit stacking framework with a practical exercise.

HABIT STACKING — ANCHORING NEW TO EXISTING

You already have dozens of habits: brush teeth, make coffee, check
phone, sit at desk, eat lunch, get in car. These are your anchors.

THE FORMULA:
After I [CURRENT HABIT], I will [NEW HABIT].

BUILDING A STACK:
Morning example:
1. Wake up (existing) -> make bed (new, 30 seconds)
2. Make bed -> start coffee (existing)
3. Pour coffee -> write 3 things I'm grateful for (new, 1 minute)
4. Finish coffee -> open task list (new, 30 seconds)

Evening example:
1. Finish dinner (existing) -> load one dish (new, 30 seconds)
2. Brush teeth (existing) -> do 2 pushups (new, 15 seconds)
3. Get into bed (existing) -> read one page (new, 2 minutes)

THE ANCHOR MATTERS:
- Pick an anchor that happens every day without fail.
- Pick an anchor in the right location (don't stack a kitchen habit
  onto a bedroom anchor).
- Pick an anchor where the timing makes sense (don't stack "meditate"
  after "rushing out the door").

EXERCISE — MAP YOUR CURRENT HABITS:
Write down everything you do from waking to leaving the house.
Write down everything you do from arriving home to bed.
These are your available anchors. Pick one. Attach one tiny behavior.
That's your starter stack.
Step 4: Environment Design — Make Good Easy, Bad Hard

Agent action: Provide specific environment design strategies.

ENVIRONMENT DESIGN — THE MOST UNDERRATED HABIT TOOL

Willpower is a bad strategy. Environment design is a good one.
The principle is simple: make the behavior you want EASY and VISIBLE.
Make the behavior you don't want HARD and INVISIBLE.

BUILDING GOOD HABITS:
- Want to run? Sleep in your running clothes. Shoes by the bed.
- Want to eat better? Put fruit on the counter. Put cookies on a
  high shelf behind other things.
- Want to read more? Put the book on your pillow. Remove the TV
  from the bedroom.
- Want to drink water? Fill a bottle at night, put it where you'll
  see it first thing.
- Want to practice guitar? Leave it on a stand in the living room,
  not in a case in the closet.

BREAKING BAD HABITS:
- Want to stop scrolling? Delete social media apps from phone.
  You can still use them on a computer — adding one step of friction
  cuts usage dramatically.
- Want to stop snacking at night? Don't buy the snacks. You won't
  drive to the store at 10pm. Friction wins.
- Want to quit smoking? Don't carry a lighter. Don't keep cigarettes
  in the house. Every extra step between you and the cigarette is
  a barrier.
- Want to stop watching TV for hours? Unplug it after each use.
  Remove batteries from the remote. Sounds absurd. Works.

THE 20-SECOND RULE:
If a behavior takes more than 20 seconds of effort to start, you're
significantly less likely to do it. This works in both directions:
- Want to do it? Reduce it to under 20 seconds to start.
- Want to stop? Add at least 20 seconds of friction before you can
  start it.

YOUR PHYSICAL SPACE IS YOUR WILLPOWER:
A kitchen counter with a fruit bowl produces different behavior than
a kitchen counter with a cookie jar. A bedroom with a book on the
nightstand produces different behavior than one with a phone charger
on the nightstand. You're not weak. Your environment is poorly designed.
Redesign it.
Step 5: The Identity Shift

Agent action: Explain the identity-based habit model.

THE IDENTITY SHIFT — BEHAVIOR FOLLOWS IDENTITY

Most people set habits based on outcomes:
"I want to lose 20 pounds" -> go to gym -> hate it -> quit.

The more effective approach is identity-based:
"I'm a person who moves their body" -> go to gym because that's
what this person does -> it's not a chore, it's self-expression.

THE SHIFT:
Outcome-based: "I want to quit smoking."
Identity-based: "I'm not a smoker."

Outcome-based: "I want to read more."
Identity-based: "I'm a reader."

Outcome-based: "I want to run a marathon."
Identity-based: "I'm a runner."

HOW IDENTITY FORMS:
Identity isn't something you declare. It's something you prove to
yourself through small actions, repeatedly.

Every time you do 2 pushups, you cast a vote for "I'm someone who
exercises." Every time you choose water over beer, you cast a vote
for "I'm someone who takes care of themselves." You don't need a
unanimous vote. You need a majority.

THE PRACTICAL VERSION:
When faced with a decision, ask: "What would a [identity] do?"
- "What would a healthy person eat right now?"
- "What would a responsible person do with this money?"
- "What would a good parent do in this moment?"

You're not there yet. That's fine. Act as if, collect evidence, and
the identity follows. Fake it till you make it is bad advice for
emotions. It's good advice for habits.
Step 6: Implementation Intentions — The When-Then Plan

Agent action: Provide the implementation intentions technique with the research behind it.

IMPLEMENTATION INTENTIONS — DOUBLING YOUR SUCCESS RATE

Peter Gollwitzer's research: people who form a specific plan for
WHEN and WHERE they'll perform a behavior are 2-3x more likely to
follow through than people who just intend to do it.

THE FORMULA:
When [SITUATION], then I will [BEHAVIOR].

EXAMPLES:
When it's 7am on Monday/Wednesday/Friday, then I will put on my
running shoes and go outside.

When I feel the urge to check social media, then I will take 3
deep breaths instead.

When my coworker offers me a cigarette, then I will say "no thanks,
I quit" and walk away.

When I sit down for dinner, then I will put my phone in another room.

When I feel stressed after work, then I will change clothes and walk
for 10 minutes before doing anything else.

WHY IT WORKS:
- It removes the decision. You've already decided. When the moment
  comes, you execute, not deliberate.
- It links the behavior to a specific context. Your brain starts
  scanning for that context automatically.
- It handles the "I forgot" problem. You didn't forget to eat lunch.
  You won't forget a behavior that's linked to a clear trigger.

THE KEY: Be specific. "I'll exercise more" is an intention.
"When I get home from work on Tuesday and Thursday, I'll change into
gym clothes and do a 20-minute workout video in the living room"
is an implementation intention. The second one works. The first
one doesn't.
Step 7: When You Break the Chain

Agent action: Address what to do when you miss a day, because everyone does.

WHEN YOU MISS A DAY — THE 2-DAY RULE

You will miss days. Everyone does. The question isn't IF you'll break
the streak. It's what you do after.

THE 2-DAY RULE:
Never miss twice. One missed day is a rest day. Two missed days is
the start of a new (bad) habit. Your only job when you miss is to
show up the next day.

WHAT MISSING FEELS LIKE:
- Day 1 missed: "I'll do it tomorrow." (Fine.)
- Day 2 missed: "I already missed yesterday, what's one more day?"
  (This is the danger zone.)
- Day 3 missed: "I guess I'm not someone who does this." (Identity
  shift in the wrong direction.)

Catch it at Day 2. Do the tiny version (Step 2). 2 pushups. One
sentence. Walk to the mailbox. The minimum viable version keeps the
identity intact.

WHAT NOT TO DO WHEN YOU MISS:
- Don't "make up for it" with a double session. That creates an
  aversion response. Your brain associates the habit with punishment.
- Don't beat yourself up. Self-criticism doesn't improve performance.
  It creates avoidance.
- Don't restart the counter. You didn't lose your progress. A runner
  who misses a day is still a runner. Just run tomorrow.

THE MATH:
If you do a habit 5 out of 7 days per week, that's a 71% consistency
rate. Over a year, that's 260 days of practice. That's more than
enough for the habit to become automatic and for real change to
accumulate. Perfection isn't the goal. Consistency is.
Step 8: Breaking Bad Habits

Agent action: Apply the framework in reverse for habit elimination.

BREAKING BAD HABITS — THE SAME FRAMEWORK IN REVERSE

Building good habits: reduce friction, increase cues, add rewards.
Breaking bad habits: increase friction, remove cues, find replacement
routines.

STEP-BY-STEP:

1. IDENTIFY THE CUE
   What triggers the behavior? Time, place, emotional state, preceding
   action, or other people?
   Example: "I scroll my phone when I'm bored after dinner."
   Cue: boredom + after dinner + couch.

2. IDENTIFY THE REWARD
   What do you actually get from the behavior? Not the obvious thing —
   the underlying need.
   Example: scrolling = stimulation + distraction from boredom.

3. INCREASE FRICTION
   Make the bad behavior harder to do.
   - Delete the app (you'll be too lazy to reinstall every time)
   - Put the phone in another room after dinner
   - Set screen time limits

4. REMOVE THE CUE
   If possible, eliminate or change the trigger context.
   - Don't sit on the couch after dinner (change the location)
   - Do something else immediately after dinner (fill the slot)

5. FIND A REPLACEMENT
   The reward is real. You need something else that provides it.
   - Boredom after dinner? -> Puzzle, book, walk, conversation
   - Stress relief from smoking? -> Physical movement, cold water,
     breathing exercises
   - Comfort from overeating? -> Hot bath, weighted blanket, calling
     a friend

6. USE IMPLEMENTATION INTENTIONS
   "When I feel the urge to [bad habit], I will [replacement] instead."

THE HARD TRUTH ABOUT QUITTING:
The urge doesn't go away immediately. It fades over time, but the
first 2-4 weeks are genuinely difficult. The craving itself lasts
about 10-15 minutes. If you can ride out the wave (see emotional-
regulation skill, 90-second rule), it passes. Every time you ride
the wave without giving in, the next wave is slightly smaller.
Step 9: How Long It Actually Takes

Agent action: Set realistic expectations with the actual research numbers.

HOW LONG DOES IT TAKE TO FORM A HABIT?

THE MYTH: 21 days. This comes from a misquoted 1960s plastic surgery
observation. It's wrong.

THE RESEARCH (Phillippa Lally, UCL, 2009):
- Studied 96 people building new habits over 12 weeks.
- Median time to automaticity: 66 days.
- Range: 18 to 254 days.
- Simpler behaviors (drinking water) formed faster.
- Complex behaviors (exercise) took longer.
- Missing a single day did NOT significantly affect habit formation.

WHAT THIS MEANS FOR YOU:
- Give yourself at least 2 months, not 3 weeks.
- Simple habits (take vitamins, drink water): ~30 days.
- Moderate habits (journaling, stretching): ~60 days.
- Complex habits (daily exercise, meditation): ~90+ days.
- It's a spectrum, not a switch. The habit gets progressively easier.
  You don't wake up on day 66 and suddenly it's effortless.

THE AUTOMATICITY SIGNAL:
You know a habit has formed when you feel WEIRD not doing it.
When skipping the behavior feels more uncomfortable than doing it,
the habit has flipped from effortful to automatic.

TRACKING (simple is better):
- Calendar on the wall. X on the days you did the habit.
- Don't break the chain. When you see a row of X marks, you don't
  want to break it. That visual continuity is motivating.
- Don't use elaborate apps. They become their own procrastination.
  A paper calendar and a marker is the gold standard.
Show full SKILL.md (473 more words)Show less

If This Fails

  • "I keep starting and quitting after a week": Your habit is too big. Shrink it. Whatever you think is small enough, make it smaller. The goal for month one is just doing it daily, not doing it well.
  • "I don't have time": You have time for 2 pushups. You have time to write one sentence. You have time to drink a glass of water. Start there. "I don't have time" usually means "this feels too big."
  • "I've tried everything and nothing sticks": You probably haven't tried tiny habits with environment design and habit stacking simultaneously. Most people try one technique at a time. Stack them.
  • "I can't break my bad habit — the cravings are too strong": For substance habits (nicotine, alcohol, drugs), self-help techniques are a complement to professional support, not a replacement. Talk to a doctor about pharmacological support (nicotine patches, naltrexone, etc.). For behavioral habits (scrolling, gambling, overeating), the environment design approach (Step 4) is your strongest tool.
  • "I know what to do, I just don't do it": That's not a knowledge problem, it's a system problem. You have an intention but no implementation plan. Write the when-then plan (Step 6). Put the physical cues in place (Step 4). Make the first step so small that not doing it requires more effort than doing it.

Rules

  • Don't promise fast results. Habit formation takes weeks to months. Set expectations honestly.
  • Don't moralize about "bad habits." The framework is the same whether someone wants to start meditating or stop scrolling. Judgment slows change.
  • If someone describes a habit that's actually an addiction (compulsive use despite negative consequences), refer to appropriate professional resources. Habit formation techniques help but may not be sufficient alone.
  • Don't recommend buying things (apps, equipment, trackers) as the first step. Habits form through behavior change, not purchases.

Tips

  • The best time to start a new habit is during a life transition (new job, new city, new year, new relationship). Old cues are disrupted, making new behaviors easier to install.
  • Tell no one about your new habit for the first 30 days. Research shows that announcing goals can create a premature sense of accomplishment that reduces follow-through.
  • If you're building multiple habits, start with ONE. Add the next one only after the first feels automatic (usually 30-60 days). Trying to change everything at once is the most reliable way to change nothing.
  • Your environment is stronger than your willpower. Every time. If the cookies are in the house, you'll eat the cookies. Design the environment so the default behavior is the behavior you want.
  • Reward yourself immediately after the tiny habit. A small celebration — a mental "nice" or a fist pump — fires dopamine at the right moment and accelerates habit formation. This is BJ Fogg's key insight and it feels silly but it works.

Agent State

yaml
habit_formation_session:
  target_habit: null
  habit_type: null
  current_stage: null
  anchor_habit_identified: null
  environment_changes_planned: []
  implementation_intention: null
  days_tracked: 0
  missed_days: 0
  breaking_bad_habit: false
  professional_referral_needed: false
  resources_provided: []
  related_skills_referenced: []

Automation Triggers

yaml
triggers:
  - name: repeated_failure_detection
    condition: "user mentions trying and failing to build the same habit multiple times"
    schedule: "on_demand"
    action: "Start with Step 2 tiny habits — the habit is almost certainly too big. Shrink it."
  - name: addiction_flag
    condition: "user describes compulsive behavior with negative consequences they can't control"
    schedule: "immediate"
    action: "Acknowledge habit formation tools as supplementary and recommend professional support (SAMHSA, doctor, therapist)"
  - name: habit_tracking_setup
    condition: "user has identified a specific habit and is ready to start"
    schedule: "on_demand"
    action: "Walk through Steps 2-4 sequentially: shrink the behavior, identify the anchor, design the environment, write the implementation intention"
  - name: bad_habit_protocol
    condition: "user wants to break a specific habit rather than build one"
    schedule: "on_demand"
    action: "Jump to Step 8 and work through the reverse framework: identify cue, identify reward, increase friction, find replacement"

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/habit-formation of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • _meta.json

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Habit Formation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Habit Formation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Habit Formation this skillLeoYeAI/openclaw-master-skills2.2k—~5.8kAutomated safety check: PassMIT
Agent Browserquran/quran.com-frontend-next1.9k40 repos~3.3kAutomated safety check: PassNone
Dependency Watchtelegramdesktop/tdesktop33k1 repos~2.2kAutomated safety check: PassGPL-3.0
Perform Tasktelegramdesktop/tdesktop33k2 repos~3kAutomated safety check: PassGPL-3.0
Brave Searchbadlogic/pi-skills2.6k5 repos~592Automated safety check: PassMIT
Garden Inboxpaperclipai/paperclip100k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Agent Browser

    quran/quran.com-frontend-next

    Automates browser interactions for web testing, form filling, screenshots, and data extraction.

    1.9k GitHub starsUsed in 40 repos~3.3k tokens
    Productivity & AutomationAuto-check passed
  • Dependency Watch

    telegramdesktop/tdesktop

    Audit Telegram Desktop dependencies on freshly fetched origin/dev for releases and security fixes, including upstream lag and backport candidates in patched forks.

    33k GitHub starsUsed in 1 repo~2.2k tokens
    Productivity & AutomationAuto-check passed
  • Perform Task

    telegramdesktop/tdesktop

    Resolve, start or resume, implement, review, test, and publish exactly one existing ai-tdesktop task by short slug or full dated id, including rare blocked retries and split-required results.

    33k GitHub starsUsed in 2 repos~3k tokens
    Productivity & AutomationAuto-check passed
  • Brave Search

    badlogic/pi-skills

    Web search and content extraction via Brave Search API. An agent skill from badlogic/pi-skills.

    2.6k GitHub starsUsed in 5 repos~592 tokens
    Productivity & AutomationAuto-check passed
  • Garden Inbox

    paperclipai/paperclip

    Scan a Paperclip user's Mine inbox, classify reversible archive candidates, request checkbox confirmation, and archive only accepted selections.

    100k GitHub stars~1.1k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Continue

    telegramdesktop/tdesktop

    Continue autonomous Telegram Desktop development from the shared ai-tdesktop repository.

    33k GitHub starsUsed in 2 repos~9.4k tokens
    Productivity & AutomationAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 1,200 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Habit Formation

What does Habit Formation do?

Evidence-based techniques for building habits and changing behavior. Habit Formation is an agent skill from LeoYeAI/openclaw-master-skills. Evidence-based techniques for building habits and changing behavior.

When should I use Habit Formation?

Habit Formation fits situations like: someone wants to start exercising; quit a bad habit; build a daily practice; has repeatedly failed to make a change stick.

How do I install Habit Formation in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill habit-formation -a claude-code`. Or copy the skill folder (skills/habit-formation in LeoYeAI/openclaw-master-skills) into .claude/skills/habit-formation in your project. Claude Code loads it when a task matches its description.

How do I install Habit Formation in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill habit-formation -a codex`. Or copy the skill folder (skills/habit-formation in LeoYeAI/openclaw-master-skills) into .agents/skills/habit-formation in your project. Codex loads it when a task matches its description.

Can I use Habit Formation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill habit-formation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/habit-formation, .gemini/skills/habit-formation, .github/skills/habit-formation and .opencode/skills/habit-formation in your project.

What does Habit Formation need to run?

Going by SKILL.md and its folder, Habit Formation needs the command-line tools its instructions call (make). Our summary lists: Node.js.

Does Habit Formation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Habit Formation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Habit Formation use?

Habit Formation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Habit Formation use?

About 5.8k tokens (SKILL.md is roughly 23k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Habit Formation?

Skills that share tags, products or a category with Habit Formation: Agent Browser (quran/quran.com-frontend-next, 1.9k stars), Dependency Watch (telegramdesktop/tdesktop, 33k stars), Perform Task (telegramdesktop/tdesktop, 33k stars) and Brave Search (badlogic/pi-skills, 2.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Habit Formation?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.