[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A62M45VVZHFMD8KPWES2FC":3,"skill-same:01M7A62M45VVZHFMD8KPWES2FC":53},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M7A62M45VVZHFMD8KPWES2FC","jest-skill",null,"Generates Jest unit and integration tests in JavaScript or TypeScript. Covers mocking, snapshots, async testing, and React component testing. Use when user mentions \"Jest\", \"describe\u002Fit\u002Fexpect\", \"jest.mock\", \"toMatchSnapshot\". Triggers on: \"Jest\", \"expect().toBe()\", \"jest.mock\",...","MHassan0000\u002FSkills","MHassan0000","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F224296448?v=4","01M7A14DTC1EZCRN04582533RD","Muhammad Hassan Yousaf","01M7A14DV10KTW8NHQTJPD08X0",1,"MIT","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fantigravity skills\u002Fagentic-awesome-skills\u002Fskills\u002Fjest-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jest-skill\ndescription: 'Generates Jest unit and integration tests in JavaScript or TypeScript. Covers mocking, snapshots, async testing, and React component testing. Use when user mentions \"Jest\", \"describe\u002Fit\u002Fexpect\", \"jest.mock\", \"toMatchSnapshot\". Triggers on: \"Jest\", \"expect().toBe()\", \"jest.mock\",...'\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FLambdaTest\u002Fagent-skills\u002Ftree\u002Fmain\u002Fjest-skill\nsource_repo: LambdaTest\u002Fagent-skills\nsource_type: community\ndate_added: 2026-07-01\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FLambdaTest\u002Fagent-skills\u002Fblob\u002Fmain\u002FLICENSE\n---\n\n# Jest Testing Skill\n## When to Use\n\nUse this skill when you need generates Jest unit and integration tests in JavaScript or TypeScript. Covers mocking, snapshots, async testing, and React component testing. Use when user mentions \"Jest\", \"describe\u002Fit\u002Fexpect\", \"jest.mock\", \"toMatchSnapshot\". Triggers on: \"Jest\", \"expect().toBe()\", \"jest.mock\",...\n\n\n## Core Patterns\n\n### Basic Test\n\n```javascript\ndescribe('Calculator', () => {\n  let calc;\n  beforeEach(() => { calc = new Calculator(); });\n\n  test('adds two numbers', () => {\n    expect(calc.add(2, 3)).toBe(5);\n  });\n\n  test('throws on division by zero', () => {\n    expect(() => calc.divide(10, 0)).toThrow('Division by zero');\n  });\n});\n```\n\n### Matchers\n\n```javascript\nexpect(value).toBe(exact);                 \u002F\u002F === strict\nexpect(value).toEqual(object);             \u002F\u002F deep equality\nexpect(value).toBeTruthy();\nexpect(value).toBeNull();\nexpect(value).toBeGreaterThan(3);\nexpect(value).toBeCloseTo(0.3, 5);\nexpect(str).toMatch(\u002Fregex\u002F);\nexpect(arr).toContain(item);\nexpect(arr).toHaveLength(3);\nexpect(obj).toHaveProperty('name');\nexpect(obj).toMatchObject({ name: 'Alice' });\nexpect(() => fn()).toThrow(CustomError);\n```\n\n### Mocking\n\n```javascript\n\u002F\u002F Mock function\nconst mockFn = jest.fn();\nmockFn.mockReturnValue(42);\nmockFn.mockResolvedValue({ data: 'test' });\nexpect(mockFn).toHaveBeenCalledWith('arg1');\nexpect(mockFn).toHaveBeenCalledTimes(1);\n\n\u002F\u002F Mock module\njest.mock('.\u002Fdatabase');\nconst db = require('.\u002Fdatabase');\ndb.getUser.mockResolvedValue({ name: 'Alice' });\n\n\u002F\u002F Mock with implementation\njest.mock('.\u002Fapi', () => ({\n  fetchUsers: jest.fn().mockResolvedValue([{ name: 'Alice' }]),\n}));\n\n\u002F\u002F Spy\nconst spy = jest.spyOn(console, 'log').mockImplementation();\nexpect(spy).toHaveBeenCalledWith('expected');\nspy.mockRestore();\n\n\u002F\u002F Fake timers\njest.useFakeTimers();\njest.advanceTimersByTime(1000);\njest.useRealTimers();\n```\n\n### Async Testing\n\n```javascript\ntest('fetches users', async () => {\n  const users = await fetchUsers();\n  expect(users).toHaveLength(3);\n});\n\ntest('resolves with data', () => {\n  return expect(fetchData()).resolves.toEqual({ data: 'value' });\n});\n\ntest('rejects with error', () => {\n  return expect(fetchBadData()).rejects.toThrow('not found');\n});\n```\n\n### React Component Testing (Testing Library)\n\n```javascript\nimport { render, screen, fireEvent, waitFor } from '@testing-library\u002Freact';\nimport '@testing-library\u002Fjest-dom';\nimport LoginForm from '.\u002FLoginForm';\n\ntest('submits login form', async () => {\n  const onSubmit = jest.fn();\n  render(\u003CLoginForm onSubmit={onSubmit} \u002F>);\n\n  fireEvent.change(screen.getByLabelText('Email'), {\n    target: { value: 'user@test.com' },\n  });\n  fireEvent.change(screen.getByLabelText('Password'), {\n    target: { value: 'password123' },\n  });\n  fireEvent.click(screen.getByRole('button', { name: \u002Flogin\u002Fi }));\n\n  await waitFor(() => {\n    expect(onSubmit).toHaveBeenCalledWith({\n      email: 'user@test.com', password: 'password123',\n    });\n  });\n});\n```\n\n### Snapshot Testing\n\n```javascript\ntest('renders correctly', () => {\n  const tree = renderer.create(\u003CButton label=\"Click\" \u002F>).toJSON();\n  expect(tree).toMatchSnapshot();\n});\n\u002F\u002F Update: jest --updateSnapshot\n```\n\n### Anti-Patterns\n\n| Bad | Good | Why |\n|-----|------|-----|\n| `expect(x === y).toBe(true)` | `expect(x).toBe(y)` | Better errors |\n| No `await` on async | Always `await` | Swallows failures |\n| Snapshot everything | Snapshot UI, assert logic | Snapshot fatigue |\n\n## Quick Reference\n\n| Task | Command |\n|------|---------|\n| Run all | `npx jest` |\n| Watch | `npx jest --watch` |\n| Coverage | `npx jest --coverage` |\n| Update snapshots | `npx jest --updateSnapshot` |\n| Run file | `npx jest tests\u002Fcalc.test.js` |\n| Single test | `test.only('name', () => {})` |\n\n## Deep Patterns\n\nFor production-grade patterns, see `reference\u002Fplaybook.md`:\n\n| Section | What's Inside |\n|---------|--------------|\n| §1 Production Config | Node + React configs, path aliases, coverage thresholds |\n| §2 Mocking Deep Dive | Module\u002Fpartial\u002Fmanual mocks, spies, timers, env vars |\n| §3 Async Patterns | Promises, rejections, event emitters, streams |\n| §4 test.each | Array, tagged template, describe.each for table-driven tests |\n| §5 Custom Matchers | toBeWithinRange, toBeValidEmail, TypeScript declarations |\n| §6 React Testing Library | userEvent, hooks, context providers |\n| §7 Snapshot Testing | Component, inline, property matchers |\n| §8 API Service Testing | Mocked axios, CRUD patterns, error handling |\n| §9 Global Setup | Multi-project config, DB setup\u002Fteardown |\n| §10 CI\u002FCD | GitHub Actions with coverage gates |\n| §11 Debugging Table | 10 common problems with fixes |\n| §12 Best Practices | 15-item production checklist |\n\n## Limitations\n\n- Use this skill only when the task clearly matches its upstream source and local project context.\n- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.\n- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.\n","# Jest Testing Skill\n## When to Use\n\nUse this skill when you need generates Jest unit and integration tests in JavaScript or TypeScript. Covers mocking, snapshots, async testing, and React component testing. Use when user mentions \"Jest\", \"describe\u002Fit\u002Fexpect\", \"jest.mock\", \"toMatchSnapshot\". Triggers on: \"Jest\", \"expect().toBe()\", \"jest.mock\",...\n\n\n## Core Patterns\n\n### Basic Test\n\n```javascript\ndescribe('Calculator', () => {\n  let calc;\n  beforeEach(() => { calc = new Calculator(); });\n\n  test('adds two numbers', () => {\n    expect(calc.add(2, 3)).toBe(5);\n  });\n\n  test('throws on division by zero', () => {\n    expect(() => calc.divide(10, 0)).toThrow('Division by zero');\n  });\n});\n```\n\n### Matchers\n\n```javascript\nexpect(value).toBe(exact);                 \u002F\u002F === strict\nexpect(value).toEqual(object);             \u002F\u002F deep equality\nexpect(value).toBeTruthy();\nexpect(value).toBeNull();\nexpect(value).toBeGreaterThan(3);\nexpect(value).toBeCloseTo(0.3, 5);\nexpect(str).toMatch(\u002Fregex\u002F);\nexpect(arr).toContain(item);\nexpect(arr).toHaveLength(3);\nexpect(obj).toHaveProperty('name');\nexpect(obj).toMatchObject({ name: 'Alice' });\nexpect(() => fn()).toThrow(CustomError);\n```\n\n### Mocking\n\n```javascript\n\u002F\u002F Mock function\nconst mockFn = jest.fn();\nmockFn.mockReturnValue(42);\nmockFn.mockResolvedValue({ data: 'test' });\nexpect(mockFn).toHaveBeenCalledWith('arg1');\nexpect(mockFn).toHaveBeenCalledTimes(1);\n\n\u002F\u002F Mock module\njest.mock('.\u002Fdatabase');\nconst db = require('.\u002Fdatabase');\ndb.getUser.mockResolvedValue({ name: 'Alice' });\n\n\u002F\u002F Mock with implementation\njest.mock('.\u002Fapi', () => ({\n  fetchUsers: jest.fn().mockResolvedValue([{ name: 'Alice' }]),\n}));\n\n\u002F\u002F Spy\nconst spy = jest.spyOn(console, 'log').mockImplementation();\nexpect(spy).toHaveBeenCalledWith('expected');\nspy.mockRestore();\n\n\u002F\u002F Fake timers\njest.useFakeTimers();\njest.advanceTimersByTime(1000);\njest.useRealTimers();\n```\n\n### Async Testing\n\n```javascript\ntest('fetches users', async () => {\n  const users = await fetchUsers();\n  expect(users).toHaveLength(3);\n});\n\ntest('resolves with data', () => {\n  return expect(fetchData()).resolves.toEqual({ data: 'value' });\n});\n\ntest('rejects with error', () => {\n  return expect(fetchBadData()).rejects.toThrow('not found');\n});\n```\n\n### React Component Testing (Testing Library)\n\n```javascript\nimport { render, screen, fireEvent, waitFor } from '@testing-library\u002Freact';\nimport '@testing-library\u002Fjest-dom';\nimport LoginForm from '.\u002FLoginForm';\n\ntest('submits login form', async () => {\n  const onSubmit = jest.fn();\n  render(\u003CLoginForm onSubmit={onSubmit} \u002F>);\n\n  fireEvent.change(screen.getByLabelText('Email'), {\n    target: { value: 'user@test.com' },\n  });\n  fireEvent.change(screen.getByLabelText('Password'), {\n    target: { value: 'password123' },\n  });\n  fireEvent.click(screen.getByRole('button', { name: \u002Flogin\u002Fi }));\n\n  await waitFor(() => {\n    expect(onSubmit).toHaveBeenCalledWith({\n      email: 'user@test.com', password: 'password123',\n    });\n  });\n});\n```\n\n### Snapshot Testing\n\n```javascript\ntest('renders correctly', () => {\n  const tree = renderer.create(\u003CButton label=\"Click\" \u002F>).toJSON();\n  expect(tree).toMatchSnapshot();\n});\n\u002F\u002F Update: jest --updateSnapshot\n```\n\n### Anti-Patterns\n\n| Bad | Good | Why |\n|-----|------|-----|\n| `expect(x === y).toBe(true)` | `expect(x).toBe(y)` | Better errors |\n| No `await` on async | Always `await` | Swallows failures |\n| Snapshot everything | Snapshot UI, assert logic | Snapshot fatigue |\n\n## Quick Reference\n\n| Task | Command |\n|------|---------|\n| Run all | `npx jest` |\n| Watch | `npx jest --watch` |\n| Coverage | `npx jest --coverage` |\n| Update snapshots | `npx jest --updateSnapshot` |\n| Run file | `npx jest tests\u002Fcalc.test.js` |\n| Single test | `test.only('name', () => {})` |\n\n## Deep Patterns\n\nFor production-grade patterns, see `reference\u002Fplaybook.md`:\n\n| Section | What's Inside |\n|---------|--------------|\n| §1 Production Config | Node + React configs, path aliases, coverage thresholds |\n| §2 Mocking Deep Dive | Module\u002Fpartial\u002Fmanual mocks, spies, timers, env vars |\n| §3 Async Patterns | Promises, rejections, event emitters, streams |\n| §4 test.each | Array, tagged template, describe.each for table-driven tests |\n| §5 Custom Matchers | toBeWithinRange, toBeValidEmail, TypeScript declarations |\n| §6 React Testing Library | userEvent, hooks, context providers |\n| §7 Snapshot Testing | Component, inline, property matchers |\n| §8 API Service Testing | Mocked axios, CRUD patterns, error handling |\n| §9 Global Setup | Multi-project config, DB setup\u002Fteardown |\n| §10 CI\u002FCD | GitHub Actions with coverage gates |\n| §11 Debugging Table | 10 common problems with fixes |\n| §12 Best Practices | 15-item production checklist |\n\n## Limitations\n\n- Use this skill only when the task clearly matches its upstream source and local project context.\n- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.\n- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.\n",{"name":5,"risk":24,"source":25,"license":15,"date_added":26,"description":7,"source_repo":27,"source_type":28,"license_source":29},"critical","https:\u002F\u002Fgithub.com\u002FLambdaTest\u002Fagent-skills\u002Ftree\u002Fmain\u002Fjest-skill",1782864000000,"LambdaTest\u002Fagent-skills","community","https:\u002F\u002Fgithub.com\u002FLambdaTest\u002Fagent-skills\u002Fblob\u002Fmain\u002FLICENSE","main","a4404a75dc81d6b7e58c5906b6aaffbcb5e84747","Claude\u002Fantigravity skills\u002Fagentic-awesome-skills\u002Fskills\u002Fjest-skill",0,"https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills","https:\u002F\u002Fgithub.com\u002FMHassan0000","https:\u002F\u002Fhassanyousaf.vercel.app","Full Stack Developer building web apps, SaaS, AI systems, and automations. Passionate about clean code, UI\u002FUX, backend systems, and turning ideas into products.","2026-08-07 20:42:05",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add MHassan0000\u002FSkills --skill jest-skill",{"tool":45,"command":46},"bunx","bunx skills add MHassan0000\u002FSkills --skill jest-skill",{"tool":48,"command":49},"pnpm","pnpm dlx skills add MHassan0000\u002FSkills --skill jest-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fantigravity skills\u002Fagentic-awesome-skills\u002Fskills\u002Fjest-skill\u002FSKILL.md",true,[],[54,61,68,75,84,92],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7AGBX58S04DX8DKKME8N311","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7AGBREE890608Z7YDMAKH27","stop-slop","Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells and produce more human-like writing.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Fstop-slop\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7AGAS972A2AN7Q5EW8HEAXK","ogilvy-copywriting","Apply David Ogilvy's advertising principles when writing or reviewing copy, headlines, product descriptions, landing pages, ads, emails, or any persuasive text. Use when the goal is copy that sells, not copy that wins awards. Covers positioning, headlines, promises, brand voice, long-form copy, and visual logic. Source: How to Create Advertising That Sells (1972) + Ogilvy on Advertising.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Fogilvy\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AGAF12803G5JPVMK79AYJB","frontend-design","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Ffrontend-design\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7AG88WWVWCGJY9WA9CH7EY4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fobra superpower skills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fobra superpower skills\u002Fwebapp-testing\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":79,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7AG7ZTNV7XQCWDQ9674FBYB","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fobra superpower skills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fobra superpower skills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[]]