[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JQR3DTQE92ZYHB2P94HCD":3,"skill-same:01M77JQR3DTQE92ZYHB2P94HCD":68},{"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":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M77JQR3DTQE92ZYHB2P94HCD","debugging",null,"Use when something is broken and the cause is not yet known: a failing test, a panic or stack trace, a crash, wrong output, or behaviour that worked before and does not now. Walks the reproduce → isolate → fix → verify protocol, insists the cause be named before a line is changed, and requires a regression test that fails against the old code.","airiclenz\u002Fapogee","airiclenz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6122029?v=4","01M77JP28HYAQRFTBT0467PF5S","Airic Lenz","01M77JP29NWFYFCQX733CDVXXS",12,"MIT","https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Fshipped\u002Fdebugging\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nid: debugging\ndisplayName: Debugging\nsummary: Chase a bug down in four steps — reproduce, isolate, fix the cause, verify — with the rules that keep each step honest.\ndescription: >-\n  Use when something is broken and the cause is not yet known: a failing test, a panic or\n  stack trace, a crash, wrong output, or behaviour that worked before and does not now.\n  Walks the reproduce → isolate → fix → verify protocol, insists the cause be named before\n  a line is changed, and requires a regression test that fails against the old code.\ntriggers:\n  - debug this\n  - fix this bug\n  - why is this failing\n  - why does this crash\n  - this test fails\n  - test is failing\n  - stack trace\n  - panic\n  - it worked before\n  - track down the cause\n  - reproduce the issue\n  - root cause\n---\n\n# Debugging\n\nWork the four steps in order. Do not skip ahead: a fix written before the cause is\nknown is a guess, and a guess that happens to hide the symptom is worse than no fix.\n\n## 1. Reproduce\n\nGet a command that fails, every time, before changing anything.\n\n- Write down the exact command and its exact output. That output is your baseline.\n- If the report is vague, narrow it until one command fails: a single test, a single\n  input file, a single request.\n- If you cannot reproduce it, say so and stop. Ask for the version, the platform, the\n  inputs, and the full error text. Never \"fix\" a bug you have never seen fail.\n- Prefer the smallest reproducer that still fails — a failing unit test beats a manual\n  click-through, because step 4 can run it again.\n\n## 2. Isolate\n\nFind the one place where the program's actual behaviour first diverges from what it\nshould do. This is the whole job; steps 3 and 4 are short by comparison.\n\n- Read the error message completely, including the stack frames. Most of the answer is\n  usually already in it. Open the file and line it names.\n- Read the code before theorising about it. Follow the value that is wrong backwards to\n  where it is produced, not forwards from where you expected it to be used.\n- Form one hypothesis at a time, phrased so it can be false: \"the config is empty at the\n  call site\" — then check that, and only that.\n- Test the hypothesis with evidence, not with a rewrite: print or log the value, run the\n  narrowed test, inspect the intermediate state.\n- Bisect when the space is large. Halve it: comment out a branch, pin an input, check\n  whether an older commit passes. Two or three halvings usually beat an hour of reading.\n- When it worked before, find what changed — a recent commit, a dependency bump, a\n  config value, an environment difference. Compare working and broken side by side.\n- Note what you have ruled out as you go, so you do not walk the same path twice.\n\nCommon traps, worth checking early:\n\n- The failure is in the test, not the code — a stale fixture, a wrong expectation, a\n  test that depends on order or on the clock.\n- The code you are reading is not the code that runs: a stale build, a shadowed file, a\n  cached artefact, the wrong binary on PATH.\n- The value is empty or nil at the boundary — an unset field, a dropped error, a zero\n  value that means \"off\".\n- Two things are true at once and only their combination fails; a single-variable test\n  will keep passing.\n\nStop isolating when you can state the cause in one sentence naming a file and a line.\nIf you cannot, you have not isolated it yet.\n\n## 3. Fix\n\nFix the cause you named, and nothing else.\n\n- The smallest change that removes the cause is the right one. Resist the rewrite the\n  bug tempted you into.\n- Do not paper over the symptom: a nil check that hides a value that should never have\n  been nil moves the bug rather than removing it.\n- If the cause is a missing case, handle the case. If the cause is a wrong assumption,\n  fix the assumption at its source — every other caller has it too.\n- Keep unrelated cleanups out of the change. They make the fix unreviewable and they\n  make step 4 ambiguous.\n- Leave a short comment only where the code's correctness is non-obvious — say WHY, not\n  what.\n\n## 4. Verify\n\nProve the fix works, and prove you broke nothing.\n\n- Run the exact reproducer from step 1. It must now pass. Show its output.\n- Run the surrounding test suite. Nothing that passed before may fail now.\n- Add a regression test that fails against the old code and passes against the new one.\n  If it passes both ways, it is not testing the bug.\n- Check the neighbours: if the same wrong assumption is copied elsewhere, fix those too\n  or say plainly which ones you left.\n- If the fix did not work, go back to step 2 with what you just learned. Do not stack a\n  second guess on top of the first.\n\n## When step 2 stalls\n\nIf you have a reproducer, have read the code, and still cannot name the diverging line,\nread `{{SKILL_DIR}}\u002Fchecklist.md` (read_file) and work down it. It is a list of the\nquestions that most often produce the next fact: question the reproducer, question what\nyou think you read, question the boundaries. Do not read it before you are stuck — the\nfour steps above are the protocol, and this is only the way out of step 2.\n\n## Reporting\n\nWhen you are done, say four things and no more:\n\n1. The symptom, as it was reproduced.\n2. The cause, naming file and line.\n3. The fix, in one sentence.\n4. The evidence: the command you ran and its result.\n\nIf you are still stuck, report the same four things with the cause left open, plus what\nyou ruled out and what you would try next. A precise dead end is useful; a vague\n\"it should work now\" is not.\n","# Debugging\n\nWork the four steps in order. Do not skip ahead: a fix written before the cause is\nknown is a guess, and a guess that happens to hide the symptom is worse than no fix.\n\n## 1. Reproduce\n\nGet a command that fails, every time, before changing anything.\n\n- Write down the exact command and its exact output. That output is your baseline.\n- If the report is vague, narrow it until one command fails: a single test, a single\n  input file, a single request.\n- If you cannot reproduce it, say so and stop. Ask for the version, the platform, the\n  inputs, and the full error text. Never \"fix\" a bug you have never seen fail.\n- Prefer the smallest reproducer that still fails — a failing unit test beats a manual\n  click-through, because step 4 can run it again.\n\n## 2. Isolate\n\nFind the one place where the program's actual behaviour first diverges from what it\nshould do. This is the whole job; steps 3 and 4 are short by comparison.\n\n- Read the error message completely, including the stack frames. Most of the answer is\n  usually already in it. Open the file and line it names.\n- Read the code before theorising about it. Follow the value that is wrong backwards to\n  where it is produced, not forwards from where you expected it to be used.\n- Form one hypothesis at a time, phrased so it can be false: \"the config is empty at the\n  call site\" — then check that, and only that.\n- Test the hypothesis with evidence, not with a rewrite: print or log the value, run the\n  narrowed test, inspect the intermediate state.\n- Bisect when the space is large. Halve it: comment out a branch, pin an input, check\n  whether an older commit passes. Two or three halvings usually beat an hour of reading.\n- When it worked before, find what changed — a recent commit, a dependency bump, a\n  config value, an environment difference. Compare working and broken side by side.\n- Note what you have ruled out as you go, so you do not walk the same path twice.\n\nCommon traps, worth checking early:\n\n- The failure is in the test, not the code — a stale fixture, a wrong expectation, a\n  test that depends on order or on the clock.\n- The code you are reading is not the code that runs: a stale build, a shadowed file, a\n  cached artefact, the wrong binary on PATH.\n- The value is empty or nil at the boundary — an unset field, a dropped error, a zero\n  value that means \"off\".\n- Two things are true at once and only their combination fails; a single-variable test\n  will keep passing.\n\nStop isolating when you can state the cause in one sentence naming a file and a line.\nIf you cannot, you have not isolated it yet.\n\n## 3. Fix\n\nFix the cause you named, and nothing else.\n\n- The smallest change that removes the cause is the right one. Resist the rewrite the\n  bug tempted you into.\n- Do not paper over the symptom: a nil check that hides a value that should never have\n  been nil moves the bug rather than removing it.\n- If the cause is a missing case, handle the case. If the cause is a wrong assumption,\n  fix the assumption at its source — every other caller has it too.\n- Keep unrelated cleanups out of the change. They make the fix unreviewable and they\n  make step 4 ambiguous.\n- Leave a short comment only where the code's correctness is non-obvious — say WHY, not\n  what.\n\n## 4. Verify\n\nProve the fix works, and prove you broke nothing.\n\n- Run the exact reproducer from step 1. It must now pass. Show its output.\n- Run the surrounding test suite. Nothing that passed before may fail now.\n- Add a regression test that fails against the old code and passes against the new one.\n  If it passes both ways, it is not testing the bug.\n- Check the neighbours: if the same wrong assumption is copied elsewhere, fix those too\n  or say plainly which ones you left.\n- If the fix did not work, go back to step 2 with what you just learned. Do not stack a\n  second guess on top of the first.\n\n## When step 2 stalls\n\nIf you have a reproducer, have read the code, and still cannot name the diverging line,\nread `{{SKILL_DIR}}\u002Fchecklist.md` (read_file) and work down it. It is a list of the\nquestions that most often produce the next fact: question the reproducer, question what\nyou think you read, question the boundaries. Do not read it before you are stuck — the\nfour steps above are the protocol, and this is only the way out of step 2.\n\n## Reporting\n\nWhen you are done, say four things and no more:\n\n1. The symptom, as it was reproduced.\n2. The cause, naming file and line.\n3. The fix, in one sentence.\n4. The evidence: the command you ran and its result.\n\nIf you are still stuck, report the same four things with the cause left open, plus what\nyou ruled out and what you would try next. A precise dead end is useful; a vague\n\"it should work now\" is not.\n",{"id":5,"summary":24,"triggers":25,"description":7,"displayName":38},"Chase a bug down in four steps — reproduce, isolate, fix the cause, verify — with the rules that keep each step honest.",[26,27,28,29,30,31,32,33,34,35,36,37],"debug this","fix this bug","why is this failing","why does this crash","this test fails","test is failing","stack trace","panic","it worked before","track down the cause","reproduce the issue","root cause","Debugging","main","9c76ea690e46538278bbae345b220601cd13af0c","internal\u002Fskills\u002Fshipped\u002Fdebugging",2,"https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee","https:\u002F\u002Fairiclenz.com","https:\u002F\u002Fgithub.com\u002Fairiclenz","http:\u002F\u002Fairiclenz.com","2026-11-14 23:35:34",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add airiclenz\u002Fapogee --skill debugging",{"tool":54,"command":55},"bunx","bunx skills add airiclenz\u002Fapogee --skill debugging",{"tool":57,"command":58},"pnpm","pnpm dlx skills add airiclenz\u002Fapogee --skill debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Fshipped\u002Fdebugging\u002FSKILL.md",true,[62],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"checklist.md","REFERENCE","参考文档",2499,"https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Fshipped\u002Fdebugging\u002Fchecklist.md",[69,76,83,90,97,103],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M77JSTKJQHJHGPYXJQB6G1RX","vuln-scan","Hunts for security vulnerabilities (injection, secret exposure, unsafe deserialization, path traversal) and ranks them by how easily they are exploited. Use when the user asks for a security audit or wants to find security holes.","https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Ftestdata\u002Flibrary\u002Fskills\u002Fvuln-scan\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M77JSR2P65XDGQXYXQ27X3VR","standup-summary","Summarizes yesterday's commits, merged pull requests and open reviews into a short standup note.","https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Ftestdata\u002Flibrary\u002Fskills\u002Fstandup-summary\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M77JSNNFA9ES00ZHS6X0S0MX","session-handoff","Compacts the current conversation into a handoff document another agent can pick up from. Use when the user asks for a handoff or wants to continue the work in a fresh session.","https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Ftestdata\u002Flibrary\u002Fskills\u002Fsession-handoff\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M77JSKNEP9J15FEDK6ZRRXQT","screenshot-diff","Captures screenshots of a web app before and after a change and highlights the regions that differ.","https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Ftestdata\u002Flibrary\u002Fskills\u002Fscreenshot-diff\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"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":100,"categories":101,"keywords":102,"publishedAt":19},"01M77JSG30EDNS3Y6KSMBAV3T2","release-test-plan","https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Ftestdata\u002Flibrary\u002Fskills\u002Frelease-test-plan\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M77JSDYSS4V85M55Y1TAFAQ3","release-notes-draft","Drafts plain-language release notes from the commits since the last tag, grouped by topic, and adds them to the changelog.","https:\u002F\u002Fgithub.com\u002Fairiclenz\u002Fapogee\u002Fblob\u002Fmain\u002Finternal\u002Fskills\u002Ftestdata\u002Flibrary\u002Fskills\u002Frelease-notes-draft\u002FSKILL.md",[],[]]