Sub topic 5
Writing the stack: 'After I [anchor], I will [behavior]'
This chapter covers how to write a habit stack sentence and how to test whether it is any good. It assumes you know the cue, routine and reward loop, and the idea of an if-then plan. It also assumes you have a rough sense of how to choose an anchor and shrink a behavior. Those topics have their own chapters, so here they are treated as inputs to the sentence.
What the formula does
A habit stack is one sentence with two slots:
After I [anchor], I will [behavior].The anchor is something you already do reliably. The behavior is the new, small action you want to add. The sentence is an implementation intention, an if-then plan, in a fixed shape. "If" becomes "After I", and the trigger is an event in your own routine instead of a clock time or a vague feeling.
The sentence is useful because writing it forces three decisions in advance:
- Which existing event will serve as the cue.
- What exactly you will do when that event ends.
- That the two are joined, so the first one finishing is the signal to start the second.
If you cannot fill both slots with something concrete, the stack is not ready. Most failed stacks are failed sentences, and the failure is usually visible on paper before you try them in real life.
Filling the anchor slot
The anchor goes after "After I", so it must be a verb phrase that describes an event with a clear end. The end matters because the end is the cue.
Compare these anchors:
| Draft anchor | Problem | Better version |
|---|---|---|
| After I wake up | Wake-up is fuzzy. You may lie in bed for twenty minutes. | After I put my feet on the floor |
| After I get home | Happens at different times and in different ways. | After I hang my keys on the hook |
| After I have breakfast | Duration varies, and the end is unclear. | After I put my breakfast bowl in the sink |
| After I feel stressed | A feeling, not an observable event. | After I close my laptop at the end of the workday |
| After I brush my teeth | Good. It is specific, daily and has a clear end. | After I rinse my toothbrush and put it back |
Three checks help when you review an anchor.
- Specific. Could a stranger watching you tell the exact moment the anchor ends? "Put the toothbrush back in the holder" passes. "Get ready for bed" does not.
- Reliable. Does it happen almost every day you want the new habit to happen? A weekday commute is a poor anchor for a daily habit. Choose an anchor whose frequency matches the habit's.
- Compatible. Is your body, location and attention free when the anchor ends? Stacking a floor stretch onto "after I park the car" fails because you are not in a place where you can stretch.
Write the anchor as the last physical action of the routine, not the whole routine. "After I pour my coffee" is a good anchor. "After I drink my coffee" is weaker, because drinking spreads across ten minutes with no single end.
Filling the behavior slot
The behavior is what you will do. Two rules keep it from becoming a wish.
Use an action verb with an observable result. "Write down one task for today" can be checked. "Be more organized" cannot. If you cannot tell afterward whether you did it, you will not be able to track it either.
Keep it small enough to start without negotiating. If the behavior takes more than about a minute at first, or needs preparation, you will argue with yourself at the moment of the cue. Reduce it: "do 20 minutes of yoga" becomes "roll out my mat". "Read a chapter" becomes "read one page". The goal at this stage is to make the connection between anchor and behavior automatic. You can grow the behavior later, after the link holds.
A few checks:
- One action per sentence. If the behavior contains "and", you have probably written two habits.
- No conditions inside the behavior. "If I have time, I will..." reintroduces the decision the stack was meant to remove.
- Positive wording. "I will drink a glass of water" works better than "I will stop drinking soda". A stack triggers an action, and it cannot trigger an absence.
A small validator
You can turn those checks into code. This is not psychology, only a way to make the checklist explicit and repeatable. The script below extends the sentence-builder idea with a problems method that flags the most common drafting mistakes.
from dataclasses import dataclass
VAGUE_ANCHORS = {
"wake up",
"get home",
"get ready",
"have time",
"feel stressed",
"finish work",
}
@dataclass
class HabitStack:
anchor: str
behavior: str
def sentence(self) -> str:
return f"After I {self.anchor}, I will {self.behavior}."
def problems(self) -> list[str]:
found = []
anchor = self.anchor.strip().lower()
behavior = self.behavior.strip().lower()
if not anchor or not behavior:
found.append("Both slots must be filled.")
return found
if anchor.startswith("i "):
found.append("Anchor should not start with 'I'; the template adds it.")
if anchor in VAGUE_ANCHORS:
found.append("Anchor is vague. Name the last physical action.")
if " and " in behavior:
found.append("Behavior may be two habits. Split it.")
if behavior.startswith("if "):
found.append("Behavior contains a condition. Remove it.")
if len(behavior.split()) > 12:
found.append("Behavior is long. Shrink it to a one-minute version.")
return found
drafts = [
HabitStack("wake up", "exercise and meditate and journal"),
HabitStack("hang my keys on the hook", "put on my running shoes"),
]
for stack in drafts:
print(stack.sentence())
issues = stack.problems()
if issues:
for issue in issues:
print(" -", issue)
else:
print(" OK")Running it prints:
After I wake up, I will exercise and meditate and journal.
- Anchor is vague. Name the last physical action.
- Behavior may be two habits. Split it.
After I hang my keys on the hook, I will put on my running shoes.
OKThe validator catches wording problems only. It cannot tell you whether the anchor really happens daily. Only a week of observation can.
Worked example: from wish to stack
Start with a goal: "I want to floss more."
- First draft. "I will floss every night." This has no anchor. It leaves the trigger to memory and mood.
- Add an anchor. "After I get ready for bed, I will floss." The anchor is a long sequence with no single end point.
- Sharpen the anchor. "After I rinse my toothbrush and put it back, I will floss." The anchor is now one observable event.
- Shrink the behavior. "After I rinse my toothbrush and put it back, I will floss one tooth." One tooth takes seconds, so there is nothing to negotiate. In practice you will often do more, but the commitment is only one tooth.
The finished stack is:
After I rinse my toothbrush and put it back, I will floss one tooth.Each revision removed a decision from the moment of action. The final sentence leaves almost nothing to decide, and that is the point of the formula.
Writing several stacks at once
You can write a few related stacks together and still check each one alone. The code below shows a short chain in which the behavior of one stack becomes the anchor of the next, as in the chaining example from the plan. Chaining is covered properly in its own chapter, so treat this as a preview of how the sentences connect.
chain = [
("pour my morning coffee", "write down one task for today"),
("write down one task for today", "drink a glass of water"),
("drink a glass of water", "put on my running shoes"),
]
for anchor, behavior in chain:
print(f"After I {anchor}, I will {behavior}.")Notice that each behavior is written as an event with a clear end ("write down", "drink", "put on"). That is what lets it work as the next anchor. Only the first anchor, pouring coffee, comes from your existing routine. The rest of the chain is new behavior you must now keep reliable. If the first link fails, every later link loses its cue.
Common drafting mistakes
- Time-based anchors. "At 7 a.m., I will..." depends on you noticing the clock. An event in your routine is a stronger cue than a time because it arrives on its own.
- Anchors that are themselves new habits. Stacking onto a habit you have not yet established gives you an unreliable cue. Anchor to something that already happens.
- Outcome language. "After I finish lunch, I will lose weight" names a result. Name the action that leads toward it.
- Hidden preconditions. "After I park, I will go to the gym" assumes your bag is packed and you have time. If the behavior has prerequisites, either make the prerequisite part of an earlier stack or choose a smaller behavior.
- Too many behaviors on one anchor. One anchor should start one behavior. Spreading several behaviors across one anchor makes none of them clearly triggered.
Saying it out loud
Speak the full sentence once, then do the anchor and the behavior together on the same day you write it. Do the first repetition right away, not "starting tomorrow". The first repetition tests the sentence under real conditions, and it often exposes problems the written version hides, such as the toothbrush holder being in another room from where you keep floss.
A short routine for finishing a stack:
- Write the sentence in the exact template.
- Run the checklist: specific, reliable and compatible anchor, one small observable behavior.
- Perform the anchor and the behavior once, today.
- Put the sentence where you will see it near the anchor, such as on the bathroom mirror. Placement is covered in a later chapter.
Exercise
A learner writes "After I get home from work, I will go for a 30-minute run and then stretch." Name three problems with this stack and rewrite it as one better sentence.
Show answer
Problems: (1) The anchor "get home from work" is not a single observable event, and the time varies. (2) The behavior is long, so it triggers a negotiation at the cue. (3) The behavior holds two habits joined by "and" (run and stretch). A better version: "After I hang my keys on the hook, I will put on my running shoes." The anchor is one specific event that happens daily, and the behavior is a one-action starting step. The run itself can grow from that start once the link is reliable.
Exercise
Why does the stack "After I pour my coffee, I will write down one task" work better as an anchor for the next link than "After I drink my coffee"? Explain in terms of the cue.
Show answer
Pouring has a clear, brief end that you can notice, so it produces a distinct cue. Drinking is spread over many minutes with no single moment that marks its end, so the cue for the next behavior is blurry. A good anchor ends at a definite point, and the new behavior starts at that point.