[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D8QYAVP9A9ZF9X6XF3GTC3":3,"skill-same:01M7D8QYAVP9A9ZF9X6XF3GTC3":80},{"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":58,"commitSha":59,"skillDirectory":60,"forksCount":14,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M7D8QYAVP9A9ZF9X6XF3GTC3","Jest Mocking Patterns",null,"Teaches the agent the right way to mock in Jest — jest.fn, mockImplementation, mockResolvedValue, jest.mock factories, spyOn with restore, and isolating modules like axios.","GrupoANDevelopment-m\u002Falberto-ai","GrupoANDevelopment-m","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257455179?v=4","01M7D69X2N2KEVN0SJF6WGM6SH","Antônio  Ndombe","01M7D69X3P5JTT8H8S904N3888",0,"MIT","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fjest-mocking-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: Jest Mocking Patterns\ndescription: Teaches the agent the right way to mock in Jest — jest.fn, mockImplementation, mockResolvedValue, jest.mock factories, spyOn with restore, and isolating modules like axios.\nversion: 1.0.0\nauthor: thetestingacademy\nlicense: MIT\ntags: [jest, mocking, jest-fn, spyon, jest-mock, axios, mockresolvedvalue, unit-testing]\ntestingTypes: [unit, integration]\nframeworks: [jest]\nlanguages: [typescript, javascript]\ndomains: [web, api]\nagents: [claude-code, cursor, github-copilot, windsurf, codex, aider, continue, cline, zed, bolt, gemini-cli, amp]\n---\n\n# Jest Mocking Patterns\n\nThis skill makes the agent mock dependencies in Jest deliberately and reversibly: stubbing functions with `jest.fn`, controlling return values with `mockReturnValue`\u002F`mockResolvedValue`, replacing whole modules with `jest.mock` factories, and spying on real implementations with `jest.spyOn` (always restored). The guiding rule: **mock the boundary, not the unit under test**, and always reset state between tests so mocks never leak.\n\nUse this skill when the agent needs to isolate code from the network, the clock, the filesystem, a database client, or any third-party module (axios, fs, a payment SDK).\n\n## Core Principles\n\n1. **Mock at the boundary.** Mock network\u002FDB\u002F3rd-party clients, not the function you are testing. If you mock the thing under test, the test proves nothing.\n2. **Reset mocks between tests.** Configure `clearMocks: true` (or call `jest.clearAllMocks()` in `beforeEach`) so call counts and implementations never bleed across tests.\n3. **`jest.mock` is hoisted.** Calls to `jest.mock('module', factory)` are lifted above imports. The factory cannot reference outer variables unless they are prefixed `mock`.\n4. **Prefer `spyOn` + `mockRestore` over `jest.mock`** when you only need to override one method and want the real implementation back afterward.\n5. **Type your mocks.** Use `jest.mocked()` (or `as jest.Mock`) so the mock API is type-checked and autocompletes.\n6. **Assert behavior, then interactions.** Check the result first; use `toHaveBeenCalledWith` to verify the boundary was called correctly.\n\n## Workflow \u002F Patterns\n\n### Pattern 1 — `jest.fn` and controlling return values\n\n`jest.fn()` is a recording stub. Drive it with `mockReturnValue`, `mockResolvedValue`, `mockRejectedValue`, or queue per-call values with `mockReturnValueOnce`.\n\n```typescript\ntest('jest.fn return value control', () => {\n  const calc = jest.fn();\n\n  calc.mockReturnValue(10); \u002F\u002F default for every call\n  calc.mockReturnValueOnce(1).mockReturnValueOnce(2); \u002F\u002F queued, then falls back\n\n  expect(calc()).toBe(1);\n  expect(calc()).toBe(2);\n  expect(calc()).toBe(10);\n  expect(calc).toHaveBeenCalledTimes(3);\n});\n\ntest('async return values', async () => {\n  const fetchUser = jest.fn\u003CPromise\u003C{ id: number }>, [number]>();\n  fetchUser.mockResolvedValue({ id: 1 });\n\n  await expect(fetchUser(1)).resolves.toEqual({ id: 1 });\n\n  fetchUser.mockRejectedValueOnce(new Error('not found'));\n  await expect(fetchUser(99)).rejects.toThrow('not found');\n});\n```\n\n### Pattern 2 — `mockImplementation` for logic-bearing stubs\n\nWhen the return depends on the input, supply a function. Use `mockImplementationOnce` for sequenced behavior.\n\n```typescript\ntest('mockImplementation reacts to args', () => {\n  const discount = jest.fn((price: number, isMember: boolean) =>\n    isMember ? price * 0.9 : price,\n  );\n\n  expect(discount(100, true)).toBe(90);\n  expect(discount(100, false)).toBe(100);\n  expect(discount).toHaveBeenLastCalledWith(100, false);\n});\n\ntest('retry then succeed via mockImplementationOnce', async () => {\n  const send = jest\n    .fn\u003CPromise\u003Cstring>, []>()\n    .mockImplementationOnce(() => Promise.reject(new Error('503')))\n    .mockImplementationOnce(() => Promise.resolve('ok'));\n\n  await expect(send()).rejects.toThrow('503');\n  await expect(send()).resolves.toBe('ok');\n});\n```\n\n### Pattern 3 — `jest.mock` with a factory (the hoisting rule)\n\n`jest.mock` replaces an entire module. Because it is hoisted above imports, any variable the factory references must be named with a `mock` prefix.\n\n```typescript\n\u002F\u002F notifier.ts\nimport { sendSms } from '.\u002Fsms-client';\nexport async function notify(phone: string, msg: string) {\n  await sendSms(phone, msg);\n  return `sent to ${phone}`;\n}\n\n\u002F\u002F notifier.test.ts\nimport { notify } from '.\u002Fnotifier';\nimport { sendSms } from '.\u002Fsms-client';\n\n\u002F\u002F Hoisted: the factory may only use `mock`-prefixed outer vars.\nconst mockSend = jest.fn();\njest.mock('.\u002Fsms-client', () => ({\n  sendSms: (...args: unknown[]) => mockSend(...args),\n}));\n\nbeforeEach(() => jest.clearAllMocks());\n\ntest('notify calls the SMS client correctly', async () => {\n  mockSend.mockResolvedValue(undefined);\n\n  const result = await notify('+15551234567', 'Hello');\n\n  expect(result).toBe('sent to +15551234567');\n  expect(sendSms).toHaveBeenCalledWith('+15551234567', 'Hello');\n  expect(sendSms).toHaveBeenCalledTimes(1);\n});\n```\n\n### Pattern 4 — `jest.spyOn` with restore (override one method, keep the rest)\n\n`spyOn` wraps a real method so you can assert on it and optionally stub it. Always restore — `restoreMocks: true` in config, or `mockRestore()`.\n\n```typescript\nimport * as mathUtils from '.\u002Fmath-utils';\n\nafterEach(() => jest.restoreAllMocks());\n\ntest('spy that still calls through', () => {\n  const spy = jest.spyOn(mathUtils, 'add'); \u002F\u002F real impl runs\n\n  const sum = mathUtils.add(2, 3);\n\n  expect(sum).toBe(5);\n  expect(spy).toHaveBeenCalledWith(2, 3);\n});\n\ntest('spy that replaces the implementation', () => {\n  jest.spyOn(mathUtils, 'add').mockReturnValue(42);\n  expect(mathUtils.add(2, 3)).toBe(42); \u002F\u002F stubbed\n  \u002F\u002F restoreAllMocks() puts the real add back after this test.\n});\n\ntest('spy on Date.now for deterministic time', () => {\n  jest.spyOn(Date, 'now').mockReturnValue(1_700_000_000_000);\n  expect(Date.now()).toBe(1_700_000_000_000);\n});\n```\n\n### Pattern 5 — Mocking axios (auto-mock + typed handle)\n\nA real-world boundary. `jest.mock('axios')` auto-mocks the module; `jest.mocked` gives a typed handle.\n\n```typescript\n\u002F\u002F user-service.ts\nimport axios from 'axios';\nexport async function getUser(id: number) {\n  const { data } = await axios.get(`\u002Fapi\u002Fusers\u002F${id}`);\n  return data;\n}\n\n\u002F\u002F user-service.test.ts\nimport axios from 'axios';\nimport { getUser } from '.\u002Fuser-service';\n\njest.mock('axios');\nconst mockedAxios = jest.mocked(axios);\n\nbeforeEach(() => jest.clearAllMocks());\n\ntest('resolves the user from the API', async () => {\n  mockedAxios.get.mockResolvedValue({ data: { id: 1, name: 'Ada' } });\n\n  const user = await getUser(1);\n\n  expect(user).toEqual({ id: 1, name: 'Ada' });\n  expect(mockedAxios.get).toHaveBeenCalledWith('\u002Fapi\u002Fusers\u002F1');\n});\n\ntest('propagates a network error', async () => {\n  mockedAxios.get.mockRejectedValueOnce(new Error('Network Error'));\n  await expect(getUser(1)).rejects.toThrow('Network Error');\n});\n```\n\n### Pattern 6 — Partial module mock with `requireActual`\n\nKeep most of a module real, override one export. Essential when a util module mixes pure helpers with a side-effecting one.\n\n```typescript\njest.mock('.\u002Fconfig', () => ({\n  ...jest.requireActual('.\u002Fconfig'),\n  isProduction: jest.fn().mockReturnValue(false), \u002F\u002F override only this\n}));\n```\n\n### Pattern 7 — Fake timers for debounce\u002Fthrottle\u002FsetTimeout code\n\n```typescript\ntest('debounced save fires once after the delay', () => {\n  jest.useFakeTimers();\n  const save = jest.fn();\n  const debounced = makeDebounced(save, 300);\n\n  debounced();\n  debounced();\n  jest.advanceTimersByTime(300);\n\n  expect(save).toHaveBeenCalledTimes(1);\n  jest.useRealTimers();\n});\n```\n\n## Best Practices\n\n1. **Set `clearMocks: true` and `restoreMocks: true`** in `jest.config` so state never leaks between tests and spies always restore.\n2. **Prefix factory-referenced variables with `mock`** to satisfy Jest's hoisting rule; otherwise the factory throws a reference error.\n3. **Use `jest.mocked(x)`** for typed access to mocked modules instead of unsafe `as any` casts.\n4. **Reach for `spyOn` first** when overriding a single method — it is reversible and keeps the rest real.\n5. **Assert the result before the interaction.** Confirm the output, then `toHaveBeenCalledWith` to verify how the boundary was invoked.\n6. **Use `mockResolvedValueOnce`\u002F`mockRejectedValueOnce`** to script retry and error paths precisely.\n7. **Use fake timers** for time-dependent code instead of real `setTimeout` waits.\n\n## Anti-Patterns\n\n1. **Mocking the function under test.** The test then verifies the mock, not the code. Mock the dependency it calls.\n2. **No `clearAllMocks`\u002F`clearMocks`.** Call counts and implementations bleed across tests, producing order-dependent flakiness.\n3. **Referencing a non-`mock` outer variable in a `jest.mock` factory.** Hoisting moves the factory above the declaration -> ReferenceError.\n4. **`spyOn` without restore.** The stub leaks into later tests in the same file.\n5. **Over-mocking** — stubbing every collaborator until the test no longer exercises real logic. Mock only the I\u002FO boundary.\n6. **Asserting only `toHaveBeenCalled()`** without checking arguments or the actual result — weak tests that pass on wrong calls.\n7. **`as any` on mocked modules**, discarding the type safety `jest.mocked` provides.\n\n## When to Trigger This Skill\n\n- \"Mock axios \u002F fetch \u002F an HTTP client in my Jest test\"\n- \"How do I use `jest.mock` with a factory?\"\n- \"`mockResolvedValue` \u002F `mockReturnValueOnce` — how do these work?\"\n- \"Spy on a method but keep the real implementation\"\n- \"My Jest mock leaks into the next test\"\n- \"ReferenceError: cannot access X before initialization in `jest.mock`\"\n- \"Mock only one export from a module\" \u002F \"partial mock\"\n- \"Test debounced \u002F setTimeout code with fake timers\"\n","# Jest Mocking Patterns\n\nThis skill makes the agent mock dependencies in Jest deliberately and reversibly: stubbing functions with `jest.fn`, controlling return values with `mockReturnValue`\u002F`mockResolvedValue`, replacing whole modules with `jest.mock` factories, and spying on real implementations with `jest.spyOn` (always restored). The guiding rule: **mock the boundary, not the unit under test**, and always reset state between tests so mocks never leak.\n\nUse this skill when the agent needs to isolate code from the network, the clock, the filesystem, a database client, or any third-party module (axios, fs, a payment SDK).\n\n## Core Principles\n\n1. **Mock at the boundary.** Mock network\u002FDB\u002F3rd-party clients, not the function you are testing. If you mock the thing under test, the test proves nothing.\n2. **Reset mocks between tests.** Configure `clearMocks: true` (or call `jest.clearAllMocks()` in `beforeEach`) so call counts and implementations never bleed across tests.\n3. **`jest.mock` is hoisted.** Calls to `jest.mock('module', factory)` are lifted above imports. The factory cannot reference outer variables unless they are prefixed `mock`.\n4. **Prefer `spyOn` + `mockRestore` over `jest.mock`** when you only need to override one method and want the real implementation back afterward.\n5. **Type your mocks.** Use `jest.mocked()` (or `as jest.Mock`) so the mock API is type-checked and autocompletes.\n6. **Assert behavior, then interactions.** Check the result first; use `toHaveBeenCalledWith` to verify the boundary was called correctly.\n\n## Workflow \u002F Patterns\n\n### Pattern 1 — `jest.fn` and controlling return values\n\n`jest.fn()` is a recording stub. Drive it with `mockReturnValue`, `mockResolvedValue`, `mockRejectedValue`, or queue per-call values with `mockReturnValueOnce`.\n\n```typescript\ntest('jest.fn return value control', () => {\n  const calc = jest.fn();\n\n  calc.mockReturnValue(10); \u002F\u002F default for every call\n  calc.mockReturnValueOnce(1).mockReturnValueOnce(2); \u002F\u002F queued, then falls back\n\n  expect(calc()).toBe(1);\n  expect(calc()).toBe(2);\n  expect(calc()).toBe(10);\n  expect(calc).toHaveBeenCalledTimes(3);\n});\n\ntest('async return values', async () => {\n  const fetchUser = jest.fn\u003CPromise\u003C{ id: number }>, [number]>();\n  fetchUser.mockResolvedValue({ id: 1 });\n\n  await expect(fetchUser(1)).resolves.toEqual({ id: 1 });\n\n  fetchUser.mockRejectedValueOnce(new Error('not found'));\n  await expect(fetchUser(99)).rejects.toThrow('not found');\n});\n```\n\n### Pattern 2 — `mockImplementation` for logic-bearing stubs\n\nWhen the return depends on the input, supply a function. Use `mockImplementationOnce` for sequenced behavior.\n\n```typescript\ntest('mockImplementation reacts to args', () => {\n  const discount = jest.fn((price: number, isMember: boolean) =>\n    isMember ? price * 0.9 : price,\n  );\n\n  expect(discount(100, true)).toBe(90);\n  expect(discount(100, false)).toBe(100);\n  expect(discount).toHaveBeenLastCalledWith(100, false);\n});\n\ntest('retry then succeed via mockImplementationOnce', async () => {\n  const send = jest\n    .fn\u003CPromise\u003Cstring>, []>()\n    .mockImplementationOnce(() => Promise.reject(new Error('503')))\n    .mockImplementationOnce(() => Promise.resolve('ok'));\n\n  await expect(send()).rejects.toThrow('503');\n  await expect(send()).resolves.toBe('ok');\n});\n```\n\n### Pattern 3 — `jest.mock` with a factory (the hoisting rule)\n\n`jest.mock` replaces an entire module. Because it is hoisted above imports, any variable the factory references must be named with a `mock` prefix.\n\n```typescript\n\u002F\u002F notifier.ts\nimport { sendSms } from '.\u002Fsms-client';\nexport async function notify(phone: string, msg: string) {\n  await sendSms(phone, msg);\n  return `sent to ${phone}`;\n}\n\n\u002F\u002F notifier.test.ts\nimport { notify } from '.\u002Fnotifier';\nimport { sendSms } from '.\u002Fsms-client';\n\n\u002F\u002F Hoisted: the factory may only use `mock`-prefixed outer vars.\nconst mockSend = jest.fn();\njest.mock('.\u002Fsms-client', () => ({\n  sendSms: (...args: unknown[]) => mockSend(...args),\n}));\n\nbeforeEach(() => jest.clearAllMocks());\n\ntest('notify calls the SMS client correctly', async () => {\n  mockSend.mockResolvedValue(undefined);\n\n  const result = await notify('+15551234567', 'Hello');\n\n  expect(result).toBe('sent to +15551234567');\n  expect(sendSms).toHaveBeenCalledWith('+15551234567', 'Hello');\n  expect(sendSms).toHaveBeenCalledTimes(1);\n});\n```\n\n### Pattern 4 — `jest.spyOn` with restore (override one method, keep the rest)\n\n`spyOn` wraps a real method so you can assert on it and optionally stub it. Always restore — `restoreMocks: true` in config, or `mockRestore()`.\n\n```typescript\nimport * as mathUtils from '.\u002Fmath-utils';\n\nafterEach(() => jest.restoreAllMocks());\n\ntest('spy that still calls through', () => {\n  const spy = jest.spyOn(mathUtils, 'add'); \u002F\u002F real impl runs\n\n  const sum = mathUtils.add(2, 3);\n\n  expect(sum).toBe(5);\n  expect(spy).toHaveBeenCalledWith(2, 3);\n});\n\ntest('spy that replaces the implementation', () => {\n  jest.spyOn(mathUtils, 'add').mockReturnValue(42);\n  expect(mathUtils.add(2, 3)).toBe(42); \u002F\u002F stubbed\n  \u002F\u002F restoreAllMocks() puts the real add back after this test.\n});\n\ntest('spy on Date.now for deterministic time', () => {\n  jest.spyOn(Date, 'now').mockReturnValue(1_700_000_000_000);\n  expect(Date.now()).toBe(1_700_000_000_000);\n});\n```\n\n### Pattern 5 — Mocking axios (auto-mock + typed handle)\n\nA real-world boundary. `jest.mock('axios')` auto-mocks the module; `jest.mocked` gives a typed handle.\n\n```typescript\n\u002F\u002F user-service.ts\nimport axios from 'axios';\nexport async function getUser(id: number) {\n  const { data } = await axios.get(`\u002Fapi\u002Fusers\u002F${id}`);\n  return data;\n}\n\n\u002F\u002F user-service.test.ts\nimport axios from 'axios';\nimport { getUser } from '.\u002Fuser-service';\n\njest.mock('axios');\nconst mockedAxios = jest.mocked(axios);\n\nbeforeEach(() => jest.clearAllMocks());\n\ntest('resolves the user from the API', async () => {\n  mockedAxios.get.mockResolvedValue({ data: { id: 1, name: 'Ada' } });\n\n  const user = await getUser(1);\n\n  expect(user).toEqual({ id: 1, name: 'Ada' });\n  expect(mockedAxios.get).toHaveBeenCalledWith('\u002Fapi\u002Fusers\u002F1');\n});\n\ntest('propagates a network error', async () => {\n  mockedAxios.get.mockRejectedValueOnce(new Error('Network Error'));\n  await expect(getUser(1)).rejects.toThrow('Network Error');\n});\n```\n\n### Pattern 6 — Partial module mock with `requireActual`\n\nKeep most of a module real, override one export. Essential when a util module mixes pure helpers with a side-effecting one.\n\n```typescript\njest.mock('.\u002Fconfig', () => ({\n  ...jest.requireActual('.\u002Fconfig'),\n  isProduction: jest.fn().mockReturnValue(false), \u002F\u002F override only this\n}));\n```\n\n### Pattern 7 — Fake timers for debounce\u002Fthrottle\u002FsetTimeout code\n\n```typescript\ntest('debounced save fires once after the delay', () => {\n  jest.useFakeTimers();\n  const save = jest.fn();\n  const debounced = makeDebounced(save, 300);\n\n  debounced();\n  debounced();\n  jest.advanceTimersByTime(300);\n\n  expect(save).toHaveBeenCalledTimes(1);\n  jest.useRealTimers();\n});\n```\n\n## Best Practices\n\n1. **Set `clearMocks: true` and `restoreMocks: true`** in `jest.config` so state never leaks between tests and spies always restore.\n2. **Prefix factory-referenced variables with `mock`** to satisfy Jest's hoisting rule; otherwise the factory throws a reference error.\n3. **Use `jest.mocked(x)`** for typed access to mocked modules instead of unsafe `as any` casts.\n4. **Reach for `spyOn` first** when overriding a single method — it is reversible and keeps the rest real.\n5. **Assert the result before the interaction.** Confirm the output, then `toHaveBeenCalledWith` to verify how the boundary was invoked.\n6. **Use `mockResolvedValueOnce`\u002F`mockRejectedValueOnce`** to script retry and error paths precisely.\n7. **Use fake timers** for time-dependent code instead of real `setTimeout` waits.\n\n## Anti-Patterns\n\n1. **Mocking the function under test.** The test then verifies the mock, not the code. Mock the dependency it calls.\n2. **No `clearAllMocks`\u002F`clearMocks`.** Call counts and implementations bleed across tests, producing order-dependent flakiness.\n3. **Referencing a non-`mock` outer variable in a `jest.mock` factory.** Hoisting moves the factory above the declaration -> ReferenceError.\n4. **`spyOn` without restore.** The stub leaks into later tests in the same file.\n5. **Over-mocking** — stubbing every collaborator until the test no longer exercises real logic. Mock only the I\u002FO boundary.\n6. **Asserting only `toHaveBeenCalled()`** without checking arguments or the actual result — weak tests that pass on wrong calls.\n7. **`as any` on mocked modules**, discarding the type safety `jest.mocked` provides.\n\n## When to Trigger This Skill\n\n- \"Mock axios \u002F fetch \u002F an HTTP client in my Jest test\"\n- \"How do I use `jest.mock` with a factory?\"\n- \"`mockResolvedValue` \u002F `mockReturnValueOnce` — how do these work?\"\n- \"Spy on a method but keep the real implementation\"\n- \"My Jest mock leaks into the next test\"\n- \"ReferenceError: cannot access X before initialization in `jest.mock`\"\n- \"Mock only one export from a module\" \u002F \"partial mock\"\n- \"Test debounced \u002F setTimeout code with fake timers\"\n",{"name":5,"tags":24,"agents":33,"author":46,"domains":47,"license":15,"version":50,"languages":51,"frameworks":54,"description":7,"testingTypes":55},[25,26,27,28,29,30,31,32],"jest","mocking","jest-fn","spyon","jest-mock","axios","mockresolvedvalue","unit-testing",[34,35,36,37,38,39,40,41,42,43,44,45],"claude-code","cursor","github-copilot","windsurf","codex","aider","continue","cline","zed","bolt","gemini-cli","amp","thetestingacademy",[48,49],"web","api","1.0.0",[52,53],"typescript","javascript",[25],[56,57],"unit","integration","main","eac438ea9216a7cb8a570cab803eb01eeafc6793","skills\u002Fqa\u002Fjest-mocking-patterns","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m","https:\u002F\u002Fid-preview--d5bef06d-6c9e-4563-a3d4-a855b9d61610.lovable.app\u002F","Eu sou Antonio B. B. Ndombe \r\nEu sou um Pesquisador e desenvolvedor de sistema autonomia cognitivos, fundador de sistemas ODCs ( organismos digital conscientes)","2026-11-04 06:53:39",{"source":8,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Jest Mocking Patterns\"",{"tool":72,"command":73},"bunx","bunx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Jest Mocking Patterns\"",{"tool":75,"command":76},"pnpm","pnpm dlx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Jest Mocking Patterns\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fjest-mocking-patterns\u002FSKILL.md",true,[],[81,89,96,103,110,117],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7DASC6FSCJP49JZBSK0NY1Z","nemoclaw-user-reference","Describes the NemoClaw integration layer and blueprint architecture and how they orchestrate compatible agent sandboxes. Use when looking up architecture, agent integration, plugin structure, or blueprint design. Trigger keywords - nemoclaw architecture, nemoclaw agent architecture, nemoclaw plugin blueprint structure, nemoclaw vs openshell, which cli, nemoclaw cli, openshell cli, sandbox commands, nemoclaw cli commands, nemoclaw command reference, nemoclaw network policy, sandbox egress control operator approval, nemoclaw troubleshooting, nemoclaw debug sandbox issues.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-reference\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7DAS5S79VK33XFGVAM2TFWF","nemoclaw-user-overview","Explains how OpenClaw, OpenShell, and NemoClaw form the ecosystem, NemoClaw's position in the stack, what NemoClaw adds beyond the community sandbox, and when to prefer NemoClaw versus integrating OpenShell and OpenClaw directly. Use when users ask about the relationship between OpenClaw, OpenShell, and NemoClaw, or when to use NemoClaw versus OpenShell. Trigger keywords - nemoclaw ecosystem, openclaw openshell, nemoclaw vs openshell, sandboxed openclaw, how nemoclaw works, nemoclaw sandbox lifecycle blueprint, nemoclaw overview, openclaw always-on assistants, nvidia openshell, nvidia nemotron, nemoclaw release notes, nemoclaw changelog.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-overview\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7DAS0PQEMET5MNGZ1ABSZVS","nemoclaw-user-monitor-sandbox","Inspects sandbox health, traces agent behavior, and diagnoses problems. Use when monitoring a running sandbox, debugging agent issues, or checking sandbox logs. Trigger keywords - monitor nemoclaw sandbox, debug nemoclaw agent issues.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-monitor-sandbox\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7DARQYGF7E9A69VH6S3CGN9","nemoclaw-user-manage-sandboxes","Explains operational tasks after the quickstart: listing sandboxes, status and health checks, logs, diagnostics, port forwards, multiple sandboxes, credential reset, rebuilds, network presets, upgrades, and uninstall. Trigger keywords - manage nemoclaw sandboxes, nemoclaw status, nemoclaw list, nemoclaw dashboard port, nemoclaw rebuild, nemoclaw upgrade sandboxes, nemoclaw uninstall, sandbox mutability, sandbox runtime configuration, sandbox rebuild, nemoclaw backup, nemoclaw restore, workspace backup, openshell sandbox download upload, nemoclaw messaging channels, nemoclaw telegram, nemoclaw discord, nemoclaw slack, nemoclaw wechat, nemoclaw whatsapp, openshell channel messaging, nemoclaw workspace files, soul.md, user.md, identity.md, agents.md, sandbox persistence.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-sandboxes\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7DARH8BRTG51TRCAB7YWDJ4","nemoclaw-user-manage-policy","Adds, removes, or modifies allowed endpoints in the sandbox policy. Use when customizing network policy, changing egress rules, or configuring sandbox endpoint access. Trigger keywords - customize nemoclaw network policy, sandbox egress policy configuration, nemoclaw integration policy examples, post-install policy setup, openshell approval workflow, policy preset, nemoclaw approve network requests, sandbox egress approval tui.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-policy\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7DARAT62M2VR37590VCZ5NS","nemoclaw-user-get-started","Installs NemoClaw, launches a sandbox, and runs the first agent prompt. Use when onboarding, installing, or launching a NemoClaw sandbox for the first time. Trigger keywords - nemoclaw quickstart, install nemoclaw openclaw sandbox, nemohermes quickstart, hermes agent nemoclaw, run hermes openshell sandbox, nemoclaw prerequisites, nemoclaw supported platforms, nemoclaw hardware software, nemoclaw windows wsl2 setup, nemoclaw install windows docker desktop.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-get-started\u002FSKILL.md",[],[]]