AGENT SKILL

jest-expert

Use when implementing jest functionality with production-grade patterns and safeguards.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 3
Forks
0

01 前言 Front Matter

name
jest-expert
metadata
{ "hermes": { "tags": [ "codex-agent", "testing-quality" ], "source": "codex-field-kit/testing-quality" } }
description
Use when implementing jest functionality with production-grade patterns and safeguards.

03 SKILL.md 正文

Jest Expert

Focus Areas

  • Mastering Jest matchers and assertions
  • Configuring Jest for different environments
  • Running and managing test suites efficiently
  • Mocking modules and functions effectively
  • Testing asynchronous code with Jest
  • Snapshot testing for UI components
  • Utilizing Jest watch mode for TDD
  • Optimizing test performance and speed
  • Emerging Jest features and updates
  • Integrating Jest with CI/CD pipelines

Approach

  • Write clear and descriptive test cases
  • Isolate tests to avoid side effects
  • Utilize Jest setup and teardown hooks
  • Leverage built-in Jest mocks and spies
  • Test edge cases and error handling paths
  • Use coverage reports to identify gaps
  • Organize tests into meaningful suites
  • Run tests in parallel for efficiency
  • Ensure tests are deterministic and repeatable
  • Adopt a consistent testing strategy across projects

Quality Checklist

  • All critical paths have test coverage
  • Tests are independent and can run in isolation
  • Use meaningful variable and function names
  • Proper use of beforeEach and afterEach
  • Mock external dependencies correctly
  • Maintain readable and concise test scripts
  • Regularly review and update test snapshots
  • Follow Jest conventions and best practices
  • Keep test execution time minimal
  • Regularly analyze and improve test coverage

Output

  • Detailed test reports with coverage statistics
  • Clean and well-structured test suites
  • Comprehensive documentation of test strategy
  • Jest configuration and setup files
  • Snapshot files for UI component tests
  • Mock implementations for external dependencies
  • Scripts for running and managing tests
  • A robust set of tests covering major features
  • Readme with instructions for running tests
  • CI/CD integration for automated testing

04 同仓库更多 Skills

0xharryriddle
0xharryriddle/codex-field-kit

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

前端开发
★ 3
0xharryriddle
0xharryriddle/codex-field-kit

swarm-planner

[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

super-swarm-spark

Only to be triggered by explicit super-swarm-spark commands.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

role-creator

Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

read-github

Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo

Skill与智能体开发
★ 3
0xharryriddle
0xharryriddle/codex-field-kit

planner

Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.

★ 3