Work track item

From phatblat/dotfiles · View interactive version

Work track item is an AI agent skill from the GitHub repository phatblat/dotfiles. Track a Linear ticket or GitHub PR in today's daily note with fields and timestamped activity. Use when invoked as `$work-track-item` or when the user asks to track a work item.

How to use this skill

Skill file

work-track-item

Add or update a Linear ticket or GitHub PR in today's daily note. Each item gets an H2 section with inline fields and timestamped activity.

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.

Arguments

Accept:

If the user provides only a number, assume DXO-<number>.

Workflow

  1. Locate today's note:

```bash

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

today_day=$(date +%A)

today_year=$(date +%Y)

note_path="$HOME/2ndBrain/daily-notes/${today_year}/${today_date} ${today_day}.md"

```

If missing, tell the user to run $work-start first.

  1. Fetch item details:
  1. Search for an existing section:

```bash

grep -nE "^## .*${TICKET_ID}( |$)" "${note_path}"

grep -nE "^## .*#${PR_NUMBER}( |$)" "${note_path}"

```

  1. If a section exists:
  1. If no section exists, insert a block:

```markdown

## <TICKET-ID> <title-slug>

ticket:: <TICKET-ID>

pr:: #<number>

branch:: <headRefName>

status:: <current-state-lowercase>

commented:: false

```

Omit fields that do not apply, except commented:: false should be present for Linear-tracked work.

  1. Formatting rules:
  1. Report item, status, PR/branch if known, and the note that was appended.
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.