[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7516WFQMKD2NGFMDNFG6C4A":3,"skill-same:01M7516WFQMKD2NGFMDNFG6C4A":44},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7516WFQMKD2NGFMDNFG6C4A","vitest",null,"Writes fast, isolated unit and integration tests with Vitest. Use when each test must run on file-save without shared state — `vi.mock()` for external deps, `vi.spyOn()` for call monitoring, AAA structure, and edge-case coverage for null\u002Fundefined\u002Fboundary inputs.","chrisbarrantes\u002Fmandrel","chrisbarrantes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4534419?v=4","01M7511VXT2H7WE09JE4ZMBESG","Chris Barrantes","01M7511VYGPFHQCE9HNVKES0QN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Fvitest\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: vitest\ndescription:\n  Writes fast, isolated unit and integration tests with Vitest. Use when each\n  test must run on file-save without shared state — `vi.mock()` for external\n  deps, `vi.spyOn()` for call monitoring, AAA structure, and edge-case\n  coverage for null\u002Fundefined\u002Fboundary inputs.\nvendor: vitest\n---\n\n# Skill: Vitest\n\n## Policy Capsule\n\n- Keep each test independent — never share mutable state between tests; reset mocks in `afterEach`.\n- Mock external dependencies with `vi.mock()`; use `vi.spyOn()` only to observe call shape, not to replace logic.\n- Structure tests as Arrange \u002F Act \u002F Assert — do not interleave the three phases.\n- Use descriptive titles in the `describe('Component', () => { it('should [action] when [condition]') })` form.\n- Cover error paths, null\u002Fundefined inputs, and boundary conditions, not just the happy path.\n- Use snapshots only for large, stable data structures; avoid them for frequently changing UI to prevent snapshot fatigue.\n- Aim for 80%+ coverage on business logic and edge cases; audit with `vitest --coverage`.\n- Test observable behavior, not internal implementation details; refactors should not require rewriting passing tests.\n\nGuidelines for writing fast, reliable unit and integration tests.\n\n## 1. Core Principles\n\n- **Speed:** Tests should be fast enough to run on every file save.\n- **Isolation:** Each test must be independent. Avoid shared state between\n  tests.\n- **Confidence:** Tests should verify behavior, not implementation details.\n\n## 2. Technical Standards\n\n- **Mocking:** Use `vi.mock()` for external dependencies (APIs, network calls)\n  and `vi.spyOn()` for monitoring function calls.\n- **Snapshot Testing:** Use snapshots for large, stable data structures, but\n  avoid them for frequently changing UI components to prevent \"snapshot\n  fatigue.\"\n- **Coverage:** Aim for 80%+ coverage on business logic and edge cases. Use\n  `vitest --coverage` for auditing.\n\n## 3. Best Practices\n\n- **Descriptive Titles:** Use the\n  `describe('Component\u002FUtility', () => { it('should [action] when [condition]') })`\n  pattern.\n- **Arrange-Act-Assert (AAA):** Structure tests clearly into setup (Arrange),\n  execution (Act), and verification (Assert) phases.\n- **Edge Cases:** Always include tests for error states, null\u002Fundefined inputs,\n  and boundary conditions.\n","# Skill: Vitest\n\n## Policy Capsule\n\n- Keep each test independent — never share mutable state between tests; reset mocks in `afterEach`.\n- Mock external dependencies with `vi.mock()`; use `vi.spyOn()` only to observe call shape, not to replace logic.\n- Structure tests as Arrange \u002F Act \u002F Assert — do not interleave the three phases.\n- Use descriptive titles in the `describe('Component', () => { it('should [action] when [condition]') })` form.\n- Cover error paths, null\u002Fundefined inputs, and boundary conditions, not just the happy path.\n- Use snapshots only for large, stable data structures; avoid them for frequently changing UI to prevent snapshot fatigue.\n- Aim for 80%+ coverage on business logic and edge cases; audit with `vitest --coverage`.\n- Test observable behavior, not internal implementation details; refactors should not require rewriting passing tests.\n\nGuidelines for writing fast, reliable unit and integration tests.\n\n## 1. Core Principles\n\n- **Speed:** Tests should be fast enough to run on every file save.\n- **Isolation:** Each test must be independent. Avoid shared state between\n  tests.\n- **Confidence:** Tests should verify behavior, not implementation details.\n\n## 2. Technical Standards\n\n- **Mocking:** Use `vi.mock()` for external dependencies (APIs, network calls)\n  and `vi.spyOn()` for monitoring function calls.\n- **Snapshot Testing:** Use snapshots for large, stable data structures, but\n  avoid them for frequently changing UI components to prevent \"snapshot\n  fatigue.\"\n- **Coverage:** Aim for 80%+ coverage on business logic and edge cases. Use\n  `vitest --coverage` for auditing.\n\n## 3. Best Practices\n\n- **Descriptive Titles:** Use the\n  `describe('Component\u002FUtility', () => { it('should [action] when [condition]') })`\n  pattern.\n- **Arrange-Act-Assert (AAA):** Structure tests clearly into setup (Arrange),\n  execution (Act), and verification (Assert) phases.\n- **Edge Cases:** Always include tests for error states, null\u002Fundefined inputs,\n  and boundary conditions.\n",{"name":5,"vendor":5,"description":7},"main","22b1847659cc2a98f4fb8c24858f2199d91fda66",".agents\u002Fskills\u002Fstack\u002Fqa\u002Fvitest","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes","2026-05-27 08:16:47",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add chrisbarrantes\u002Fmandrel --skill vitest",{"tool":36,"command":37},"bunx","bunx skills add chrisbarrantes\u002Fmandrel --skill vitest",{"tool":39,"command":40},"pnpm","pnpm dlx skills add chrisbarrantes\u002Fmandrel --skill vitest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Fvitest\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M75171YZD373TXY5ZWJNXGS9","no-capsule-skill","Fixture without a Policy Capsule section.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002Ftests\u002Forchestration\u002Ffixtures\u002Fskill-capsule\u002Fno-capsule-skill\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7516ZA88ESAAY3JWXBNA56K","backend-security-patterns","Combined backend protocols for authentication (Clerk JWT verification) and PII-safe observability. Use when handling auth on the server, verifying Clerk webhooks via `svix`, scoping metadata via `publicMetadata`\u002F `privateMetadata`, or sanitizing logs to keep emails, tokens, and request bodies out of telemetry.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fsecurity\u002Fbackend-security-patterns\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7516T8FX7B0B0D510EE2FAP","playwright","Robust E2E browser testing with Playwright. Use when writing browser-driven tests — leverage auto-waiting (no `waitForTimeout`), prefer user-visible locators (`getByRole`, `getByText`, `getByLabel`) over CSS\u002FXPath, reuse `storageState` for auth, and enable trace-on-first-retry for CI debugging.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Fplaywright\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7516PHY868BJXHHZJ0FRYSX","playwright-bdd","Wires Gherkin `.feature` files to Playwright via the `playwright-bdd` library. Use when running BDD scenarios on a Playwright runtime — pairs with the `gherkin-authoring` skill (scenario prose) and the `playwright` skill (browser conventions). Drives execution by tag expression with trace-first debugging and Playwright-native sharding.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Fplaywright-bdd\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7516KEGSBBFJXRZWYBKYM4P","lighthouse-baseline","Codifies the capture-and-check baseline pattern for long-running quality signals (Lighthouse scores, bundle size, p95 latency, runtime memory). Use when wiring a new metric that needs a baseline file, paired :capture \u002F :check npm scripts, a tolerance-bounded gate, and a weekly refresh cadence — the goal is a hard CI signal that ratchets only with intent.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Flighthouse-baseline\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7516F8N9CS5AP3BT958B62P","gherkin-authoring","Authors `.feature` files that stay business-readable, translate cleanly from PRD acceptance criteria, and reuse a shared step-definition library. Use when writing or editing scenarios — the SSOT enforcement rules live in `.agents\u002Frules\u002Fgherkin-standards.md`; this skill shows authors how to apply them.","https:\u002F\u002Fgithub.com\u002Fchrisbarrantes\u002Fmandrel\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstack\u002Fqa\u002Fgherkin-authoring\u002FSKILL.md",[],[]]