[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75JHTQFH7BD6BB6V745TP5E":3,"skill-same:01M75JHTQFH7BD6BB6V745TP5E":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":51},"01M75JHTQFH7BD6BB6V745TP5E","pr-review",null,"Reviews open PRs on sunitghub\u002Fcanon-skills — fetches diffs, presents findings, updates PRs\u002Fcanon-skills-pr-review.md, creates tickets for Fix=Y PRs, and posts approved comments. Use when the user asks to review canon-skills PRs or check what's open on canon-skills.","sunitghub\u002Fcanon-skills","sunitghub","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F154850182?v=4","01M75JGBZ2TQM1BG49YHTRGHZR","Sunit Joshi","01M75JGC05YY1W8RW5SJAWWTB8",9,"MIT","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpr-review\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: pr-review\ndescription: Reviews open PRs on sunitghub\u002Fcanon-skills — fetches diffs, presents findings, updates PRs\u002Fcanon-skills-pr-review.md, creates tickets for Fix=Y PRs, and posts approved comments. Use when the user asks to review canon-skills PRs or check what's open on canon-skills.\ncategory: dev\ntags: [github, prs, review, workflow]\nhidden: true\n---\n\n# PR Review\n\nReviews open PRs on `sunitghub\u002Fcanon-skills`. Human decides Fix Y\u002FN — skill handles mechanics.\n\n## Steps\n\n### 1. Fetch open PRs\n\n```bash\ngh pr list --repo sunitghub\u002Fcanon-skills --state open \\\n  --json number,title,body,url,createdAt\n```\n\nIf no open PRs: report \"No open PRs on sunitghub\u002Fcanon-skills.\" and stop.\n\n### 2. Read each diff\n\nFor each open PR:\n\n```bash\ngh pr diff \u003Cnumber> --repo sunitghub\u002Fcanon-skills\n```\n\n### 3. Read current review file\n\nRead `PRs\u002Fcanon-skills-pr-review.md`. Extract the PR numbers already in the table (first column) — these are existing entries to update in place, not duplicate.\n\n### 4. Analyse and present\n\nFor each finding you'd otherwise raise, score it 0-100 before including it:\n\n- **0** — false positive: doesn't hold up, or a pre-existing issue not introduced by this PR.\n- **25** — unverified or a stylistic nit not called out by any convention in this repo.\n- **50** — verified real, but a minor nitpick, low-impact in practice.\n- **75** — verified real and important: will affect functionality, correctness, or maintainability in practice.\n- **100** — certain and will be hit frequently in practice.\n\nDrop anything scoring below 80 — do not include it in the findings block below. Check each candidate finding against this false-positive list before scoring:\n\n- Pre-existing issue, not introduced by this PR\n- Looks like a bug but isn't\n- Pedantic nitpick a senior engineer wouldn't raise\n- Something a linter, typechecker, or compiler would already catch\n- Silenced via an explicit lint-ignore comment\n- On a line the PR didn't modify\n\nFor each PR, produce a one-block summary from the findings that survive the filter:\n\n```\nPR #\u003Cn> — \u003Ctitle>\nArea:     \u003Cone of: Tooling \u002F DX \u002F Sprint \u002F MCP \u002F Docs \u002F Meta>\nFindings: \u003C2–4 sentences: what it does, what's good, what's risky or wrong>\nRecommend: Fix Y \u002F Fix N — \u003Cone-line reason>\n```\n\nPresent all PRs, then ask:\n\n> \"Fix Y\u002FN for each? I'll wait for your call before updating the review file or creating tickets.\"\n\n### 5. Receive decisions\n\nWait for the user to confirm Y\u002FN per PR. Accept any clear format (\"Y on #2, N on #3\", \"#2 yes\", etc.). Do not proceed until all open PRs have a decision.\n\n### 6. Update PRs\u002Fcanon-skills-pr-review.md\n\n**Table columns (preserve existing order):**\n`| PR | Title | Area | Findings | Verdict | Opened | Reviewed |`\n\n**Date format:**\n- `Opened`: PR `createdAt` converted to Central time and formatted as `MM\u002FDD\u002FYYYY`.\n- `Reviewed`: date this review pass updated the row, formatted as `MM\u002FDD\u002FYYYY`.\n\n- **Existing entry (PR number already in table):** update the row in place — replace Findings, Verdict, and Reviewed with the current analysis\u002Fdate. Preserve Opened unless it is missing or in an older format; normalize old Opened values to `MM\u002FDD\u002FYYYY`. Do not add a new row.\n- **New entry:** insert a new row at the top of the table (below the header), above existing rows. Set Verdict to `Merge` (Fix=Y) or `No` (Fix=N), Opened from `createdAt`, and Reviewed to today's review date.\n- Escape any `|` inside cell text as `\\|`.\n\n### 7. Create tickets for Fix=Y PRs\n\nFor each PR where the user confirmed Fix=Y, run:\n\n```bash\ntkt create \"implement: \u003Cshort title referencing PR #n>\"\n```\n\nThen open the created ticket's `ticket.md` and append to the description body:\n\n```\nSource: \u003CPR URL>\nArea: \u003Carea>\nFindings: \u003Cfindings summary>\n```\n\nReport the ticket ID created for each PR.\n\n### 8. Draft and post comments\n\nFor each PR (Y or N), draft a comment summarising the outcome. Cite each specific finding with a full-SHA blob link, not just prose — this lets the PR author jump straight to the flagged code:\n\n```\nhttps:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002F\u003Cfull-sha>\u002F\u003Cpath>#L\u003Cstart>-L\u003Cend>\n```\n\nFetch the full head SHA for the link (do not use `git rev-parse` or any local shell substitution — the link must render as literal markdown, and this flow never checks out the PR branch):\n\n```bash\ngh pr view \u003Cnumber> --repo sunitghub\u002Fcanon-skills --json headRefOid -q .headRefOid\n```\n\nInclude at least 1 line of context before and after the flagged line in the range (e.g. a finding on line 12 links `#L11-L13`).\n\n**Fix=Y template:**\n```\nThanks for the PR. After review:\n\n**Area:** \u003Carea>\n**Findings:** \u003Cfindings, with a blob link per cited issue>\n**Verdict:** Merging — filed as \u003Cticket-id> to track implementation.\n```\n\n**Fix=N template:**\n```\nThanks for the PR. After review:\n\n**Area:** \u003Carea>\n**Findings:** \u003Cfindings, with a blob link per cited issue>\n**Verdict:** Not merging as-is — \u003Cone sentence on why \u002F what would change the verdict>.\n```\n\nShow all drafts and ask:\n\n> \"Post these comments? (yes \u002F edit first \u002F skip)\"\n\nOn **yes**: immediately before posting each comment, re-check the PR is still eligible — it may have been closed, merged, or converted to draft since step 1:\n\n```bash\ngh pr view \u003Cnumber> --repo sunitghub\u002Fcanon-skills --json state,isDraft\n```\n\nIf `state` is no longer `OPEN` or `isDraft` is now `true`, skip posting that comment and note it in chat instead. Otherwise post via:\n```bash\ngh pr comment \u003Cnumber> --repo sunitghub\u002Fcanon-skills --body \"\u003Cdraft>\"\n```\n\nOn **edit first**: show the draft for the specific PR, accept the edit, reconfirm, then post (with the same eligibility re-check).\n\nOn **skip**: do not post. Note it in chat.\n\n## Constraints\n\n- Never post a comment without explicit user approval.\n- Never create a ticket without a Fix=Y decision from the user.\n- Do not duplicate rows in the review file — match by PR number.\n- Scope analysis to the PR diff only. Do not re-read the full canon codebase unless a specific file is directly relevant to a finding.\n","# PR Review\n\nReviews open PRs on `sunitghub\u002Fcanon-skills`. Human decides Fix Y\u002FN — skill handles mechanics.\n\n## Steps\n\n### 1. Fetch open PRs\n\n```bash\ngh pr list --repo sunitghub\u002Fcanon-skills --state open \\\n  --json number,title,body,url,createdAt\n```\n\nIf no open PRs: report \"No open PRs on sunitghub\u002Fcanon-skills.\" and stop.\n\n### 2. Read each diff\n\nFor each open PR:\n\n```bash\ngh pr diff \u003Cnumber> --repo sunitghub\u002Fcanon-skills\n```\n\n### 3. Read current review file\n\nRead `PRs\u002Fcanon-skills-pr-review.md`. Extract the PR numbers already in the table (first column) — these are existing entries to update in place, not duplicate.\n\n### 4. Analyse and present\n\nFor each finding you'd otherwise raise, score it 0-100 before including it:\n\n- **0** — false positive: doesn't hold up, or a pre-existing issue not introduced by this PR.\n- **25** — unverified or a stylistic nit not called out by any convention in this repo.\n- **50** — verified real, but a minor nitpick, low-impact in practice.\n- **75** — verified real and important: will affect functionality, correctness, or maintainability in practice.\n- **100** — certain and will be hit frequently in practice.\n\nDrop anything scoring below 80 — do not include it in the findings block below. Check each candidate finding against this false-positive list before scoring:\n\n- Pre-existing issue, not introduced by this PR\n- Looks like a bug but isn't\n- Pedantic nitpick a senior engineer wouldn't raise\n- Something a linter, typechecker, or compiler would already catch\n- Silenced via an explicit lint-ignore comment\n- On a line the PR didn't modify\n\nFor each PR, produce a one-block summary from the findings that survive the filter:\n\n```\nPR #\u003Cn> — \u003Ctitle>\nArea:     \u003Cone of: Tooling \u002F DX \u002F Sprint \u002F MCP \u002F Docs \u002F Meta>\nFindings: \u003C2–4 sentences: what it does, what's good, what's risky or wrong>\nRecommend: Fix Y \u002F Fix N — \u003Cone-line reason>\n```\n\nPresent all PRs, then ask:\n\n> \"Fix Y\u002FN for each? I'll wait for your call before updating the review file or creating tickets.\"\n\n### 5. Receive decisions\n\nWait for the user to confirm Y\u002FN per PR. Accept any clear format (\"Y on #2, N on #3\", \"#2 yes\", etc.). Do not proceed until all open PRs have a decision.\n\n### 6. Update PRs\u002Fcanon-skills-pr-review.md\n\n**Table columns (preserve existing order):**\n`| PR | Title | Area | Findings | Verdict | Opened | Reviewed |`\n\n**Date format:**\n- `Opened`: PR `createdAt` converted to Central time and formatted as `MM\u002FDD\u002FYYYY`.\n- `Reviewed`: date this review pass updated the row, formatted as `MM\u002FDD\u002FYYYY`.\n\n- **Existing entry (PR number already in table):** update the row in place — replace Findings, Verdict, and Reviewed with the current analysis\u002Fdate. Preserve Opened unless it is missing or in an older format; normalize old Opened values to `MM\u002FDD\u002FYYYY`. Do not add a new row.\n- **New entry:** insert a new row at the top of the table (below the header), above existing rows. Set Verdict to `Merge` (Fix=Y) or `No` (Fix=N), Opened from `createdAt`, and Reviewed to today's review date.\n- Escape any `|` inside cell text as `\\|`.\n\n### 7. Create tickets for Fix=Y PRs\n\nFor each PR where the user confirmed Fix=Y, run:\n\n```bash\ntkt create \"implement: \u003Cshort title referencing PR #n>\"\n```\n\nThen open the created ticket's `ticket.md` and append to the description body:\n\n```\nSource: \u003CPR URL>\nArea: \u003Carea>\nFindings: \u003Cfindings summary>\n```\n\nReport the ticket ID created for each PR.\n\n### 8. Draft and post comments\n\nFor each PR (Y or N), draft a comment summarising the outcome. Cite each specific finding with a full-SHA blob link, not just prose — this lets the PR author jump straight to the flagged code:\n\n```\nhttps:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002F\u003Cfull-sha>\u002F\u003Cpath>#L\u003Cstart>-L\u003Cend>\n```\n\nFetch the full head SHA for the link (do not use `git rev-parse` or any local shell substitution — the link must render as literal markdown, and this flow never checks out the PR branch):\n\n```bash\ngh pr view \u003Cnumber> --repo sunitghub\u002Fcanon-skills --json headRefOid -q .headRefOid\n```\n\nInclude at least 1 line of context before and after the flagged line in the range (e.g. a finding on line 12 links `#L11-L13`).\n\n**Fix=Y template:**\n```\nThanks for the PR. After review:\n\n**Area:** \u003Carea>\n**Findings:** \u003Cfindings, with a blob link per cited issue>\n**Verdict:** Merging — filed as \u003Cticket-id> to track implementation.\n```\n\n**Fix=N template:**\n```\nThanks for the PR. After review:\n\n**Area:** \u003Carea>\n**Findings:** \u003Cfindings, with a blob link per cited issue>\n**Verdict:** Not merging as-is — \u003Cone sentence on why \u002F what would change the verdict>.\n```\n\nShow all drafts and ask:\n\n> \"Post these comments? (yes \u002F edit first \u002F skip)\"\n\nOn **yes**: immediately before posting each comment, re-check the PR is still eligible — it may have been closed, merged, or converted to draft since step 1:\n\n```bash\ngh pr view \u003Cnumber> --repo sunitghub\u002Fcanon-skills --json state,isDraft\n```\n\nIf `state` is no longer `OPEN` or `isDraft` is now `true`, skip posting that comment and note it in chat instead. Otherwise post via:\n```bash\ngh pr comment \u003Cnumber> --repo sunitghub\u002Fcanon-skills --body \"\u003Cdraft>\"\n```\n\nOn **edit first**: show the draft for the specific PR, accept the edit, reconfirm, then post (with the same eligibility re-check).\n\nOn **skip**: do not post. Note it in chat.\n\n## Constraints\n\n- Never post a comment without explicit user approval.\n- Never create a ticket without a Fix=Y decision from the user.\n- Do not duplicate rows in the review file — match by PR number.\n- Scope analysis to the PR diff only. Do not re-read the full canon codebase unless a specific file is directly relevant to a finding.\n",{"name":5,"tags":24,"hidden":29,"category":30,"description":7},[25,26,27,28],"github","prs","review","workflow",true,"dev","main","3e6c9d35455e8e206133380135b560ddb8b58c0e","skills\u002Fpr-review",1,"https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills","https:\u002F\u002Fgetcanon.dev","https:\u002F\u002Fgithub.com\u002Fsunitghub","2026-11-15 03:47:49",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":29},[41,44,47],{"tool":42,"command":43},"npx","npx skills add sunitghub\u002Fcanon-skills --skill pr-review",{"tool":45,"command":46},"bunx","bunx skills add sunitghub\u002Fcanon-skills --skill pr-review",{"tool":48,"command":49},"pnpm","pnpm dlx skills add sunitghub\u002Fcanon-skills --skill pr-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpr-review\u002FSKILL.md",[52],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"evals\u002Fevals.json","REFERENCE","参考文档",4370,"https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpr-review\u002Fevals\u002Fevals.json",[59,66,73,80,86,93],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M75JK2VBM156TBGG9CM9RS34","no-evals","A skill with no evals folder.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fno-evals\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75JK0PTGT7Y2HMWTGPVYT16","hooks","Registers a hook and pushes code.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fhooks\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75JJYWMTD3CWT18DRYHG82H","good","Formats commit messages. Use when the user asks for a commit message.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fgood\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75JJX1CRZJS5XJECST8QR9Q","bad-frontmatter","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fbad-frontmatter\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M75JJTCMGGRFG5RNEJMKJ8AN","wrapup","Internal close-pipeline invoked by sprint complete — quality checks, code review, cleanup. Not for direct use; a normal\u002Fhigh-risk sprint's own \"sprint complete\" step calls this automatically.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrapup\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M75JJP7CEJQDYQ490EEJKFCP","sprint","Manages the sprint workflow for focused changes. Use when asked to add, fix, update, implement, debug, or build — see the Workflow tiers section for what's out of scope.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsprint\u002FSKILL.md",[],[]]