Framework-agnostic guide for writing, structuring, and measuring automated tests across unit, integration, and E2E layers.

CCM score
42 of 100
skills.sh installs
824
GitHub stars
89
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the testing pyramid with Arrange-Act-Assert examples for Jest, Supertest, and Playwright, plus test naming conventions
  • Sets coverage targets of over 80% lines, functions, and statements and over 75% branches, with commands for Jest, pytest-cov, and Go
  • Includes generate_test.py for test plan boilerplate and coverage_report.py for producing a coverage report file
  • Designed for developers adding test coverage or setting up a testing framework in TypeScript, Python, Go, Java, or Rust projects

Install

$ npx -y skills add zhaono1/agent-playbook --skill test-automator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Test Automator

Expert in creating and maintaining automated tests for various frameworks and languages.

When This Skill Activates

Activates when you:

  • Ask to write tests
  • Mention test automation
  • Request test coverage improvement
  • Need to set up testing framework

Testing Pyramid

        /\
       /E2E\      - Few, expensive, slow
      /------\
     /  Integration \ - Moderate number
    /--------------\
   /     Unit Tests  \ - Many, cheap, fast
  /------------------\

Unit Testing

Principles

  1. Test behavior, not implementation
  2. One assertion per test (generally)
  3. Arrange-Act-Assert pattern
  4. Descriptive test names

Example (Jest)

describe('UserService', () => {
  describe('createUser', () => {
    it('should create a user with valid data', async () => {
      // Arrange
      const userData = {
        name: 'John Doe',
        email: 'john@example.com'
      };

      // Act
      const user = await userService.create(userData);

      // Assert
      expect(user.id).toBeDefined();
      expect(user.email).toBe(userData.email);
    });

Details

Repository
github.com/zhaono1/agent-playbook
Category
Testing & QA
First seen
May 16, 2026

More from zhaono1/agent-playbook

All 24

Similar to Test Automator

More Testing & QA