[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78CZWQTD038MFCCRHYES4B5":3,"skill-same:01M78CZWQTD038MFCCRHYES4B5":64},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M78CZWQTD038MFCCRHYES4B5","testing",null,"WRITE, RUN, or DEBUG tests -- pytest, Jest\u002FRTL, Playwright E2E, deployment config. NOT for finding coverage gaps (use test-coverage) or CI pipeline config (use deployment).","atretyak1985\u002Fswarmery","atretyak1985","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1436737?v=4","01M78CTSX57YH0EYY9YGH0TWKX","Andrii Tretiak","01M78CTSXRPJPYQ7GNPMP45TYX",8,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing\ndescription: \"WRITE, RUN, or DEBUG tests -- pytest, Jest\u002FRTL, Playwright E2E, deployment config. NOT for finding coverage gaps (use test-coverage) or CI pipeline config (use deployment).\"\nversion: \"1.0.0\"\nowner: \"swarmery-core\"\nallowed-tools: Read, Write, Bash, Grep, Glob\ncolor: teal\ndocs:\n  status: reviewed\n  source_sha: 86527cbef0ee\n  updated: 2026-08-06\n---\n\n# Purpose\n\nWrite tests, run test suites, and debug test failures across the project's repositories (`.claude\u002Fproject.json` → `repos`). Typical layout: a device\u002Fedge repo `\u003Cdevice>` (Python\u002Fpytest), the main app `apps\u002F\u003CmainApp>` (TypeScript\u002FJest + RTL, Playwright E2E), and an infrastructure repo (deployment config via template render + dry-run); placeholders come from `project.json → mainApp` \u002F `device`.\n\n# Rules (never violate)\n\n1. Verify the source module exists (Glob\u002FRead) before writing a test — never test a module you cannot locate.\n2. Always run a test after writing it; never return a test that was not executed and passing.\n3. Test behavior, not implementation; no vacuous assertions (`expect(true).toBe(true)`).\n4. A single test file stays under 200 lines — split by feature area if larger.\n5. Check prerequisites before integration\u002FE2E runs: `make test-all` needs a database, `npm run test:e2e` needs a running app.\n6. Never delete a flaky test or run `npm install`\u002F`pip install` without user approval.\n\n# Resources\n\n- Read `resources\u002Fwriting-test-patterns.md` when writing tests: philosophy (AAA, TDD), the testing pyramid, the framework\u002Flocation\u002Fnaming table, and code patterns for pytest, Jest, RTL, Playwright, and deployment config dry-runs.\n- Read `resources\u002Frunning-and-debugging.md` when running suites or debugging failures: per-repo commands, the 4-step debug procedure, self-check, common mistakes, escalation, and failure modes.\n\n# How to use\n\n## What it does\n\nA hands-on test engineer: writes new tests, runs existing suites, and debugs failures across a multi-repo project — pytest, Jest with React Testing Library, Playwright browser flows, deployment config through template renders and dry-run installs. It picks the right framework, file location, and naming convention for the repo, then runs the test to prove it passes.\n\n## When to use it\n\n- Tests needed for a module you just implemented, or added to existing code.\n- Running a suite for pass\u002Ffail; a failing or flaky test needing its root cause found and fixed.\n\nNot for: finding what lacks tests (`test-coverage`), CI test jobs (the project's infra pack skills), lint\u002Ftype checking (`code-standards`\u002F`code-quality`), or live-app debugging (`troubleshooting`).\n\n## How to invoke\n\n```\nSkill(skill: \"core:testing\")\n```\n\nState the goal (`write`, `run`, or `debug`) and the target (module path, test file, or test name), plus the repository if ambiguous.\n\n## Worked example\n\n```\nSkill(skill: \"core:testing\")\n\"Write unit tests for the coordinate formatter in apps\u002F\u003CmainApp>.\"\n\n→ Confirms the repo uses Jest, reads src\u002Flib\u002Futils\u002FformatCoordinates.ts,\n  writes src\u002Flib\u002Futils\u002F__tests__\u002FformatCoordinates.test.ts with AAA-style\n  cases for the normal path and the zero-value edge case, then runs\n  `npx jest src\u002Flib\u002Futils\u002F__tests__\u002FformatCoordinates.test.ts`.\n```\n\nYou end up with a passing test file and the runner output showing 2 passed. For `debug`, you get the root cause plus a full-suite re-run to catch regressions.\n\n## Related\n\n`test-coverage` (what needs tests; owns the coverage targets), `code-standards` (naming and quality conventions), `troubleshooting` (the application misbehaving, not the test).\n","# Purpose\n\nWrite tests, run test suites, and debug test failures across the project's repositories (`.claude\u002Fproject.json` → `repos`). Typical layout: a device\u002Fedge repo `\u003Cdevice>` (Python\u002Fpytest), the main app `apps\u002F\u003CmainApp>` (TypeScript\u002FJest + RTL, Playwright E2E), and an infrastructure repo (deployment config via template render + dry-run); placeholders come from `project.json → mainApp` \u002F `device`.\n\n# Rules (never violate)\n\n1. Verify the source module exists (Glob\u002FRead) before writing a test — never test a module you cannot locate.\n2. Always run a test after writing it; never return a test that was not executed and passing.\n3. Test behavior, not implementation; no vacuous assertions (`expect(true).toBe(true)`).\n4. A single test file stays under 200 lines — split by feature area if larger.\n5. Check prerequisites before integration\u002FE2E runs: `make test-all` needs a database, `npm run test:e2e` needs a running app.\n6. Never delete a flaky test or run `npm install`\u002F`pip install` without user approval.\n\n# Resources\n\n- Read `resources\u002Fwriting-test-patterns.md` when writing tests: philosophy (AAA, TDD), the testing pyramid, the framework\u002Flocation\u002Fnaming table, and code patterns for pytest, Jest, RTL, Playwright, and deployment config dry-runs.\n- Read `resources\u002Frunning-and-debugging.md` when running suites or debugging failures: per-repo commands, the 4-step debug procedure, self-check, common mistakes, escalation, and failure modes.\n\n# How to use\n\n## What it does\n\nA hands-on test engineer: writes new tests, runs existing suites, and debugs failures across a multi-repo project — pytest, Jest with React Testing Library, Playwright browser flows, deployment config through template renders and dry-run installs. It picks the right framework, file location, and naming convention for the repo, then runs the test to prove it passes.\n\n## When to use it\n\n- Tests needed for a module you just implemented, or added to existing code.\n- Running a suite for pass\u002Ffail; a failing or flaky test needing its root cause found and fixed.\n\nNot for: finding what lacks tests (`test-coverage`), CI test jobs (the project's infra pack skills), lint\u002Ftype checking (`code-standards`\u002F`code-quality`), or live-app debugging (`troubleshooting`).\n\n## How to invoke\n\n```\nSkill(skill: \"core:testing\")\n```\n\nState the goal (`write`, `run`, or `debug`) and the target (module path, test file, or test name), plus the repository if ambiguous.\n\n## Worked example\n\n```\nSkill(skill: \"core:testing\")\n\"Write unit tests for the coordinate formatter in apps\u002F\u003CmainApp>.\"\n\n→ Confirms the repo uses Jest, reads src\u002Flib\u002Futils\u002FformatCoordinates.ts,\n  writes src\u002Flib\u002Futils\u002F__tests__\u002FformatCoordinates.test.ts with AAA-style\n  cases for the normal path and the zero-value edge case, then runs\n  `npx jest src\u002Flib\u002Futils\u002F__tests__\u002FformatCoordinates.test.ts`.\n```\n\nYou end up with a passing test file and the runner output showing 2 passed. For `debug`, you get the root cause plus a full-suite re-run to catch regressions.\n\n## Related\n\n`test-coverage` (what needs tests; owns the coverage targets), `code-standards` (naming and quality conventions), `troubleshooting` (the application misbehaving, not the test).\n",{"docs":24,"name":5,"color":28,"owner":29,"version":30,"description":7,"allowed-tools":31},{"status":25,"updated":26,"source_sha":27},"reviewed",1785974400000,"86527cbef0ee","teal","swarmery-core","1.0.0","Read, Write, Bash, Grep, Glob","main","2d9e918cc79c9b17b59356780ff0a3da38a3e98a","plugins\u002Fcore\u002Fskills\u002Ftesting",5,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery","https:\u002F\u002Fatretyak1985.github.io\u002Fswarmery\u002F","https:\u002F\u002Fgithub.com\u002Fatretyak1985","2026-11-11 04:29:12",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add atretyak1985\u002Fswarmery --skill testing",{"tool":46,"command":47},"bunx","bunx skills add atretyak1985\u002Fswarmery --skill testing",{"tool":49,"command":50},"pnpm","pnpm dlx skills add atretyak1985\u002Fswarmery --skill testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Ftesting\u002FSKILL.md",true,[54,60],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"resources\u002Frunning-and-debugging.md","REFERENCE","参考文档",5108,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Ftesting\u002Fresources\u002Frunning-and-debugging.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"resources\u002Fwriting-test-patterns.md",5411,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Ftesting\u002Fresources\u002Fwriting-test-patterns.md",[65,72,78,85,92,99],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M78D4T1FFWFW19Z44AHH5BSY","short-desc","Too short.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fshort-desc\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"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":75,"categories":76,"keywords":77,"publishedAt":19},"01M78D4S0TWT42WXFJHC1DBN0R","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M78D4Q14P8DJ4W78N62F3EG2","global-skill","Fixture global skill (minimal user-scope shape, format doc §2.3).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fglobal-skill\u002FSKILL.md",[],[],{"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":19},"01M78D4N1JHGQJQ7EZ43KY5SV3","documented-skill","Fixture skill whose usage guide deliberately omits the Worked example subsection.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fdocumented-skill\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M78D4KVNZ03GBKGDFJZWW5FJ","z","NOT auto-discovered — only skills\u002F is scanned for plugins (§2.2).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fworkflow-skills\u002Fz\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M78D4JMBRZWK51HFE5RZJGHC","y","Plugin skill y from toolpack — stored as \"toolpack:y\".","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fskills\u002Fy\u002FSKILL.md",[],[]]