[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72YQBVHTCC6BR7KJCE5R2DS":3,"skill-same:01M72YQBVHTCC6BR7KJCE5R2DS":97},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":19,"frontMatter":20,"refName":21,"commitSha":22,"skillDirectory":23,"forksCount":24,"repositoryHtmlUrl":25,"repositoryHomepageUrl":26,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M72YQBVHTCC6BR7KJCE5R2DS","bug-fixer",null,"zxpmail\u002FReqForge","zxpmail","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F45926210?v=4","01M72YNG60707F44824AGAD6HM","01M72YNG6GD4BTF9Q8V35FQMYY",18,"MIT","https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"\u003C!-- forge: bug-fixer v1.2 -->\n---\nname: bug-fixer\ndescription: Used when the user says \"this feature is broken\", \"getting an error\", \"something's not right\", or reports a bug, compilation error, or runtime exception. Locates root cause through a four-stage systematic debugging process and fixes it.\nversion: 1.2.0\nupdated: 2026-06-27\nrequires: []\n---\n\n\u003C!-- begin: task -->\n[Task]\n    Locate the root cause of bugs through a systematic debugging process and fix them.\n    Fix one problem at a time. Assess impact before each modification. Verify regression after fix.\n\n\u003C!-- end: task -->\n\u003C!-- begin: invocation-context -->\n[Invocation Context]\n    bug-fixer may be called in two scenarios:\n    1. User directly reports a bug -> main Agent invokes bug-fixer -> after fix, suggest user run \u002Fcode-review to verify\n    2. code-review finds confirmed bug\u002Fsecurity\u002Ftype issues (confidence_5 ≥ 4, or legacy confidence ≥ 0.6) -> main Agent invokes bug-fixer, passing the failure items from the code-review report -> after fix, main Agent re-dispatches code-review\n\n    **Action filter**: bug-fixer receives **only `auto-fix` findings**. Findings with `action=\"ask-user\"` (intent \u002F product-behavior \u002F dead-code decisions) are escalated to the human by dev-builder *before* reaching bug-fixer — never auto-fix them. See `..\u002F_shared\u002Ffinding-actions.md`.\n\n\u003C!-- end: invocation-context -->\n\u003C!-- begin: not-for -->\n[Not For]\n    - Feature requests or new functionality -> use \u002Fdev-builder instead\n    - Code quality or style issues without runtime errors -> use \u002Fcode-review instead\n    - Performance optimization without a specific bug -> use \u002Fcode-review with performance dimension\n\n\u003C!-- end: not-for -->\n\u003C!-- begin: dependency-check -->\n[Dependency Check]\n    Automatically executed as the first step when the Skill starts:\n\n    Required:\n    - Project code exists -> if no code, prompt to call \u002Fdev-builder first\n    - Bug description -> user-provided symptoms, or failure item descriptions from a code-review report\n\n    Optional (enhances debugging capability):\n    - Product-Spec.md -> if available, cross-reference expected behavior to determine if it is a bug or a feature\n    - DEV-PLAN.md -> if available, locate the relevant Phase and files\n    - Design tool MCP (Pencil \u002F Figma, etc.) -> if available, cross-reference design to check if UI is correct\n    - Playwright plugin -> if available, automate reproduction and verification\n    - git -> if available, use git log\u002Fdiff\u002Fblame to trace changes\n    - **Dependency Graph** (`dep-graph`) -> if available, run `pnpm dep-graph affected \u003Cfile>` to scope the blast radius before debugging\n    - **forge-bug-fix** (`pnpm forge-bug-fix`) -> if available, use diagnose\u002Ftrace\u002Fverify to automate preflight checks, capture debug snapshots, and run post-fix verification\n\n\u003C!-- end: dependency-check -->\n\u003C!-- begin: shared-discipline -->\n[Shared Discipline]\n    Karpathy 四原则 → `..\u002F_shared\u002Fkarpathy-discipline.md`（bug 场景：先证据后改码；最小修复）\n    只修 `auto-fix` finding；`ask-user`（意图\u002F产品行为\u002F死代码决策）已被上游 escalate → `..\u002F_shared\u002Ffinding-actions.md`\n\n\u003C!-- end: shared-discipline -->\n\u003C!-- begin: first-principles -->\n[First Principles]\n    **Debug 前必读** `references\u002Ffirst-principles.md`\n\n\u003C!-- end: first-principles -->\n\u003C!-- begin: output-style -->\n[Output Style]\n    → `references\u002Foutput-style.md`\n    → Bug 报告 \u002F 修复完成必须附加 `..\u002F_shared\u002Foutput-status-protocol.md`（Status: BLOCKED 或 NEEDS_CONTEXT 时必须说明原因）\n\n\u003C!-- end: output-style -->\n\u003C!-- begin: file-structure -->\n[File Structure]\n    ```\n    bug-fixer\u002F\n    ├── SKILL.md\n    ├── commands\u002Fbug-fixer.md\n    └── references\u002F\n        ├── first-principles.md\n        ├── output-style.md\n        ├── debugging-strategy.md          # 四阶段（Stage 1–4）\n        ├── cot-diagnostic-checklist.md\n        ├── three-layer-diagnostic-model.md\n        ├── debugging-rule-checklist.md\n        ├── anti-rationalization.md\n        ├── anti-ai-slop-checklist.md      # 交付前自检：防敷衍式修 bug\n        ├── workflow.md                    # Startup → Debug → Verify → Complete\n        └── yolo-mode.md\n    ..\u002F_shared\u002F\n    ```\n\n\u003C!-- end: file-structure -->\n\u003C!-- begin: gotchas -->\n[Gotchas]\n    **Environmental contamination**: Kill stale port processes before blaming code changes.\n    **Over-narrowing**: Trace data flow; don't fix only where the error lands.\n    **Three-strikes stall**: Same symptom fails 2nd fix → re-read spec before 3rd attempt (workflow.md Recurrence Check — likely requirements-layer bug); 3rd → escalated, check retry-gate.\n\n\u003C!-- end: gotchas -->\n\u003C!-- begin: output-artifacts -->\n[Output Artifacts]\n    - **Code fix** — modified source files\n    - **Fix report** (screen output) — root cause, changes made, verification results\n    - **memory\u002Ftask-history.md** — Append entry (date, phase, type=fix, description, changed files, notes)\n    - **memory\u002Fproject-memory.md** — Update if bug reveals a new pitfall or constraint\n    - **memory\u002Fdecisions-log.md** — Append if the fix involved a significant technical decision\n\n\u003C!-- end: output-artifacts -->\n\u003C!-- begin: dimension-checklist -->\n[Dimension Checklist]\n    See [references\u002Fdimension-checklist.md](references\u002Fdimension-checklist.md) for the full dimension checklist.\n\n    Must-have dimensions:\n    - **Error classification**: categorize bug type (compile\u002Fruntime\u002Flogic\u002FUI\u002Fdata)\n    - **Reproduction steps**: deterministic repro required before any fix\n    - **Stack trace reading**: extract root-frame user code, exception type, message\n    - **Error message analysis**: treat error messages as primary evidence\n    - **Regression scope**: git bisect\u002Fblame to find introducing commit\n    - **Environment factors**: compare failing vs. known-working environment\n    - **Input validation**: trace triggering input, check boundaries and encoding\n    - **State management**: inspect state before\u002Fafter, check caches and mutation\n\n\u003C!-- end: dimension-checklist -->\n\u003C!-- begin: debugging-rule-checklist -->\n[Debugging Rule Checklist]\n    **调试中读取** `references\u002Fdebugging-rule-checklist.md`\n\n[Anti-Rationalization Checklist]\n    → `references\u002Fanti-rationalization.md`\n\n[CoT Diagnostic Checklist]\n    **Stage 3 前读取** `references\u002Fcot-diagnostic-checklist.md`\n\n[Debugging Strategy]\n    **四阶段方法论** `references\u002Fdebugging-strategy.md`\n\n[Three-Layer Diagnostic Model]\n    **Completion 阶段读取** `references\u002Fthree-layer-diagnostic-model.md`\n\n\u003C!-- end: debugging-rule-checklist -->\n\u003C!-- begin: quality-rubric -->\n[Quality Rubric]\n    8-item, 16-point scoring system. Ship threshold: **≥ 12** with no critical item scoring 0.\n\n    | # | Dimension | Pts | Critical | Scoring |\n    |---|-----------|-----|----------|---------|\n    | 1 | Root cause accuracy | 2 | YES | 2 = Identified actual root cause (not symptom), traced through data\u002Fcontrol flow; 1 = Found proximate cause but not root; 0 = Fixed symptom only |\n    | 2 | Fix correctness | 2 | YES | 2 = Fix resolves the issue, all existing tests pass, no new bugs introduced; 1 = Fix works for reported case but may fail edge cases; 0 = Fix is incorrect or breaks other functionality |\n    | 3 | Regression prevention | 2 | — | 2 = Added test(s) covering the fix, verified they fail before and pass after; 1 = Manual verification only, no automated guard; 0 = No regression protection added |\n    | 4 | Diagnostic thoroughness | 2 | — | 2 = Checked logs, stack traces, reproduction steps, environment factors; 1 = Used some evidence but missed available signals; 0 = Guessed without evidence |\n    | 5 | Scope awareness | 2 | — | 2 = Understood blast radius, checked callers and dependents before fixing; 1 = Considered scope but missed some affected areas; 0 = Changed code without impact analysis |\n    | 6 | Fix minimality | 2 | — | 2 = Surgical change, only what's needed, no unnecessary refactoring; 1 = Some extra changes mixed in; 0 = Large rewrite or scope creep in fix |\n    | 7 | Verification evidence | 2 | YES | 2 = Demonstrated fix works (test output, error gone, manual repro passes); 1 = Claims fix works but no demonstration; 0 = No verification attempted |\n    | 8 | Documentation | 2 | — | 2 = Updated relevant docs, added comments for non-obvious fix, logged in task-history; 1 = Code-only fix without comments\u002Fdocs; 0 = No documentation or logging |\n\n    **Scoring**: Run `pnpm validate-skill --score core\u002Fskills\u002Fbug-fixer` to compute.\n\u003C!-- end: quality-rubric -->\n\u003C!-- begin: workflow -->\n[Workflow]\n    1. Run [Dependency Check]\n    2. Read `references\u002Ffirst-principles.md`\n    3. **必须先 Read `references\u002Fworkflow.md`** — Startup → Debugging → Self-Review → Verification → Completion（Debugging 含子阶段：观察 → 假设 → 验证 → 修复，见 `references\u002Fdebugging-strategy.md`）\n    4. Debugging 阶段执行 `references\u002Fdebugging-strategy.md` + `cot-diagnostic-checklist.md`\n    5. **forge-bug-fix 辅助**：\n       - Stage 1 启动后 → `pnpm forge-bug-fix diagnose` 跑 preflight + 环境检查；按问题类型加 `--scenario compile|config|data` 专项诊断\n       - 调试中捕获关键现场 → `pnpm forge-bug-fix trace \u003Cbug-name>` 存快照\n       - 定位回归引入者 → `pnpm forge-bug-fix bisect \u003Cgood-commit> [bad-commit]` 自动 git bisect\n       - 错误分类诊断 → `pnpm forge-bug-fix classify [trace-name]` 识别错误类别 + 建议修复方向\n       - 修复后验证 → `pnpm forge-bug-fix verify` 确认编译 + 测试通过\n    6. 交付前执行 `references\u002Fanti-ai-slop-checklist.md` 自检\n    7. `FORGE_MODE=yolo` → `references\u002Fyolo-mode.md`\n\n\u003C!-- end: workflow -->\n\u003C!-- begin: yolo-mode -->\n[YOLO Mode]\n    → `references\u002Fyolo-mode.md`\n\n\u003C!-- end: yolo-mode -->\n\u003C!-- begin: initialization -->\n[Initialization]\n    Execute [Workflow]\n\n\u003C!-- end: initialization -->\n",{},"main","bf75b50757318dc73f1fee44c5a56f6324242411","adapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer",5,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge","https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge#readme","https:\u002F\u002Fgithub.com\u002Fzxpmail","2026-10-07 09:22:30",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add zxpmail\u002FReqForge --skill bug-fixer",{"tool":35,"command":36},"bunx","bunx skills add zxpmail\u002FReqForge --skill bug-fixer",{"tool":38,"command":39},"pnpm","pnpm dlx skills add zxpmail\u002FReqForge --skill bug-fixer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002FSKILL.md",true,[43,49,53,57,61,65,69,73,77,81,85,89,93],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"commands\u002Fbug-fixer.md","REFERENCE","参考文档",572,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Fcommands\u002Fbug-fixer.md",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fanti-ai-slop-checklist.md",3530,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fanti-ai-slop-checklist.md",{"path":54,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fanti-rationalization.md",1209,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fanti-rationalization.md",{"path":58,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fcot-diagnostic-checklist.md",560,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fcot-diagnostic-checklist.md",{"path":62,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fdebugging-rule-checklist.md",3526,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fdebugging-rule-checklist.md",{"path":66,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fdebugging-strategy.md",4614,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fdebugging-strategy.md",{"path":70,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fdimension-checklist.md",3353,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fdimension-checklist.md",{"path":74,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Ffirst-principles.md",1910,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Ffirst-principles.md",{"path":78,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Foutput-style.md",1497,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Foutput-style.md",{"path":82,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fthree-layer-diagnostic-model.md",1129,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fthree-layer-diagnostic-model.md",{"path":86,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fworkflow.md",5851,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fworkflow.md",{"path":90,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fyolo-mode.md",452,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Freferences\u002Fyolo-mode.md",{"path":94,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":95,"sourceHtmlUrl":96},"skill.json",924,"https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fadapters\u002Fcursor\u002F.cursor\u002Frules\u002Fskills\u002Fbug-fixer\u002Fskill.json",[98,105,112,118,124,130],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":17},"01M72YWW227N72XBY2DB439PZ9","feedback-writer","Analyze and record user corrections, feedback, and behavior preferences as structured feedback files for the evolution engine.","https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Ftest-demo\u002F.claude\u002Fskills\u002Ffeedback-writer\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":17},"01M72YWTKT8GWESEYTJXE6HXG4","evolution-engine","Scan accumulated feedback to identify patterns, generate evolution proposals for SKILL.md, rules, or new Skills.","https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Ftest-demo\u002F.claude\u002Fskills\u002Fevolution-engine\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":17},"01M72YWP1C81B4NNENKME8NPMF","db-migration-checker","https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Feval-output\u002Fnew-skill-created\u002Fskills\u002Fdb-migration-checker\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":17},"01M72YWN2GJN9XMS4D0BAPDZJR","skill-builder","https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fskill-builder\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":17},"01M72YWK6PBEEV8P1EFYX5TGBD","request-dispatcher","https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Frequest-dispatcher\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":17},"01M72YWG2KHA4PRCPSSD9J7166","reqforge-greenkeeper","https:\u002F\u002Fgithub.com\u002Fzxpmail\u002FReqForge\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Freqforge-greenkeeper\u002FSKILL.md",[],[]]