[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E35G8WZSWA3PAYFR83QRBR":3,"skill-same:01M6E35G8WZSWA3PAYFR83QRBR":70},{"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":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6E35G8WZSWA3PAYFR83QRBR","code-review-pi",null,"Review code for quality, run linters, check test coverage, fix issues, and enforce gates. Save the final report to .\u002Fspecs\u002Fissues\u002F003-code-review-pi\u002FPROMPT.md. Use before committing changes.","dimetron\u002Fpi-go","dimetron","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F877433?v=4","01M6E34QX9HKYKMWJVZQEPR2Q3","Dmytro Rashko","01M6E34R2A6563XM0PTZE8KPGG",224,"MIT","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002F.pi-go\u002Fskills\u002Fcode-review-pi\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"review","code review","code","code review pi","pi","changes","for","final report","gates","enforce","test coverage","use","fix","coverage","check","prompt","quality","review code","code-review","issues","report","run","test","2026-11-10 10:12:30",false,"---\nname: code-review-pi\ndescription: Review code for quality, run linters, check test coverage, fix issues, and enforce gates. Save the final report to .\u002Fspecs\u002Fissues\u002F003-code-review-pi\u002FPROMPT.md. Use before committing changes.\n---\n\n# Code Review\n\nReview code for quality, test coverage, and fix problems found.\n\nThe canonical output artifact for this skill is `.\u002Fspecs\u002Fissues\u002F003-code-review-pi\u002FPROMPT.md`.\nOnly report success after writing the final review summary there.\n\n## Steps\n\n1. **Identify scope**: Run `git diff --name-only` to find modified files. If there are changes, review only modified packages. If no uncommitted changes, review all packages (`.\u002F...`).\n\n2. **Run linters**: Execute linters on target packages:\n   - `go vet .\u002F...`\n   - `golangci-lint run --new-from-rev=HEAD~1 .\u002F...` (if available)\n\n3. **Run tests and check coverage**:\n   - `go test -race -count=1 -coverprofile=coverage.out .\u002F...`\n   - `go tool cover -func=coverage.out`\n   - Identify failing tests, functions with 0% coverage, packages below 80%\n\n4. **Review code quality**: Read target files and check for:\n   - Missing tests for new\u002Fchanged functions\n   - Error handling (missing checks, swallowed errors)\n   - Resource leaks (unclosed files, connections)\n   - Concurrency issues (race conditions, missing mutexes)\n\n5. **Fix issues in parallel using subagents**: For each package needing coverage fixes, spawn a subagent to work on it concurrently:\n   - Use the `agent` tool to spawn one subagent per package that needs test coverage improvement\n   - Each subagent prompt: \"Write tests for uncovered functions in package \u003Cpkg>. Read the source files, identify untested functions using the coverage data, write table-driven tests covering happy path and error cases. Run `go test -race .\u002F\u003Cpkg>\u002F...` to verify. NEVER delete existing tests.\"\n   - While subagents write tests, fix linter warnings and code quality issues yourself\n   - Wait for all subagents to complete, then verify their work compiles\n\n6. **Verify gates**: All gates must pass before reporting success:\n   - GATE 1: `go build .\u002F...` — zero errors\n   - GATE 2: `go vet .\u002F...` — zero warnings\n   - GATE 3: `go test -race .\u002F...` — all tests pass\n   - GATE 4: `go test -cover .\u002F...` — >= 80% per package\n   - If any gate fails, fix and re-run until all pass\n\n7. **Report**: Write the final summary to `.\u002Fspecs\u002Fissues\u002F003-code-review-pi\u002FPROMPT.md` and present:\n   - Gates: PASS \u002F FAIL for each\n   - Test results: pass\u002Ffail count\n   - Coverage: per-package percentages (before → after)\n   - Issues fixed with file:line references\n\n## Gates\n\nAll gates are mandatory. Do not report success unless every gate passes.\n\n| Gate | Command | Requirement |\n|------|---------|-------------|\n| Build | `go build .\u002F...` | Zero errors |\n| Vet | `go vet .\u002F...` | Zero warnings |\n| Test | `go test -race .\u002F...` | All pass |\n| Coverage | `go test -cover .\u002F...` | >= 80% per package |\n\n## Examples\n\n- `\u002Fcode-review` — Full review: lint, test, coverage, parallel fix, verify gates\n\n## Guidelines\n\n- If uncommitted changes exist, focus on modified packages\n- If no changes, review all packages for full codebase quality check\n- NEVER delete existing tests — only add or fix tests\n- Use subagents to parallelize test writing across packages (one subagent per package)\n- While subagents handle coverage, fix linter and quality issues in parallel\n- Tests are mandatory: every new\u002Fchanged exported function needs a test\n- Table-driven tests preferred for Go code\n- Test both happy path and error cases\n- Fix issues directly — don't just report them\n- Keep iterating until all gates pass\n","# Code Review\n\nReview code for quality, test coverage, and fix problems found.\n\nThe canonical output artifact for this skill is `.\u002Fspecs\u002Fissues\u002F003-code-review-pi\u002FPROMPT.md`.\nOnly report success after writing the final review summary there.\n\n## Steps\n\n1. **Identify scope**: Run `git diff --name-only` to find modified files. If there are changes, review only modified packages. If no uncommitted changes, review all packages (`.\u002F...`).\n\n2. **Run linters**: Execute linters on target packages:\n   - `go vet .\u002F...`\n   - `golangci-lint run --new-from-rev=HEAD~1 .\u002F...` (if available)\n\n3. **Run tests and check coverage**:\n   - `go test -race -count=1 -coverprofile=coverage.out .\u002F...`\n   - `go tool cover -func=coverage.out`\n   - Identify failing tests, functions with 0% coverage, packages below 80%\n\n4. **Review code quality**: Read target files and check for:\n   - Missing tests for new\u002Fchanged functions\n   - Error handling (missing checks, swallowed errors)\n   - Resource leaks (unclosed files, connections)\n   - Concurrency issues (race conditions, missing mutexes)\n\n5. **Fix issues in parallel using subagents**: For each package needing coverage fixes, spawn a subagent to work on it concurrently:\n   - Use the `agent` tool to spawn one subagent per package that needs test coverage improvement\n   - Each subagent prompt: \"Write tests for uncovered functions in package \u003Cpkg>. Read the source files, identify untested functions using the coverage data, write table-driven tests covering happy path and error cases. Run `go test -race .\u002F\u003Cpkg>\u002F...` to verify. NEVER delete existing tests.\"\n   - While subagents write tests, fix linter warnings and code quality issues yourself\n   - Wait for all subagents to complete, then verify their work compiles\n\n6. **Verify gates**: All gates must pass before reporting success:\n   - GATE 1: `go build .\u002F...` — zero errors\n   - GATE 2: `go vet .\u002F...` — zero warnings\n   - GATE 3: `go test -race .\u002F...` — all tests pass\n   - GATE 4: `go test -cover .\u002F...` — >= 80% per package\n   - If any gate fails, fix and re-run until all pass\n\n7. **Report**: Write the final summary to `.\u002Fspecs\u002Fissues\u002F003-code-review-pi\u002FPROMPT.md` and present:\n   - Gates: PASS \u002F FAIL for each\n   - Test results: pass\u002Ffail count\n   - Coverage: per-package percentages (before → after)\n   - Issues fixed with file:line references\n\n## Gates\n\nAll gates are mandatory. Do not report success unless every gate passes.\n\n| Gate | Command | Requirement |\n|------|---------|-------------|\n| Build | `go build .\u002F...` | Zero errors |\n| Vet | `go vet .\u002F...` | Zero warnings |\n| Test | `go test -race .\u002F...` | All pass |\n| Coverage | `go test -cover .\u002F...` | >= 80% per package |\n\n## Examples\n\n- `\u002Fcode-review` — Full review: lint, test, coverage, parallel fix, verify gates\n\n## Guidelines\n\n- If uncommitted changes exist, focus on modified packages\n- If no changes, review all packages for full codebase quality check\n- NEVER delete existing tests — only add or fix tests\n- Use subagents to parallelize test writing across packages (one subagent per package)\n- While subagents handle coverage, fix linter and quality issues in parallel\n- Tests are mandatory: every new\u002Fchanged exported function needs a test\n- Table-driven tests preferred for Go code\n- Test both happy path and error cases\n- Fix issues directly — don't just report them\n- Keep iterating until all gates pass\n",{"name":5,"description":7},"main","bcfcd42255878c3d40e545abcdeb2520b6d31a52",".pi-go\u002Fskills\u002Fcode-review-pi",34,"https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go","https:\u002F\u002Fpi-go.sh","https:\u002F\u002Fgithub.com\u002Fdimetron","🎸💻 🚧🦞","2026-11-15 03:48:24",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add dimetron\u002Fpi-go --skill code-review-pi",{"tool":62,"command":63},"bunx","bunx skills add dimetron\u002Fpi-go --skill code-review-pi",{"tool":65,"command":66},"pnpm","pnpm dlx skills add dimetron\u002Fpi-go --skill code-review-pi","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002F.pi-go\u002Fskills\u002Fcode-review-pi\u002FSKILL.md",true,[],[71,96,118,136,151,171],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":42},"01M70SJ3216A0Y2NXYJJ2MVER0","verify-session-flow","Formally verify the interactive session flow before or after changing it. Use when editing internal\u002Ftui\u002Ftui.go's handleKey, handleInterruptKey, handleInputSubmit, ctrlCCount or quitting, internal\u002Ftui\u002Fagent_loop.go's enqueuePrompt, submit, steerPrompt, cancelAgent or handleAgentDone, or the deferred-init splash — or when a user reports that Ctrl+C quit on the first press, that Esc did not stop a turn or a goal loop, that a queued prompt was lost when they canceled, or that the TUI hung on a spinner nothing could clear.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-session-flow\u002FSKILL.md",[],[78,79,80,81,82,83,84,30,85,34,86,87,88,89,90,91,92,93,94,95],"session","verify session flow","verify","flow","submit","editing","init","loop","when","interactive","reports","first","goal","CTRL","clear","go","spinner","tui",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":42},"01M70SJ02CTB40V2VFGAF80SBG","verify-run-pipeline","Formally verify the \u002Frun phase machine before or after changing it. Use when editing internal\u002Ftui\u002Frun.go's phase transitions (handleRunAgentDone, runGates result handling, verifyRunComplete, retryRun, reportGateHang, merge), internal\u002Fsop\u002Fverdict.go's Passed, or the checklist refresh — or when a run merged work it should not have, retried a hung gate, lost a cycle at the retry budget, or merged on a stale PASS.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-run-pipeline\u002FSKILL.md",[],[103,104,80,40,105,106,83,107,108,109,30,86,110,111,112,113,114,115,116,117],"pipeline","verify run pipeline","run pipeline","retry","cycle","run phase","machine","phase","refresh","work","verdict","transitions","result","merge","sop",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":42},"01M70SHWJV9N3PQWRAMCQE9C2E","verify-history-rewrite","Formally verify the session-history rewrite path before or after changing it. Use when editing internal\u002Fsession\u002Fautocompact.go, internal\u002Fsession\u002Fcompaction*.go, internal\u002Fsession\u002Fstore.go's Compact\u002FClearEvents\u002FrewriteEvents, internal\u002Fagent\u002Fagent.go's Run\u002FRunStreaming\u002FrunPreTurn, or internal\u002Ftui\u002Fcommands.go's clearConversation\u002FclearSessionContext and the context gauge — or when a turn is canceled mid-flight, a tool call and its result get separated, a session's history disappears while the agent is still working, or the model is sent a tool result whose call was compacted away.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-history-rewrite\u002FSKILL.md",[],[125,126,127,80,128,129,83,78,130,131,30,132,86,133,134,115,40,135,93,95],"history","rewrite","verify history rewrite","get","model","tool","call","compact","store","gauge","commands",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":42},"01M70SHSJ5A2XV5SXBXM96RH7P","verify-goal-loop","Formally verify the \u002Fgoal automatic loop before or after changing it. Use when editing internal\u002Ftui\u002Fgoal.go, internal\u002Ftui\u002Fagent_loop.go's handleAgentDone\u002FcancelAgent\u002FsteerPrompt, or internal\u002Ftools\u002Fgoal.go's GoalController — or when a goal loop will not stop, stops one cycle early, closes a goal that is not met, or restarts a goal you finished.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-goal-loop\u002FSKILL.md",[],[85,143,144,80,90,145,83,107,30,86,146,147,93,95,148,149,150],"verify goal loop","verify goal","goal loop","you","automatic","Tools","it","stop",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":42},"01M70SHPYN1AS6D6RJ8HN270RZ","verify-agent-lifecycle","Formally verify the subagent lifecycle before or after changing it. Use when editing internal\u002Fsubagent\u002Forchestrator.go's Spawn, trackAgent, forwardAgentEvents, terminalStatus, Cancel, ShutdownWithTimeout or evictCompletedAgentsLocked, or internal\u002Fsubagent\u002Fpool.go — or when a canceled agent is reported as failed, an agent vanishes from the list with no verdict, the orchestrator panics on a pool release, or an agent can be canceled twice.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-agent-lifecycle\u002FSKILL.md",[],[158,159,160,80,161,83,30,86,162,163,164,165,113,166,167,168,169,93,149,170],"lifecycle","verify agent lifecycle","agent lifecycle","as","cancel","subagent","can","with","orchestrator","spawn","release","list","pool",{"skillNo":172,"name":173,"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":174,"categories":175,"keywords":176,"publishedAt":42},"01M6E37WZM8ZF36DRYQGZDGP7M","test-new-skill","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Ftui\u002F.pi-go\u002Fskills\u002Ftest-new-skill\u002FSKILL.md",[],[41,177,178,179],"new skill","test new skill","new"]