Sub topic 5
Writing the Stack: "After I [anchor], I will [behavior]"
This chapter assumes you know the cue, routine and reward loop. It also assumes you have met if-then planning, and that you can pick an anchor and shrink a behavior. Here you combine those pieces into one written sentence you can use and test.
The formula
A habit stack is one sentence with two slots:
> After I [anchor], I will [behavior].
The anchor is an existing routine that already happens reliably. The behavior is the new, tiny action. The anchor acts as the cue, and the sentence is an if-then plan written in a fixed form. Writing it down turns a vague intention ("I should drink more water") into a decision made in advance.
Here is the formula as code. The class stores the two slots and renders the sentence.
from dataclasses import dataclass
@dataclass
class HabitStack:
anchor: str
behavior: str
def sentence(self) -> str:
return f"After I {self.anchor}, I will {self.behavior}."
print(HabitStack("pour my morning coffee", "write down one task for today").sentence())Running it prints:
After I pour my morning coffee, I will write down one task for today.How the pieces fit
The diagram shows how the parts you have already learned feed the sentence.
Writing a good stack, step by step
- Name the anchor as a specific event. Use an action with a clear end, such as "pour my morning coffee". Avoid states and times of day, such as "in the morning" or "when I feel calm".
- Name the behavior as one small action. Use a verb you could finish in under a minute, such as "write down one task for today".
- Fill in the formula and read it aloud. If you hesitate over what to do, or when, the sentence is too vague.
- Check the order. The anchor must finish before the behavior begins. If the two overlap, you will not notice the cue.
Weak and strong versions
Most weak stacks fail on one of three points: a fuzzy anchor, a large behavior, or both.
| Weak version | Problem | Stronger version |
|---|---|---|
| After I wake up, I will exercise. | The anchor is a moment, and the behavior is large. | After I turn off my alarm, I will put on my running shoes. |
| In the evening, I will read more. | There is no anchor event. | After I brush my teeth, I will read one page. |
| After I get home, I will clean, cook and journal. | One anchor carries three behaviors. | After I hang up my keys, I will write one line in my journal. |
A sentence you can check
Because the formula has fixed slots, you can test a stack automatically. This short check flags the most common wording problems.
VAGUE_ANCHORS = {"in the morning", "in the evening", "when i feel ready", "at some point"}
def check(anchor: str, behavior: str) -> list[str]:
problems = []
if anchor.lower() in VAGUE_ANCHORS:
problems.append("Anchor is a time or mood, not an event.")
if " and " in behavior:
problems.append("Behavior may be more than one action.")
if len(behavior.split()) > 8:
problems.append("Behavior is long; try a smaller version.")
return problems
print(check("in the morning", "exercise and stretch and meditate"))
print(check("pour my morning coffee", "write down one task for today"))The first call returns two problems. The second returns an empty list. This check is crude. It cannot tell whether an anchor is reliable for you, so you still need to judge that yourself.
Common errors when writing the sentence
- Choosing an anchor you do only some days. A weekday commute cannot trigger a daily habit.
- Writing a goal instead of an action. "Be healthier" cannot be done. "Eat one piece of fruit" can.
- Skipping the written form. A stack kept in your head is easy to drift from. Put it on paper, a phone note or a sticky note near the anchor.
- Starting with several stacks at once. Begin with one, and add others only once it holds.
Exercise
Rewrite this weak plan as a habit stack: "In the morning, I will get fit." Give a specific anchor and a behavior that takes under a minute.
Show answer
One answer is "After I pour my morning coffee, I will do five squats." The anchor is a specific event that already happens daily. The behavior is a single small action. Any anchor that is concrete and daily, paired with a tiny action, is acceptable.
Exercise
What is wrong with "After I get home, I will tidy the house, cook dinner and call my mother"? How would you fix it?
Show answer
One anchor carries three large behaviors, so the stack is overloaded and the behaviors are not tiny. Fix it by choosing one small action, such as "After I hang up my keys, I will put one item back where it belongs." Other behaviors can get their own anchors or be chained later.