[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADKC7AZQK1J1EVZZKB8927":3,"skill-same:01M7ADKC7AZQK1J1EVZZKB8927":55},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7ADKC7AZQK1J1EVZZKB8927","forensic-debugging",null,"Use when a bug, algorithm failure, or intermittent defect resists normal debugging, when an audit-grade trail of every hypothesis and experiment is required, or when the user asks for millimetric traceability to localize any failure fast. Extends `debugging` with a mandatory trace ledger, invariant map, and falsification protocol.","Leostruka\u002Fdevin-bundle","Leostruka","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81370685?v=4","01M7AD8MAK63VDNAWRDRRRW04N","leandro ostruka","01M7AD8MBS65YDS1KMMV7YPM07",0,"MIT","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fforensic-debugging\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: forensic-debugging\ndescription: Use when a bug, algorithm failure, or intermittent defect resists normal debugging, when an audit-grade trail of every hypothesis and experiment is required, or when the user asks for millimetric traceability to localize any failure fast. Extends `debugging` with a mandatory trace ledger, invariant map, and falsification protocol.\ntriggers: [user, model]\n---\n\n# Forensic Debugging\n\nMillimetric traceability: every step produces a durable artifact, so any\nalgorithm failure is found by following evidence, never by intuition. The\nledger is the state of the investigation; memory is not.\n\nThis is the escalation-tier protocol over `skills\u002Fdebugging`. Use it when\nthe failure is algorithmic, intermittent, silent-corrupting, or has already\nsurvived one ordinary debugging pass.\n\n## Non-negotiables\n\n- No fix before root cause. A symptom patch is a failed investigation.\n- Every hypothesis is falsifiable. If an experiment cannot refute it, it is\n  not an experiment.\n- Every experiment is logged BEFORE it runs: prediction first, observation\n  after. Post-hoc rationalization is contamination.\n- Never deduce what a tool can measure. A guess with confidence is still a\n  guess; instrument it.\n- The ledger must let a fresh agent reconstruct the full state in under\n  two minutes: what was tried, what was ruled out, the current best\n  hypothesis, and the next planned experiment.\n\n## The Trace Ledger (mandatory)\n\nCreate `\u003Cscratch>\u002Fdebug-\u003Cslug>.md` (per-project scratch area) at start.\nTemplate: `reference\u002Ftrace-ledger-template.md`. ID system:\n\n- `I#` invariants the algorithm must preserve\n- `P#` probe points placed in code or around boundaries\n- `H#` hypotheses, each with its falsification experiment\n- `E#` experiments, each with predicted vs observed result\n- `O#` observations: every anomaly, including ones you cannot yet explain\n\nStatus header is always current:\n`REPRODUCED -> LOCALIZING -> ISOLATED -> FIX-UNVERIFIED -> VERIFIED`.\nClosing requires `VERIFIED` plus a postmortem line: root cause, fix\ncommit, regression test.\n\n## Phase 0: Reproduction kernel\n\n- Shrink the trigger to the minimal deterministic repro before anything\n  else. Pin seeds, clocks, env vars, input bytes.\n- Record exact trigger conditions in the ledger (command, input, env).\n- Intermittent failures: quantify the failure rate and the conditions that\n  move it (load, timing, ordering) before proceeding. A bug you cannot\n  trigger on demand is an instrumentation problem first.\n\n## Phase 1: Invariant map\n\nEnumerate what must be true, as checkable `I#` entries:\n\n- Pre-conditions: input shape, domain, encoding, ordering.\n- Per-stage post-conditions: what each stage must output\u002Fpreserve.\n- Conservation laws: counts, sums, bytes in = bytes out, monotonicity.\n- Structural invariants: indices in range, no duplicates, sorted, balanced.\n\nA failure is always the FIRST violated invariant. The job: find the last\nprogram point where every `I#` held and the first where one broke.\n\n## Phase 2: Hypothesis table\n\nBefore experimenting, enumerate `H#` rows:\n\n| H# | Claim | Falsification experiment | Expected signal if true |\n|----|-------|--------------------------|-------------------------|\n\nCover the space: data-dependent, order-dependent, state-dependent,\nenvironment-dependent, timing-dependent, and \"my assumption about X is\nwrong\". An unexplained anomaly in `O#` must map to some `H#` or spawn one.\n\n## Phase 3: Three-axis bisection\n\n- Code: `git bisect` or staged revert across the suspect range.\n- Input: ddmin-style shrink. Halve the input while failure persists;\n  recurse on the minimal failing fragment.\n- Execution: place probes `P#` at stage boundaries. Binary-search the\n  pipeline for the first stage emitting corrupt state, then descend\n  inside it (per-line, per-iteration, per-op tracing).\n\n## Phase 4: Probe lattice\n\nInstrument deliberately, mapped in the ledger:\n\n- `P#` at every stage boundary: assert the `I#` expected at that point.\n- State dumps at the first-corrupt stage's internals.\n- Assertions encode invariants, not vague sanity: `assert len(out) ==\n  len(inp)` beats \"print something looks off\".\n- Trace IDs join every probe emission back to `P#` and `E#` in the ledger.\n- After the fix: remove ad-hoc probes or gate them behind a flag; keep\n  the ones that became regression assertions.\n\n## Phase 5: Root cause proof\n\nA candidate root cause must explain EVERY `O#`, including anomalies set\naside earlier. Requirements:\n\n1. Write the causal chain: input -> defect mechanism -> observed symptom.\n2. Falsify the root cause itself: predict behavior under a NEW input the\n   experiment has not tried, then verify. A cause that cannot predict is\n   not proven.\n3. If any `O#` is unexplained, the cause is incomplete: new `H#`, keep\n   going.\n\n## Phase 6: Fix and close\n\n- Smallest fix at the mechanism, not the symptom.\n- Regression test: the Phase-0 repro kernel becomes a permanent test,\n  named after the failure (`edge-coverage` owns the test-side rules).\n- Close ledger: postmortem line (root cause, fix ref, test ref).\n\n## Escalation protocol\n\nAfter 5 experiments without narrowing:\n\n- Raise instrumentation level: more probes, finer granularity, not more\n  guesses.\n- Swap axis: bisecting code -> bisect input -> differential vs a\n  known-good oracle.\n- Delegate `debugger` or `researcher` profile WITH the ledger attached;\n  the ledger is the handoff.\n\n## Failure-class playbook\n\n| Class | First move |\n|-------|------------|\n| Nondeterministic | Pin seed\u002Fclock; replay log capture; run repro 10x |\n| Floating point | Exact-vs-tolerance trace; isolate the first divergent op |\n| Concurrency | Interleaving capture; deterministic scheduler; shrink to 2 threads\u002Fops |\n| Off-by-one \u002F boundary | Trace indices at loop edges; test n-1, n, n+1 probes |\n| Silent corruption | Dual-run vs reference oracle; first-divergence wins |\n| Wrong result, no crash | Invariant map FIRST; the missing `I#` is the bug |\n\n## Anti-patterns (instant fails)\n\n- Shotgun logging everywhere: probes without `P#` mapping are noise.\n- Experimenting without a logged prediction.\n- \"It works now\" without a falsified root cause.\n- Editing code and re-running the repro in the same step.\n- Ledger entries written from memory at the end.\n","# Forensic Debugging\n\nMillimetric traceability: every step produces a durable artifact, so any\nalgorithm failure is found by following evidence, never by intuition. The\nledger is the state of the investigation; memory is not.\n\nThis is the escalation-tier protocol over `skills\u002Fdebugging`. Use it when\nthe failure is algorithmic, intermittent, silent-corrupting, or has already\nsurvived one ordinary debugging pass.\n\n## Non-negotiables\n\n- No fix before root cause. A symptom patch is a failed investigation.\n- Every hypothesis is falsifiable. If an experiment cannot refute it, it is\n  not an experiment.\n- Every experiment is logged BEFORE it runs: prediction first, observation\n  after. Post-hoc rationalization is contamination.\n- Never deduce what a tool can measure. A guess with confidence is still a\n  guess; instrument it.\n- The ledger must let a fresh agent reconstruct the full state in under\n  two minutes: what was tried, what was ruled out, the current best\n  hypothesis, and the next planned experiment.\n\n## The Trace Ledger (mandatory)\n\nCreate `\u003Cscratch>\u002Fdebug-\u003Cslug>.md` (per-project scratch area) at start.\nTemplate: `reference\u002Ftrace-ledger-template.md`. ID system:\n\n- `I#` invariants the algorithm must preserve\n- `P#` probe points placed in code or around boundaries\n- `H#` hypotheses, each with its falsification experiment\n- `E#` experiments, each with predicted vs observed result\n- `O#` observations: every anomaly, including ones you cannot yet explain\n\nStatus header is always current:\n`REPRODUCED -> LOCALIZING -> ISOLATED -> FIX-UNVERIFIED -> VERIFIED`.\nClosing requires `VERIFIED` plus a postmortem line: root cause, fix\ncommit, regression test.\n\n## Phase 0: Reproduction kernel\n\n- Shrink the trigger to the minimal deterministic repro before anything\n  else. Pin seeds, clocks, env vars, input bytes.\n- Record exact trigger conditions in the ledger (command, input, env).\n- Intermittent failures: quantify the failure rate and the conditions that\n  move it (load, timing, ordering) before proceeding. A bug you cannot\n  trigger on demand is an instrumentation problem first.\n\n## Phase 1: Invariant map\n\nEnumerate what must be true, as checkable `I#` entries:\n\n- Pre-conditions: input shape, domain, encoding, ordering.\n- Per-stage post-conditions: what each stage must output\u002Fpreserve.\n- Conservation laws: counts, sums, bytes in = bytes out, monotonicity.\n- Structural invariants: indices in range, no duplicates, sorted, balanced.\n\nA failure is always the FIRST violated invariant. The job: find the last\nprogram point where every `I#` held and the first where one broke.\n\n## Phase 2: Hypothesis table\n\nBefore experimenting, enumerate `H#` rows:\n\n| H# | Claim | Falsification experiment | Expected signal if true |\n|----|-------|--------------------------|-------------------------|\n\nCover the space: data-dependent, order-dependent, state-dependent,\nenvironment-dependent, timing-dependent, and \"my assumption about X is\nwrong\". An unexplained anomaly in `O#` must map to some `H#` or spawn one.\n\n## Phase 3: Three-axis bisection\n\n- Code: `git bisect` or staged revert across the suspect range.\n- Input: ddmin-style shrink. Halve the input while failure persists;\n  recurse on the minimal failing fragment.\n- Execution: place probes `P#` at stage boundaries. Binary-search the\n  pipeline for the first stage emitting corrupt state, then descend\n  inside it (per-line, per-iteration, per-op tracing).\n\n## Phase 4: Probe lattice\n\nInstrument deliberately, mapped in the ledger:\n\n- `P#` at every stage boundary: assert the `I#` expected at that point.\n- State dumps at the first-corrupt stage's internals.\n- Assertions encode invariants, not vague sanity: `assert len(out) ==\n  len(inp)` beats \"print something looks off\".\n- Trace IDs join every probe emission back to `P#` and `E#` in the ledger.\n- After the fix: remove ad-hoc probes or gate them behind a flag; keep\n  the ones that became regression assertions.\n\n## Phase 5: Root cause proof\n\nA candidate root cause must explain EVERY `O#`, including anomalies set\naside earlier. Requirements:\n\n1. Write the causal chain: input -> defect mechanism -> observed symptom.\n2. Falsify the root cause itself: predict behavior under a NEW input the\n   experiment has not tried, then verify. A cause that cannot predict is\n   not proven.\n3. If any `O#` is unexplained, the cause is incomplete: new `H#`, keep\n   going.\n\n## Phase 6: Fix and close\n\n- Smallest fix at the mechanism, not the symptom.\n- Regression test: the Phase-0 repro kernel becomes a permanent test,\n  named after the failure (`edge-coverage` owns the test-side rules).\n- Close ledger: postmortem line (root cause, fix ref, test ref).\n\n## Escalation protocol\n\nAfter 5 experiments without narrowing:\n\n- Raise instrumentation level: more probes, finer granularity, not more\n  guesses.\n- Swap axis: bisecting code -> bisect input -> differential vs a\n  known-good oracle.\n- Delegate `debugger` or `researcher` profile WITH the ledger attached;\n  the ledger is the handoff.\n\n## Failure-class playbook\n\n| Class | First move |\n|-------|------------|\n| Nondeterministic | Pin seed\u002Fclock; replay log capture; run repro 10x |\n| Floating point | Exact-vs-tolerance trace; isolate the first divergent op |\n| Concurrency | Interleaving capture; deterministic scheduler; shrink to 2 threads\u002Fops |\n| Off-by-one \u002F boundary | Trace indices at loop edges; test n-1, n, n+1 probes |\n| Silent corruption | Dual-run vs reference oracle; first-divergence wins |\n| Wrong result, no crash | Invariant map FIRST; the missing `I#` is the bug |\n\n## Anti-patterns (instant fails)\n\n- Shotgun logging everywhere: probes without `P#` mapping are noise.\n- Experimenting without a logged prediction.\n- \"It works now\" without a falsified root cause.\n- Editing code and re-running the repro in the same step.\n- Ledger entries written from memory at the end.\n",{"name":5,"triggers":24,"description":7},[25,26],"user","model","main","02b95ddb62959a00b3c31442c2046aca0d19563c","skills\u002Fforensic-debugging",1,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle","https:\u002F\u002Fleostruka.github.io\u002Fdevin-bundle\u002F","https:\u002F\u002Fgithub.com\u002FLeostruka","2026-11-15 05:19:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Leostruka\u002Fdevin-bundle --skill forensic-debugging",{"tool":41,"command":42},"bunx","bunx skills add Leostruka\u002Fdevin-bundle --skill forensic-debugging",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Leostruka\u002Fdevin-bundle --skill forensic-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fforensic-debugging\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"reference\u002Ftrace-ledger-template.md","REFERENCE","参考文档",1274,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fforensic-debugging\u002Freference\u002Ftrace-ledger-template.md",[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7E0K3MG2XC4FSRV0MK6SFR1","montador-de-ideias","Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening\u002Foptimization, and high-impact contact surfaces.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmontador-de-ideias\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7E0J7JJWZ8QMK01RZ3B3C9Z","git-github-adaptive-engineering","Use when any task touches git history, GitHub issues\u002FPRs\u002Freleases\u002FCI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit\u002FPR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug\u002Ffinish skills.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgit-github-adaptive-engineering\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7E0GJFRPFEVQQMXEM58EWDM","adaptive-agenda-calendar-routine-engine","Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions\u002Fgcal\u002Fwrapper.py.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-agenda-calendar-routine-engine\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AE2K9FTY0BVS48N0A9JFKF","demo","Use when demonstrating a skill in a fixture project.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AE2G3DP38PTV3B1N7MW5TS","duplicate-skill","Use when testing duplicate skill name detection.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":92,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7AE2DBR8ZHT6T875MJ392GK","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]