[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79PABG8XKAVKM1ZD71ZFYYT":3,"skill-same:01M79PABG8XKAVKM1ZD71ZFYYT":47},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79PABG8XKAVKM1ZD71ZFYYT","outside-in-tdd",null,"Drive design from the boundary in, starting from a change scenario's acceptance test.","fiq\u002Fself-adapting-agentic-architecture","fiq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F236293?v=4","01M78EQGW3HF88E3HBN7HZ5JG1","Raf Gemmail","01M79P7F6ZKV9ENHGSBXT5B3JF",1,"MIT","https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow\u002Foutside-in-tdd\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: outside-in-tdd\ndescription: Drive design from the boundary in, starting from a change scenario's acceptance test.\n---\n\n# Outside-in TDD\n\n## Outcome\n\nDrive design from the boundary in. Each structured change scenario's acceptance\ntest is written first (ATDD) and fails for the right reason before any\nimplementation, then design pressure moves inward.\n\n## Loop\n\n```\nstructured change scenario (WHEN\u002FTHEN)\n   ▼ acceptance[].test_id  ── write the boundary test first (it fails)\n   ▼ drive inward ── collaborators appear as needed; mock at boundaries\n   ▼ inner unit tests ── shape the design\n   ▼ boundary test passes ── refactor (boy-scout) with tests green\n   ▼ real-dependency confirm ── thin layer where cheap and material\n```\n\n## Choosing the boundary test's fidelity (by risk)\n\n| Fidelity | Use when |\n|---|---|\n| acceptance (end-to-end) | user-visible behaviour, high value or risk |\n| component-integration | a bounded slice with real internal wiring |\n| subcutaneous | logic just under the UI; UI cost outweighs its risk |\n\nPick per scenario from actual risk and known architectural direction, not a\nfixed rule. Keep a thin real-dependency confirmation layer (Testcontainers\nwhere cheap) for boundaries that inner tests mock.\n\n## Rules\n\n- The acceptance test comes from the scenario, not the implementation.\n- Mock at boundaries to drive design; do not let mocked tests overclaim — real\n  semantics that matter get a real-dependency test.\n- Refactor only with tests green; leave the path cleaner (boy-scout).\n\n## Do not\n\n- Write the implementation before its failing boundary test.\n- Force acceptance-level fidelity where a cheaper layer proves the same risk.\n","# Outside-in TDD\n\n## Outcome\n\nDrive design from the boundary in. Each structured change scenario's acceptance\ntest is written first (ATDD) and fails for the right reason before any\nimplementation, then design pressure moves inward.\n\n## Loop\n\n```\nstructured change scenario (WHEN\u002FTHEN)\n   ▼ acceptance[].test_id  ── write the boundary test first (it fails)\n   ▼ drive inward ── collaborators appear as needed; mock at boundaries\n   ▼ inner unit tests ── shape the design\n   ▼ boundary test passes ── refactor (boy-scout) with tests green\n   ▼ real-dependency confirm ── thin layer where cheap and material\n```\n\n## Choosing the boundary test's fidelity (by risk)\n\n| Fidelity | Use when |\n|---|---|\n| acceptance (end-to-end) | user-visible behaviour, high value or risk |\n| component-integration | a bounded slice with real internal wiring |\n| subcutaneous | logic just under the UI; UI cost outweighs its risk |\n\nPick per scenario from actual risk and known architectural direction, not a\nfixed rule. Keep a thin real-dependency confirmation layer (Testcontainers\nwhere cheap) for boundaries that inner tests mock.\n\n## Rules\n\n- The acceptance test comes from the scenario, not the implementation.\n- Mock at boundaries to drive design; do not let mocked tests overclaim — real\n  semantics that matter get a real-dependency test.\n- Refactor only with tests green; leave the path cleaner (boy-scout).\n\n## Do not\n\n- Write the implementation before its failing boundary test.\n- Force acceptance-level fidelity where a cheaper layer proves the same risk.\n",{"name":5,"description":7},"main","2a2271ecaed9a018a460a6604b8fa69a2396d283",".agents\u002Fskills\u002Fworkflow\u002Foutside-in-tdd",0,"https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture","https:\u002F\u002Fgithub.com\u002Ffiq","www.dreamthought.com","See also: github.com\u002Fdreamthought","2026-11-07 12:49:17",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add fiq\u002Fself-adapting-agentic-architecture --skill outside-in-tdd",{"tool":39,"command":40},"bunx","bunx skills add fiq\u002Fself-adapting-agentic-architecture --skill outside-in-tdd",{"tool":42,"command":43},"pnpm","pnpm dlx skills add fiq\u002Fself-adapting-agentic-architecture --skill outside-in-tdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow\u002Foutside-in-tdd\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M79PAW0M189243NWBBY3V3SW","agentic-template","Start or continue work in this repository using the canonical AGENTS.md contract and repository skill catalog.","https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fagentic-template\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M79PATHE5B6D3WTHDJX5KHC3","wiki-tidy","Reconcile the wiki against the knowledge graph, specs and code; prune stale, keep links resolving.","https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow\u002Fwiki-tidy\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79PASE9P9N41V3VBN3VH0R2","update-handoff","Update HANDOFF.toon with current semantic work state.","https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow\u002Fupdate-handoff\u002FSKILL.md",[],[],{"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},"01M79PAQVJ4SJH55JP2V0VZTZB","test-first","Drive meaningful behaviour changes with the smallest useful failing test.","https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow\u002Ftest-first\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},"01M79PAPD35J66BWYAN01FECEZ","test-change","Select and run tests that prove a change at suitable fidelity.","https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow\u002Ftest-change\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},"01M79PAN4QQ9BETQ8HDGFZ64JG","specify","Create proportional OpenSpec-shaped structured change proposals for meaningful changes.","https:\u002F\u002Fgithub.com\u002Ffiq\u002Fself-adapting-agentic-architecture\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow\u002Fspecify\u002FSKILL.md",[],[]]