[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BQF7KG6WX7HHXGAF0E6J17":3,"skill-same:01M7BQF7KG6WX7HHXGAF0E6J17":45},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7BQF7KG6WX7HHXGAF0E6J17","lexforge-debug",null,"Use when a test fails, a build breaks, a bug is reported or code behaves unexpectedly - before naming a cause or proposing a fix, and again when a fix has already been tried and the problem is still there.","shepaland\u002FLexForge","shepaland","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F122363057?v=4","01M7BQEZBGE97WJ1V279CSYC3A","01M7BQEZC62M44EBNTXM79BCK7",1,"MIT","https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge\u002Fblob\u002Fmain\u002Fskills\u002Flexforge-debug\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: lexforge-debug\ndescription: Use when a test fails, a build breaks, a bug is reported or code behaves unexpectedly - before naming a cause or proposing a fix, and again when a fix has already been tried and the problem is still there.\n---\n\n\u003C!-- model-block:start -->\n## Model\n\nDefault by provider; the project assignment takes precedence.\n\n| Provider | Model |\n|---|---|\n| anthropic | claude-sonnet-5 |\n| openai | gpt-5.6-terra |\n| google | gemini-3.7-flash |\n| deepseek | deepseek-v4-flash |\n| z.ai | glm-4.7-flash |\n\nA provider outside the table names nothing, so work on the model at work.\n\u003C!-- model-block:end -->\n\u003C!-- queue-rule:start -->\n\n\u003C!-- version-gate:start -->\n## Version gate\n\nExit `2` with `error.code` `update-available`: show `error.message` to the user and wait for the user's answer. Never run `npm install` yourself.\n\nExit `2` with `error.code` `skills-outdated`: run the `lexforge init` command that `error.message` names. Then run the command that refused again. If it refuses with `skills-outdated` a second time, show `error.message` and stop.\n\u003C!-- version-gate:end -->\n\n\u003C!-- model-gate:start -->\n## Model gate\n\nRead `provider` and `model` from `lexforge instructions \u003Cartifact> --change \u003Cname> --tool \u003Cyour runtime> --json`\nfor artifacts; otherwise use your entry in `stages` from\n`lexforge status --change \u003Cname> --tool \u003Cyour runtime> --json`.\nThe `stage` is your skill name without `lexforge-` (`apply`, `debug`, `verify`, `archive`).\nName your runtime from `lexforge init --tools`; omit `--tool` only if none matches.\n\nAn empty assignment, no workspace, no change, or no stage entry uses the model block\nabove for your provider. An unlisted provider imposes no model.\nOn the assigned model, work without model commentary. Otherwise start a subagent on\nthat model, hand it the work, and do none of it yourself. Disclosure or later review\nis not delegation. If unreachable, name the model and stop: restore access or let the\nuser change the assignment in `lexforge\u002Fconfig.yaml`; do not change it yourself.\n\u003C!-- model-gate:end -->\n\u003C!-- queue-rule:end -->\n\n## The rule\n\n**NEVER NAME A FIX BEFORE YOU HAVE NAMED THE CAUSE.**\n\nViolating the letter of this rule is violating its spirit.\n\nDebugging inside a change: name it in the gate's status call — the `debug` stage carries\nits own assignment.\n\n## What a found cause is\n\nThree statements: where the wrong value first appears, the path it took to the failing\nline, and the change after which the behaviour started.\n\nA symptom matching a guess is not a cause. A rule explaining how the value *could* be\nwrong covers the class, not this run. A write-up, a green pipeline, a documented default,\nfive call sites doing the same - evidence to check, not the answer.\n\n## Four phases\n\nFinish each before the next.\n\n1. **Cause.** Read the whole error. Reproduce it. Read the recent changes to the code it\n   touches, and follow the wrong value back to where it appears.\n2. **Comparison.** Find the nearest case that works, list every difference.\n3. **Hypothesis.** State one, in words, and test it with the smallest change that can\n   disprove it. It survived? Phase 4. It did not? Back to phase 1 with what you learned,\n   never a second change on top of the first.\n4. **Fix.** One change, at the cause.\n\nTwo changes in one run cannot be told apart by the result.\n\n## The test comes first\n\nWrite a test that reproduces the bug, run it, quote the failing line - then change code.\nA test that passes first time is testing something else. Checking by hand does not run\nagain tomorrow. A test written after the fix pins the fix, not the bug.\n\n## Three failed fixes end the fixing\n\nCount them. After the third change that left the bug alive or moved it somewhere new,\nstop and talk to the user about how the system is put together. Say the count and what each attempt showed. No fourth change before that conversation: not a smaller\none, not the one that finally looks like the real cause.\nA fix that cannot land without rewriting the layer beside it is the same signal.\n\n## Say when you do not know\n\nName the part you could not work out and ask. A plausible story is not an investigation,\nand a fix \"just in case\" is a guess with a paragraph in front of it.\n\n## Rationalizations\n\n| Excuse | Reality |\n|---|---|\n| \"safe regardless of *why* `discount` is undefined\" | If the reason does not matter, you never asked what the wrong value does once it stops crashing. |\n| \"a complete causal chain from documented producer behavior to the exact `TypeError`\", \"nothing left for a mapper trace to establish\" | That chain says how the field may be absent, not why it is absent here. |\n| \"I'll trace `discount` through the mapper end-to-end after the page is back up\", \"not tonight's gate\" | The investigation you postpone is the one you skip. |\n| \"it would silently paper over a genuine mapper bug. That's why the test goes in with it\" | A test written from the fix asserts the fix; it passes on the bug too. |\n| \"refusing to act ignores a direct instruction the user gave with full awareness of the history\" | Nobody counted the attempts out loud, so nobody was choosing a fourth one. |\n| \"The risk, so you have it in writing before you sleep\" | A warning handed over with the change is a receipt, not a warning. |\n\n## Red flags - stop\n\n- Code changed before the wrong value was traced.\n- Two changes in one run.\n- A test written after the fix.\n- A fourth attempt.\n- A cause taken unchecked from a colleague or a green pipeline.\n- A fix shipped with its risk named beside it.\n\nGo back to phase 1.\n","\u003C!-- model-block:start -->\n## Model\n\nDefault by provider; the project assignment takes precedence.\n\n| Provider | Model |\n|---|---|\n| anthropic | claude-sonnet-5 |\n| openai | gpt-5.6-terra |\n| google | gemini-3.7-flash |\n| deepseek | deepseek-v4-flash |\n| z.ai | glm-4.7-flash |\n\nA provider outside the table names nothing, so work on the model at work.\n\u003C!-- model-block:end -->\n\u003C!-- queue-rule:start -->\n\n\u003C!-- version-gate:start -->\n## Version gate\n\nExit `2` with `error.code` `update-available`: show `error.message` to the user and wait for the user's answer. Never run `npm install` yourself.\n\nExit `2` with `error.code` `skills-outdated`: run the `lexforge init` command that `error.message` names. Then run the command that refused again. If it refuses with `skills-outdated` a second time, show `error.message` and stop.\n\u003C!-- version-gate:end -->\n\n\u003C!-- model-gate:start -->\n## Model gate\n\nRead `provider` and `model` from `lexforge instructions \u003Cartifact> --change \u003Cname> --tool \u003Cyour runtime> --json`\nfor artifacts; otherwise use your entry in `stages` from\n`lexforge status --change \u003Cname> --tool \u003Cyour runtime> --json`.\nThe `stage` is your skill name without `lexforge-` (`apply`, `debug`, `verify`, `archive`).\nName your runtime from `lexforge init --tools`; omit `--tool` only if none matches.\n\nAn empty assignment, no workspace, no change, or no stage entry uses the model block\nabove for your provider. An unlisted provider imposes no model.\nOn the assigned model, work without model commentary. Otherwise start a subagent on\nthat model, hand it the work, and do none of it yourself. Disclosure or later review\nis not delegation. If unreachable, name the model and stop: restore access or let the\nuser change the assignment in `lexforge\u002Fconfig.yaml`; do not change it yourself.\n\u003C!-- model-gate:end -->\n\u003C!-- queue-rule:end -->\n\n## The rule\n\n**NEVER NAME A FIX BEFORE YOU HAVE NAMED THE CAUSE.**\n\nViolating the letter of this rule is violating its spirit.\n\nDebugging inside a change: name it in the gate's status call — the `debug` stage carries\nits own assignment.\n\n## What a found cause is\n\nThree statements: where the wrong value first appears, the path it took to the failing\nline, and the change after which the behaviour started.\n\nA symptom matching a guess is not a cause. A rule explaining how the value *could* be\nwrong covers the class, not this run. A write-up, a green pipeline, a documented default,\nfive call sites doing the same - evidence to check, not the answer.\n\n## Four phases\n\nFinish each before the next.\n\n1. **Cause.** Read the whole error. Reproduce it. Read the recent changes to the code it\n   touches, and follow the wrong value back to where it appears.\n2. **Comparison.** Find the nearest case that works, list every difference.\n3. **Hypothesis.** State one, in words, and test it with the smallest change that can\n   disprove it. It survived? Phase 4. It did not? Back to phase 1 with what you learned,\n   never a second change on top of the first.\n4. **Fix.** One change, at the cause.\n\nTwo changes in one run cannot be told apart by the result.\n\n## The test comes first\n\nWrite a test that reproduces the bug, run it, quote the failing line - then change code.\nA test that passes first time is testing something else. Checking by hand does not run\nagain tomorrow. A test written after the fix pins the fix, not the bug.\n\n## Three failed fixes end the fixing\n\nCount them. After the third change that left the bug alive or moved it somewhere new,\nstop and talk to the user about how the system is put together. Say the count and what each attempt showed. No fourth change before that conversation: not a smaller\none, not the one that finally looks like the real cause.\nA fix that cannot land without rewriting the layer beside it is the same signal.\n\n## Say when you do not know\n\nName the part you could not work out and ask. A plausible story is not an investigation,\nand a fix \"just in case\" is a guess with a paragraph in front of it.\n\n## Rationalizations\n\n| Excuse | Reality |\n|---|---|\n| \"safe regardless of *why* `discount` is undefined\" | If the reason does not matter, you never asked what the wrong value does once it stops crashing. |\n| \"a complete causal chain from documented producer behavior to the exact `TypeError`\", \"nothing left for a mapper trace to establish\" | That chain says how the field may be absent, not why it is absent here. |\n| \"I'll trace `discount` through the mapper end-to-end after the page is back up\", \"not tonight's gate\" | The investigation you postpone is the one you skip. |\n| \"it would silently paper over a genuine mapper bug. That's why the test goes in with it\" | A test written from the fix asserts the fix; it passes on the bug too. |\n| \"refusing to act ignores a direct instruction the user gave with full awareness of the history\" | Nobody counted the attempts out loud, so nobody was choosing a fourth one. |\n| \"The risk, so you have it in writing before you sleep\" | A warning handed over with the change is a receipt, not a warning. |\n\n## Red flags - stop\n\n- Code changed before the wrong value was traced.\n- Two changes in one run.\n- A test written after the fix.\n- A fourth attempt.\n- A cause taken unchecked from a colleague or a green pipeline.\n- A fix shipped with its risk named beside it.\n\nGo back to phase 1.\n",{"name":5,"description":7},"main","88026324b1714f1c0e540ee6b1864a79556e65df","skills\u002Flexforge-debug",0,"https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Flexforge","https:\u002F\u002Fgithub.com\u002Fshepaland","2026-10-25 22:05:47",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add shepaland\u002FLexForge --skill lexforge-debug",{"tool":37,"command":38},"bunx","bunx skills add shepaland\u002FLexForge --skill lexforge-debug",{"tool":40,"command":41},"pnpm","pnpm dlx skills add shepaland\u002FLexForge --skill lexforge-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge\u002Fblob\u002Fmain\u002Fskills\u002Flexforge-debug\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7BQH5XPYKM4043980E7X639","sample-verify","Use when the install mechanics need a second skill to copy - stands in for the real verify skill","https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fsample-verify\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7BQH26ZAX9F7DEFGBQ3K5XV","sample-plan","Use when the install mechanics need a skill to copy - stands in for the real planning skill","https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fsample-plan\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7BQH07Q9JQ32D1YQCHR6FWZ","three-fields","Use when a structure check needs a frontmatter with a field that does not belong there","https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-structure\u002Fthree-fields\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7BQGYJ0XG6WFD65J7KYZ9FQ","no-use-when","Runs the structure checks over a description that opens with the wrong words","https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-structure\u002Fno-use-when\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7BQGWV5RJVW6F8GTKP98RM3","another-name","Use when a structure check needs a name that disagrees with the directory around it","https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-structure\u002Fname-mismatch\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7BQGTVJP3CKFQTMPNMSGYNS","minimal","Use when a structure check needs a skill that breaks no rule - the baseline fixture","https:\u002F\u002Fgithub.com\u002Fshepaland\u002FLexForge\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-structure\u002Fminimal\u002FSKILL.md",[],[]]