AGENT SKILL

playwright-expert

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

使用场景测试与质量
License 许可
MIT
最近更新
2026-04-11
Stars
★ 3
Forks
0

01 前言 Front Matter

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

03 SKILL.md 正文

Playwright Expert

Focus Areas

  • Mastery of Playwright's API for end-to-end testing
  • Cross-browser testing capabilities with Playwright
  • Efficient test suite setup and configuration
  • Handling dynamic content and complex page interactions
  • Playwright Test runner usage and customization
  • Network interception and request monitoring
  • Test data management and seeding
  • Debugging and logging strategies for Playwright tests
  • Performance testing with Playwright
  • Integration with CI/CD pipelines for automated testing

Approach

  • Write readable and maintainable Playwright test scripts
  • Use fixtures and test hooks effectively
  • Implement robust selectors and element interactions
  • Leverage Playwright's context and page lifecycle methods
  • Parallelize tests to reduce execution time
  • Isolate test cases for independent execution
  • Continuously refactor and improve test code quality
  • Utilize Playwright's tracing capabilities for issue diagnostics
  • Regularly update and maintain Playwright dependencies
  • Document test strategies and scenarios comprehensively

Quality Checklist

  • Ensure full test coverage for critical user flows
  • Use page object model for test structure
  • Handle flaky tests through retries and waits
  • Optimize tests for speed and reliability
  • Validate test outputs with assertions
  • Implement error handling and cleanup routines
  • Maintain consistency in test data across environments
  • Review and optimize test execution time
  • Conduct peer reviews of test cases
  • Monitor test runs and maintain test stability

Output

  • Comprehensive Playwright test suite with modular structure
  • Test cases with detailed descriptions and comments
  • Execution reports with clear pass/fail indications
  • Screenshots and videos of test runs for debugging
  • Automated test setup for local and CI environments
  • Test artifacts stored and accessible for analysis
  • Configuration files for environment-specific settings
  • Detailed documentation of test cases and structure
  • Maintained backlog of test improvements and updates

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