[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NQ6GVK82VB9V8X5MZ3T8KM":3,"skill-same:01M6NQ6GVK82VB9V8X5MZ3T8KM":81},{"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":23,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":14,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":61,"install":62,"resources":75},"01M6NQ6GVK82VB9V8X5MZ3T8KM","testing-strategy",null,"Testing approach — unit vs integration vs E2E, coverage goals, organization. Use when deciding what to test, choosing between unit\u002Fintegration\u002FE2E tests, planning a test strategy for new functionality, or setting coverage goals.","projectious-work\u002Fprocesskit","projectious-work","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F263889726?v=4","01M6N97TJJ118WQ35CHRV8RD0E","projectious.work","01M6N97TPWJPF0BMKYQ4PBY5W8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002Fsrc\u002Fcontext\u002Fskills\u002Fengineering\u002Ftesting-strategy\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"testing strategy","strategy","testing","coverage","for","unit","tests","organization","goals","test strategy","use","work","e2e","engineering","integration","planning","e2e tests","test","2026-11-10 10:12:30",false,"---\nname: testing-strategy\ndescription: |\n  Testing approach — unit vs integration vs E2E, coverage goals, organization. Use when deciding what to test, choosing between unit\u002Fintegration\u002FE2E tests, planning a test strategy for new functionality, or setting coverage goals.\nmetadata:\n  processkit:\n    apiVersion: processkit.projectious.work\u002Fv2\n    id: SKILL-testing-strategy\n    version: \"1.1.0\"\n    created: 2026-04-06T00:00:00Z\n    category: engineering\n    layer: 3\n---\n\n# Testing Strategy\n\n## Intro\n\nPick the cheapest test that gives you confidence the code is\ncorrect. Many fast unit tests, fewer integration tests, and a thin\nlayer of end-to-end tests for the critical paths — that is the\ntesting pyramid, and it still works.\n\n## Overview\n\n### Match the test type to the code\n\n- **Pure logic** (calculations, transformations) → unit tests.\n- **Integration points** (database, HTTP API, file I\u002FO) →\n  integration tests.\n- **User workflows** (end-to-end paths) → E2E tests.\n\n### Apply the testing pyramid\n\n- Many unit tests — fast, isolated, cheap to run on every commit.\n- Fewer integration tests — slower, exercise the boundary between\n  your code and external systems.\n- Minimal E2E tests — slowest and most flaky, reserved for the\n  critical happy paths a user must be able to complete.\n\n### Naming and shape\n\nName tests `test_\u003Cfunction>_\u003Cscenario>_\u003Cexpected_result>` so\nfailures self-document. Each test follows the AAA pattern:\n**Arrange** the inputs, **Act** by calling the unit, **Assert**\nthe expected outcome. One logical assertion per test where\npractical.\n\n### Prioritize what you test\n\n- Error paths and edge cases over happy paths\n- Public API over internal implementation details\n- Complex branching logic over trivial getters\u002Fsetters\n\n### Coverage as a smoke alarm\n\nAim for ~80% coverage on business logic. Do not chase 100%\neverywhere — coverage is a smoke alarm, not a goal. The last 20%\nis usually trivial code, generated code, or defensive paths that\ncost more to test than they save.\n\n### Example\n\nUser says: \"I added a new `calculate_discount()` function, what\ntests do I need?\" The agent recommends:\n\n- `test_calculate_discount_percentage_applied_correctly`\n- `test_calculate_discount_zero_amount_returns_zero`\n- `test_calculate_discount_negative_amount_returns_error`\n- `test_calculate_discount_exceeds_max_caps_at_limit`\n\nOne happy path, one boundary, one error case, one limit case.\n\n## Gotchas\n\nAgent-specific failure modes — provider-neutral pause-and-self-check items:\n\n- **Testing implementation details (private methods, internal state).** Tests that verify internals couple the test suite to the implementation — any structural change breaks tests even when behavior is correct. Test through the public API at the appropriate level.\n- **Slow unit tests that hit disk or network.** A unit test that opens a file, makes an HTTP call, or connects to a database is an integration test with a misleading name. It will be slow and flaky in CI. Mock or stub at the boundary; keep unit tests pure.\n- **E2E tests for every code path.** E2E tests are expensive to write, slow to run, and flaky to maintain. They should cover the critical user journeys that must work — not every conditional branch. Those belong in unit and integration tests.\n- **Coverage goals as the only quality metric.** 100% line coverage with assertions that never fail (e.g. `assert True`) provides zero confidence. Coverage is a smoke alarm — it tells you what was executed, not whether the behavior was verified.\n- **No test for the unhappy path.** Error cases and edge cases are where bugs live. Happy-path-only tests give false confidence. For every behavior, consider: what happens with empty input, invalid input, a missing dependency, a limit exceeded?\n- **Deviating from the testing pyramid without understanding the trade-offs.** If the test suite is inverted (mostly E2E) or trophy-shaped (mostly integration), that may be appropriate for the architecture — but it should be a deliberate decision with documented trade-offs, not an accident.\n- **Tests that pass when the production code is deleted.** A test suite that stays green after the module is removed was not testing anything. Run a mutation test or delete the module temporarily to verify the suite would actually catch a regression.\n\n## Full reference\n\n### Choosing the right level\n\n| Question | Right test level |\n|---|---|\n| Does this pure function compute the right value? | Unit |\n| Does this query return the right rows from the DB? | Integration |\n| Does this HTTP endpoint persist and respond correctly? | Integration |\n| Can a user complete checkout end-to-end? | E2E |\n| Does this private helper handle edge case X? | Test through the public API, not directly |\n\n### When to break the pyramid\n\n- **Inverted pyramid (lots of E2E):** the system has weak\n  internal seams; integration tests would be more valuable but\n  the architecture makes them hard. Refactor for testability.\n- **Trophy shape (heavy integration):** typical for thin services\n  where most logic is glue between external systems; the unit\n  layer is genuinely small.\n- **Diamond (heavy integration, light unit and E2E):** common for\n  microservices that mostly orchestrate.\n\nThe pyramid is a default, not a law.\n\n### Anti-patterns\n\n- Testing implementation details (e.g., asserting on private\n  method calls) — couples tests to refactoring\n- Slow unit tests because they hit the disk or network\n- E2E tests that exercise every code path instead of critical\n  flows\n- Coverage goals as the only quality metric\n- Tests that pass when the production code is deleted (they\n  weren't testing anything)\n- Skipping tests for \"trivial\" code that turns out to be wrong\n","# Testing Strategy\n\n## Intro\n\nPick the cheapest test that gives you confidence the code is\ncorrect. Many fast unit tests, fewer integration tests, and a thin\nlayer of end-to-end tests for the critical paths — that is the\ntesting pyramid, and it still works.\n\n## Overview\n\n### Match the test type to the code\n\n- **Pure logic** (calculations, transformations) → unit tests.\n- **Integration points** (database, HTTP API, file I\u002FO) →\n  integration tests.\n- **User workflows** (end-to-end paths) → E2E tests.\n\n### Apply the testing pyramid\n\n- Many unit tests — fast, isolated, cheap to run on every commit.\n- Fewer integration tests — slower, exercise the boundary between\n  your code and external systems.\n- Minimal E2E tests — slowest and most flaky, reserved for the\n  critical happy paths a user must be able to complete.\n\n### Naming and shape\n\nName tests `test_\u003Cfunction>_\u003Cscenario>_\u003Cexpected_result>` so\nfailures self-document. Each test follows the AAA pattern:\n**Arrange** the inputs, **Act** by calling the unit, **Assert**\nthe expected outcome. One logical assertion per test where\npractical.\n\n### Prioritize what you test\n\n- Error paths and edge cases over happy paths\n- Public API over internal implementation details\n- Complex branching logic over trivial getters\u002Fsetters\n\n### Coverage as a smoke alarm\n\nAim for ~80% coverage on business logic. Do not chase 100%\neverywhere — coverage is a smoke alarm, not a goal. The last 20%\nis usually trivial code, generated code, or defensive paths that\ncost more to test than they save.\n\n### Example\n\nUser says: \"I added a new `calculate_discount()` function, what\ntests do I need?\" The agent recommends:\n\n- `test_calculate_discount_percentage_applied_correctly`\n- `test_calculate_discount_zero_amount_returns_zero`\n- `test_calculate_discount_negative_amount_returns_error`\n- `test_calculate_discount_exceeds_max_caps_at_limit`\n\nOne happy path, one boundary, one error case, one limit case.\n\n## Gotchas\n\nAgent-specific failure modes — provider-neutral pause-and-self-check items:\n\n- **Testing implementation details (private methods, internal state).** Tests that verify internals couple the test suite to the implementation — any structural change breaks tests even when behavior is correct. Test through the public API at the appropriate level.\n- **Slow unit tests that hit disk or network.** A unit test that opens a file, makes an HTTP call, or connects to a database is an integration test with a misleading name. It will be slow and flaky in CI. Mock or stub at the boundary; keep unit tests pure.\n- **E2E tests for every code path.** E2E tests are expensive to write, slow to run, and flaky to maintain. They should cover the critical user journeys that must work — not every conditional branch. Those belong in unit and integration tests.\n- **Coverage goals as the only quality metric.** 100% line coverage with assertions that never fail (e.g. `assert True`) provides zero confidence. Coverage is a smoke alarm — it tells you what was executed, not whether the behavior was verified.\n- **No test for the unhappy path.** Error cases and edge cases are where bugs live. Happy-path-only tests give false confidence. For every behavior, consider: what happens with empty input, invalid input, a missing dependency, a limit exceeded?\n- **Deviating from the testing pyramid without understanding the trade-offs.** If the test suite is inverted (mostly E2E) or trophy-shaped (mostly integration), that may be appropriate for the architecture — but it should be a deliberate decision with documented trade-offs, not an accident.\n- **Tests that pass when the production code is deleted.** A test suite that stays green after the module is removed was not testing anything. Run a mutation test or delete the module temporarily to verify the suite would actually catch a regression.\n\n## Full reference\n\n### Choosing the right level\n\n| Question | Right test level |\n|---|---|\n| Does this pure function compute the right value? | Unit |\n| Does this query return the right rows from the DB? | Integration |\n| Does this HTTP endpoint persist and respond correctly? | Integration |\n| Can a user complete checkout end-to-end? | E2E |\n| Does this private helper handle edge case X? | Test through the public API, not directly |\n\n### When to break the pyramid\n\n- **Inverted pyramid (lots of E2E):** the system has weak\n  internal seams; integration tests would be more valuable but\n  the architecture makes them hard. Refactor for testability.\n- **Trophy shape (heavy integration):** typical for thin services\n  where most logic is glue between external systems; the unit\n  layer is genuinely small.\n- **Diamond (heavy integration, light unit and E2E):** common for\n  microservices that mostly orchestrate.\n\nThe pyramid is a default, not a law.\n\n### Anti-patterns\n\n- Testing implementation details (e.g., asserting on private\n  method calls) — couples tests to refactoring\n- Slow unit tests because they hit the disk or network\n- E2E tests that exercise every code path instead of critical\n  flows\n- Coverage goals as the only quality metric\n- Tests that pass when the production code is deleted (they\n  weren't testing anything)\n- Skipping tests for \"trivial\" code that turns out to be wrong\n",{"name":5,"metadata":47,"description":54},{"processkit":48},{"id":49,"layer":50,"created":51,"version":52,"category":37,"apiVersion":53},"SKILL-testing-strategy",3,1775433600000,"1.1.0","processkit.projectious.work\u002Fv2","Testing approach — unit vs integration vs E2E, coverage goals, organization. Use when deciding what to test, choosing between unit\u002Fintegration\u002FE2E tests, planning a test strategy for new functionality, or setting coverage goals.\n","main","7231f100e266e30d2c1699ecde5c00602471dc3c","src\u002Fcontext\u002Fskills\u002Fengineering\u002Ftesting-strategy","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit","https:\u002F\u002Fprojectious-work.github.io\u002Fprocesskit\u002F","https:\u002F\u002Fgithub.com\u002Fprojectious-work","2026-11-11 23:24:18",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add projectious-work\u002Fprocesskit --skill testing-strategy",{"tool":68,"command":69},"bunx","bunx skills add projectious-work\u002Fprocesskit --skill testing-strategy",{"tool":71,"command":72},"pnpm","pnpm dlx skills add projectious-work\u002Fprocesskit --skill testing-strategy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002Fsrc\u002Fcontext\u002Fskills\u002Fengineering\u002Ftesting-strategy\u002FSKILL.md",true,[76],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":14,"sourceHtmlUrl":80},"scripts\u002F.gitkeep","SCRIPT","脚本","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002Fsrc\u002Fcontext\u002Fskills\u002Fengineering\u002Ftesting-strategy\u002Fscripts\u002F.gitkeep",[82,89,96,102,127,147],{"skillNo":83,"name":84,"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":85,"categories":86,"keywords":87,"publishedAt":88},"01M7665G2ED3624R3X93304265","standard-ui-design","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstandard-ui-design\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":90,"name":91,"nameZh":6,"description":92,"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":88},"01M76651QTC6W0HJ4AFW2MMR3V","standard-agent-use","Company standard for working with AI agents. Use when deciding what to delegate to agents, capturing open work, keeping agent memory or knowledge notes, improving an agent workflow, or introducing agent work in a team or for a client.","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstandard-agent-use\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"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":99,"categories":100,"keywords":101,"publishedAt":88},"01M76650NN4T8P241021NBR64S","standard-agent-building","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstandard-agent-building\u002FSKILL.md",[],[],{"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":111,"publishedAt":42},"01M6X5MTC89B4ZGXW3JVSQCPF8","skill-management","Manage Skill package manifests as v1 ontology entities.","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002Fsrc\u002Fcontext\u002Fskills\u002Fprocesskit\u002Fskill-management\u002FSKILL.md",[108],{"categoryNo":109,"categoryName":110,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[112,113,114,115,116,117,35,118,119,120,121,122,104,123,124,125,126],"management","skill management","ontology","v1","create","as","transition","get","manage","update","alpha","list","package","skill package","manifests",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":134,"publishedAt":42},"01M6X5MCV74NHW5MEDNHZRF2C8","schema-management","Manage generated processkit schema contracts through deterministic MCP rebuild and inspection workflows.","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002Fsrc\u002Fcontext\u002Fskills\u002Fprocesskit\u002Fschema-management\u002FSKILL.md",[133],{"categoryNo":109,"categoryName":110,"taxonomyType":21,"taxonomyTypeDesc":22},[135,136,112,137,138,139,140,141,142,143,144,145,35,119,120,122,146],"schema","schema management","contract","rebuild","contracts","workflows","wed","generated","MCP","validation","deterministic","mode",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":42},"01M6X5M5G6YJ96AMZGSCZJ1D13","proposition-management","Record claims, risks, beliefs, world facts, WSJF estimates, and assumptions through the Proposition interface.","https:\u002F\u002Fgithub.com\u002Fprojectious-work\u002Fprocesskit\u002Fblob\u002Fmain\u002Fsrc\u002Fcontext\u002Fskills\u002Fprocesskit\u002Fproposition-management\u002FSKILL.md",[],[154,112,155,156,116,157,158,159,35,119,160,161,121,162,122,163,164,165,166,167],"proposition management","proposition","interface","claims","record","world","creation","event","WSJF","index","updates","query","facts","log"]