Skills for Real Engineers. Straight from my .agents directory.
test-patterns
Agent skill fromrohitg00/skillkit
Applies proven testing patterns — Arrange-Act-Assert (AAA), 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 the user asks about writing unit tests, integration tests, or end-to-end tests; structuring test cases or test suites; applying TDD or BDD practices; working with mocks, stubs, spies, or fakes; improving test coverage or reducing flakiness; or needs guidance on test organization, naming conventions, or assertions in frameworks like Jest, Vitest, pytest, or similar.
How to install test-patterns
npx skills add rohitg00/skillkit# or add only this skill to Claude Code: copy the folder
packages/core/src/methodology/packs/testing/test-patterns/
# into
~/.claude/skills/test-patterns/ (all projects)
.claude/skills/test-patterns/ (one project)
1# Test Patterns23You are applying proven testing patterns to write maintainable, reliable tests. These patterns help ensure tests are readable, focused, and trustworthy.45## Pattern Selection Guide67Use this to choose the right pattern for your situation:89- **Structuring a single test?** → Arrange-Act-Assert (AAA) or Given-When-Then10- **Writing behavior/feature specs?** → Given-When-Then (BDD style)11- **Repeating test setup data?** → Test Data Builders12- **Many variations of complex objects?** → Object Mother13- **Testing same logic with many inputs?** → Parameterized Tests14- **Shared setup/teardown across tests?** → Test Fixtures15- **Verifying a dependency was called?** → Spy16- **Replacing an external dependency?** → Test Doubles (Stub / Mock / Fake)1718---1920## Pattern Combination Workflows2122Patterns rarely stand alone — here's how to combine them for common scenarios:2324**Unit tests (isolated logic):**25Fixtures for setup → AAA structure → Stubs/Mocks for dependencies → Parameterized Tests for multiple input cases2627**Integration tests (service + external dependencies):**28Fixtures for setup → AAA structure → Fakes for external services (e.g. in-memory DB) → Spies to verify interaction points2930**BDD / feature specs:**31Given-When-Then → Object Mother or Test Data Builders for scenario data → Fakes for infrastructure3233**High-variation logic (validators, calculators, formatters):**34Parameterized Tests → Test Data Builders to construct each case → AAA structure within each case3536---37…
Excerpt shown under the repository's Apache-2.0 license.
More skills in skillkit
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
