Work start day

From phatblat/dotfiles · View interactive version

Work start day is an AI agent skill from the GitHub repository phatblat/dotfiles. Use when invoked as `$work-start-day` or when the user asks to start the work day; covers daily note, yesterday summary, agenda, and daily branch setup.

How to use this skill

Skill file

work-start-day

Create or refresh today's daily note, populate yesterday summary and agenda, post daily status comments when appropriate, create meeting sections, and run $pr-daily.

On macOS, run every linear ... command outside the sandbox on the first

attempt so the CLI can access credentials stored in the system keychain. Use

scoped escalation with prefix_rule: ["linear"]. If a sandboxed command

reports No keyring entry or No API key configured, retry outside the

sandbox before asking the user to authenticate. Never print, log, or expose

linear auth token or an API key.

Workflow

  1. Determine paths:

```bash

today_date=$(date +%Y-%m-%d)

today_day=$(date +%A)

today_year=$(date +%Y)

today_file="${today_date} ${today_day}"

vault="$HOME/2ndBrain"

notes_dir="${vault}/daily-notes/${today_year}"

```

  1. Create today's note if missing from ${vault}/templates/daily-note.md. Replace Obsidian date placeholders and fix the yesterday link to the most recent earlier daily note.
  1. Update startup checks:
  1. Build the ## Yesterday section from:

Preserve the auto-population comment for reruns.

  1. Build today's agenda:

If calendar tools are unavailable, report that and continue with Linear/GitHub sections.

  1. Post daily Linear status comments for in-progress tickets that do not already have today's comment by the user. Use linear-cli:linear-cli before Linear CLI commands.
  1. Add or update Work Items sections in today's note using the same format as $work-track; set commented:: true for tickets that received comments.
  1. Populate empty meeting sections under # Meetings with one H2 per meeting.
  1. Run $pr-daily to set up the daily branch and draft PR.
  1. Report daily note path, previous note, meetings, tickets needing comment, tickets to pick up, branch, and PR.

Edge cases

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.