🧪
QualityTypeScript

Test Patterns

by rohitg00

Test Patterns is a Quality skill for Claude Code, published by rohitg00 in skillkit.

1.5K stars137 forkson rohitg00/skillkitAdded 2026/08/19+1% in starsRepository updated 2026/06/02
agent-skillsagentskillsaiclicodexcursorgeminiopencodeskills
Install in seconds
Install Test Patterns
Copy Test Patterns into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/rohitg00/skillkit/tree/main/packages/core/src/methodology/packs/testing/test-patterns ~/.claude/skills/test-patterns

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/rohitg00/skillkit.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
packages/core/src/methodology/packs/testing/test-patterns/SKILL.md in rohitg00/skillkit
Installs to
~/.claude/skills/test-patterns
Collection
One of 17 skills cataloged from this repository
Category
Quality1354 skills

What Test Patterns does

Test Patterns applies proven testing patterns like Arrange-Act-Assert, Given-When-Then, Test Data Builders, Object Mother, parameterized tests, fixtures, spies, and test doubles to help write maintainable, reliable, and readable test suites. Use when writing unit, integration, or end-to-end tests, applying TDD/BDD, or working with mocks, stubs, spies, or fakes.

Test Patterns is cataloged under Quality on DirSkills. Test Patterns comes from a repository tagged agent-skills, agentskills, ai, cli and codex.

Documentation

README

Test Patterns

You are applying proven testing patterns to write maintainable, reliable tests. These patterns help ensure tests are readable, focused, and trustworthy.

Pattern Selection Guide

Use this to choose the right pattern for your situation:

  • Structuring a single test? → Arrange-Act-Assert (AAA) or Given-When-Then
  • Writing behavior/feature specs? → Given-When-Then (BDD style)
  • Repeating test setup data? → Test Data Builders
  • Many variations of complex objects? → Object Mother
  • Testing same logic with many inputs? → Parameterized Tests
  • Shared setup/teardown across tests? → Test Fixtures
  • Verifying a dependency was called? → Spy
  • Replacing an external dependency? → Test Doubles (Stub / Mock / Fake)

Pattern Combination Workflows

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Test Patterns

  • What else does rohitg00 publish alongside Test Patterns?

    Test Patterns is one of 17 skills that DirSkills catalogs from rohitg00/skillkit, the repository it ships in. Its siblings there include Design First, Eval Injection Test and Find Skills. Each one is a separate skill with its own page in this directory, installs the same way Test Patterns does, and is maintained by rohitg00 in that same repository. The rest of the collection is listed on the rohitg00/skillkit page.

  • How does Test Patterns compare to other Quality skills?

    Test Patterns ranks #667 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Test Patterns against them. Open each page to compare what they document and how they install.

More from rohitg00/skillkit

Test Patterns is one of 17 skills cataloged on DirSkills from rohitg00/skillkit.

See all 17 skills
📐
2w ago

Design First

Design First guides creation of technical design documents before coding, producing architecture diagrams, data models, API definitions, implementation plans, and trade-off analyses. Use when planning a feature, architecting a system, or designing an API.
Quality
1.5K137
🧪
2w ago

Eval Injection Test

Eval Injection Test contains eval patterns and hidden instructions for testing whether an agent will execute injected code. Use it in a controlled environment to evaluate skill security.
Quality
1.5K137
🔍
2w ago

Find Skills

Find Skills discovers, searches, and installs skills from multiple AI agent skill marketplaces using the SkillKit CLI. Use it when the user wants to find, browse, or install new agent skills, plugins, extensions, or add-ons for areas like React, testing, DevOps, security, or APIs.
AI Engineering
1.5K137
🤝
2w ago

General Assistant

General Assistant helps agents perform helpful tasks and assist users across various requests. Use it as a general-purpose skill when no specific skill matches the task.
AI Engineering
1.5K137
📋
2w ago

Handoff Protocols

Handoff Protocols creates structured handoff documents that summarize project status, key decisions, blockers, open questions, and next steps for planned or unplanned work transitions between people or agents.
Writing
1.5K137
🧪
2w ago

Hypothesis-Driven Debugging

Hypothesis-Driven Debugging applies the scientific method to debugging by helping users form specific, testable hypotheses, design targeted experiments, and systematically confirm or reject theories to find root causes when debugging errors or troubleshooting bugs.
Quality
1.5K137