diff --git a/.agents/skills/gstack-retro/SKILL.md b/.agents/skills/gstack-retro/SKILL.md index 6d0bd5da..8ff5b188 100644 --- a/.agents/skills/gstack-retro/SKILL.md +++ b/.agents/skills/gstack-retro/SKILL.md @@ -830,26 +830,89 @@ From the discovery JSON, analyze tool usage patterns: ### Global Step 7: Aggregate and generate narrative -Structure the output as: +Structure the output with the **shareable personal card first**, then the full +team/project breakdown below. The personal card is designed to be screenshot-friendly +โ€” everything someone would want to share on X/Twitter in one clean block. --- **Tweetable summary** (first line, before everything else): ``` -Week of Mar 14: 5 projects, 182 commits, 15.3k LOC | CC: 48, Codex: 8, Gemini: 3 | Focus: gstack (58%) | Streak: 52d +Week of Mar 14: 5 projects, 138 commits, 250k LOC across 5 repos | 48 AI sessions | Streak: 52d ๐Ÿ”ฅ ``` +## ๐Ÿš€ Your Week: [user name] โ€” [date range] + +This section is the **shareable personal card**. It contains ONLY the current user's +stats โ€” no team data, no project breakdowns. Designed to screenshot and post. + +Use the user identity from `git config user.name` to filter all per-repo git data. +Aggregate across all repos to compute personal totals. + +Render as a single visually clean block: + +``` +โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— +โ•‘ [USER NAME] โ€” Week of [date] โ•‘ +โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ +โ•‘ โ•‘ +โ•‘ [N] commits across [M] projects โ•‘ +โ•‘ +[X]k LOC added ยท [Y]k LOC deleted ยท [Z]k net โ•‘ +โ•‘ [N] AI coding sessions (CC: X, Codex: Y, Gemini: Z) โ•‘ +โ•‘ [N]-day shipping streak ๐Ÿ”ฅ โ•‘ +โ•‘ โ•‘ +โ•‘ PROJECTS โ•‘ +โ•‘ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ•‘ +โ•‘ [repo1] [N] commits +[X]k LOC [role: solo/team] โ•‘ +โ•‘ [repo2] [N] commits +[X]k LOC [role: solo/team] โ•‘ +โ•‘ [repo3] [N] commits +[X]k LOC [role: solo/team] โ•‘ +โ•‘ ... โ•‘ +โ•‘ โ•‘ +โ•‘ SHIP OF THE WEEK โ•‘ +โ•‘ [PR title] โ€” [LOC] lines across [N] files โ•‘ +โ•‘ โ•‘ +โ•‘ TOP WORK โ•‘ +โ•‘ โ€ข [1-line description of biggest theme] โ•‘ +โ•‘ โ€ข [1-line description of second theme] โ•‘ +โ•‘ โ€ข [1-line description of third theme] โ•‘ +โ•‘ โ•‘ +โ•‘ Powered by gstack /retro global โ•‘ +โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +``` + +**Rules for the personal card:** +- Only show repos where the user has commits. Skip repos with 0 commits. +- Sort repos by user's commit count descending. +- For LOC, use "k" formatting for thousands (e.g., "+64.0k" not "+64010"). +- Role: "solo" if user is the only contributor, "team" if others contributed. +- Ship of the Week: the user's single highest-LOC PR across ALL repos. +- Top Work: 3 bullet points summarizing the user's major themes, inferred from + commit messages. Not individual commits โ€” synthesize into themes. + E.g., "Built /retro global โ€” cross-project retrospective with AI session discovery" + not "feat: gstack-global-discover" + "feat: /retro global template". +- The card must be self-contained. Someone seeing ONLY this block should understand + the user's week without any surrounding context. +- Do NOT include team members, project totals, or context switching data here. + +**Personal streak:** Use the user's own commits across all repos (filtered by +`--author`) to compute a personal streak, separate from the team streak. + +--- + ## Global Engineering Retro: [date range] -### Overview +Everything below is the full analysis โ€” team data, project breakdowns, patterns. +This is the "deep dive" that follows the shareable card. + +### All Projects Overview | Metric | Value | |--------|-------| | Projects active | N | -| Total commits (all repos) | N | +| Total commits (all repos, all contributors) | N | | Total LOC | +N / -N | | AI coding sessions | N (CC: X, Codex: Y, Gemini: Z) | | Active days | N | -| Global shipping streak | N consecutive days | +| Global shipping streak (any contributor, any repo) | N consecutive days | | Context switches/day | N avg (max: M) | ### Per-Project Breakdown @@ -882,7 +945,7 @@ Format: ``` ### Cross-Project Patterns -- Time allocation across projects (% breakdown) +- Time allocation across projects (% breakdown, use YOUR commits not total) - Peak productivity hours aggregated across all repos - Focused vs. fragmented days - Context switching trends