Templates · Lifestyle
Check a habit streak
See your streak and log today when you kept a habit.
Example template for a hypothetical lifestyle app. It is not taken from any shipping app. Rename the tools to match your own App Intents titles.
Tools this skill expects
- Get Habits
- Log Habit
SKILL.md
Skills.skillsbundle/Skills/habit-streak/SKILL.md
---
name: habit-streak
description: Check how many days in a row you kept a habit, and log today when you did it. Use when the user asks about a streak or wants to mark a habit done. Not for starting a new habit or setting a reminder.
---
# Check a habit streak
Use the Get Habits tool to find the habit the user named. If they did not name one, ask which habit to check before doing anything else.
Tell the user the current streak in days and the last day it was logged.
If the user says they did the habit today, use the Log Habit tool to mark today done, then tell them the updated streak.
## Don't
- Don't start a new habit.
- Don't mark a habit done unless the user said they did it.
- Don't set a reminder. Or install it into your bundle: npx siriskills add habit-streak --bundle MyApp/Skills.skillsbundle