[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75S2QBNSBB5N4SJP3JPT3ZR":3,"skill-same:01M75S2QBNSBB5N4SJP3JPT3ZR":54},{"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":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75S2QBNSBB5N4SJP3JPT3ZR","debug",null,"paranoica\u002Fbedrock","paranoica","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F57444931?v=4","01M75S0NENDBV4XTD2WQ53TJ9F","01M75S0NF7JWQ0SKVCWWPFJFS2",3,"MIT","https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Fdebug\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: debug\ndescription: Root-cause debugging — a red loop first, hypotheses, one variable at a time, a cause record, a regression test. Use first for any bug or failing test: \"падает\", \"не работает\", \"почему\", \"CI красный\".\n---\n\n# Debugging to the root cause\n\nA fix without a confirmed cause is a patch (D048). Every step ends on a check.\n\n## Triggers\n- RU: «баг», «не работает», «почему падает», «CI красный»\n- EN: \"bug\", \"it's broken\", \"why does it fail\", \"CI is red\"\n\n## 0. Check the plug\nRight branch, deployed version, environment, data, config. Read the module's failures (F) and\npitfalls in the knowledge base (`bedrock kb backlinks \u003Cmodule>`).\nDone when: each is confirmed or the mismatch is the answer.\n\n## 1. The report\nExpected (from its source: spec or decision), actual, how to reproduce.\nDone when: the three are written in `~\u002Fprojects-days\u002F\u003Cproject>\u002F\u003Cdate>\u002F\u003Cblock>\u002Fdebug.md`.\n\n## 2. A red loop before any theory\nOne command that goes red on this exact bug, picked from `references\u002Floop-ladder.md`.\nTighten it: fast, sharp (it asserts the exact symptom), deterministic. A flaky bug first\nraises its reproduction rate. `bedrock log debug-start --block \u003Cid>`.\nNo loop possible: stop, list what was tried, one ask to the owner.\nDone when: the loop command is in `debug.md` and it fails for the right reason.\n\n## 3. Reproduce exactly and minimise\nThis bug, not a nearby one; strip it until every element is load-bearing.\nDone when: the minimal case is in `debug.md`.\n\n## 4. Hypotheses\n3–5 ranked, falsifiable: \"if X, then changing Y turns the loop green\". Earlier failed fixes\nenter as hypotheses with what they showed. Send them to the owner as information, not a gate.\nDone when: the list is in `debug.md`.\n\n## 5. Experiments\nOne variable at a time: debugger or REPL first, then targeted logs tagged `[DEBUG-\u003Cid>]`.\nNever log everything and grep. Performance: a baseline, then bisect. The experiment log\nrecords every hypothesis with its result (negative ones count) and every environment change.\n`bedrock log debug-loop --block \u003Cid> --detail \"\u003Chypothesis> → \u003Cresult>\"`.\nDone when: one hypothesis is confirmed by the loop.\n\n## 6. The cause record\nFive lines in `debug.md`, shaped as in `references\u002Fcause-record.md`: symptom, seen (all n\noccurrences, \"explains k\u002Fn\", and k\u003Cn is not yet the cause), rule broken, elsewhere, change.\n`bedrock log debug-cause --block \u003Cid> --ref \u003Cpath of debug.md>`.\nDone when: the record explains n\u002Fn. An implementer brief points `Cause:` at it.\n\n## 7. Regression test and fix\n- The test sits at a correct seam and is red for the right reason; no seam is an\n  architecture finding, not a reason for a shallow test.\n- Fix in the shared place, for every caller; never change config or fixtures to go green.\n- Done only when the original scenario no longer reproduces, the loop is green on all n\n  occurrences, and the full suite passes (`bedrock cmd test`).\nDone when: all three hold.\n\n## 8. Clean up\nNo `[DEBUG-` left (`git grep -n '\\[DEBUG-'` is empty); harnesses kept in the block folder;\nthe commit states the confirmed cause. `bedrock log debug-done --block \u003Cid>`.\nDone when: the grep is empty and the `debug-done` line exists.\n\n## 9. Learn\nA failure note (F) in the base with the `kb` skill; \"Elsewhere\" becomes backlog tasks; a\nrecurring pattern becomes a rule or a check.\nDone when: the note exists and `bedrock kb validate` is clean.\n\n## Fuses\n- Two failed fixes on one symptom: start this flow from step 0.\n- The same command with the same error three times: stop and re-hypothesise.\n- Hypotheses exhausted: a fresh view, the `escalation` agent, or a fresh session with a\n  handoff. The agent's brief comes from `templates\u002Fbriefs\u002Fbrief.md`: the task, what was\n  tried and why it failed go into Task and Known.\n","# Debugging to the root cause\n\nA fix without a confirmed cause is a patch (D048). Every step ends on a check.\n\n## Triggers\n- RU: «баг», «не работает», «почему падает», «CI красный»\n- EN: \"bug\", \"it's broken\", \"why does it fail\", \"CI is red\"\n\n## 0. Check the plug\nRight branch, deployed version, environment, data, config. Read the module's failures (F) and\npitfalls in the knowledge base (`bedrock kb backlinks \u003Cmodule>`).\nDone when: each is confirmed or the mismatch is the answer.\n\n## 1. The report\nExpected (from its source: spec or decision), actual, how to reproduce.\nDone when: the three are written in `~\u002Fprojects-days\u002F\u003Cproject>\u002F\u003Cdate>\u002F\u003Cblock>\u002Fdebug.md`.\n\n## 2. A red loop before any theory\nOne command that goes red on this exact bug, picked from `references\u002Floop-ladder.md`.\nTighten it: fast, sharp (it asserts the exact symptom), deterministic. A flaky bug first\nraises its reproduction rate. `bedrock log debug-start --block \u003Cid>`.\nNo loop possible: stop, list what was tried, one ask to the owner.\nDone when: the loop command is in `debug.md` and it fails for the right reason.\n\n## 3. Reproduce exactly and minimise\nThis bug, not a nearby one; strip it until every element is load-bearing.\nDone when: the minimal case is in `debug.md`.\n\n## 4. Hypotheses\n3–5 ranked, falsifiable: \"if X, then changing Y turns the loop green\". Earlier failed fixes\nenter as hypotheses with what they showed. Send them to the owner as information, not a gate.\nDone when: the list is in `debug.md`.\n\n## 5. Experiments\nOne variable at a time: debugger or REPL first, then targeted logs tagged `[DEBUG-\u003Cid>]`.\nNever log everything and grep. Performance: a baseline, then bisect. The experiment log\nrecords every hypothesis with its result (negative ones count) and every environment change.\n`bedrock log debug-loop --block \u003Cid> --detail \"\u003Chypothesis> → \u003Cresult>\"`.\nDone when: one hypothesis is confirmed by the loop.\n\n## 6. The cause record\nFive lines in `debug.md`, shaped as in `references\u002Fcause-record.md`: symptom, seen (all n\noccurrences, \"explains k\u002Fn\", and k\u003Cn is not yet the cause), rule broken, elsewhere, change.\n`bedrock log debug-cause --block \u003Cid> --ref \u003Cpath of debug.md>`.\nDone when: the record explains n\u002Fn. An implementer brief points `Cause:` at it.\n\n## 7. Regression test and fix\n- The test sits at a correct seam and is red for the right reason; no seam is an\n  architecture finding, not a reason for a shallow test.\n- Fix in the shared place, for every caller; never change config or fixtures to go green.\n- Done only when the original scenario no longer reproduces, the loop is green on all n\n  occurrences, and the full suite passes (`bedrock cmd test`).\nDone when: all three hold.\n\n## 8. Clean up\nNo `[DEBUG-` left (`git grep -n '\\[DEBUG-'` is empty); harnesses kept in the block folder;\nthe commit states the confirmed cause. `bedrock log debug-done --block \u003Cid>`.\nDone when: the grep is empty and the `debug-done` line exists.\n\n## 9. Learn\nA failure note (F) in the base with the `kb` skill; \"Elsewhere\" becomes backlog tasks; a\nrecurring pattern becomes a rule or a check.\nDone when: the note exists and `bedrock kb validate` is clean.\n\n## Fuses\n- Two failed fixes on one symptom: start this flow from step 0.\n- The same command with the same error three times: stop and re-hypothesise.\n- Hypotheses exhausted: a fresh view, the `escalation` agent, or a fresh session with a\n  handoff. The agent's brief comes from `templates\u002Fbriefs\u002Fbrief.md`: the task, what was\n  tried and why it failed go into Task and Known.\n",{},"main","ff167da1e0a6cfc5bdb942eb3e109845f4f88d23","plugins\u002Fbedrock\u002Fskills\u002Fdebug",1,"https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock","https:\u002F\u002Fgithub.com\u002Fparanoica","https:\u002F\u002Fgamesense.pub\u002F","2026-11-08 01:01:15",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add paranoica\u002Fbedrock --skill debug",{"tool":36,"command":37},"bunx","bunx skills add paranoica\u002Fbedrock --skill debug",{"tool":39,"command":40},"pnpm","pnpm dlx skills add paranoica\u002Fbedrock --skill debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Fdebug\u002FSKILL.md",true,[44,50],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fcause-record.md","REFERENCE","参考文档",518,"https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Fdebug\u002Freferences\u002Fcause-record.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Floop-ladder.md",826,"https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Fdebug\u002Freferences\u002Floop-ladder.md",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":17},"01M75S4P9CEEETSAKSEJKA76KG","writing","Write or rewrite skills, agent definitions, briefs and rule files by the D013 rules, then check them. Use for \"напиши скилл\", \"поправь агента\", \"write a skill\", \"edit this brief\".","https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Fwriting\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":17},"01M75S4KZRNVBQP46Q33X62R35","triage","Bug triage — reproduce each report on the current version, group duplicates, set priority, decide fix, defer or decline. Use for \"разбери баги\", \"что с репортами QA\", \"triage\", \"new bug reports\".","https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":17},"01M75S4H283C8XRHFM6E7TQHV4","start","Start a project with bedrock — a new one by interview, or an existing one by onboarding; writes the base, AGENTS.md, workspace settings and verified commands. Use for \"новый проект\", \"подключи проект\", \"start a project\".","https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Fstart\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":17},"01M75S4EVW60KBZJGZWEZJYXY7","review","Review gate for a finished block — deterministic checks, code review, plan-compliance review, silent fixes, rounds until clean. Use for \"проверь\", \"ревью\", \"review this\", before any PR.","https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":17},"01M75S4BY5EMAFTJECKJ6ZC5EP","retro","Weekly retro — read the week's logs, agents, reviews and failures, find what repeats, tune the system, plan a realistic next week. Use for \"ретро\", \"итоги недели\", \"retro\", \"how did the week go\".","https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Fretro\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":17},"01M75S47TW93TAZ04HD75JJ98K","night","Autonomous work until morning — a pre-sleep check, the allowed list, auto-continue with fuses, a watchdog, a morning report. Use for \"автономно до утра\", \"поработай ночью\", \"work overnight\".","https:\u002F\u002Fgithub.com\u002Fparanoica\u002Fbedrock\u002Fblob\u002Fmain\u002Fplugins\u002Fbedrock\u002Fskills\u002Fnight\u002FSKILL.md",[],[]]