# Design a Habit With If-Then Plans That Survive Bad Days

> Build a habit from your real routine and past failures: a tiny starting version, an anchor, if-then plans for known obstacles and a bad-day minimum.

- **Author:** [Minh Nguyen (@minh_nguyen)](https://promptabide.com/minh_nguyen)
- **Tested on:** Claude · Opus 5.5
- **You fill in:** `habit`, `why`, `past_attempts`, `routine`
- **Published:** 2026-08-05
- **Updated:** 2026-09-24
- **Tags:** `personal-growth`, `productivity`, `learning`
- **Keywords:** implementation intentions habit prompt, how to build a habit that sticks, habit plan for learning a language daily, if then plan for habits, ai habit coach prompt
- **Views:** 1486
- **Likes:** 28

**Best for:** Anyone restarting a habit that died before (language practice, exercise, writing) who wants a plan built on their actual routine and failure points.

## Prompt

```
Help me design a habit that survives real life. Use implementation intentions: specific "When X happens, I will do Y" plans.

The habit I want: {{habit}}
Why it matters to me, and by when: {{why}}
What happened the last times I tried: {{past_attempts}}
My actual daily routine: {{routine}}

Build:
1. **The tiny version**: small enough to do on my worst day, in 2 minutes or less.
2. **The full version**: what a good day looks like.
3. **Anchor**: "After I [existing thing in my routine], I will [habit] at/in [place]." Use something already in my routine, not something aspirational.
4. **Obstacle plans**: for each failure in my past attempts, one "If [obstacle], then I will [specific response]."
5. **Environment**: 2 changes that make it easier to start or harder to skip.
6. **Tracking**: the simplest way to record it, one sentence.
7. **14-day check**: what counts as success after two weeks, and what to change if it doesn't hold.

Don't add extra habits. Don't use streak language that makes one missed day feel like failure.
```

## Variables

- `{{habit}}` — The single habit you want. (e.g. 20 minutes of Spanish practice a day)
- `{{why}}` — Your reason and any deadline. (e.g. Trip to Mexico City in March; want to hold basic conversations)
- `{{past_attempts}}` — What went wrong before, specifically. (e.g. Duolingo streak died at day 23 after a work trip...)
- `{{routine}}` — Your real daily routine, including the bad parts. (e.g. Up at 7, coffee, 35-min train commute...)

## Example input

```
habit: Practice Spanish for 20 minutes a day.

why: I'm going to Mexico City for two weeks in March and want to hold basic conversations: ordering, directions, small talk with my partner's relatives.

past_attempts: Duolingo streak died at day 23 when I had a work trip and missed two days, then felt like I'd "broken it" and stopped. Tried evenings before but I'm too tired after work. I also got bored of the app's sentences, which aren't things I'd actually say.

routine: Wake 7:00, coffee while checking phone, 35-minute train commute (usually scrolling), work 9-17:30, gym Tue/Thu 18:00, dinner ~19:30, TV, scroll in bed until ~23:00.
```

## Output

*Produced by Claude · Opus 5.5.*

```
**1. Tiny version**
Say three Spanish sentences out loud that you'd actually use in Mexico City. Two minutes.

**2. Full version**
20 minutes, mixed: about 10 minutes of a course or app lesson, and 10 minutes building and saying your own phrases for real situations (ordering tacos, asking directions, "How did you two meet?" for the relatives).

**3. Anchor**
"After I sit down on the morning train, I will put in my earphones and open Spanish before I open anything else."
Your commute is 35 minutes of scrolling that already happens every workday. It's the most reliable slot in your routine, and it isn't at the end of a tiring day.

**4. Obstacle plans**
- **If I'm traveling for work and the routine is gone,** then I'll do the tiny version before I check out of the hotel or as soon as I sit down on the plane.
- **If I miss a day,** then the next day's session is a normal session, not a double one. The rule is "never miss two in a row," not "never miss."
- **If the app's sentences bore me,** then I'll spend that day's 10 minutes writing five sentences for a real situation in March and saying them aloud.
- **If the train is too crowded to speak,** then I'll listen and mouth the words, or type the sentences instead.

**5. Environment**
- Move Spanish to your phone's home screen where your first-tapped app is now, and move that app to a folder.
- Keep a note called "Mexico phrases" with situations you'll face. It becomes your material on bored days.

**6. Tracking**
A mark on a paper calendar or in a notes list: "T" for tiny, "F" for full. Both count.

**7. 14-day check**
Success means **10 or more sessions out of 14**, any mix of tiny and full. If you're below that, the anchor is wrong, not you. Try the walk from the station, or pair it with the morning coffee. If you're above it, add one weekly 10-minute voice message in Spanish to your partner.
```

## Why it works

"When X, I will Y" plans (implementation intentions) are one of the better-supported findings in habit research. They work because the cue does the remembering, not your willpower. The prompt forces the **anchor to come from your real routine**, so no imaginary 6am runs.

The big failures are handled directly. **Obstacle plans are built from your own past attempts**, so each known break point has a pre-decided response. The **tiny version** means a bad day still counts. Banning **streak language** targets the "I broke it, so I quit" collapse, which is how most habit restarts actually die. The **14-day check** turns the plan into an experiment you adjust, not a vow you fail.

## When not to use it

One habit at a time. If you paste five, it will design five weak plans. It isn't a fit for habits that need medical input (diet changes for a condition, a new training load after injury) or for stopping compulsive behaviors, where professional support works better. If your routine changes every week, anchors are harder to find, so pick time-free cues instead.

---

Canonical HTML: https://promptabide.com/bides/design-a-habit-with-if-then-implementation-intentions
Agent guide: https://promptabide.com/llms.txt · https://promptabide.com/agent-instructions.md
Sitemap: https://promptabide.com/sitemap.xml
