[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M753RQMTF7G68MQXVCP0ZYWN":3,"skill-same:01M753RQMTF7G68MQXVCP0ZYWN":56},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M753RQMTF7G68MQXVCP0ZYWN","test-first-development",null,"Tests-first development — write tests before implementation. Opt-in only: one upfront consent (write tests first + auto-run), then run the cycle without re-asking. Trigger when the user explicitly asks for tests-first, picks it at a workflow checkpoint, or when implementing logic with clear input\u002Foutput behavior. Also owns any request to change an existing test so it passes — just fix the test, update the failing test to match the new behavior — that decision runs through this skill, never silently. Answers questions about the practice itself too — should I tdd this, is test-first worth it for UI components.","jabworks\u002Fagentic-toolkit","jabworks","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F159094119?v=4","01M753P4JBZBTT7WN1PJBPZJZP","JAB Works","01M753P4K5KDGEWGXWT811BZET",2,"MIT","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fpackages\u002Fcondux-opencode\u002Fskills\u002Ftest-first-development\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: test-first-development\ndescription: \"Tests-first development — write tests before implementation. Opt-in only: one upfront consent (write tests first + auto-run), then run the cycle without re-asking. Trigger when the user explicitly asks for tests-first, picks it at a workflow checkpoint, or when implementing logic with clear input\u002Foutput behavior. Also owns any request to change an existing test so it passes — just fix the test, update the failing test to match the new behavior — that decision runs through this skill, never silently. Answers questions about the practice itself too — should I tdd this, is test-first worth it for UI components.\"\nargument-hint: \"\u003Cwhat to test>\"\n---\n\n# \u002Ftest-first-development\n\nTests first, implementation second. But only when you've asked for it.\n\n## Usage\n\n```\n\u002Ftest-first-development $ARGUMENTS\n```\n\n## The Ask Rules\n\n**One upfront consent, then work.** At skill start, ask once:\n\n```\n\"Tests-first for this task: I'll write failing tests, auto-run them\n through each red-green-refactor cycle, and implement against them.\n Ok to proceed?\"\n```\n\nWait for yes. After that, do **not** re-ask before writing new tests or\nrunning them — the cycle needs fast red-green feedback, and re-asking at\nevery step is noise. If invoked from a `\u002Fworkflow` checkpoint where the\nuser already picked \"Write tests first\", that pick *is* the consent —\nstart immediately.\n\n**The one standing exception — updating existing test specs.** Always ask\nbefore modifying any existing test file:\n\n```\n\"This change affects existing test specs — want me to update them,\n or review the diffs first?\"\n```\n\nNever silently update an existing spec. That is a decision point every time.\n\n## The RED-GREEN-REFACTOR Cycle\n\n```\n┌──────────────────────────────────────────────────────────────────┐\n│                      TDD CYCLE                                  │\n├──────────────────────────────────────────────────────────────────┤\n│  RED                                                            │\n│  → Write the failing test                                       │\n│  → Run it — it must fail before moving on                       │\n│    (a test that passes immediately proves nothing)              │\n│                                                                  │\n│  GREEN                                                          │\n│  → Write the minimal implementation to make it pass            │\n│  → Run it — it must pass before moving on                       │\n│                                                                  │\n│  REFACTOR                                                       │\n│  → Clean up without changing behavior                           │\n│  → Run the tests again — they must still pass                   │\n└──────────────────────────────────────────────────────────────────┘\n```\n\nRun only the relevant test file(s) during the cycle — the full suite\nbelongs to `\u002Ffinalize`.\n\n## What Makes a Good Test\n\n```\n✓ Tests behavior, not implementation details\n✓ One clear assertion per test\n✓ Descriptive name: \"should return error when token is expired\"\n✓ Tests edge cases discovered during thinking, not after\n✓ Independent — doesn't rely on other tests running first\n\n✗ Tests internal function calls or private methods\n✗ Tests that only pass because of the implementation you just wrote\n✗ Vague names: \"test1\", \"should work\"\n✗ Tests that need other tests to run first\n```\n\n## Updating Existing Test Specs\n\nThis is the most dangerous operation in TDD. Silently rewriting specs to make a bug fix pass is how bugs get buried.\n\nBefore touching any existing test file:\n\n1. Show the current spec and what would change\n2. Explain why the change is necessary (behavior change vs. test was wrong)\n3. Wait for explicit approval\n\n```\nLegitimate reasons to update a spec:\n  ✓ The feature behavior intentionally changed (product decision)\n  ✓ The test was testing the wrong thing (implementation detail)\n  ✓ The test was brittle\u002Fflaky and needs a better assertion\n\nNOT legitimate:\n  ✗ \"The test was failing so I updated it to match the new output\"\n  ✗ \"The behavior changed as a side effect of the fix\"\n```\n\n## When TDD Applies (and When It Doesn't)\n\n```\nGood candidates for TDD:\n  ✓ Pure functions with clear inputs\u002Foutputs\n  ✓ Utility logic (date formatting, currency, validation)\n  ✓ API handlers with predictable request\u002Fresponse shapes\n  ✓ Bug fixes where a failing test proves the bug exists\n\nPoor candidates (don't force TDD here):\n  ✗ UI layout and visual components\n  ✗ Framework glue code (wiring up routes, registering providers)\n  ✗ One-off scripts or migrations\n  ✗ Prototyping — test after shape is clear\n```\n\n## See Also\n\n- `references\u002Frationalization-table.md` — common rationalizations for skipping tests-first and why they're wrong\n","# \u002Ftest-first-development\n\nTests first, implementation second. But only when you've asked for it.\n\n## Usage\n\n```\n\u002Ftest-first-development $ARGUMENTS\n```\n\n## The Ask Rules\n\n**One upfront consent, then work.** At skill start, ask once:\n\n```\n\"Tests-first for this task: I'll write failing tests, auto-run them\n through each red-green-refactor cycle, and implement against them.\n Ok to proceed?\"\n```\n\nWait for yes. After that, do **not** re-ask before writing new tests or\nrunning them — the cycle needs fast red-green feedback, and re-asking at\nevery step is noise. If invoked from a `\u002Fworkflow` checkpoint where the\nuser already picked \"Write tests first\", that pick *is* the consent —\nstart immediately.\n\n**The one standing exception — updating existing test specs.** Always ask\nbefore modifying any existing test file:\n\n```\n\"This change affects existing test specs — want me to update them,\n or review the diffs first?\"\n```\n\nNever silently update an existing spec. That is a decision point every time.\n\n## The RED-GREEN-REFACTOR Cycle\n\n```\n┌──────────────────────────────────────────────────────────────────┐\n│                      TDD CYCLE                                  │\n├──────────────────────────────────────────────────────────────────┤\n│  RED                                                            │\n│  → Write the failing test                                       │\n│  → Run it — it must fail before moving on                       │\n│    (a test that passes immediately proves nothing)              │\n│                                                                  │\n│  GREEN                                                          │\n│  → Write the minimal implementation to make it pass            │\n│  → Run it — it must pass before moving on                       │\n│                                                                  │\n│  REFACTOR                                                       │\n│  → Clean up without changing behavior                           │\n│  → Run the tests again — they must still pass                   │\n└──────────────────────────────────────────────────────────────────┘\n```\n\nRun only the relevant test file(s) during the cycle — the full suite\nbelongs to `\u002Ffinalize`.\n\n## What Makes a Good Test\n\n```\n✓ Tests behavior, not implementation details\n✓ One clear assertion per test\n✓ Descriptive name: \"should return error when token is expired\"\n✓ Tests edge cases discovered during thinking, not after\n✓ Independent — doesn't rely on other tests running first\n\n✗ Tests internal function calls or private methods\n✗ Tests that only pass because of the implementation you just wrote\n✗ Vague names: \"test1\", \"should work\"\n✗ Tests that need other tests to run first\n```\n\n## Updating Existing Test Specs\n\nThis is the most dangerous operation in TDD. Silently rewriting specs to make a bug fix pass is how bugs get buried.\n\nBefore touching any existing test file:\n\n1. Show the current spec and what would change\n2. Explain why the change is necessary (behavior change vs. test was wrong)\n3. Wait for explicit approval\n\n```\nLegitimate reasons to update a spec:\n  ✓ The feature behavior intentionally changed (product decision)\n  ✓ The test was testing the wrong thing (implementation detail)\n  ✓ The test was brittle\u002Fflaky and needs a better assertion\n\nNOT legitimate:\n  ✗ \"The test was failing so I updated it to match the new output\"\n  ✗ \"The behavior changed as a side effect of the fix\"\n```\n\n## When TDD Applies (and When It Doesn't)\n\n```\nGood candidates for TDD:\n  ✓ Pure functions with clear inputs\u002Foutputs\n  ✓ Utility logic (date formatting, currency, validation)\n  ✓ API handlers with predictable request\u002Fresponse shapes\n  ✓ Bug fixes where a failing test proves the bug exists\n\nPoor candidates (don't force TDD here):\n  ✗ UI layout and visual components\n  ✗ Framework glue code (wiring up routes, registering providers)\n  ✗ One-off scripts or migrations\n  ✗ Prototyping — test after shape is clear\n```\n\n## See Also\n\n- `references\u002Frationalization-table.md` — common rationalizations for skipping tests-first and why they're wrong\n",{"name":5,"description":7,"argument-hint":24},"\u003Cwhat to test>","main","5277649b071c1c0cdf4f15eee861b1608fc1bbcb","packages\u002Fcondux-opencode\u002Fskills\u002Ftest-first-development",0,"https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit","https:\u002F\u002Fgithub.com\u002Fjabworks","2026-11-03 15:03:51",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add jabworks\u002Fagentic-toolkit --skill test-first-development",{"tool":38,"command":39},"bunx","bunx skills add jabworks\u002Fagentic-toolkit --skill test-first-development",{"tool":41,"command":42},"pnpm","pnpm dlx skills add jabworks\u002Fagentic-toolkit --skill test-first-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fpackages\u002Fcondux-opencode\u002Fskills\u002Ftest-first-development\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"evals\u002Ftrigger_eval.json","REFERENCE","参考文档",3354,"https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fpackages\u002Fcondux-opencode\u002Fskills\u002Ftest-first-development\u002Fevals\u002Ftrigger_eval.json",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Frationalization-table.md",3741,"https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fpackages\u002Fcondux-opencode\u002Fskills\u002Ftest-first-development\u002Freferences\u002Frationalization-table.md",[57,63,69,76,83,90],{"skillNo":58,"name":59,"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":60,"categories":61,"keywords":62,"publishedAt":19},"01M7540BPNTFZH7V41P5E2S692","orphan","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcomposition\u002Fbad\u002Fskills\u002Forphan\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"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":66,"categories":67,"keywords":68,"publishedAt":19},"01M7540AG2KFTQ8DJMNV6806MV","no-blurb","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcomposition\u002Fbad\u002Fskills\u002Fno-blurb\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},"01M75404N306PY1JFPQ0GGNTYB","workflow","Routes any dev task into the right execution tier (Small\u002FMedium\u002FLarge) and carries condux's operating rules — proportional effort, lazy skill loading, soft gates, implement-yourself-by-default.","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\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},"01M753ZZ6TTA06GRJAG679BQ2H","usage-trace","Checks and manages durable, local usage capture — ingest, health status, and the opt-in limit snapshot — for Claude Code and Codex. Capture itself runs automatically at session start.","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fusage-trace\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},"01M753ZSKJSF8WFS7AXR2N65SE","toolkit-skill-standards","Use when writing or reviewing a SKILL.md for jabworks\u002Fagentic-toolkit — frontmatter budgets, the trigger contract (\"Use when…\" description or when_to_use field), progressive disclosure into references\u002F, and keeping a new description out of existing skills' trigger space. Triggers include \"review this skill description\", \"write the frontmatter\", \"does this collide with an existing skill\", \"where should this content live\". Not for scaffold\u002Fsync mechanics; use toolkit-foundry.","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ftoolkit-skill-standards\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M753ZKX3KTVYWX15A9A0WZN0","toolkit-research-frontier","Use when planning improvement work on jabworks\u002Fagentic-toolkit itself — open problems (trigger-collision automation, YAML-strict frontmatter checks, docs-catalog enforcement), existing assets, the next three concrete steps, and the four-front library-health campaign with commands and success criteria. Triggers include \"let's improve our toolkit\", \"let's improve this repo\", \"what should we improve next\", \"toolkit roadmap\", \"open problems\", \"run the health campaign\".","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ftoolkit-research-frontier\u002FSKILL.md",[],[]]