[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DNE38DYMG85QAVQHN9Y9JK":3,"skill-same:01M6DNE38DYMG85QAVQHN9Y9JK":65},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6DNE38DYMG85QAVQHN9Y9JK","aac-doubt-driven-development",null,"Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production, security-sensitive logic, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.","msayedshokry\u002FAgileAgentCanvasExt","msayedshokry","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35009459?v=4","01M6DN5RZZ297CGWTNJ6ERZQ8W","Mohamed Sayed","01M6DN5S4XS7SVCSXZRW2XR0XF",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt\u002Fblob\u002Fmain\u002Fresources\u002F_aac\u002Fskills\u002Faac-doubt-driven-development\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"aac doubt driven development","driven","development","doubt driven development","context","fresh","logic","speed","time","later","use","operations","review","decision","verify","Production","code","adversarial review","debug","security","2026-11-10 10:12:30",false,"---\nname: aac-doubt-driven-development\ndescription: 'Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production, security-sensitive logic, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.'\n---\n\n# Doubt-Driven Development\n\nA confident answer is not a correct one. Long sessions accumulate context that quietly turns assumptions into \"facts\" without anyone noticing. Doubt-driven development is the discipline of materializing a fresh-context reviewer — biased to **disprove**, not approve — before any non-trivial output stands.\n\nThis is not `aac-code-review`. `aac-code-review` is a verdict on a finished artifact. This is an in-flight posture: non-trivial decisions get cross-examined while course-correction is still cheap.\n\n## Overview\n\nThe reviewer has no context. The reviewer is biased to find the case where the output is wrong. The reviewer is **not** adversarial for sport — they are adversarial because the cost of catching a bug before code is written is roughly a hundred times less than catching it after deploy.\n\n## When to Use\n\nA decision is **non-trivial** when at least one of these is true:\n\n- It introduces or modifies branching logic\n- It crosses a module or service boundary\n- It asserts a property the type system cannot verify (thread safety, idempotence, ordering, invariants)\n- Its correctness depends on context the future reader cannot see\n- Its blast radius is irreversible (production deploy, data migration, public API change)\n\nApply the skill when any of the above is true. The cost of applying it is small; the cost of not applying it scales with the size of the assumption it would have caught.\n\n**When NOT to use:**\n\n- The change is mechanical (rename, formatting, file move)\n- A test already covers the case end-to-end and the change is to the test\n- The cost of the doubt-pass exceeds the cost of the mistake (a typo in a comment, a one-line cosmetic change)\n- You are in a tight feedback loop where the test or the user will catch the issue in seconds\n\n## The Process\n\n### 1. State the decision\n\nWrite down, in one or two sentences, the decision the code is about to make. Not the code — the *decision*. \"I'll cache user lookups for 5 minutes\" is a decision. \"I'm adding a Map\u003Cstring, User>\" is not.\n\n### 2. Name the risk\n\nState the worst plausible failure mode of that decision being wrong. Be specific. \"Stale data served for up to 5 minutes\" beats \"it might be slow.\"\n\n### 3. Spawn the fresh-context reviewer\n\nA subagent (or a new session, if the work is long enough to justify it) reads the **decision and the risk** and *nothing else* about the conversation. The reviewer is given:\n\n- The decision (from step 1)\n- The risk (from step 2)\n- The relevant file paths\n- An explicit instruction to disprove, not approve\n\nThe reviewer is told: **\"Find the case where this is wrong, or find the case the writer didn't think of.\"** Approving is not a deliverable. A clean bill of health is a side effect of failing to find a real flaw.\n\n### 4. Act on the review\n\n- A real flaw is found → fix it before the code stands. The reviewer's evidence is the spec for the fix.\n- The reviewer invents a flaw that does not hold up → the decision stands, with a one-line note on what was tested.\n- The reviewer raises a question the writer cannot answer → stop and resolve it. An unanswerable question is a hidden assumption.\n\n### 5. Record the verdict\n\nFor decisions that ship, note the doubt-pass in the commit or PR: \"doubt-pass: reviewer X, verdict Y, evidence Z.\" This makes the doubt-pass a load-bearing artifact for the next reviewer, not a one-time ritual.\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"I already know this works\" | Knowing is not the same as having tested. The doubt-pass is the test. |\n| \"The reviewer will just rubber-stamp it\" | If they do, the doubt-pass has failed — sharpen the prompt or pick a different reviewer. |\n| \"This is too small to doubt\" | \"Too small\" is a guess about the failure cost, not a measurement. Measure it. |\n| \"The test will catch it\" | Tests cover the cases you imagined. Doubt-driven development covers the cases you did not. |\n| \"We can fix it in code review\" | Code review is post-hoc. The doubt-pass happens *before* the code is written, when the cost is lowest. |\n\n## Red Flags\n\n- The doubt-pass produces a clean verdict every time, with no specific challenges raised. The reviewer is approving, not doubting.\n- The writer picks a reviewer who already agrees with them, or asks the same model that produced the decision.\n- The decision statement is too vague to be falsifiable. \"I picked a good approach\" is not a decision. \"I chose JWT over session cookies because the user requested a stateless API\" is.\n- The risk is named in generic terms (\"could have bugs\") rather than specific terms (\"could leak previous-user data on logout\").\n- The doubt-pass is skipped because the change \"looks fine.\" Looks-fine is what the doubt-pass exists to challenge.\n\n## Verification\n\nAfter the doubt-pass:\n\n- [ ] The decision is stated in one or two sentences, with no implementation detail\n- [ ] The risk is named specifically, not generically\n- [ ] The reviewer was given *only* the decision, the risk, and the file paths — not the full conversation context\n- [ ] The reviewer was instructed to disprove, not approve\n- [ ] At least one concrete attempt to break the decision was recorded\n- [ ] The verdict (fixed \u002F stood \u002F unanswerable) is recorded with the evidence\n- [ ] The reviewer's prompt and the writer's response are both retrievable for the next reviewer\n","# Doubt-Driven Development\n\nA confident answer is not a correct one. Long sessions accumulate context that quietly turns assumptions into \"facts\" without anyone noticing. Doubt-driven development is the discipline of materializing a fresh-context reviewer — biased to **disprove**, not approve — before any non-trivial output stands.\n\nThis is not `aac-code-review`. `aac-code-review` is a verdict on a finished artifact. This is an in-flight posture: non-trivial decisions get cross-examined while course-correction is still cheap.\n\n## Overview\n\nThe reviewer has no context. The reviewer is biased to find the case where the output is wrong. The reviewer is **not** adversarial for sport — they are adversarial because the cost of catching a bug before code is written is roughly a hundred times less than catching it after deploy.\n\n## When to Use\n\nA decision is **non-trivial** when at least one of these is true:\n\n- It introduces or modifies branching logic\n- It crosses a module or service boundary\n- It asserts a property the type system cannot verify (thread safety, idempotence, ordering, invariants)\n- Its correctness depends on context the future reader cannot see\n- Its blast radius is irreversible (production deploy, data migration, public API change)\n\nApply the skill when any of the above is true. The cost of applying it is small; the cost of not applying it scales with the size of the assumption it would have caught.\n\n**When NOT to use:**\n\n- The change is mechanical (rename, formatting, file move)\n- A test already covers the case end-to-end and the change is to the test\n- The cost of the doubt-pass exceeds the cost of the mistake (a typo in a comment, a one-line cosmetic change)\n- You are in a tight feedback loop where the test or the user will catch the issue in seconds\n\n## The Process\n\n### 1. State the decision\n\nWrite down, in one or two sentences, the decision the code is about to make. Not the code — the *decision*. \"I'll cache user lookups for 5 minutes\" is a decision. \"I'm adding a Map\u003Cstring, User>\" is not.\n\n### 2. Name the risk\n\nState the worst plausible failure mode of that decision being wrong. Be specific. \"Stale data served for up to 5 minutes\" beats \"it might be slow.\"\n\n### 3. Spawn the fresh-context reviewer\n\nA subagent (or a new session, if the work is long enough to justify it) reads the **decision and the risk** and *nothing else* about the conversation. The reviewer is given:\n\n- The decision (from step 1)\n- The risk (from step 2)\n- The relevant file paths\n- An explicit instruction to disprove, not approve\n\nThe reviewer is told: **\"Find the case where this is wrong, or find the case the writer didn't think of.\"** Approving is not a deliverable. A clean bill of health is a side effect of failing to find a real flaw.\n\n### 4. Act on the review\n\n- A real flaw is found → fix it before the code stands. The reviewer's evidence is the spec for the fix.\n- The reviewer invents a flaw that does not hold up → the decision stands, with a one-line note on what was tested.\n- The reviewer raises a question the writer cannot answer → stop and resolve it. An unanswerable question is a hidden assumption.\n\n### 5. Record the verdict\n\nFor decisions that ship, note the doubt-pass in the commit or PR: \"doubt-pass: reviewer X, verdict Y, evidence Z.\" This makes the doubt-pass a load-bearing artifact for the next reviewer, not a one-time ritual.\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"I already know this works\" | Knowing is not the same as having tested. The doubt-pass is the test. |\n| \"The reviewer will just rubber-stamp it\" | If they do, the doubt-pass has failed — sharpen the prompt or pick a different reviewer. |\n| \"This is too small to doubt\" | \"Too small\" is a guess about the failure cost, not a measurement. Measure it. |\n| \"The test will catch it\" | Tests cover the cases you imagined. Doubt-driven development covers the cases you did not. |\n| \"We can fix it in code review\" | Code review is post-hoc. The doubt-pass happens *before* the code is written, when the cost is lowest. |\n\n## Red Flags\n\n- The doubt-pass produces a clean verdict every time, with no specific challenges raised. The reviewer is approving, not doubting.\n- The writer picks a reviewer who already agrees with them, or asks the same model that produced the decision.\n- The decision statement is too vague to be falsifiable. \"I picked a good approach\" is not a decision. \"I chose JWT over session cookies because the user requested a stateless API\" is.\n- The risk is named in generic terms (\"could have bugs\") rather than specific terms (\"could leak previous-user data on logout\").\n- The doubt-pass is skipped because the change \"looks fine.\" Looks-fine is what the doubt-pass exists to challenge.\n\n## Verification\n\nAfter the doubt-pass:\n\n- [ ] The decision is stated in one or two sentences, with no implementation detail\n- [ ] The risk is named specifically, not generically\n- [ ] The reviewer was given *only* the decision, the risk, and the file paths — not the full conversation context\n- [ ] The reviewer was instructed to disprove, not approve\n- [ ] At least one concrete attempt to break the decision was recorded\n- [ ] The verdict (fixed \u002F stood \u002F unanswerable) is recorded with the evidence\n- [ ] The reviewer's prompt and the writer's response are both retrievable for the next reviewer\n",{"name":5,"description":7},"main","473351382920a74eb8f353f979a06f6f05bb5f59","resources\u002F_aac\u002Fskills\u002Faac-doubt-driven-development",0,"https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt","https:\u002F\u002Fgithub.com\u002Fmsayedshokry","2026-08-29 02:00:07",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add msayedshokry\u002FAgileAgentCanvasExt --skill aac-doubt-driven-development",{"tool":57,"command":58},"bunx","bunx skills add msayedshokry\u002FAgileAgentCanvasExt --skill aac-doubt-driven-development",{"tool":60,"command":61},"pnpm","pnpm dlx skills add msayedshokry\u002FAgileAgentCanvasExt --skill aac-doubt-driven-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt\u002Fblob\u002Fmain\u002Fresources\u002F_aac\u002Fskills\u002Faac-doubt-driven-development\u002FSKILL.md",true,[],[66,85,102,113,129,144],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":39},"01M6DNRTHE3M1XG3KDJTEF6BG6","bmad-teach-me-testing","Teach testing progressively through structured sessions. Use when user says \"lets learn testing\" or \"I want to study test practices\"","https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt\u002Fblob\u002Fmain\u002Fresources\u002F_aac\u002Ftea\u002Fworkflows\u002Ftestarch\u002Fbmad-teach-me-testing\u002FSKILL.md",[],[73,74,75,76,77,78,79,80,81,82,29,83,84],"bmad","me","bmad teach me testing","teach me","teach","testing","test","sessions","learn","user","study","structured",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M6DNRG27V77JEGMPMJVRY0Q5","aac-testarch-trace","Generate traceability matrix and quality gate decision. Use when the user says \"lets create traceability matrix\" or \"I want to analyze test coverage\"","https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt\u002Fblob\u002Fmain\u002Fresources\u002F_aac\u002Ftea\u002Fworkflows\u002Ftestarch\u002Faac-testarch-trace\u002FSKILL.md",[],[92,93,79,94,95,96,97,98,32,82,99,29,100,101],"aac testarch trace","trace","quality gate","create","generate","analyze","quality","coverage","test coverage","gate",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":39},"01M6DNR70G1S0DGDSHRWT1S1DD","aac-testarch-test-review","Review test quality using best practices validation. Use when user says \"lets review tests\" or \"I want to evaluate test quality\"","https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt\u002Fblob\u002Fmain\u002Fresources\u002F_aac\u002Ftea\u002Fworkflows\u002Ftestarch\u002Faac-testarch-test-review\u002FSKILL.md",[],[31,109,79,110,111,98,82,29,112],"aac testarch test review","best practices","validation","tests",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":39},"01M6DNQXV8F40EE78ZMWGWRPJM","aac-testarch-test-design","Create system-level or epic-level test plans. Use when the user says \"lets design test plan\" or \"I want to create test strategy\"","https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt\u002Fblob\u002Fmain\u002Fresources\u002F_aac\u002Ftea\u002Fworkflows\u002Ftestarch\u002Faac-testarch-test-design\u002FSKILL.md",[],[120,121,79,122,82,95,123,124,125,126,29,127,128],"aac testarch test design","test design","design","test plan","plan","system","strategy","test strategy","plans",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":39},"01M6DNQNG0T7Q5DKV3C03RY35D","aac-testarch-nfr","Audit NFR evidence for performance, security, reliability, and scalability. Use when implementation evidence exists and the user says \"audit NFR evidence\", \"audit NFRs\", or \"evaluate non-functional requirements\"","https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt\u002Fblob\u002Fmain\u002Fresources\u002F_aac\u002Ftea\u002Fworkflows\u002Ftestarch\u002Faac-testarch-nfr\u002FSKILL.md",[],[136,137,138,139,140,141,82,142,143,29,38],"aac testarch nfr","reliability","evidence","implementation","scalability","requirements","audit","performance",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":39},"01M6DNQDPTGB49D8AAJV4GN2H8","aac-testarch-framework","Initialize test framework with Playwright or Cypress. Use when the user says \"lets setup test framework\" or \"I want to initialize testing framework\"","https:\u002F\u002Fgithub.com\u002Fmsayedshokry\u002FAgileAgentCanvasExt\u002Fblob\u002Fmain\u002Fresources\u002F_aac\u002Ftea\u002Fworkflows\u002Ftestarch\u002Faac-testarch-framework\u002FSKILL.md",[],[151,152,153,82,29,154,155,156,79,157,78,158],"aac testarch framework","framework","initialize","testing framework","setup","test framework","playwright","cypress"]