name: daily-task-prep
description: "Prepare {{OWNER_NAME}}'s task list for the day using clawchief/tasks.md plus their calendars. Use when a cron or direct request asks to prepare today's tasks before the day starts; when recurring weekday tasks, due-today backlog items, and principal-owned meetings / calls should be added to ## Today; or when the task list needs a safe early-morning refresh without overwriting manual priorities."
Daily Task Prep
Use clawchief/tasks.md as the canonical live task file and clawchief/tasks-completed.md as the completed-task archive.
Core rules
- read
clawchief/priority-map.mdbefore regrouping or inserting active tasks - preserve existing manually added open tasks in
## Todayunless they are obviously stale past meetings - on weekdays, treat
## Every weekdayas the recurring seed list - on weekends, do not auto-add
## Every weekdayitems unless explicitly asked - promote items due today from
## Backlog with due dateinto## Today, and remove the backlog copy in the same edit - scan
## Recurring remindersand add any reminder that is due today into## Todaywithout deleting the recurring source item - add principal-owned meetings and calls for today to
## Today - exclude personal or family calendar blocks that are only conflict sources, not principal-owned tasks
- keep assistant tasks clearly separate from principal tasks
- archive tasks completed yesterday out of
clawchief/tasks.mdintoclawchief/tasks-completed.md - keep tasks completed today in
clawchief/tasks.mduntil the next morning's prep run unless the user explicitly wants earlier cleanup - update the file's
Last updatedtimestamp - stay silent unless something needs human attention
Preparation workflow
- read
clawchief/tasks.md - read
clawchief/priority-map.md - read
clawchief/tasks-completed.mdif it exists - determine whether today is a weekday
- archive tasks completed yesterday from
clawchief/tasks.mdintoclawchief/tasks-completed.md - build the candidate
## Todaylist from:- current open
## Todaytasks worth carrying forward - weekday recurring items from
## Every weekdayif today is Monday-Friday - items in
## Backlog with due datethat are due today - items in
## Recurring reminderswhose recurrence makes them due today - today's principal-owned meetings / calls from calendar
- current open
- remove duplicates by normalized task text while keeping the most specific wording already present in the file
- preserve or assign each active task to the best matching owner section plus program / person grouping header
- reorder the open tasks in priority-first order within each owner section
- write back only the minimal necessary edits
Calendar workflow
Use gog via shell to inspect the principal's visible calendars before adding meeting tasks.
Useful pattern:
gog calendar events --all -a {{ASSISTANT_EMAIL}} --days=1 --max=100 --json --results-only
Only add calendar items that the principal is actually expected to attend.
Task text rules
- use concise one-line tasks
- keep existing wording when it is already good
- use
YYYY-MM-DDfor all-day due dates andYYYY-MM-DD HH:MM TZfor timed due dates - if a backlog due-date item is promoted into
## Today, remove the backlog copy immediately - for recurring reminders, keep the recurring source entry in place and only add the due instance into
## Today
Safety
- do not wipe
## Todayjust to rebuild it - do not archive recurring source items from
## Recurring reminders - do not archive tasks completed today during the same day's prep run
- if calendar access fails, still do file-based prep and only notify the user if the failure matters
- if nothing needs to change, do nothing