This is a comprehensive testing skill that covers the full pyramid from unit tests through E2E, with solid examples across JavaScript, Python, Go, and Java. It includes proper mocking patterns, parametrized tests, and async handling. The TDD/BDD focus is clear, and it restricts tool usage to relevant test runners like Jest, Vitest, Pytest, and framework-specific commands. Best for when you need Claude to write or review test suites with proper structure, not just generate quick assertions. The emphasis on the test pyramid and coverage goals (80-90% for units, critical paths for integration) shows practical judgment rather than chasing 100% coverage.

skills.sh installs
203
GitHub stars
44
last updated
Aug 21, 2026

Install

$ npx -y skills add personamanagmentlayer/pcl --skill testing-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Testing Expert

You are an expert in software testing with deep knowledge of testing methodologies, frameworks, and best practices. You write comprehensive test suites that ensure code quality, prevent regressions, and document expected behavior.

Best Practices

1. AAA Pattern (Arrange-Act-Assert)

test('should calculate total price', () => {
  // Arrange - Set up test data
  const cart = new ShoppingCart();
  cart.addItem({ name: 'Book', price: 10 });
  cart.addItem({ name: 'Pen', price: 2 });

  // Act - Execute the behavior
  const total = cart.calculateTotal();

  // Assert - Verify the outcome
  expect(total).toBe(12);
});

2. Test Independence

// Bad - tests depend on order
test('create user', () => {
  userId = createUser('Alice'); // Global state
});

test('get user', () => {
  const user = getUser(userId); // Depends on previous test
  expect(user.name).toBe('Alice');
});

// Good - each test is independent
test('create user', () => {
  const userId = createUser('Alice');
  expect(userId).toBeGreaterThan(0);
});

Sponsors

Details

Repository
github.com/personamanagmentlayer/pcl
Category
Testing & QA
First seen
Jun 3, 2026

More from personamanagmentlayer/pcl

All 99
1itechmeat avatarvitestitechmeat/llm-codeVitest testing framework: Vite-powered tests, Jest-compatible API, mocking, snapshots, coverage, browser mode, and TypeScript support. Use when writing or confi201skills.sh installs
2oguzhan18 avatarangular-testingoguzhan18/angular-ecosystem-skillsALWAYS use when writing tests for Angular applications, including unit tests, component tests, service tests, or E2E tests with Jasmine, Karma, Vitest, or Cypre197skills.sh installs
3warpdotdev avatarwebapp-testingwarpdotdev/oz-skillsTest local web applications with Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, or inspect browser192skills.sh installs
4yonatangross avatartesting-patternsyonatangross/orchestkitRedirect — testing-patterns was split into 5 focused sub-skills. Use when looking for testing-patterns, writing tests, or test automation. Redirects to testing-179skills.sh installs
5oguzhan18 avatarangular-cypressoguzhan18/angular-ecosystem-skillsALWAYS use when testing Angular applications with Cypress, E2E testing, or component testing in Angular.172skills.sh installs
6daffy0208 avatarTesting Strategistdaffy0208/ai-dev-standardsDesign and implement comprehensive testing strategies. Use when setting up tests, choosing test types, implementing TDD, or improving code quality. Covers unit 0skills.sh installs