[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DMCM3H21APEZ3KGKQ2PX5T":3,"skill-same:01M7DMCM3H21APEZ3KGKQ2PX5T":51},{"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":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M7DMCM3H21APEZ3KGKQ2PX5T","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\",...","Hazek-dc\u002FPresensiGuru_FaceNet_EMAR","Hazek-dc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F75208960?v=4","01M7DEQV5B4YGS86A81DYH81DR","Hazek","01M7DEQV5XP4TM0C6NTHXCXCHR",1,"MIT","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\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: unknown\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},"unknown","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","b1e4ffadb4f933bbbcaa03a83f8b9929171ac28b",".agents\u002Fskills\u002Fjest-skill",0,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR","https:\u002F\u002Fgithub.com\u002FHazek-dc","2026-10-22 08:36:44",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill jest-skill",{"tool":43,"command":44},"bunx","bunx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill jest-skill",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill jest-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fjest-skill\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"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},"01M7DS6GGYRZAYD33PFPS8Z2T3","testing-best-practices","Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftesting-best-practices\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},"01M7DS6BC3AW7HTPRHE2TTVKWM","tailwindcss-development","Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex\u002Fgrid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3\u002Fv4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML\u002FCSS component, CSS file audits, build tool configuration, and vanilla CSS.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftailwindcss-development\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},"01M7DS66GE6B11MYJDVC74HXM4","laravel-best-practices","Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Flaravel-best-practices\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},"01M7DS5ZW717DMS6P1E90AQCKV","infer-conventions","Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai\u002Frules`, resolve mixed or conflicting patterns (e.g. \"are we using Form Requests or inline validation?\"), or onboard agents and teammates to \"how we do things here\". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai\u002Frules` files by hand.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finfer-conventions\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},"01M7DS5W12RGCVJTFQJ1N0GB8E","inertia-react-development","Develops Inertia.js v2 React client-side applications. Activates when creating React pages, forms, or navigation; using \u003CLink>, \u003CForm>, useForm, or router; working with deferred props, prefetching, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finertia-react-development\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7DS5PVDPMPCWSK2RXPDC9BB","deploying-to-cloud","Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to Cloud, create or manage applications, environments, databases, caches, object storage, queues, domains, instances, background processes, secrets, compute, scheduled tasks, or Laravel Cloud infrastructure; or check billing, usage, or spend. Triggers on deployment, shipping, Cloud management, environment setup, database provisioning, billing or usage queries, the `cloud` CLI, and Laravel Cloud deployment troubleshooting.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Fdeploying-to-cloud\u002FSKILL.md",[],[]]