{"slug":"pramoddutta-jest-unit","name":"jest-unit","description":"Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers.","long_description":"---\nname: jest-unit\ndescription: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers.\nlicense: MIT\nmetadata:\n  author: thetestingacademy\n  version: 1.0.0\n  source: https://qaskills.sh/skills/thetestingacademy/jest-unit\n---\n\n# Jest Unit Testing Skill\n\nYou are an expert software engineer specializing in unit testing with Jest. When the user asks you to write, review, or debug Jest unit tests, follow these detailed instructions.\n\n## Core Principles\n\n1. **Test behavior, not implementation** -- Tests should verify what code does, not how it does it.\n2. **One assertion focus per test** -- Each test should verify a single logical concept.\n3. **Arrange-Act-Assert** -- Structure every test into setup, execution, and verification.\n4. **Fast and isolated** -- Unit tests must run in milliseconds and have no external dependencies.\n5. **Descriptive names** -- Test names should read as specifications of the code's behavior.\n\n## Project Structure\n\n```\nsrc/\n  services/\n    user.service.ts\n    user.service.test.ts\n    order.service.ts\n    order.service.test.ts\n  utils/\n    validators.ts\n    validators.test.ts\n    formatters.ts\n    formatters.test.ts\n  models/\n    user.model.ts\n  __mocks__/\n    axios.ts\n    database.ts\n  __tests__/\n    integration/\n      user-order.test.ts\njest.config.ts\n```\n\n## Configuration\n\n```typescript\n// jest.config.ts\nimport type { Config } from 'jest';\n\nconst config: Config = {\n  preset: 'ts-jest',\n  testEnvironment: 'node',\n  roots: ['<rootDir>/src'],\n  testMatch: ['**/*.test.ts', '**/*.spec.ts'],\n  collectCoverageFrom: [\n    'src/**/*.ts',\n    '!src/**/*.d.ts',\n    '!src/**/*.test.ts',\n    '!src/**/index.ts',\n  ],\n  coverageThresholds: {\n    global: {\n      branches: 80,\n      functions: 80,\n      lines: 80,\n      statements: 80,\n    },\n  },\n  coverageReporters: ['text', 'lcov', 'json-summary'],\n  moduleNameMapper: {\n    '^@/(.*)$': '<rootDir>/src/$1',\n  },\n  setupFilesAfterSetup: ['<rootDir>/jest.setup.ts'],\n  clearMocks: true,\n  restoreMocks: true,\n};\n\nexport default config;\n```\n\n## Writing Tests\n\n### Basic Test Structure\n\n```typescript\n// validators.ts\nexport function isValidEmail(email: string): boolean {\n  const regex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n  return regex.test(email);\n}\n\nexport function isStrongPassword(password: string): boolean {\n  return (\n    password.length >= 8 &&\n    /[A-Z]/.test(password) &&\n    /[a-z]/.test(password) &&\n    /[0-9]/.test(password) &&\n    /[!@#$%^&*]/.test(password)\n  );\n}\n```\n\n```typescript\n// validators.test.ts\nimport { isValidEmail, isStrongPassword } from './validators';\n\ndescribe('isValidEmail', () => {\n  it('should return true for valid email addresses', () => {\n    expect(isValidEmail('user@example.com')).toBe(true);\n    expect(isValidEmail('first.last@domain.co.uk')).toBe(true);\n    expect(isValidEmail('user+tag@example.com')).toBe(true);\n  });\n\n  it('should return false for invalid email addresses', () => {\n    expect(isValidEmail('')).toBe(false);\n    expect(isValidEmail('not-an-email')).toBe(false);\n    expect(isValidEmail('@missing-local.com')).toBe(false);\n    expect(isValidEmail('missing-at.com')).toBe(false);\n    expect(isValidEmail('spaces here@bad.com')).toBe(false);\n  });\n});\n\ndescribe('isStrongPassword', () => {\n  it('should accept a strong password', () => {\n    expect(isStrongPassword('SecurePass1!')).toBe(true);\n  });\n\n  it('should reject passwords shorter than 8 characters', () => {\n    expect(isStrongPassword('Ab1!')).toBe(false);\n  });\n\n  it('should reject passwords without uppercase letters', () => {\n    expect(isStrongPassword('lowercase1!')).toBe(false);\n  });\n\n  it('should reject passwords without lowercase letters', () => {\n    expect(isStrongPassword('UPPERCASE1!')).toBe(false);\n  });\n\n  it('should reject passwords without numbers', () => {\n    expect(isStrongPassword('NoNumbers!')).toBe(false);\n  });\n\n  it('should reject passwords without special characters', () => {\n    expect(isStrongPassword('NoSpecial1')).toBe(false);\n  });\n});\n```\n\n### Testing Classes and Services\n\n```typescript\n// user.service.ts\nimport { UserRepository } from './user.repository';\nimport { EmailService } from './email.service';\n\nexport class UserService {\n  constructor(\n    private userRepo: UserRepository,\n    private emailService: EmailService\n  ) {}\n\n  async createUser(email: string, name: string): Promise<User> {\n    const existing = await this.userRepo.findByEmail(email);\n    if (existing) {\n      throw new Error('User already exists');\n    }\n\n    const user = await this.userRepo.create({ email, name });\n    await this.emailService.sendWelcomeEmail(user.email, user.name);\n    return user;\n  }\n\n  async getUser(id: string): Promise<User | null> {\n    return this.userRepo.findById(id);\n  }\n\n  async deleteUser(id: string): Promise<void> {\n    const user = await this.userRepo.findById(id);\n    if (!user) {\n      throw new Error('User not found');\n    }\n    await this.userRepo.delete(id);\n  }\n}\n```\n\n```typescript\n// user.service.test.ts\nimport { UserService } from './user.service';\nimport { UserRepository } from './user.repository';\nimport { EmailService } from './email.service';\n\n// Mock the dependencies\njest.mock('./user.repository');\njest.mock('./email.service');\n\ndescribe('UserService', () => {\n  let userService: UserService;\n  let mockUserRepo: jest.Mocked<UserRepository>;\n  let mockEmailService: jest.Mocked<EmailService>;\n\n  beforeEach(() => {\n    mockUserRepo = new UserRepository() as jest.Mocked<UserRepository>;\n    mockEmailService = new EmailService() as jest.Mocked<EmailService>;\n    userService = new UserService(mockUserRepo, mockEmailService);\n  });\n\n  describe('createUser', () => {\n    it('should create a user and send welcome email', async () => {\n      const newUser = { id: '1', email: 'new@example.com', name: 'New User' };\n      mockUserRepo.findByEmail.mockResolvedValue(null);\n      mockUserRepo.create.mockResolvedValue(newUser);\n      mockEmailService.sendWelcomeEmail.mockResolvedValue(undefined);\n\n      const result = await userService.createUser('new@example.com', 'New User');\n\n      expect(result).toEqual(newUser);\n      expect(mockUserRepo.findByEmail).toHaveBeenCalledWith('new@example.com');\n      expect(mockUserRepo.create).toHaveBeenCalledWith({\n        email: 'new@example.com',\n        name: 'New User',\n      });\n      expect(mockEmailService.sendWelcomeEmail).toHaveBeenCalledWith(\n        'new@example.com',\n        'New User'\n      );\n    });\n\n    it('should throw error if user already exists', async () => {\n      mockUserRepo.findByEmail.mockResolvedValue({\n        id: '1',\n        email: 'existing@example.com',\n        name: 'Existing',\n      });\n\n      await expect(\n        userService.createUser('existing@example.com', 'Duplicate')\n      ).rejects.toThrow('User already exists');\n\n      expect(mockUserRepo.create).not.toHaveBeenCalled();\n      expect(mockEmailService.sendWelcomeEmail).not.toHaveBeenCalled();\n    });\n  });\n\n  describe('getUser', () => {\n    it('should return user when found', async () => {\n      const user = { id: '1', email: 'user@example.com', name: 'User' };\n      mockUserRepo.findById.mockResolvedValue(user);\n\n      const result = await userService.getUser('1');\n\n      expect(result).toEqual(user);\n      expect(mockUserRepo.findById).toHaveBeenCalledWith('1');\n    });\n\n    it('should return null when user not found', async () => {\n      mockUserRepo.findById.mockResolvedValue(null);\n\n      const result = await userService.getUser('nonexistent');\n\n      expect(result).toBeNull();\n    });\n  });\n\n  describe('deleteUser', () => {\n    it('should delete an existing user', async () => {\n      const user = { id: '1', email: 'user@example.com', name: 'User' };\n      mockUserRepo.findById.mockResolvedValue(user);\n      mockUserRepo.delete.mockResolvedValue(undefined);\n\n      await userService.deleteUser('1');\n\n      expect(mockUserRepo.delete).toHaveBeenCalledWith('1');\n    });\n\n    it('should throw error when deleting non-existent user', async () => {\n      mockUserRepo.findById.mockResolvedValue(null);\n\n      await expect(userService.deleteUser('nonexistent')).rejects.toThrow(\n        'User not found'\n      );\n    });\n  });\n});\n```\n\n## Mocking Patterns\n\n### Manual Mocks\n\n```typescript\n// __mocks__/axios.ts\nconst axios = {\n  get: jest.fn(() => Promise.resolve({ data: {} })),\n  post: jest.fn(() => Promise.resolve({ data: {} })),\n  put: jest.fn(() => Promise.resolve({ data: {} })),\n  delete: jest.fn(() => Promise.resolve({ data: {} })),\n  create: jest.fn(function () {\n    return axios;\n  }),\n  interceptors: {\n    request: { use: jest.fn() },\n    response: { use: jest.fn() },\n  },\n};\n\nexport default axios;\n```\n\n### Spying on Methods\n\n```typescript\nit('should call console.error on failure', async () => {\n  const consoleSpy = jest.spyOn(console, 'error').mockImplementation();\n\n  await processData(invalidData);\n\n  expect(consoleSpy).toHaveBeenCalledWith(\n    expect.stringContaining('Processing failed')\n  );\n\n  consoleSpy.mockRestore();\n});\n```\n\n### Mocking Timers\n\n```typescript\ndescribe('Debounce function', () => {\n  beforeEach(() => {\n    jest.useFakeTimers();\n  });\n\n  afterEach(() => {\n    jest.useRealTimers();\n  });\n\n  it('should debounce function calls', () => {\n    const fn = jest.fn();\n    const debounced = debounce(fn, 300);\n\n    debounced();\n    debounced();\n    debounced();\n\n    expect(fn).not.toHaveBeenCalled();\n\n    jest.advanceTimersByTime(300);\n\n    expect(fn).toHaveBeenCalledTimes(1);\n  });\n\n  it('should reset timer on subsequent calls', () => {\n    const fn = jest.fn();\n    const debounced = debounce(fn, 300);\n\n    debounced();\n    jest.advanceTimersByTime(200);\n    debounced(); // resets the timer\n    jest.advanceTimersByTime(200);\n\n    expect(fn).not.toHaveBeenCalled();\n\n    jest.advanceTimersByTime(100);\n    expect(fn).toHaveBeenCalledTimes(1);\n  });\n});\n```\n\n### Mocking Modules\n\n```typescript\n// Mock an entire module\njest.mock('fs', () => ({\n  readFileSync: jest.fn(() => 'mocked content'),\n  writeFileSync: jest.fn(),\n  existsSync: jest.fn(() => true),\n}));\n\n// Mock with factory function\njest.mock('./config', () => ({\n  getConfig: () => ({\n    apiUrl: 'http://test-api.example.com',\n    timeout: 1000,\n  }),\n}));\n\n// Partial mock -- keep some original implementations\njest.mock('./utils', () => ({\n  ...jest.requireActual('./utils'),\n  fetchData: jest.fn(),\n}));\n```\n\n## Async Testing\n\n```typescript\n// Testing resolved promises\nit('should resolve with data', async () => {\n  const result = await fetchUser('1');\n  expect(result.name).toBe('John');\n});\n\n// Testing rejected promises\nit('should reject with error', async () => {\n  await expect(fetchUser('invalid')).rejects.toThrow('Not found');\n});\n\n// Testing callbacks\nit('should call callback with data', (done) => {\n  fetchUserCallback('1', (err, data) => {\n    expect(err).toBeNull();\n    expect(data.name).toBe('John');\n    done();\n  });\n});\n\n// Testing event emitters\nit('should emit data event', (done) => {\n  const emitter = new DataEmitter();\n  emitter.on('data', (payload) => {\n    expect(payload).toEqual({ id: 1 });\n    done();\n  });\n  emitter.start();\n});\n```\n\n## Snapshot Testing\n\n```typescript\n// Component snapshot\nit('should render correctly', () => {\n  const output = renderComponent({ name: 'Test', count: 5 });\n  expect(output).toMatchSnapshot();\n});\n\n// Inline snapshot\nit('should format user display name', () => {\n  const result = formatDisplayName({ first: 'John', last: 'Doe' });\n  expect(result).toMatchInlineSnapshot(`\"John Doe\"`);\n});\n\n// Custom serializer\nexpect.addSnapshotSerializer({\n  test: (val) => val instanceof Date,\n  print: (val) => `Date(${(val as Date).toISOString()})`,\n});\n```\n\n## Custom Matchers\n\n```typescript\n// jest.setup.ts\nexpect.extend({\n  toBeWithinRange(received: number, floor: number, ceiling: number) {\n    const pass = received >= floor && received <= ceiling;\n    return {\n      pass,\n      message: () =>\n ","tagline":"Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers.","category":"coding-agents","tags":["agent-skill"],"author":"PramodDutta","verified":false,"attribution":{"status":"registry_indexed","statusLabel":"Registry indexed","shortLabel":"REGISTRY INDEXED","sourceLabel":"github candidate review","sourceDetail":"PramodDutta/qaskills","creatorName":"PramodDutta","creatorUrl":"https://github.com/PramodDutta","sourceUrl":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","indexedBy":"OpenAgentSkill community index","claimUrl":"https://www.openagentskill.com/skills/pramoddutta-jest-unit#claim-this-skill","claimCta":"Claim this skill","trustNote":"This listing was indexed from public sources and is not marked official until a maintainer claim is approved.","publicNote":"Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals."},"stats":{"stars":217,"forks":23,"verified_installs":0,"successful_runs":0,"total_outcomes":0,"rating":0,"review_count":0,"quality_score":40.07},"quality":{"score":71,"tier":"strong","label":"Strong","summary":"Solid option that is likely worth shortlisting for production workflows.","signals":[{"label":"GitHub stars","value":"217","tone":"neutral"},{"label":"Freshness","value":"8d ago","tone":"positive"},{"label":"Install ready","value":"Yes","tone":"positive"},{"label":"License","value":"MIT","tone":"neutral"}],"warnings":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'."]},"trust":{"version":"trust-score-v5","score":64,"base_score":72,"outcome_confidence":0,"tier":"review","label":"Sandbox only","summary":"Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.","recommendedAction":"Run only in a sandbox and compare close alternatives before using it for real work.","decision":{"install_policy":"human_review_before_install","auto_install_allowed":false,"human_review_required":true,"sandbox_first":true,"agent_action":"Compare alternatives before installing.","reasoning":["64/100 Trust Score v5","72/100 Trust Score v4 baseline","Needs more real agent outcomes before unattended install","Install path is available","Review before production"],"review_required_when":["The workspace contains production secrets, payments, private customer data, or irreversible actions.","The install command requests shell, network, credential, database, or broad filesystem access.","Outcome evidence is missing, recently failed, or required human review.","Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"]},"dimensions":[{"id":"github_adoption","label":"GitHub adoption","score":62,"weight":0.13,"status":"info","detail":"217 GitHub stars"},{"id":"repo_activity","label":"Stars/forks activity","score":57,"weight":0.08,"status":"warn","detail":"217 stars, 23 forks; issue activity unavailable in current metadata"},{"id":"maintenance","label":"Recent maintenance","score":100,"weight":0.14,"status":"pass","detail":"8d since push"},{"id":"license","label":"License clarity","score":86,"weight":0.09,"status":"pass","detail":"MIT"},{"id":"documentation","label":"README/SKILL.md completeness","score":86,"weight":0.14,"status":"pass","detail":"Metadata includes enough usage and workflow context"},{"id":"dependency_risk","label":"Dependency/runtime risk","score":74,"weight":0.12,"status":"info","detail":"network or browser surface, database surface"},{"id":"installability","label":"Install availability","score":92,"weight":0.1,"status":"pass","detail":"npx skills add PramodDutta/qaskills --skill jest-unit"},{"id":"install_safety","label":"Install command safety","score":92,"weight":0.1,"status":"pass","detail":"standard package or runtime install path"},{"id":"permission_surface","label":"Permission surface","score":34,"weight":0.07,"status":"fail","detail":"secrets or environment access, filesystem or document access"},{"id":"repository","label":"Repository evidence","score":86,"weight":0.04,"status":"pass","detail":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit"},{"id":"review_status","label":"Review status","score":66,"weight":0.05,"status":"info","detail":"AI review data available"},{"id":"agent_outcomes","label":"Agent Proven outcomes","score":54,"weight":0.13,"status":"info","detail":"No agent outcome data yet"}],"checks":[{"status":"info","label":"GitHub adoption","detail":"217 GitHub stars"},{"status":"warn","label":"Stars/forks activity","detail":"217 stars, 23 forks; issue activity unavailable in current metadata"},{"status":"pass","label":"Recent maintenance","detail":"8d since push"},{"status":"pass","label":"License clarity","detail":"MIT"},{"status":"pass","label":"README/SKILL.md completeness","detail":"Metadata includes enough usage and workflow context"},{"status":"info","label":"Dependency/runtime risk","detail":"network or browser surface, database surface"},{"status":"pass","label":"Install availability","detail":"npx skills add PramodDutta/qaskills --skill jest-unit"},{"status":"pass","label":"Install command safety","detail":"standard package or runtime install path"},{"status":"fail","label":"Permission surface","detail":"secrets or environment access, filesystem or document access"},{"status":"pass","label":"Repository evidence","detail":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit"},{"status":"info","label":"Review status","detail":"AI review data available"},{"status":"info","label":"Agent Proven outcomes","detail":"No agent outcome data yet"},{"status":"warn","label":"Ownership","detail":"No approved owner claim yet"},{"status":"info","label":"OpenAgentSkill usage","detail":"No local usage activity yet"},{"status":"info","label":"Agent outcomes","detail":"No agent outcome data yet"}],"strengths":["AI review approved","Install path is available","Repository evidence is available","Recently maintained repository","Install command has no obvious high-risk pattern","Outcome loop is ready but needs first real agent run"],"warnings":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access","No real agent outcome reports yet","Human review required before unattended installation"],"evidence":{"stars":"217 GitHub stars","repoActivity":"217 stars, 23 forks","lastPushed":"8d since push","license":"MIT","repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","install":"npx skills add PramodDutta/qaskills --skill jest-unit","installSafety":"standard package or runtime install path","permissionSurface":"secrets or environment access, filesystem or document access","documentation":"Strong README/SKILL.md context","agentOutcomes":"No agent outcome data yet","agentProvenScore":0,"outcomeConfidence":"0%","installPolicy":"human_review_before_install"},"installReadiness":{"ready":true,"command":"npx skills add PramodDutta/qaskills --skill jest-unit","policy":"human_review_before_install","label":"Human review before install","notes":["Install path is available","Repository evidence is available","License is declared","No Agent Proven outcome evidence yet","8d since push","Trust Score v5 requires review or sandbox-only use before install."]},"agentCompatibility":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"riskSummary":{"level":"medium","label":"Review before production","notes":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"outcomeEvidence":{"total":0,"successes":0,"failures":0,"notRelevant":0,"successRate":null,"installAttempts":0,"riskBlocked":0,"setupRequired":0,"installSuccessRate":null,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"recentSuccessRate":null,"recentFailureRate":null,"uniqueAgents":0,"agentProvenScore":0,"agentProvenLabel":"Needs first agent run","lastOutcomeAt":null,"label":"No agent outcome data yet"},"autoInstall":{"allowed":false,"sandboxRequired":true,"policy":"human_review_before_install","reason":"Compare alternatives before installing."},"outcome_loop":{"version":"openagentskill-agent-outcome-v4","required_after_install":true,"endpoint":"/api/agent/outcome","method":"POST","event_id_source":"feedback.event_id, install_receipt.resolve_event_id, or decision_packet.outcome_feedback.event_id","expected_outcomes":["success","failed","not_relevant","blocked_by_risk","setup_required"],"required_fields":["event_id","skill_slug","task"],"quality_fields":["task_success","output_quality","error_type","human_review_required","used_in_production","workspace","evidence_url","time_to_useful_ms","source_version"],"ranking_inputs_updated":["Trust Score v5 outcome confidence","Agent Proven Score","Resolve ranking task-fit evidence","Skill detail machine-readable metadata","Outcome leaderboard"]},"agent_contract":{"suited_tasks":["coding-agents","agent-skill"],"suited_agents":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"install_command":"npx skills add PramodDutta/qaskills --skill jest-unit","trust_score":64,"trust_version":"trust-score-v5","risk_level":"medium","do_not_use_when":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"],"before_install":["Read the audit page and machine-readable metadata.","Confirm the install command, license, and permission surface fit the workspace.","Get explicit human approval or choose an alternative before installing."],"after_run":["Report the outcome to /api/agent/outcome using the resolve event id.","Include output_quality, workspace, human_review_required, and evidence_url when available.","Re-resolve before broad production rollout."]},"bestFor":["coding-agents","agent-skill"],"doNotUseFor":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"],"knownRisks":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"],"backward_compatible":{"trust_score_v4":{"version":"trust-score-v4","score":72,"tier":"strong","label":"Strong shortlist","summary":"Good trust signals with a few areas worth checking before rollout."}}},"trust_score_v5":{"version":"trust-score-v5","score":64,"base_score":72,"outcome_confidence":0,"tier":"review","label":"Sandbox only","summary":"Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.","recommendedAction":"Run only in a sandbox and compare close alternatives before using it for real work.","decision":{"install_policy":"human_review_before_install","auto_install_allowed":false,"human_review_required":true,"sandbox_first":true,"agent_action":"Compare alternatives before installing.","reasoning":["64/100 Trust Score v5","72/100 Trust Score v4 baseline","Needs more real agent outcomes before unattended install","Install path is available","Review before production"],"review_required_when":["The workspace contains production secrets, payments, private customer data, or irreversible actions.","The install command requests shell, network, credential, database, or broad filesystem access.","Outcome evidence is missing, recently failed, or required human review.","Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"]},"dimensions":[{"id":"github_adoption","label":"GitHub adoption","score":62,"weight":0.13,"status":"info","detail":"217 GitHub stars"},{"id":"repo_activity","label":"Stars/forks activity","score":57,"weight":0.08,"status":"warn","detail":"217 stars, 23 forks; issue activity unavailable in current metadata"},{"id":"maintenance","label":"Recent maintenance","score":100,"weight":0.14,"status":"pass","detail":"8d since push"},{"id":"license","label":"License clarity","score":86,"weight":0.09,"status":"pass","detail":"MIT"},{"id":"documentation","label":"README/SKILL.md completeness","score":86,"weight":0.14,"status":"pass","detail":"Metadata includes enough usage and workflow context"},{"id":"dependency_risk","label":"Dependency/runtime risk","score":74,"weight":0.12,"status":"info","detail":"network or browser surface, database surface"},{"id":"installability","label":"Install availability","score":92,"weight":0.1,"status":"pass","detail":"npx skills add PramodDutta/qaskills --skill jest-unit"},{"id":"install_safety","label":"Install command safety","score":92,"weight":0.1,"status":"pass","detail":"standard package or runtime install path"},{"id":"permission_surface","label":"Permission surface","score":34,"weight":0.07,"status":"fail","detail":"secrets or environment access, filesystem or document access"},{"id":"repository","label":"Repository evidence","score":86,"weight":0.04,"status":"pass","detail":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit"},{"id":"review_status","label":"Review status","score":66,"weight":0.05,"status":"info","detail":"AI review data available"},{"id":"agent_outcomes","label":"Agent Proven outcomes","score":54,"weight":0.13,"status":"info","detail":"No agent outcome data yet"}],"checks":[{"status":"info","label":"GitHub adoption","detail":"217 GitHub stars"},{"status":"warn","label":"Stars/forks activity","detail":"217 stars, 23 forks; issue activity unavailable in current metadata"},{"status":"pass","label":"Recent maintenance","detail":"8d since push"},{"status":"pass","label":"License clarity","detail":"MIT"},{"status":"pass","label":"README/SKILL.md completeness","detail":"Metadata includes enough usage and workflow context"},{"status":"info","label":"Dependency/runtime risk","detail":"network or browser surface, database surface"},{"status":"pass","label":"Install availability","detail":"npx skills add PramodDutta/qaskills --skill jest-unit"},{"status":"pass","label":"Install command safety","detail":"standard package or runtime install path"},{"status":"fail","label":"Permission surface","detail":"secrets or environment access, filesystem or document access"},{"status":"pass","label":"Repository evidence","detail":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit"},{"status":"info","label":"Review status","detail":"AI review data available"},{"status":"info","label":"Agent Proven outcomes","detail":"No agent outcome data yet"},{"status":"warn","label":"Ownership","detail":"No approved owner claim yet"},{"status":"info","label":"OpenAgentSkill usage","detail":"No local usage activity yet"},{"status":"info","label":"Agent outcomes","detail":"No agent outcome data yet"}],"strengths":["AI review approved","Install path is available","Repository evidence is available","Recently maintained repository","Install command has no obvious high-risk pattern","Outcome loop is ready but needs first real agent run"],"warnings":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access","No real agent outcome reports yet","Human review required before unattended installation"],"evidence":{"stars":"217 GitHub stars","repoActivity":"217 stars, 23 forks","lastPushed":"8d since push","license":"MIT","repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","install":"npx skills add PramodDutta/qaskills --skill jest-unit","installSafety":"standard package or runtime install path","permissionSurface":"secrets or environment access, filesystem or document access","documentation":"Strong README/SKILL.md context","agentOutcomes":"No agent outcome data yet","agentProvenScore":0,"outcomeConfidence":"0%","installPolicy":"human_review_before_install"},"installReadiness":{"ready":true,"command":"npx skills add PramodDutta/qaskills --skill jest-unit","policy":"human_review_before_install","label":"Human review before install","notes":["Install path is available","Repository evidence is available","License is declared","No Agent Proven outcome evidence yet","8d since push","Trust Score v5 requires review or sandbox-only use before install."]},"agentCompatibility":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"riskSummary":{"level":"medium","label":"Review before production","notes":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"outcomeEvidence":{"total":0,"successes":0,"failures":0,"notRelevant":0,"successRate":null,"installAttempts":0,"riskBlocked":0,"setupRequired":0,"installSuccessRate":null,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"recentSuccessRate":null,"recentFailureRate":null,"uniqueAgents":0,"agentProvenScore":0,"agentProvenLabel":"Needs first agent run","lastOutcomeAt":null,"label":"No agent outcome data yet"},"autoInstall":{"allowed":false,"sandboxRequired":true,"policy":"human_review_before_install","reason":"Compare alternatives before installing."},"outcome_loop":{"version":"openagentskill-agent-outcome-v4","required_after_install":true,"endpoint":"/api/agent/outcome","method":"POST","event_id_source":"feedback.event_id, install_receipt.resolve_event_id, or decision_packet.outcome_feedback.event_id","expected_outcomes":["success","failed","not_relevant","blocked_by_risk","setup_required"],"required_fields":["event_id","skill_slug","task"],"quality_fields":["task_success","output_quality","error_type","human_review_required","used_in_production","workspace","evidence_url","time_to_useful_ms","source_version"],"ranking_inputs_updated":["Trust Score v5 outcome confidence","Agent Proven Score","Resolve ranking task-fit evidence","Skill detail machine-readable metadata","Outcome leaderboard"]},"agent_contract":{"suited_tasks":["coding-agents","agent-skill"],"suited_agents":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"install_command":"npx skills add PramodDutta/qaskills --skill jest-unit","trust_score":64,"trust_version":"trust-score-v5","risk_level":"medium","do_not_use_when":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"],"before_install":["Read the audit page and machine-readable metadata.","Confirm the install command, license, and permission surface fit the workspace.","Get explicit human approval or choose an alternative before installing."],"after_run":["Report the outcome to /api/agent/outcome using the resolve event id.","Include output_quality, workspace, human_review_required, and evidence_url when available.","Re-resolve before broad production rollout."]},"bestFor":["coding-agents","agent-skill"],"doNotUseFor":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"],"knownRisks":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"],"backward_compatible":{"trust_score_v4":{"version":"trust-score-v4","score":72,"tier":"strong","label":"Strong shortlist","summary":"Good trust signals with a few areas worth checking before rollout."}}},"trust_score_v4":{"version":"trust-score-v4","score":72,"tier":"strong","label":"Strong shortlist","summary":"Good trust signals with a few areas worth checking before rollout.","recommendedAction":"Test in a sandbox workflow and compare its install path with close alternatives.","dimensions":[{"id":"github_adoption","label":"GitHub adoption","score":62,"weight":0.13,"status":"info","detail":"217 GitHub stars"},{"id":"repo_activity","label":"Stars/forks activity","score":57,"weight":0.08,"status":"warn","detail":"217 stars, 23 forks; issue activity unavailable in current metadata"},{"id":"maintenance","label":"Recent maintenance","score":100,"weight":0.14,"status":"pass","detail":"8d since push"},{"id":"license","label":"License clarity","score":86,"weight":0.09,"status":"pass","detail":"MIT"},{"id":"documentation","label":"README/SKILL.md completeness","score":86,"weight":0.14,"status":"pass","detail":"Metadata includes enough usage and workflow context"},{"id":"dependency_risk","label":"Dependency/runtime risk","score":74,"weight":0.12,"status":"info","detail":"network or browser surface, database surface"},{"id":"installability","label":"Install availability","score":92,"weight":0.1,"status":"pass","detail":"npx skills add PramodDutta/qaskills --skill jest-unit"},{"id":"install_safety","label":"Install command safety","score":92,"weight":0.1,"status":"pass","detail":"standard package or runtime install path"},{"id":"permission_surface","label":"Permission surface","score":34,"weight":0.07,"status":"fail","detail":"secrets or environment access, filesystem or document access"},{"id":"repository","label":"Repository evidence","score":86,"weight":0.04,"status":"pass","detail":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit"},{"id":"review_status","label":"Review status","score":66,"weight":0.05,"status":"info","detail":"AI review data available"},{"id":"agent_outcomes","label":"Agent Proven outcomes","score":54,"weight":0.13,"status":"info","detail":"No agent outcome data yet"}],"checks":[{"status":"info","label":"GitHub adoption","detail":"217 GitHub stars"},{"status":"warn","label":"Stars/forks activity","detail":"217 stars, 23 forks; issue activity unavailable in current metadata"},{"status":"pass","label":"Recent maintenance","detail":"8d since push"},{"status":"pass","label":"License clarity","detail":"MIT"},{"status":"pass","label":"README/SKILL.md completeness","detail":"Metadata includes enough usage and workflow context"},{"status":"info","label":"Dependency/runtime risk","detail":"network or browser surface, database surface"},{"status":"pass","label":"Install availability","detail":"npx skills add PramodDutta/qaskills --skill jest-unit"},{"status":"pass","label":"Install command safety","detail":"standard package or runtime install path"},{"status":"fail","label":"Permission surface","detail":"secrets or environment access, filesystem or document access"},{"status":"pass","label":"Repository evidence","detail":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit"},{"status":"info","label":"Review status","detail":"AI review data available"},{"status":"info","label":"Agent Proven outcomes","detail":"No agent outcome data yet"},{"status":"warn","label":"Ownership","detail":"No approved owner claim yet"},{"status":"info","label":"OpenAgentSkill usage","detail":"No local usage activity yet"},{"status":"info","label":"Agent outcomes","detail":"No agent outcome data yet"}],"strengths":["AI review approved","Install path is available","Repository evidence is available","Recently maintained repository","Install command has no obvious high-risk pattern"],"warnings":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"],"evidence":{"stars":"217 GitHub stars","repoActivity":"217 stars, 23 forks","lastPushed":"8d since push","license":"MIT","repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","install":"npx skills add PramodDutta/qaskills --skill jest-unit","installSafety":"standard package or runtime install path","permissionSurface":"secrets or environment access, filesystem or document access","documentation":"Strong README/SKILL.md context","agentOutcomes":"No agent outcome data yet"},"installReadiness":{"ready":true,"command":"npx skills add PramodDutta/qaskills --skill jest-unit","policy":"human_review_before_install","label":"Human review before install","notes":["Install path is available","Repository evidence is available","License is declared","No Agent Proven outcome evidence yet","8d since push"]},"agentCompatibility":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"riskSummary":{"level":"medium","label":"Review before production","notes":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"outcomeEvidence":{"total":0,"successes":0,"failures":0,"notRelevant":0,"successRate":null,"installAttempts":0,"riskBlocked":0,"setupRequired":0,"installSuccessRate":null,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"recentSuccessRate":null,"recentFailureRate":null,"uniqueAgents":0,"agentProvenScore":0,"agentProvenLabel":"Needs first agent run","lastOutcomeAt":null,"label":"No agent outcome data yet"},"autoInstall":{"allowed":false,"sandboxRequired":true,"policy":"human_review_before_install","reason":"Human review or sandbox validation is required before automatic installation."},"bestFor":["coding-agents","agent-skill"],"doNotUseFor":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"],"knownRisks":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"agent_proven":{"version":"agent-proven-v1","score":0,"tier":"unproven","label":"Needs first agent run","summary":"No agent outcome reports yet. Use Resolve, run one narrow sandbox task, then report the result.","metrics":{"totalOutcomes":0,"successfulOutcomes":0,"failedOutcomes":0,"installAttempts":0,"installSuccessRate":null,"successRate":null,"recentSuccessRate":null,"recentFailureRate":null,"riskBlocked":0,"setupRequired":0,"notRelevant":0,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"uniqueAgents":0,"lastOutcomeAt":null},"signals":[],"penalties":["No real agent outcome evidence yet"]},"outcome_stats":null,"safety":{"score":58,"level":"review_before_install","label":"Review before install","safety_tier":{"tier":"reviewed","label":"Reviewed with permission notes","badge":"REVIEWED","summary":"Usable candidate, but the agent should surface permission and audit notes before installation.","recommended_action":"Require human approval before installing into a real workspace.","auto_install_policy":"review","reasons":["Permission surface may require sandboxing","58/100 agent safety score"]},"auto_install_allowed":false,"human_review_required":true,"blocked":false,"audit_risk":"needs_review","permission_hints":[{"id":"network","label":"Network access","reason":"Skill likely fetches remote pages, APIs, repositories, or external services.","severity":"medium"},{"id":"filesystem","label":"Filesystem access","reason":"Skill may read or write project files, documents, generated artifacts, or local workspace state.","severity":"medium"},{"id":"database","label":"Database access","reason":"Skill may inspect schemas, query databases, or work with persistent stores.","severity":"medium"}],"policy_warnings":["Permission surface may require sandboxing"],"constraints_applied":{"max_risk":"medium","needs_install_command":true,"min_stars":0}},"safety_gate":{"tier":"reviewed","label":"Reviewed with permission notes","badge":"REVIEWED","auto_install_policy":"review","auto_install_allowed":false,"blocked":false,"human_review_required":true,"recommended_action":"Require human approval before installing into a real workspace.","reasons":["Permission surface may require sandboxing","58/100 agent safety score"]},"eval":{"version":"openagentskill-skill-eval-v1","status":"failed","score":71,"risk_level":"high","decision":{"recommendation":"do_not_auto_install","reason":"Permission surface: secrets or environment access, filesystem or document access","auto_install_allowed":false,"policy":"block","human_review_required":true},"blockers":["Permission surface: secrets or environment access, filesystem or document access"],"warnings":["Trust score: Good trust signals with a few areas worth checking before rollout.","Audit score: Needs review","Agent safety gate: Usable candidate, but the agent should surface permission and audit notes before installation.","Permission surface may require sandboxing","In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"],"validation_plan":["Inspect repository, README/SKILL.md, license, and recent commits before production use.","Install in an isolated workspace or sandbox with no production secrets available.","Run the smallest representative task and record files touched, commands run, network access, and outputs.","Compare the selected skill against at least one alternative when the eval status is review or failed.","Promote only after the agent reports a successful verification result and unresolved warnings are accepted."],"checks":[{"id":"task_fit","label":"Task fit","status":"pass","score":84,"required_for_auto_install":true,"detail":"Task wording matches this skill metadata.","evidence":["Evaluate jest-unit before installing it in an agent workflow","coding-agents","Coding agents workflows; Claude Code teams; builders willing to evaluate younger projects"]},{"id":"install_path","label":"Install path","status":"pass","score":92,"required_for_auto_install":true,"detail":"Install handoff is available.","evidence":["npx skills add PramodDutta/qaskills --skill jest-unit"]},{"id":"install_safety","label":"Install command safety","status":"pass","score":92,"required_for_auto_install":true,"detail":"standard package or runtime install path","evidence":["npx skills add PramodDutta/qaskills --skill jest-unit"]},{"id":"trust_score","label":"Trust score","status":"warn","score":72,"required_for_auto_install":true,"detail":"Good trust signals with a few areas worth checking before rollout.","evidence":["Strong shortlist","217 GitHub stars","MIT"]},{"id":"audit_score","label":"Audit score","status":"warn","score":78,"required_for_auto_install":true,"detail":"Needs review","evidence":["Permission surface may require sandboxing"]},{"id":"agent_safety_gate","label":"Agent safety gate","status":"warn","score":58,"required_for_auto_install":true,"detail":"Usable candidate, but the agent should surface permission and audit notes before installation.","evidence":["Require human approval before installing into a real workspace.","Permission surface may require sandboxing"]},{"id":"readme_skillmd_completeness","label":"README/SKILL.md completeness","status":"pass","score":86,"required_for_auto_install":false,"detail":"Metadata includes enough usage and workflow context","evidence":["Strong README/SKILL.md context"]},{"id":"license_clarity","label":"License clarity","status":"pass","score":86,"required_for_auto_install":true,"detail":"MIT","evidence":["MIT"]},{"id":"recent_maintenance","label":"Recent maintenance","status":"pass","score":100,"required_for_auto_install":false,"detail":"8d since push","evidence":["8d since push"]},{"id":"permission_surface","label":"Permission surface","status":"fail","score":34,"required_for_auto_install":true,"detail":"secrets or environment access, filesystem or document access","evidence":["Network access: medium","Filesystem access: medium","Database access: medium"]},{"id":"alternatives","label":"Alternatives available","status":"info","score":55,"required_for_auto_install":false,"detail":"No close alternatives were found in the current shortlist.","evidence":[]}],"endpoints":{"web":"https://www.openagentskill.com/skills/pramoddutta-jest-unit/evals","api":"/api/agent/evals?slug=pramoddutta-jest-unit","text":"/api/agent/evals?slug=pramoddutta-jest-unit&format=text"}},"agent_readable_metadata":{"version":"openagentskill-agent-metadata-v2","skill":{"slug":"pramoddutta-jest-unit","name":"jest-unit","description":"Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers.","category":"coding-agents","url":"https://www.openagentskill.com/skills/pramoddutta-jest-unit","repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","github_repo":"PramodDutta/qaskills"},"suited_tasks":["Coding agents workflows","Claude Code teams","builders willing to evaluate younger projects","Inspect source files","Explain architecture","Patch bugs and verify changes","Run test suites","Capture failures"],"suited_agents":["Codex","Claude Code","Cursor","OpenAgentSkill CLI","CLI"],"install":{"command":"npx skills add PramodDutta/qaskills --skill jest-unit","ready":true,"targets":[{"id":"openagentskill-cli","label":"CLI","kind":"command","value":"npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.3.0/openagentskill-0.3.0.tgz add pramoddutta-jest-unit"},{"id":"codex","label":"Codex","kind":"agent-prompt","value":"Install the \"jest-unit\" agent skill from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"codex\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."},{"id":"claude-code","label":"Claude Code","kind":"agent-prompt","value":"Add \"jest-unit\" as a Claude Code skill from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit. Inspect the skill instructions, place the reusable skill files in the appropriate local skills location for this project, and report the activation steps. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"claude-code\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."},{"id":"cursor","label":"Cursor","kind":"agent-prompt","value":"Turn \"jest-unit\" from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit into a reusable Cursor project rule or agent instruction. Preserve the core workflow, adapt paths to this repo, and keep the rule scoped to tasks where it is relevant. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"cursor\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."}],"handoff_url":"https://www.openagentskill.com/api/skills/pramoddutta-jest-unit/install","manifest_url":"https://www.openagentskill.com/api/registry/manifest/pramoddutta-jest-unit"},"trust":{"score":72,"label":"Strong shortlist","version":"trust-score-v4","install_policy":"human_review_before_install","evidence":{"stars":"217 GitHub stars","repoActivity":"217 stars, 23 forks","lastPushed":"8d since push","license":"MIT","repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","install":"npx skills add PramodDutta/qaskills --skill jest-unit","installSafety":"standard package or runtime install path","permissionSurface":"secrets or environment access, filesystem or document access","documentation":"Strong README/SKILL.md context","agentOutcomes":"No agent outcome data yet"},"outcome_evidence":{"total":0,"successes":0,"failures":0,"not_relevant":0,"success_rate":null,"recent_success_rate":null,"recent_failure_rate":null,"install_attempts":0,"install_success_rate":null,"risk_blocked":0,"setup_required":0,"avg_output_quality":null,"production_outcomes":0,"last_outcome_at":null,"label":"No agent outcome data yet"},"auto_install":{"allowed":false,"sandbox_required":true,"reason":"Human review or sandbox validation is required before automatic installation."},"best_for":["coding-agents","agent-skill"],"known_risks":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"agent_proven":{"version":"agent-proven-v1","score":0,"tier":"unproven","label":"Needs first agent run","summary":"No agent outcome reports yet. Use Resolve, run one narrow sandbox task, then report the result.","metrics":{"totalOutcomes":0,"successfulOutcomes":0,"failedOutcomes":0,"installAttempts":0,"installSuccessRate":null,"successRate":null,"recentSuccessRate":null,"recentFailureRate":null,"riskBlocked":0,"setupRequired":0,"notRelevant":0,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"uniqueAgents":0,"lastOutcomeAt":null},"signals":[],"penalties":["No real agent outcome evidence yet"]},"audit":{"score":78,"risk_level":"needs_review","risk_label":"Needs review","warnings":["Permission surface may require sandboxing","In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"safety_gate":{"tier":"reviewed","label":"Reviewed with permission notes","auto_install_policy":"review","auto_install_allowed":false,"human_review_required":true,"blocked":false,"recommended_action":"Require human approval before installing into a real workspace."},"quality":{"score":71,"label":"Strong"},"supply":{"track":"Coding and developer agents","scenario":"Coding agents","maintenance":"8d since push","risk":"Needs review"},"alternative_skills":[],"do_not_use_when":["teams that need a vendor-supported SLA","production agents without a repository review","In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","No OpenAgentSkill engagement data yet","Permission surface may require sandboxing","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata"],"agent_contract":{"task_input":"Use jest-unit in an agent workflow","recommended_action":"Require human approval before installing into a real workspace.","install_policy":"review","minimum_review_before_use":["Trust: 72/100 Strong shortlist","Audit: 78/100 Needs review","Safety: 58/100 Review before install","Review repository, license, install command, and permission surface before production use."],"expected_agent_output":{"selected_skill":"pramoddutta-jest-unit (jest-unit)","install_command":"npx skills add PramodDutta/qaskills --skill jest-unit","risk_summary":"Needs review; Reviewed with permission notes; Review before production","verification_result":"Report the smallest successful task, files touched, warnings, and any missing setup."}},"outcome_feedback":{"endpoint":"https://www.openagentskill.com/api/agent/outcome","method":"POST","requires_resolve_event_id":true,"event_id_source":"Use install_receipt.outcome_feedback.event_id or feedback.event_id returned by /api/agent/resolve for the current task.","expected_outcomes":["success","failed","not_relevant","blocked_by_risk","setup_required"],"payload_template":{"event_id":"<install_receipt.outcome_feedback.event_id or feedback.event_id from /api/agent/resolve>","skill_slug":"pramoddutta-jest-unit","task":"Use jest-unit in an agent workflow","agent":"codex","outcome":"success","install_used":true,"risk_blocked":false,"setup_required":false,"task_success":true,"output_quality":4,"error_type":null,"human_review_required":false,"workspace":"sandbox","time_to_useful_ms":120000,"notes":"Report the smallest successful task, setup friction, files touched, and risk notes."}},"endpoints":{"web":"https://www.openagentskill.com/skills/pramoddutta-jest-unit","api":"https://www.openagentskill.com/api/agent/skills/pramoddutta-jest-unit","audit":"https://www.openagentskill.com/skills/pramoddutta-jest-unit/audit","eval":"https://www.openagentskill.com/api/agent/evals?slug=pramoddutta-jest-unit&task=Use%20jest-unit%20in%20an%20agent%20workflow&max_risk=medium","resolve":"https://www.openagentskill.com/api/agent/resolve?task=Use%20jest-unit%20in%20an%20agent%20workflow&agent=codex&max_risk=medium","receipt":"https://www.openagentskill.com/api/agent/receipt?task=Use%20jest-unit%20in%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text","install":"https://www.openagentskill.com/api/skills/pramoddutta-jest-unit/install","manifest":"https://www.openagentskill.com/api/registry/manifest/pramoddutta-jest-unit"}},"machine_metadata":{"version":"openagentskill-agent-metadata-v2","skill":{"slug":"pramoddutta-jest-unit","name":"jest-unit","description":"Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers.","category":"coding-agents","url":"https://www.openagentskill.com/skills/pramoddutta-jest-unit","repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","github_repo":"PramodDutta/qaskills"},"suited_tasks":["Coding agents workflows","Claude Code teams","builders willing to evaluate younger projects","Inspect source files","Explain architecture","Patch bugs and verify changes","Run test suites","Capture failures"],"suited_agents":["Codex","Claude Code","Cursor","OpenAgentSkill CLI","CLI"],"install":{"command":"npx skills add PramodDutta/qaskills --skill jest-unit","ready":true,"targets":[{"id":"openagentskill-cli","label":"CLI","kind":"command","value":"npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.3.0/openagentskill-0.3.0.tgz add pramoddutta-jest-unit"},{"id":"codex","label":"Codex","kind":"agent-prompt","value":"Install the \"jest-unit\" agent skill from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"codex\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."},{"id":"claude-code","label":"Claude Code","kind":"agent-prompt","value":"Add \"jest-unit\" as a Claude Code skill from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit. Inspect the skill instructions, place the reusable skill files in the appropriate local skills location for this project, and report the activation steps. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"claude-code\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."},{"id":"cursor","label":"Cursor","kind":"agent-prompt","value":"Turn \"jest-unit\" from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit into a reusable Cursor project rule or agent instruction. Preserve the core workflow, adapt paths to this repo, and keep the rule scoped to tasks where it is relevant. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"cursor\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."}],"handoff_url":"https://www.openagentskill.com/api/skills/pramoddutta-jest-unit/install","manifest_url":"https://www.openagentskill.com/api/registry/manifest/pramoddutta-jest-unit"},"trust":{"score":72,"label":"Strong shortlist","version":"trust-score-v4","install_policy":"human_review_before_install","evidence":{"stars":"217 GitHub stars","repoActivity":"217 stars, 23 forks","lastPushed":"8d since push","license":"MIT","repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","install":"npx skills add PramodDutta/qaskills --skill jest-unit","installSafety":"standard package or runtime install path","permissionSurface":"secrets or environment access, filesystem or document access","documentation":"Strong README/SKILL.md context","agentOutcomes":"No agent outcome data yet"},"outcome_evidence":{"total":0,"successes":0,"failures":0,"not_relevant":0,"success_rate":null,"recent_success_rate":null,"recent_failure_rate":null,"install_attempts":0,"install_success_rate":null,"risk_blocked":0,"setup_required":0,"avg_output_quality":null,"production_outcomes":0,"last_outcome_at":null,"label":"No agent outcome data yet"},"auto_install":{"allowed":false,"sandbox_required":true,"reason":"Human review or sandbox validation is required before automatic installation."},"best_for":["coding-agents","agent-skill"],"known_risks":["In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"agent_proven":{"version":"agent-proven-v1","score":0,"tier":"unproven","label":"Needs first agent run","summary":"No agent outcome reports yet. Use Resolve, run one narrow sandbox task, then report the result.","metrics":{"totalOutcomes":0,"successfulOutcomes":0,"failedOutcomes":0,"installAttempts":0,"installSuccessRate":null,"successRate":null,"recentSuccessRate":null,"recentFailureRate":null,"riskBlocked":0,"setupRequired":0,"notRelevant":0,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"uniqueAgents":0,"lastOutcomeAt":null},"signals":[],"penalties":["No real agent outcome evidence yet"]},"audit":{"score":78,"risk_level":"needs_review","risk_label":"Needs review","warnings":["Permission surface may require sandboxing","In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"safety_gate":{"tier":"reviewed","label":"Reviewed with permission notes","auto_install_policy":"review","auto_install_allowed":false,"human_review_required":true,"blocked":false,"recommended_action":"Require human approval before installing into a real workspace."},"quality":{"score":71,"label":"Strong"},"supply":{"track":"Coding and developer agents","scenario":"Coding agents","maintenance":"8d since push","risk":"Needs review"},"alternative_skills":[],"do_not_use_when":["teams that need a vendor-supported SLA","production agents without a repository review","In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","No OpenAgentSkill engagement data yet","Permission surface may require sandboxing","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata"],"agent_contract":{"task_input":"Use jest-unit in an agent workflow","recommended_action":"Require human approval before installing into a real workspace.","install_policy":"review","minimum_review_before_use":["Trust: 72/100 Strong shortlist","Audit: 78/100 Needs review","Safety: 58/100 Review before install","Review repository, license, install command, and permission surface before production use."],"expected_agent_output":{"selected_skill":"pramoddutta-jest-unit (jest-unit)","install_command":"npx skills add PramodDutta/qaskills --skill jest-unit","risk_summary":"Needs review; Reviewed with permission notes; Review before production","verification_result":"Report the smallest successful task, files touched, warnings, and any missing setup."}},"outcome_feedback":{"endpoint":"https://www.openagentskill.com/api/agent/outcome","method":"POST","requires_resolve_event_id":true,"event_id_source":"Use install_receipt.outcome_feedback.event_id or feedback.event_id returned by /api/agent/resolve for the current task.","expected_outcomes":["success","failed","not_relevant","blocked_by_risk","setup_required"],"payload_template":{"event_id":"<install_receipt.outcome_feedback.event_id or feedback.event_id from /api/agent/resolve>","skill_slug":"pramoddutta-jest-unit","task":"Use jest-unit in an agent workflow","agent":"codex","outcome":"success","install_used":true,"risk_blocked":false,"setup_required":false,"task_success":true,"output_quality":4,"error_type":null,"human_review_required":false,"workspace":"sandbox","time_to_useful_ms":120000,"notes":"Report the smallest successful task, setup friction, files touched, and risk notes."}},"endpoints":{"web":"https://www.openagentskill.com/skills/pramoddutta-jest-unit","api":"https://www.openagentskill.com/api/agent/skills/pramoddutta-jest-unit","audit":"https://www.openagentskill.com/skills/pramoddutta-jest-unit/audit","eval":"https://www.openagentskill.com/api/agent/evals?slug=pramoddutta-jest-unit&task=Use%20jest-unit%20in%20an%20agent%20workflow&max_risk=medium","resolve":"https://www.openagentskill.com/api/agent/resolve?task=Use%20jest-unit%20in%20an%20agent%20workflow&agent=codex&max_risk=medium","receipt":"https://www.openagentskill.com/api/agent/receipt?task=Use%20jest-unit%20in%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text","install":"https://www.openagentskill.com/api/skills/pramoddutta-jest-unit/install","manifest":"https://www.openagentskill.com/api/registry/manifest/pramoddutta-jest-unit"}},"supply_profile":{"track":{"slug":"coding","label":"Coding and developer agents","shortLabel":"Coding","description":"Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills."},"scenario":{"label":"Coding agents","description":"I need a coding agent that can understand a repository, edit code, and review pull requests.","useCases":[{"slug":"coding-agents","title":"Coding agents"},{"slug":"testing-qa","title":"Testing and QA"},{"slug":"browser-automation","title":"Browser automation"}]},"applicableAgents":["Claude Code","CLI","Codex","Cursor"],"install":{"ready":true,"command":"npx skills add PramodDutta/qaskills --skill jest-unit","primaryTarget":"CLI","targetCount":4},"githubQuality":{"stars":217,"starsLabel":"217","forks":23,"license":"MIT","qualityScore":71,"trustScore":72,"auditScore":78},"maintenance":{"status":"fresh","label":"8d since push","daysSincePush":8,"lastPushedAt":"2026-08-30T13:56:00+00:00"},"risk":{"level":"needs_review","label":"Needs review","requiresReview":true,"notes":["Permission surface may require sandboxing","In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata"]},"coverageTags":["Coding","Coding agents","coding-agents","agent-skill"]},"audit":{"audit_score":78,"risk_level":"needs_review","risk_label":"Needs review","quality_score":71,"trust_score":72,"maintenance_score":100,"security_score":75,"install_score":92,"warnings":["Permission surface may require sandboxing","In the provided jest.config.ts example, the key 'setupFilesAfterSetup' is not a valid Jest configuration option; it should be 'setupFilesAfterEnv'.","Quality score needs review","Permission surface needs review: secrets or environment access, filesystem or document access","Stars/forks activity: 217 stars, 23 forks; issue activity unavailable in current metadata","Permission surface: secrets or environment access, filesystem or document access"]},"quality_signals":{"model":"v2","star_score":16.37,"usage_score":0,"review_score":5.7,"metadata_score":3,"freshness_score":15},"platforms":["Claude Code"],"use_cases":[{"slug":"coding-agents","title":"Coding agents","url":"https://www.openagentskill.com/use-cases/coding-agents"},{"slug":"testing-qa","title":"Testing and QA","url":"https://www.openagentskill.com/use-cases/testing-qa"},{"slug":"browser-automation","title":"Browser automation","url":"https://www.openagentskill.com/use-cases/browser-automation"},{"slug":"research-agents","title":"Research agents","url":"https://www.openagentskill.com/use-cases/research-agents"}],"stacks":[{"slug":"coding-review-agent","title":"Coding review agent","url":"https://www.openagentskill.com/collections/coding-review-agent"},{"slug":"browser-qa-agent","title":"Browser QA agent","url":"https://www.openagentskill.com/collections/browser-qa-agent"},{"slug":"content-growth-agent","title":"Content growth agent","url":"https://www.openagentskill.com/collections/content-growth-agent"}],"install":"npx skills add PramodDutta/qaskills --skill jest-unit","install_targets":[{"id":"openagentskill-cli","label":"CLI","title":"OpenAgentSkill CLI","kind":"command","value":"npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.3.0/openagentskill-0.3.0.tgz add pramoddutta-jest-unit","description":"Resolve policy, run the source installer safely, and report a verified install receipt.","copyLabel":"Copy command"},{"id":"codex","label":"Codex","title":"Codex install prompt","kind":"agent-prompt","value":"Install the \"jest-unit\" agent skill from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"codex\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.","description":"Give Codex a repo-aware install prompt when the skill is not available through a local CLI.","copyLabel":"Copy prompt"},{"id":"claude-code","label":"Claude Code","title":"Claude Code skill prompt","kind":"agent-prompt","value":"Add \"jest-unit\" as a Claude Code skill from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit. Inspect the skill instructions, place the reusable skill files in the appropriate local skills location for this project, and report the activation steps. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"claude-code\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.","description":"Use this prompt to ask Claude Code to add the skill and explain the local activation steps.","copyLabel":"Copy prompt"},{"id":"cursor","label":"Cursor","title":"Cursor rule prompt","kind":"agent-prompt","value":"Turn \"jest-unit\" from https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit into a reusable Cursor project rule or agent instruction. Preserve the core workflow, adapt paths to this repo, and keep the rule scoped to tasks where it is relevant. Skill purpose: Unit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"pramoddutta-jest-unit\",\"task\":\"Install jest-unit\",\"agent\":\"cursor\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.","description":"Use this when installing as Cursor project rules or reusable agent instructions.","copyLabel":"Copy prompt"}],"repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","github_repo":"PramodDutta/qaskills","version":"1.0.0","license":"MIT","urls":{"web":"https://www.openagentskill.com/skills/pramoddutta-jest-unit","repository":"https://github.com/PramodDutta/qaskills/tree/main/packs/qa-essentials/skills/jest-unit","api":"/api/agent/skills/pramoddutta-jest-unit","install_api":"/api/skills/pramoddutta-jest-unit/install"},"meta":{"created_at":"2026-09-06T07:25:17.7593+00:00","updated_at":"2026-09-06T07:25:18.083834+00:00","agent_friendly":true}}