$npx -y skills add Varnan-Tech/opendirectory --skill kill-the-standupReads yesterday's Linear issues and GitHub commits for the authenticated user, formats a standup update (done / doing / blockers), and posts it to Slack. Use when asked to write a standup, generate a standup update, post to the standup channel, summarize yesterday's work, or auto
| 1 | # Kill the Standup |
| 2 | |
| 3 | Read yesterday's Linear issues and GitHub commits. Format a standup update. Post it to Slack. |
| 4 | |
| 5 | --- |
| 6 | |
| 7 | ## Step 1: Setup Check |
| 8 | |
| 9 | Confirm required env vars are set: |
| 10 | |
| 11 | ```bash |
| 12 | echo "LINEAR_API_KEY: ${LINEAR_API_KEY:+set}" |
| 13 | echo "SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL:+set}" |
| 14 | echo "GITHUB_REPO: ${GITHUB_REPO:-not set}" |
| 15 | echo "GITHUB_USERNAME: ${GITHUB_USERNAME:-not set}" |
| 16 | ``` |
| 17 | |
| 18 | **If LINEAR_API_KEY is missing:** |
| 19 | Stop. Tell the user: "LINEAR_API_KEY is required. Get it from Linear → Settings → API → Personal API keys. Add it to your .env file." |
| 20 | |
| 21 | **If SLACK_WEBHOOK_URL is missing:** |
| 22 | Stop. Tell the user: "SLACK_WEBHOOK_URL is required. Create an Incoming Webhook at api.slack.com/apps → Your App → Incoming Webhooks. Add it to your .env file." |
| 23 | |
| 24 | **If GITHUB_REPO is missing:** |
| 25 | Continue. GitHub commits will be skipped. Note this to the user. |
| 26 | |
| 27 | --- |
| 28 | |
| 29 | ## Step 2: Fetch Linear Activity |
| 30 | |
| 31 | Compute yesterday's date in ISO 8601 format (e.g. `2026-04-09T00:00:00.000Z`). |
| 32 | |
| 33 | **Get current user ID:** |
| 34 | ```bash |
| 35 | curl -s -X POST https://api.linear.app/graphql \ |
| 36 | -H "Authorization: Bearer $LINEAR_API_KEY" \ |
| 37 | -H "Content-Type: application/json" \ |
| 38 | -d '{"query": "query { viewer { id name email } }"}' |
| 39 | ``` |
| 40 | |
| 41 | Extract the `id` field from the response. Store as `LINEAR_USER_ID`. |
| 42 | |
| 43 | **Fetch issues assigned to me, updated since yesterday:** |
| 44 | ```bash |
| 45 | curl -s -X POST https://api.linear.app/graphql \ |
| 46 | -H "Authorization: Bearer $LINEAR_API_KEY" \ |
| 47 | -H "Content-Type: application/json" \ |
| 48 | -d '{ |
| 49 | "query": "query($since: DateTime!, $userId: ID!) { issues(first: 50, filter: { assignee: { id: { eq: $userId } } updatedAt: { gte: $since } }) { edges { node { identifier title state { name } url completedAt updatedAt createdAt } } } }", |
| 50 | "variables": {"since": "YESTERDAY_ISO", "userId": "LINEAR_USER_ID"} |
| 51 | }' |
| 52 | ``` |
| 53 | |
| 54 | **Categorize issues:** |
| 55 | - `completedAt` is non-null → **Done** |
| 56 | - `state.name` is "In Progress", "Started", or "In Review" → **Doing** |
| 57 | - `state.name` is "Cancelled" → skip |
| 58 | - `state.name` is "Todo" or "Backlog" → skip (not worked on) |
| 59 | |
| 60 | If zero issues: note "No Linear activity found for yesterday." |
| 61 | |
| 62 | --- |
| 63 | |
| 64 | ## Step 3: Fetch GitHub Commits |
| 65 | |
| 66 | Skip this step silently if GITHUB_REPO is not set. |
| 67 | |
| 68 | If GITHUB_REPO is set: |
| 69 | |
| 70 | ```bash |
| 71 | gh api "repos/$GITHUB_REPO/commits?author=${GITHUB_USERNAME:-$(gh api user --jq .login)}&since=YESTERDAY_ISO&per_page=30" \ |
| 72 | --jq '[.[] | {message: .commit.message, url: .html_url}]' |
| 73 | ``` |
| 74 | |
| 75 | **Process commits:** |
| 76 | - Extract the first line of each commit message (everything before the first newline) |
| 77 | - Skip merge commits: drop any message starting with "Merge" |
| 78 | - Deduplicate by message text |
| 79 | |
| 80 | If GITHUB_REPO is set but returns zero commits: note "No commits found yesterday." |
| 81 | |
| 82 | --- |
| 83 | |
| 84 | ## Step 4: Format Standup |
| 85 | |
| 86 | Read `references/standup-format.md` in full before writing. |
| 87 | |
| 88 | Produce the standup in this exact structure: |
| 89 | |
| 90 | ``` |
| 91 | **Done** |
| 92 | - [ENG-123] Title of completed issue |
| 93 | - fix: commit message here |
| 94 | |
| 95 | **Doing** |
| 96 | - [ENG-124] Title of in-progress issue |
| 97 | |
| 98 | **Blockers** |
| 99 | No blockers. |
| 100 | ``` |
| 101 | |
| 102 | Rules from standup-format.md: |
| 103 | - No first-person pronouns ("I", "we") |
| 104 | - Past tense for Done items, present continuous for Doing items |
| 105 | - Each Linear item uses the `[IDENTIFIER] Title` format |
| 106 | - Each GitHub commit uses the first line of the commit message |
| 107 | - If no Done items: write "Nothing completed." under Done |
| 108 | - If no Doing items: write "Nothing in progress." under Doing |
| 109 | - If no blockers: write "No blockers." |
| 110 | - Under 200 words total |
| 111 | |
| 112 | --- |
| 113 | |
| 114 | ## Step 5: Post to Slack or Output |
| 115 | |
| 116 | Present the formatted standup to the user. |
| 117 | |
| 118 | Ask: "Post this to Slack, or output only?" |
| 119 | |
| 120 | **On confirmation to post:** |
| 121 | |
| 122 | ```bash |
| 123 | curl -s -X POST "$SLACK_WEBHOOK_URL" \ |
| 124 | -H "Content-Type: application/json" \ |
| 125 | -d '{ |
| 126 | "blocks": [ |
| 127 | { |
| 128 | "type": "section", |
| 129 | "text": { |
| 130 | "type": "mrkdwn", |
| 131 | "text": "*Standup — DATE_HERE*\n\n*Done*\nITEMS\n\n*Doing*\nITEMS\n\n*Blockers*\nITEMS" |
| 132 | } |
| 133 | } |
| 134 | ] |
| 135 | }' |
| 136 | ``` |
| 137 | |
| 138 | Pass the body via a temp file or heredoc to avoid shell quoting issues with special characters in commit messages or issue titles: |
| 139 | |
| 140 | ```bash |
| 141 | cat > /tmp/standup-payload.json << 'ENDJSON' |
| 142 | { |
| 143 | "blocks": [ |
| 144 | { |
| 145 | "type": "section", |
| 146 | "text": { |
| 147 | "type": "mrkdwn", |
| 148 | "text": "STANDUP_CONTENT_HERE" |
| 149 | } |
| 150 | } |
| 151 | ] |
| 152 | } |
| 153 | ENDJSON |
| 154 | curl -s -X POST "$SLACK_WEBHOOK_URL" -H "Content-Type: application/json" -d @/tmp/standup-payload.json |
| 155 | ``` |
| 156 | |
| 157 | After posting: "Standup posted." |
| 158 | |
| 159 | **On "output only":** Pri |