[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E5PVDJX67F5BBEZ98V5F86":3,"skill-same:01M6E5PVDJX67F5BBEZ98V5F86":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":13,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M6E5PVDJX67F5BBEZ98V5F86","phase-review",null,"Phase-level health check before scoping the next wave — phase-doc tracking state, tech-debt ratio vs the configured exit threshold, owner revision checkpoint","parametrization\u002F2real-team-framework","parametrization","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1111097?v=4","01M6E5MC117M94CEXKX3C96PPX","01M6E5MC7YWG5N3VV4792VFK85",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fframework\u002Fassets\u002Fskills\u002Fphase-review\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"review","phase review","state","doc","checkpoint","health","check","tracking","scoping","health check","exit","next","tech","2026-11-10 10:12:30",false,"---\nname: phase-review\ndescription: Phase-level health check before scoping the next wave — phase-doc tracking state, tech-debt ratio vs the configured exit threshold, owner revision checkpoint\nargs: Phase number\n---\n\nPhase-level track check, run **before scoping the next wave**. Surfaces accomplishments,\nblockers, and remaining end-state criteria so the owner chooses the next wave's theme\ndeliberately, not reactively.\n\n**Config-driven:** the tech-debt exit threshold and labels come from\n`.claude\u002Fframework.config.json` (fail-open to the documented defaults).\n\n## What this skill is NOT\n\n- Not a wave reconciliation step — that is the wave-lifecycle scoping step\n  (`lifecycle.py wave scope`).\n- Not a retrospective — that is `\u002Fwave-retro` (per wave).\n- Not a phase-creation step — `\u002Fplan-phase` creates phases.\n- It does NOT pick the next wave's theme — that is the owner's call after seeing the\n  picture.\n- It does NOT modify the phase doc without owner confirmation.\n\n## Instructions\n\n### 0. Resolve config\n\n```bash\nREPO_ROOT=\"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\nCFG=\"$REPO_ROOT\u002F.claude\u002Fframework.config.json\"\nget() { jq -r \"$1 \u002F\u002F empty\" \"$CFG\" 2>\u002Fdev\u002Fnull; }   # fail-open dotted read\n\nTEAM_DIR=\"$REPO_ROOT\u002F$(get '.paths.team')\"; [ -d \"$TEAM_DIR\" ] || TEAM_DIR=\"$REPO_ROOT\u002F.claude\u002Fteam\"\nTD_LABEL=\"$(get '.labels.tech_debt')\";      TD_LABEL=\"${TD_LABEL:-tech-debt}\"\n\n# Tech-debt exit threshold — CONFIG KEY `policy.tech_debt_exit_ratio_pct` (default 10).\nTD_EXIT_PCT=\"$(get '.policy.tech_debt_exit_ratio_pct')\"; TD_EXIT_PCT=\"${TD_EXIT_PCT:-10}\"\n```\n\n### 1. Load the phase doc\n\n```bash\nPHASE_DOC=\"$TEAM_DIR\u002Fphases\u002Fphase-{P}.md\"\nif [ ! -f \"$PHASE_DOC\" ]; then\n  echo \"ERROR: phase doc missing at $PHASE_DOC\"\n  echo \"Run \u002Fplan-phase first — it records the phase doc this review checks against.\"\n  exit 1\nfi\ncat \"$PHASE_DOC\"\n```\n\nIf the phase doc is missing, STOP and direct the owner to `\u002Fplan-phase` (its Step 8\nrecords the doc). Without it, this review has nothing to check against.\n\n### 2. Pull live state for each tracking issue\n\nExtract the tracking issue numbers from the phase doc and pull their current state.\n(Note: `while read`, not `for x in $VAR` — zsh does not word-split an unquoted scalar, so\na multi-line list would collapse into one bogus iteration.)\n\n```bash\nTRACKING_ISSUES=$(grep -oE '#[0-9]+' \"$PHASE_DOC\" | tr -d '#' | sort -un)\n\nwhile IFS= read -r num; do\n  [ -n \"$num\" ] || continue\n  gh issue view \"$num\" --json number,title,state,labels,closedAt \\\n    --jq '\"\\(.state)\\t#\\(.number)\\t[\\(.labels|map(.name)|join(\",\"))]\\t\\(.title)\"'\ndone \u003C\u003C\u003C \"$TRACKING_ISSUES\"\n```\n\nCategorize each phase criterion:\n- **Done** — tracking issue closed\n- **In flight** — open, with linked open PRs\n- **Open \u002F not started** — open, no linked PRs\n- **Blocked** — open, with a `blocked` label or a commented blocker\n\nFor a `meta-and-children` project, tracking refs may be `repo#N` — query the named repo\nwith `--repo` in that case.\n\n### 3. Tech-debt ratio vs the configured exit threshold\n\n```bash\nPHASE_START=$(grep '^created:' \"$PHASE_DOC\" | head -1 | awk '{print $2}')\n\n# New issues filed during the phase, all states\nTOTAL_NEW=$(gh issue list --search \"created:>=$PHASE_START\" --state all --limit 500 --json number | jq length)\nTOTAL_NEW_TD=$(gh issue list --search \"created:>=$PHASE_START label:$TD_LABEL\" --state all --limit 500 --json number | jq length)\n\n# Cumulative open\nCUM_OPEN=$(gh issue list --state open --limit 500 --json number | jq length)\nCUM_OPEN_TD=$(gh issue list --state open --label \"$TD_LABEL\" --limit 500 --json number | jq length)\n\n[ \"$TOTAL_NEW\" -gt 0 ] && new_pct=$((TOTAL_NEW_TD * 100 \u002F TOTAL_NEW)) || new_pct=0\n[ \"$CUM_OPEN\" -gt 0 ] && cum_pct=$((CUM_OPEN_TD * 100 \u002F CUM_OPEN)) || cum_pct=0\n\necho \"New filed this phase: $TOTAL_NEW_TD \u002F $TOTAL_NEW = ${new_pct}% tech-debt (gate: \u003C${TD_EXIT_PCT}%)\"\necho \"Cumulative open:      $CUM_OPEN_TD \u002F $CUM_OPEN = ${cum_pct}% tech-debt (gate: \u003C${TD_EXIT_PCT}%)\"\n```\n\nIf either ratio ≥ `TD_EXIT_PCT`, flag it: **the phase exit gate is not met**, regardless\nof criterion-by-criterion checkboxes. (`\u002Fplan-phase`'s last-wave tech-debt floor exists\nto bring these ratios under the gate before exit.)\n\nFor a `meta-and-children` project, run the same queries per repo in `project.repos` and\naggregate the counts.\n\n### 4. Surface to the owner\n\nPresent a single status block:\n\n```\n**Phase {P} Review — {date}**\n\n| # | Criterion | Tracker | State | Notes |\n|---|-----------|---------|-------|-------|\n| 1 | ... | #NNN | Open | No PRs |\n| 2 | ... | #NNN | In flight | PR #XXX |\n\n**Tech-debt ratio (exit gate: \u003C{TD_EXIT_PCT}%):**\n- New filed (phase-to-date): {new_pct}%\n- Cumulative open:           {cum_pct}%\n\n**Phase exit gate:** {MET \u002F NOT MET — reason}\n```\n\n### 5. Owner revision checkpoint\n\nAsk the owner:\n- Has the track drifted? (criteria thought done but actually open; new urgent items)\n- Should the phase doc be revised before the next wave is scoped?\n\nIf yes, edit `$PHASE_DOC` with the owner's input and commit (per the project's commit\nidentity rules). **Never revise the doc without the owner's explicit confirmation.**\n\n### 6. Hand off to next-wave scoping\n\nPrint:\n\n```\nPhase review complete. Ready to scope the next wave.\n```\n\nThe next wave proceeds through the wave-lifecycle steps (`\u002Fwave-start`, or\n`lifecycle.py wave allocate\u002Fstart\u002Fscope`) once the owner picks the theme.\n\n## What remains manual\n\n- The owner decides the next wave's theme and any phase-doc revisions.\n- Blocked criteria need human triage — this skill only surfaces them.\n","Phase-level track check, run **before scoping the next wave**. Surfaces accomplishments,\nblockers, and remaining end-state criteria so the owner chooses the next wave's theme\ndeliberately, not reactively.\n\n**Config-driven:** the tech-debt exit threshold and labels come from\n`.claude\u002Fframework.config.json` (fail-open to the documented defaults).\n\n## What this skill is NOT\n\n- Not a wave reconciliation step — that is the wave-lifecycle scoping step\n  (`lifecycle.py wave scope`).\n- Not a retrospective — that is `\u002Fwave-retro` (per wave).\n- Not a phase-creation step — `\u002Fplan-phase` creates phases.\n- It does NOT pick the next wave's theme — that is the owner's call after seeing the\n  picture.\n- It does NOT modify the phase doc without owner confirmation.\n\n## Instructions\n\n### 0. Resolve config\n\n```bash\nREPO_ROOT=\"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\nCFG=\"$REPO_ROOT\u002F.claude\u002Fframework.config.json\"\nget() { jq -r \"$1 \u002F\u002F empty\" \"$CFG\" 2>\u002Fdev\u002Fnull; }   # fail-open dotted read\n\nTEAM_DIR=\"$REPO_ROOT\u002F$(get '.paths.team')\"; [ -d \"$TEAM_DIR\" ] || TEAM_DIR=\"$REPO_ROOT\u002F.claude\u002Fteam\"\nTD_LABEL=\"$(get '.labels.tech_debt')\";      TD_LABEL=\"${TD_LABEL:-tech-debt}\"\n\n# Tech-debt exit threshold — CONFIG KEY `policy.tech_debt_exit_ratio_pct` (default 10).\nTD_EXIT_PCT=\"$(get '.policy.tech_debt_exit_ratio_pct')\"; TD_EXIT_PCT=\"${TD_EXIT_PCT:-10}\"\n```\n\n### 1. Load the phase doc\n\n```bash\nPHASE_DOC=\"$TEAM_DIR\u002Fphases\u002Fphase-{P}.md\"\nif [ ! -f \"$PHASE_DOC\" ]; then\n  echo \"ERROR: phase doc missing at $PHASE_DOC\"\n  echo \"Run \u002Fplan-phase first — it records the phase doc this review checks against.\"\n  exit 1\nfi\ncat \"$PHASE_DOC\"\n```\n\nIf the phase doc is missing, STOP and direct the owner to `\u002Fplan-phase` (its Step 8\nrecords the doc). Without it, this review has nothing to check against.\n\n### 2. Pull live state for each tracking issue\n\nExtract the tracking issue numbers from the phase doc and pull their current state.\n(Note: `while read`, not `for x in $VAR` — zsh does not word-split an unquoted scalar, so\na multi-line list would collapse into one bogus iteration.)\n\n```bash\nTRACKING_ISSUES=$(grep -oE '#[0-9]+' \"$PHASE_DOC\" | tr -d '#' | sort -un)\n\nwhile IFS= read -r num; do\n  [ -n \"$num\" ] || continue\n  gh issue view \"$num\" --json number,title,state,labels,closedAt \\\n    --jq '\"\\(.state)\\t#\\(.number)\\t[\\(.labels|map(.name)|join(\",\"))]\\t\\(.title)\"'\ndone \u003C\u003C\u003C \"$TRACKING_ISSUES\"\n```\n\nCategorize each phase criterion:\n- **Done** — tracking issue closed\n- **In flight** — open, with linked open PRs\n- **Open \u002F not started** — open, no linked PRs\n- **Blocked** — open, with a `blocked` label or a commented blocker\n\nFor a `meta-and-children` project, tracking refs may be `repo#N` — query the named repo\nwith `--repo` in that case.\n\n### 3. Tech-debt ratio vs the configured exit threshold\n\n```bash\nPHASE_START=$(grep '^created:' \"$PHASE_DOC\" | head -1 | awk '{print $2}')\n\n# New issues filed during the phase, all states\nTOTAL_NEW=$(gh issue list --search \"created:>=$PHASE_START\" --state all --limit 500 --json number | jq length)\nTOTAL_NEW_TD=$(gh issue list --search \"created:>=$PHASE_START label:$TD_LABEL\" --state all --limit 500 --json number | jq length)\n\n# Cumulative open\nCUM_OPEN=$(gh issue list --state open --limit 500 --json number | jq length)\nCUM_OPEN_TD=$(gh issue list --state open --label \"$TD_LABEL\" --limit 500 --json number | jq length)\n\n[ \"$TOTAL_NEW\" -gt 0 ] && new_pct=$((TOTAL_NEW_TD * 100 \u002F TOTAL_NEW)) || new_pct=0\n[ \"$CUM_OPEN\" -gt 0 ] && cum_pct=$((CUM_OPEN_TD * 100 \u002F CUM_OPEN)) || cum_pct=0\n\necho \"New filed this phase: $TOTAL_NEW_TD \u002F $TOTAL_NEW = ${new_pct}% tech-debt (gate: \u003C${TD_EXIT_PCT}%)\"\necho \"Cumulative open:      $CUM_OPEN_TD \u002F $CUM_OPEN = ${cum_pct}% tech-debt (gate: \u003C${TD_EXIT_PCT}%)\"\n```\n\nIf either ratio ≥ `TD_EXIT_PCT`, flag it: **the phase exit gate is not met**, regardless\nof criterion-by-criterion checkboxes. (`\u002Fplan-phase`'s last-wave tech-debt floor exists\nto bring these ratios under the gate before exit.)\n\nFor a `meta-and-children` project, run the same queries per repo in `project.repos` and\naggregate the counts.\n\n### 4. Surface to the owner\n\nPresent a single status block:\n\n```\n**Phase {P} Review — {date}**\n\n| # | Criterion | Tracker | State | Notes |\n|---|-----------|---------|-------|-------|\n| 1 | ... | #NNN | Open | No PRs |\n| 2 | ... | #NNN | In flight | PR #XXX |\n\n**Tech-debt ratio (exit gate: \u003C{TD_EXIT_PCT}%):**\n- New filed (phase-to-date): {new_pct}%\n- Cumulative open:           {cum_pct}%\n\n**Phase exit gate:** {MET \u002F NOT MET — reason}\n```\n\n### 5. Owner revision checkpoint\n\nAsk the owner:\n- Has the track drifted? (criteria thought done but actually open; new urgent items)\n- Should the phase doc be revised before the next wave is scoped?\n\nIf yes, edit `$PHASE_DOC` with the owner's input and commit (per the project's commit\nidentity rules). **Never revise the doc without the owner's explicit confirmation.**\n\n### 6. Hand off to next-wave scoping\n\nPrint:\n\n```\nPhase review complete. Ready to scope the next wave.\n```\n\nThe next wave proceeds through the wave-lifecycle steps (`\u002Fwave-start`, or\n`lifecycle.py wave allocate\u002Fstart\u002Fscope`) once the owner picks the theme.\n\n## What remains manual\n\n- The owner decides the next wave's theme and any phase-doc revisions.\n- Blocked criteria need human triage — this skill only surfaces them.\n",{"args":36,"name":5,"description":7},"Phase number","main","53ec1032b93d41533a48603e8fae7a92f56cc66c","framework\u002Fassets\u002Fskills\u002Fphase-review","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework","https:\u002F\u002Fgithub.com\u002Fparametrization","2026-09-21 01:06:30",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add parametrization\u002F2real-team-framework --skill phase-review",{"tool":49,"command":50},"bunx","bunx skills add parametrization\u002F2real-team-framework --skill phase-review",{"tool":52,"command":53},"pnpm","pnpm dlx skills add parametrization\u002F2real-team-framework --skill phase-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fframework\u002Fassets\u002Fskills\u002Fphase-review\u002FSKILL.md",true,[],[58,79,96,112,127,140],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":31},"01M6E5VG1R7FF1025BZAV6BDTS","wave-wrapup","Finalize a wave — PR review, merge sequencing, issue cleanup, worktree cleanup, and handoff to retro","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-wrapup\u002FSKILL.md",[],[65,66,18,67,68,69,70,71,72,73,74,75,76,77,78],"wave wrapup","wrapup","handoff","merge","pr review","pr","cleanup","worktree","retro","team","issue","worktree cleanup","name","sequencing",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":31},"01M6E5V9GDF75GV4YD2WPSH912","wave-start","Initialize a new wave — worktree cleanup, branch creation, label setup, status file update","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-start\u002FSKILL.md",[],[86,87,88,71,89,72,90,74,91,92,93,76,94,77,95],"wave start","start","setup","update","file","branch","file update","initialize","creation","status",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":31},"01M6E5V4VXEJ39V87VHN1A3AW9","wave-scope","Reconcile declared-vs-labeled wave scope between \u002Fwave-retro and \u002Fwave-kickoff — collect dispositions, fold in retro carry-forwards and memory must-includes, and refresh the meta-issue","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-scope\u002FSKILL.md",[],[103,104,105,106,107,73,108,109,110,75,111],"wave scope","scope","memory","collect","Meta","refresh","reconcile","Fold","kickoff",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":31},"01M6E5TZNPGG5EXZEN1FKJJT6K","wave-retro","Automated wave retrospective — PR analysis, assessments, trust matrix updates, feedback log, charter change proposals","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-retro\u002FSKILL.md",[],[119,73,120,121,70,122,123,74,124,125,126,77],"wave retro","log","change","retrospective","analysis","feedback","proposals","trust",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":31},"01M6E5TR8XB3Z10A9SD4ZYNV45","wave-kickoff","Automated wave planning — branch creation, label management, issue labeling, kickoff comments, and execution plan","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-kickoff\u002FSKILL.md",[],[134,111,135,75,94,77,136,74,137,91,138,139],"wave kickoff","management","plan","execution","planning","execution plan",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":31},"01M6E5TMZAFB6MTVYT750FZDVY","wave-audit","Audit open issues against merged PRs — find and close orphaned issues with proper comments","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-audit\u002FSKILL.md",[],[147,148,149,150,151,152],"audit","wave audit","close","find","open","issues"]