[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72WPG1TTQBP2JYY4WNAAY2F":3,"skill-same:01M72WPG1TTQBP2JYY4WNAAY2F":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":43,"ownerDescription":45,"updatedAt":46,"install":47,"resources":59},"01M72WPG1TTQBP2JYY4WNAAY2F","tester",null,"Writes high-signal tests and plans test strategy: a regression test for a bug fix verified failing-then-passing, the priority edge cases of a behaviour, integration tests against real dependencies, and the check that a tool is really unavailable before a test is skipped. Use when asked to write tests, add a regression test, plan a test strategy, enumerate edge cases, review whether a change has adequate coverage, or decide whether to skip a test for a missing tool. Not for web end-to-end tests with Playwright or RobotFramework (web-tester), for fixing the code under test (developer), or for reviewing a pull request (pr-reviewer).","crewrig\u002Fcrewrig","crewrig","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F283580446?v=4","01M72WDBD9H0YW5JBHNZ0TEVWB","01M72WDBEBNRBAS94AXRPEVYNK",24,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Ftester\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: tester\ndescription: \"Writes high-signal tests and plans test strategy: a regression test for a bug fix verified failing-then-passing, the priority edge cases of a behaviour, integration tests against real dependencies, and the check that a tool is really unavailable before a test is skipped. Use when asked to write tests, add a regression test, plan a test strategy, enumerate edge cases, review whether a change has adequate coverage, or decide whether to skip a test for a missing tool. Not for web end-to-end tests with Playwright or RobotFramework (web-tester), for fixing the code under test (developer), or for reviewing a pull request (pr-reviewer).\"\ntype: skill\nlicense: Apache-2.0\ncompatibility: \"Requires Node.js 24 (the script runs as node scripts\u002Fprobe-tool.ts) and the project's own test runner.\"\nmetadata:\n  provenance:\n    canonical: \"${CANONICAL_REPO}\"\n    feedback: \"${CANONICAL_REPO}\"\n    version: \"1.3.0\"\nclaude:\n  allowed-tools:\n    - Read\n    - Write\n    - Edit\n    - Bash\n    - Grep\n    - Glob\n  user-invocable: true\n---\n\n# Tester\n\nTests exist to catch regressions and to document behavior, not to\ninflate a coverage number. Bias toward fewer, sharper tests.\n\n## When to activate\n\n- A feature is being added and the project's convention requires tests.\n- A bug fix lacks a regression test.\n- The user asks for a test plan or edge-case enumeration.\n- A diff is up for review and you suspect under-tested behavior.\n\nIf the project has no test infrastructure and the user has not asked\nfor one, do not invent one — say so and move on.\n\n## Operating mode\n\n### 1. Identify the unit of behavior\n\nPick the smallest *observable* behavior to test, not the smallest\n*function*. A function with no observable contract has nothing to\ntest. A file-level helper called only from one place is best tested\nthrough the caller.\n\n### 2. Golden path + edge cases (not exhaustively)\n\nFor each behavior, plan:\n\n- **One golden-path test** that exercises the success case.\n- **One or two edge-case tests** for the failure modes that matter.\n- **A regression test** if the test was triggered by a bug fix —\n  named so it is obvious which bug it guards.\n\nEdge cases to consider, in this order of priority:\n\n1. Empty \u002F null \u002F zero-length input.\n2. Boundary values (off-by-one, overflow, encoding edges).\n3. Known-bad input (malformed, adversarial — see security skill).\n4. Concurrent \u002F repeated invocations if the surface is stateful.\n5. Partial failure (network mid-call, disk full, signal interrupt).\n\nStop adding cases when the marginal case becomes contrived. Coverage\nof contrived cases costs maintenance forever.\n\n### 3. Real dependencies where it matters\n\nFor integration tests:\n\n- Hit a real database when the project's convention is integration\n  testing (use Testcontainers, Docker Compose, or the project's\n  scaffold). Mocked DB tests have a known failure mode where they\n  pass while the real schema is broken.\n- Mock an external API only when its calls are non-deterministic, slow,\n  or rate-limited. Otherwise prefer a recorded fixture (VCR-style).\n\nIf the project has explicit guidance (\"don't mock the database\"),\nfollow it without rediscovering the lesson.\n\n### 4. Test naming and structure\n\nName tests by behavior, not by function:\n\n```text\n✓ test_login_with_valid_credentials_returns_session_token\n✗ test_login_function\n```\n\nStructure each test as **arrange \u002F act \u002F assert**, with a blank line\nbetween each phase. Multi-assertion tests are fine when the assertions\ntogether describe one behavior; split when they describe two.\n\n### 5. Verifying a fix\n\nWhen the trigger is a bug fix:\n\n1. Write the test *first*. Run it. Confirm it fails for the *right*\n   reason — not a setup error.\n2. Apply the fix.\n3. Run the test. Confirm it passes.\n4. Run the rest of the suite to detect regressions in unrelated areas.\n\nA test that never failed before the fix proves nothing.\n\n### 6. Tool availability is empirical, not assumed\n\nA test skipped because a tool, binary, subcommand or service is\n\"unavailable\" is only as good as the check behind it: CLIs evolve faster\nthan anyone's memory of them, so a skip rationale resting on a guess gets\nthe test attempted again later at the user's expense.\n\nBefore declaring the skip, run the probe:\n\n```sh\nnode scripts\u002Fprobe-tool.ts \u003Ctool> [\u003Csubcommand>] [--timeout \u003Cseconds>] [--json]\n```\n\nIt runs the tool's help flag, then its version flag, directly and not\nthrough a shell, and looks the tool up on `PATH` as a precursor only\n(a binary on `PATH` can still lack the subcommand you need).\n\n| Exit | Meaning | What to do |\n|---|---|---|\n| `0` | A probe exited `0`: the tool answers. | Write the test. Do not skip. |\n| `1` | No probe succeeded. The finding quotes each command, its exit code or `command not found` or `timed out`, and the first line of stderr. | Run one minimal real invocation with throwaway input, since a tool can exist and still exit non-zero on its help flag. If that fails too, quote the finding and that invocation in the skip rationale. |\n| `2` | Usage error. | Fix the command line. |\n| `3` | `PATH` is not set. | Set it, or give the tool as a path. |\n\nThese are not grounds for a skip: \"I do not recognise this subcommand\",\n\"the documentation I have seen does not mention it\", or \"the previous\nattempt in this session failed\". None is a probe, and the environment\nmay have changed (`PATH`, login shell, credentials) since.\n\nA skip without a quoted failure forces the test to be attempted again.\n\n## Output expectations\n\n- Tests committed alongside the change they cover, never in a separate\n  PR (unless the project explicitly batches test PRs).\n- A one-line comment above each test stating the *why* — the behavior\n  being asserted — only when the test name alone is not self-evident.\n- Test data inline when small; in fixtures when reused or large.\n\n## Findings from a review loop\n\nWhen you are re-spawned to act on the findings of a review, act only on\nthe findings tagged `class: tech` that touch the test surface. Return a\nfinding with no tag to the orchestrator as a protocol error, and return\nan `arch` or `spec` finding as misrouted, without acting on either. The\nrule and its reason are in `references\u002Fshared-finding-class-taxonomy.md`.\n\n## Friction reporting\n\nWhen something in the workflow misleads or blocks you, tag it with the\n`harness-report` skill. The rule is in\n`references\u002Fshared-friction-reporting.md`.\n","# Tester\n\nTests exist to catch regressions and to document behavior, not to\ninflate a coverage number. Bias toward fewer, sharper tests.\n\n## When to activate\n\n- A feature is being added and the project's convention requires tests.\n- A bug fix lacks a regression test.\n- The user asks for a test plan or edge-case enumeration.\n- A diff is up for review and you suspect under-tested behavior.\n\nIf the project has no test infrastructure and the user has not asked\nfor one, do not invent one — say so and move on.\n\n## Operating mode\n\n### 1. Identify the unit of behavior\n\nPick the smallest *observable* behavior to test, not the smallest\n*function*. A function with no observable contract has nothing to\ntest. A file-level helper called only from one place is best tested\nthrough the caller.\n\n### 2. Golden path + edge cases (not exhaustively)\n\nFor each behavior, plan:\n\n- **One golden-path test** that exercises the success case.\n- **One or two edge-case tests** for the failure modes that matter.\n- **A regression test** if the test was triggered by a bug fix —\n  named so it is obvious which bug it guards.\n\nEdge cases to consider, in this order of priority:\n\n1. Empty \u002F null \u002F zero-length input.\n2. Boundary values (off-by-one, overflow, encoding edges).\n3. Known-bad input (malformed, adversarial — see security skill).\n4. Concurrent \u002F repeated invocations if the surface is stateful.\n5. Partial failure (network mid-call, disk full, signal interrupt).\n\nStop adding cases when the marginal case becomes contrived. Coverage\nof contrived cases costs maintenance forever.\n\n### 3. Real dependencies where it matters\n\nFor integration tests:\n\n- Hit a real database when the project's convention is integration\n  testing (use Testcontainers, Docker Compose, or the project's\n  scaffold). Mocked DB tests have a known failure mode where they\n  pass while the real schema is broken.\n- Mock an external API only when its calls are non-deterministic, slow,\n  or rate-limited. Otherwise prefer a recorded fixture (VCR-style).\n\nIf the project has explicit guidance (\"don't mock the database\"),\nfollow it without rediscovering the lesson.\n\n### 4. Test naming and structure\n\nName tests by behavior, not by function:\n\n```text\n✓ test_login_with_valid_credentials_returns_session_token\n✗ test_login_function\n```\n\nStructure each test as **arrange \u002F act \u002F assert**, with a blank line\nbetween each phase. Multi-assertion tests are fine when the assertions\ntogether describe one behavior; split when they describe two.\n\n### 5. Verifying a fix\n\nWhen the trigger is a bug fix:\n\n1. Write the test *first*. Run it. Confirm it fails for the *right*\n   reason — not a setup error.\n2. Apply the fix.\n3. Run the test. Confirm it passes.\n4. Run the rest of the suite to detect regressions in unrelated areas.\n\nA test that never failed before the fix proves nothing.\n\n### 6. Tool availability is empirical, not assumed\n\nA test skipped because a tool, binary, subcommand or service is\n\"unavailable\" is only as good as the check behind it: CLIs evolve faster\nthan anyone's memory of them, so a skip rationale resting on a guess gets\nthe test attempted again later at the user's expense.\n\nBefore declaring the skip, run the probe:\n\n```sh\nnode scripts\u002Fprobe-tool.ts \u003Ctool> [\u003Csubcommand>] [--timeout \u003Cseconds>] [--json]\n```\n\nIt runs the tool's help flag, then its version flag, directly and not\nthrough a shell, and looks the tool up on `PATH` as a precursor only\n(a binary on `PATH` can still lack the subcommand you need).\n\n| Exit | Meaning | What to do |\n|---|---|---|\n| `0` | A probe exited `0`: the tool answers. | Write the test. Do not skip. |\n| `1` | No probe succeeded. The finding quotes each command, its exit code or `command not found` or `timed out`, and the first line of stderr. | Run one minimal real invocation with throwaway input, since a tool can exist and still exit non-zero on its help flag. If that fails too, quote the finding and that invocation in the skip rationale. |\n| `2` | Usage error. | Fix the command line. |\n| `3` | `PATH` is not set. | Set it, or give the tool as a path. |\n\nThese are not grounds for a skip: \"I do not recognise this subcommand\",\n\"the documentation I have seen does not mention it\", or \"the previous\nattempt in this session failed\". None is a probe, and the environment\nmay have changed (`PATH`, login shell, credentials) since.\n\nA skip without a quoted failure forces the test to be attempted again.\n\n## Output expectations\n\n- Tests committed alongside the change they cover, never in a separate\n  PR (unless the project explicitly batches test PRs).\n- A one-line comment above each test stating the *why* — the behavior\n  being asserted — only when the test name alone is not self-evident.\n- Test data inline when small; in fixtures when reused or large.\n\n## Findings from a review loop\n\nWhen you are re-spawned to act on the findings of a review, act only on\nthe findings tagged `class: tech` that touch the test surface. Return a\nfinding with no tag to the orchestrator as a protocol error, and return\nan `arch` or `spec` finding as misrouted, without acting on either. The\nrule and its reason are in `references\u002Fshared-finding-class-taxonomy.md`.\n\n## Friction reporting\n\nWhen something in the workflow misleads or blocks you, tag it with the\n`harness-report` skill. The rule is in\n`references\u002Fshared-friction-reporting.md`.\n",{"name":5,"type":23,"claude":24,"license":14,"metadata":33,"description":7,"compatibility":37},"skill",{"allowed-tools":25,"user-invocable":32},[26,27,28,29,30,31],"Read","Write","Edit","Bash","Grep","Glob",true,{"provenance":34},{"version":35,"feedback":36,"canonical":36},"1.3.0","${CANONICAL_REPO}","Requires Node.js 24 (the script runs as node scripts\u002Fprobe-tool.ts) and the project's own test runner.","main","6462aef9a402df0abfbb6ca7d7a060839ee8c474","artifacts\u002Fcore\u002Fskills\u002Ftester",6,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig","https:\u002F\u002Fcrewrig.org","https:\u002F\u002Fgithub.com\u002Fcrewrig","This is the organisation behind the crewrig framework","2026-11-15 04:46:08",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":32},[49,52,55],{"tool":50,"command":51},"npx","npx skills add crewrig\u002Fcrewrig --skill tester",{"tool":53,"command":54},"bunx","bunx skills add crewrig\u002Fcrewrig --skill tester",{"tool":56,"command":57},"pnpm","pnpm dlx skills add crewrig\u002Fcrewrig --skill tester","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Ftester\u002FSKILL.md",[60,66,70,76,80,84],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"evals\u002Fevals.json","REFERENCE","参考文档",8739,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Ftester\u002Fevals\u002Fevals.json",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"evals\u002Ffiles\u002Fconventions.md",280,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Ftester\u002Fevals\u002Ffiles\u002Fconventions.md",{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Ffiles\u002Fmake-repo.ts","SCRIPT","脚本",3528,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Ftester\u002Fevals\u002Ffiles\u002Fmake-repo.ts",{"path":77,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Ffiles\u002Freview-brief.md",610,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Ftester\u002Fevals\u002Ffiles\u002Freview-brief.md",{"path":81,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fresults.json",578,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Ftester\u002Fevals\u002Fresults.json",{"path":85,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fprobe-tool.ts",7409,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Ftester\u002Fscripts\u002Fprobe-tool.ts",[89,97,102,107,112,117],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":96},"01M76AJKRKGGYZFJJHKE32Q5ZZ","fixture","Fixture skill. Mentions scripts\u002Ffrontmatter-only.ts which must be ignored.","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fyaml-example\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":98,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":96},"01M76AJJHS0AHW5HJJQCVVJ4DH","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Funterminated\u002FSKILL.md",[],[],{"skillNo":103,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":96},"01M76AJH8VJ2NAE000285J1D8F","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Funresolved\u002FSKILL.md",[],[],{"skillNo":108,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":96},"01M76AJG4M862QH00H5QVVT60P","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fstray\u002FSKILL.md",[],[],{"skillNo":113,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":96},"01M76AJEZKZVMWZXCKXCFNQQ6B","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fresolving\u002FSKILL.md",[],[],{"skillNo":118,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":96},"01M76AJD4G4K2YK2SMN8NSEG9R","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Freferences-unfenced\u002FSKILL.md",[],[]]