Build Your Testing Skill

Create your agent-tdd skill in one prompt, then learn to improve it throughout the chapter

181 stars

Best use case

Build Your Testing Skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Create your agent-tdd skill in one prompt, then learn to improve it throughout the chapter

Teams using Build Your Testing Skill should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/46-tdd-for-agents/SKILL.md --create-dirs "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/46-tdd-for-agents/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/46-tdd-for-agents/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Build Your Testing Skill Compares

Feature / AgentBuild Your Testing SkillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Create your agent-tdd skill in one prompt, then learn to improve it throughout the chapter

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Build Your Testing Skill

Before learning how to test AI agents, you'll **own** a testing skill.

This chapter teaches TDD (Test-Driven Development) for agent code—the deterministic tests that verify your code works correctly, runs fast, and costs nothing. By the end, you'll have a comprehensive test suite for your Task API with 80%+ coverage and zero LLM API calls during testing.

But you won't learn testing patterns and then maybe build a skill later. You'll build the skill **first**, then spend the chapter improving it with every lesson.

---

## Step 1: Get the Skills Lab

1. Go to [github.com/panaversity/claude-code-skills-lab](https://github.com/panaversity/claude-code-skills-lab)
2. Click the green **Code** button
3. Select **Download ZIP**
4. Extract the ZIP file
5. Open the extracted folder in your terminal

```bash
cd claude-code-skills-lab
claude
```

---

## Step 2: Create Your Skill

Copy and paste this prompt:

```
Using your skill creator skill create a new skill for testing AI agent code
with pytest. I will use it to test FastAPI endpoints, mock LLM calls, and
test agent pipelines from hello world to production test suites.
Use context7 skill to study official pytest-asyncio and respx documentation
and then build it so no self assumed knowledge.
```

Claude will:
1. Fetch official pytest-asyncio and respx documentation via Context7
2. Ask you clarifying questions (testing patterns, async preferences, coverage goals)
3. Create the complete skill with fixtures, mocking patterns, and templates

Your skill appears at `.claude/skills/agent-tdd/`.

---

## Done

You now own an `agent-tdd` skill built from official documentation. The rest of this chapter teaches you what it knows—and how to make it better.

Every lesson ends with a "Reflect on Your Skill" section where you'll test your skill, identify gaps, and improve it. By the capstone, your skill will generate complete test suites from specifications.

**Next: Lesson 1 — TDD Philosophy for Agents**

Related Skills

admin-panel-builder

181
from majiayu000/claude-skill-registry

Expert assistant for creating and maintaining admin panel pages in the KR92 Bible Voice project. Use when creating admin pages, building admin components, integrating with admin navigation, or adding admin features.

adk-agent-builder

181
from majiayu000/claude-skill-registry

Build production-ready AI agents using Google's Agent Development Kit with AI assistant integration, React patterns, multi-agent orchestration, and comprehensive tool libraries. Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

add-backend-testing

181
from majiayu000/claude-skill-registry

Add backend integration testing with Vitest to an existing app. Sets up isolated test database schema and writes tests for tRPC routers.

adb-device-testing

181
from majiayu000/claude-skill-registry

Use when testing Android apps on ADB-connected devices/emulators - UI automation, screenshots, location spoofing, navigation, app management. Triggers on ADB, emulator, Android testing, location mock, UI test, screenshot walkthrough.

adb-builder

181
from majiayu000/claude-skill-registry

No description provided.

action-builder-skill

181
from majiayu000/claude-skill-registry

Use when creating or refactoring Nango integration actions to be thin API wrappers - provides patterns for minimal transformation logic, direct proxy calls, and standardized structure

act-local-testing

181
from majiayu000/claude-skill-registry

Use when testing GitHub Actions workflows locally with act. Covers act CLI usage, Docker configuration, debugging workflows, and troubleshooting common issues when running workflows on your local machine.

accessibility-testing

181
from majiayu000/claude-skill-registry

WCAG 2.2 compliance testing, screen reader validation, and inclusive design verification. Use when ensuring legal compliance (ADA, Section 508), testing for disabilities, or building accessible applications for 1 billion disabled users globally.

acceptance-testing

181
from majiayu000/claude-skill-registry

Plan and (when feasible) implement or execute user acceptance tests (UAT) / end-to-end acceptance scenarios. Converts requirements or user stories into acceptance criteria, test cases, test data, and a sign-off checklist; suggests automation (Playwright/Cypress for web, golden/snapshot tests for CLIs/APIs). Use when validating user-visible behavior for a release, or mapping requirements to acceptance coverage.

acc-testing-knowledge

181
from majiayu000/claude-skill-registry

Testing knowledge base for PHP 8.5 projects. Provides testing pyramid, AAA pattern, naming conventions, isolation principles, DDD testing guidelines, and PHPUnit patterns.

acc-create-test-builder

181
from majiayu000/claude-skill-registry

Generates Test Data Builder and Object Mother patterns for PHP 8.5. Creates fluent builders with sensible defaults and factory methods for test data creation.

acc-create-builder

181
from majiayu000/claude-skill-registry

Generates Builder pattern for PHP 8.5. Creates step-by-step object construction with fluent interface and validation. Includes unit tests.