[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AVG0EVVQT8FFXTJ3223X5E":3,"skill-same:01M7AVG0EVVQT8FFXTJ3223X5E":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":27,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7AVG0EVVQT8FFXTJ3223X5E","retro-enforcement",null,"alonf\u002FKeyContextAI","alonf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F554150?v=4","01M7ATEPSCNKG13BVTKA74VG59","Alon Fliess","01M7ATEPSZ4YMBM9W25SKM3GES",0,"MIT","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fretro-enforcement\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Skill: Retro Enforcement\n\n## Purpose\n\nEnsure retrospectives happen on schedule and that their action items are tracked in GitHub Issues — not markdown checklists.\n\nThis skill addresses a specific, measured failure mode: **0% completion rate on markdown retro action items across 6 consecutive retrospectives**. GitHub Issues have an 85%+ completion rate in the same squad. The format was the problem, not the people.\n\n## Core Function: Test-RetroOverdue\n\n```powershell\nfunction Test-RetroOverdue {\n    param(\n        [string]$LogDir    = \".squad\u002Flog\",\n        [int]$WindowDays   = 7,\n        [string]$Pattern   = \"*retrospective*\"\n    )\n\n    $cutoff = (Get-Date).AddDays(-$WindowDays)\n\n    $retroLogs = Get-ChildItem -Path $LogDir -Filter $Pattern -ErrorAction SilentlyContinue |\n                 Where-Object { $_.LastWriteTime -ge $cutoff }\n\n    return ($retroLogs.Count -eq 0)\n}\n```\n\n### Returns\n- `$true` — No retro log found within the window. **Retro is overdue. Block other work.**\n- `$false` — At least one retro log found within the window. Proceed normally.\n\n### Detection Logic\n\nThe function checks `.squad\u002Flog\u002F` for any file matching `*retrospective*` dated within the last `$WindowDays` days (default: 7). If none is found, the retro is overdue.\n\n**File naming convention:** `.squad\u002Flog\u002F{ISO8601-timestamp}-retrospective.md`\n\nExample: `.squad\u002Flog\u002F2026-03-24T14-45-00Z-retrospective.md`\n\n## Coordinator Integration\n\nCall `Test-RetroOverdue` **at the start of every round**, before building the work queue.\n\n```powershell\n# At round start — before any work queue construction\nif (Test-RetroOverdue -LogDir \".squad\u002Flog\" -WindowDays 7) {\n    Write-Host \"[RETRO] Retrospective overdue. Running before other work.\"\n\n    # Spawn retro facilitator\n    Invoke-RetroSession -Mode \"catch-up\"\n\n    # Wait for retro log to be written\n    # Then resume normal round\n}\n\n# Proceed with normal work queue\n$workQueue = Get-PendingIssues | Sort-Object -Property Priority\n```\n\n### Blocking Semantics\n\nWhen `Test-RetroOverdue` returns `$true`:\n\n1. **Do not start any other work** until the retro completes\n2. **Spawn the facilitator agent** (Scribe or designated) with retro mode\n3. **Wait for the log file** to be written to `.squad\u002Flog\u002F`\n4. **Verify action items** were created as GitHub Issues (not markdown)\n5. **Resume normal round** after retro log confirmed\n\n## Action Item Enforcement\n\nEvery retro action item MUST become a GitHub Issue. The facilitator agent is responsible for this. The coordinator verifies.\n\n### Verification Check\n\n```powershell\nfunction Test-RetroActionItemsCreated {\n    param([string]$RetroLogPath)\n\n    $content = Get-Content $RetroLogPath -Raw\n\n    # Check for Issue references (e.g., #1478, https:\u002F\u002Fgithub.com\u002F...\u002Fissues\u002F1478)\n    $issueRefs = [regex]::Matches($content, '(?:#\\d{3,}|issues\u002F\\d{3,})')\n\n    # Check for unclosed markdown checkboxes (bad pattern)\n    $openCheckboxes = [regex]::Matches($content, '- \\[ \\]')\n\n    if ($openCheckboxes.Count -gt 0) {\n        Write-Warning \"[RETRO] Found $($openCheckboxes.Count) markdown checkboxes — convert to Issues\"\n        return $false\n    }\n\n    return ($issueRefs.Count -gt 0)\n}\n```\n\n### Why Not Markdown Checklists\n\nFrom production data in tamirdresher\u002Ftamresearch1:\n\n| Retro | Action Items Format | Completion |\n|-------|---------------------|------------|\n| 2025-12-05 | Markdown `- [ ]` | 0\u002F4 = **0%** |\n| 2025-12-19 | Markdown `- [ ]` | 0\u002F3 = **0%** |\n| 2026-01-09 | Markdown `- [ ]` | 0\u002F5 = **0%** |\n| 2026-01-23 | Markdown `- [ ]` | 0\u002F4 = **0%** |\n| 2026-02-07 | Markdown `- [ ]` | 0\u002F3 = **0%** |\n| 2026-02-21 | Markdown `- [ ]` | 0\u002F4 = **0%** |\n| 2026-03-24 | GitHub Issues | 4\u002F4 = **100%** (after enforcement) |\n\n**Root cause:** Markdown checklists have no assignee, no notifications, no close event, and no query surface. They are invisible to every workflow that drives completion.\n\n## Cadence Enforcement\n\n### Recommended schedule\n- Weekly squads: window = 7 days\n- Bi-weekly squads: window = 14 days\n\n### Ralph integration example\n\n```powershell\n# ralph-watch.ps1 — round start hook\nfunction Invoke-RoundStart {\n    # 1. Always check retro first\n    if (Test-RetroOverdue -LogDir \"$RepoRoot\u002F.squad\u002Flog\" -WindowDays 7) {\n        Write-Host \"[RALPH] Retro overdue — enforcing before work queue\"\n        Invoke-RetroSession\n        return  # Re-enter round after retro completes\n    }\n\n    # 2. Normal work queue\n    $issues = Get-ReadyIssues\n    foreach ($issue in $issues) {\n        Invoke-WorkItem -Issue $issue\n    }\n}\n```\n\n## Skill Metadata\n\n| Field | Value |\n|-------|-------|\n| **Skill ID** | `retro-enforcement` |\n| **Category** | Ceremonies \u002F Process |\n| **Trigger** | Coordinator round start |\n| **Dependencies** | `.squad\u002Flog\u002F` directory, GitHub Issues API |\n| **Tested in** | tamirdresher\u002Ftamresearch1 (production, March 2026) |\n| **Outcome** | Retro cadence restored; action item completion 0% → 100% |\n",{},"main","176da577bfd98859f793bdd1312690c6c3940c67",".squad\u002Ftemplates\u002Fskills\u002Fretro-enforcement","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI","https:\u002F\u002Fgithub.com\u002Falonf","http:\u002F\u002Falonfliess.me","CTO & Founder of Zionet.\r\nMicrosoft Regional Director and Foundry MVP.\r\n","2026-08-28 05:21:35",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add alonf\u002FKeyContextAI --skill retro-enforcement",{"tool":36,"command":37},"bunx","bunx skills add alonf\u002FKeyContextAI --skill retro-enforcement",{"tool":39,"command":40},"pnpm","pnpm dlx skills add alonf\u002FKeyContextAI --skill retro-enforcement","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fretro-enforcement\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7AVHRWWXA0BQ5PXNA8FG30W","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7AVHABPRYXYM3GWJY1RW92A","versioning-policy","Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7AVH4KNP3TCVQDRVS70VP19","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7AVH18JDSA55Z7KK2GH6X49","test-discipline","Update tests when changing APIs — no exceptions","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftest-discipline\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7AVGVGWYD7NBNXAV4PAZJ92","squad","Squad's command catalog and interactive menu. Invoke via \u002Fsquad (slash command) or natural language (\"squad commands\", \"what can squad do\", \"show me squad options\"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fsquad\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7AVGPSFT1WHW3PK35DHS5XK","squad-version-check","Internals of how @bradygaster\u002Fsquad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.","https:\u002F\u002Fgithub.com\u002Falonf\u002FKeyContextAI\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fsquad-version-check\u002FSKILL.md",[],[]]