Skip to content
Skill

Testing conventions

Guides an agent through pytest, async fixtures and security-regression tests for FastAPI

Testing conventions is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
13
Last commit
License
MIT
Listing updated

Similar skills

About Testing conventions

This skill gives the agent a set of testing conventions drawn from backend and frontend services. For Python and FastAPI projects it covers session-scoped event loops, separate test databases and Redis instances, autouse migration and cleanup fixtures, httpx ASGI clients, factory-based test data, and mocking Kafka, Temporal and HTTP dependencies with AsyncMock. For React it covers Vitest setup with jsdom, coverage thresholds and test discovery patterns.

The skill also describes a CI layer: path-filtered workflows, Postgres and Redis service containers with health checks, job dependencies, coverage gating, artifact uploads, Codecov reporting, and contract and end-to-end test jobs. It adds guidance on consumer-driven contract testing across services and a security-regression section covering negative authorization, cross-tenant isolation, IDOR, login lockout, gateway header trust and input rejection, run as a dedicated pytest marker gate.

The agent is expected to work with Python and pytest for backend code and Vitest for frontend code. It also includes a coverage audit template and a recommended baseline for repositories with thin test coverage. Reference files hold longer examples for fixtures, GitHub Actions and security tests.

When your agent uses it

Testing conventions for Python/FastAPI and React — pytest, async fixtures, AsyncMock, Vitest, and security-regression tests (authz, tenant isolation). Do NOT use for the TDD loop (use test-driven-development).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 9 files (100 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the claude-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit

Or copy only this skill to ~/.claude/skills/testing-conventions:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/testing-conventions &&
cp -R "$tmp/providers/codex/claude-kit/skills/testing-conventions" ~/.claude/skills/testing-conventions &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/testing-conventions inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/testing-conventions to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/testing-conventions &&
cp -R "$tmp/providers/codex/claude-kit/skills/testing-conventions" ~/.agents/skills/testing-conventions &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/testing-conventions inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/testing-conventions to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/testing-conventions &&
cp -R "$tmp/providers/codex/claude-kit/skills/testing-conventions" ~/.cursor/skills/testing-conventions &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/testing-conventions inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ajyadav013/claude-kit.git --path providers/codex/claude-kit/skills/testing-conventions

Or copy the folder to ~/.gemini/skills/testing-conventions yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/testing-conventions:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/testing-conventions &&
cp -R "$tmp/providers/codex/claude-kit/skills/testing-conventions" ~/.copilot/skills/testing-conventions &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/testing-conventions inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ajyadav013/claude-kit.git

Then copy claude-kit/providers/codex/claude-kit/skills/testing-conventions into your agent's skills folder as testing-conventions. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Async pytest fixtures
Patterns for session event loops, function-scoped DAO fixtures and async HTTP clients in FastAPI projects.
Mocking external services
AsyncMock and patch recipes for Kafka producers, Temporal clients and HTTP publish functions.
Test database isolation
Environment overrides, migration runs and autouse cleanup that flush Redis and truncate tables.
Vitest frontend setup
Vitest configuration with jsdom, setup files, test discovery and coverage thresholds for React code.
Security-regression tests
Negative authorization, cross-tenant isolation, IDOR, lockout and trust-boundary tests run as a dedicated gate.
CI test orchestration
GitHub Actions patterns for service health checks, coverage gating, artifacts and contract test jobs.

Good for

  • Set up pytest conftest with async fixtures for a FastAPI service
  • Write DAO and service layer tests with mocked Kafka or Temporal clients
  • Add cross-tenant and role-based access tests to a FastAPI API
  • Configure Vitest with jsdom and coverage thresholds for a React app
  • Build a baseline test suite for a repository with little coverage
  • Create a GitHub Actions workflow that runs backend tests against Postgres and Redis

Testing conventions FAQ

Which languages and frameworks does Testing conventions cover?

It covers Python with pytest and FastAPI for backend code, and React with Vitest for frontend code.

Should I use Testing conventions for test-driven development?

No. The skill says not to use it for the TDD loop, which is handled by a separate test-driven-development skill.

Does Testing conventions include scripts or tools the agent runs?

No scripts are included. It consists of SKILL.md instructions and reference documents.

What does the security section check?

It checks that protected routes return 401 without auth and 403 for the wrong role, that cross-tenant requests return 404, and that forged gateway signatures are rejected.

How do I install Testing conventions in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/testing-conventions to use it in all your projects, or to .claude/skills/testing-conventions in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

Does Testing conventions run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Testing conventions?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Testing conventions?

The closest alternatives to Testing conventions are Pytest skill, Python backend, Vitest skill, Async python patterns and React frontend.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ajyadav013/claude-kit

  1. Lets your agent inspect and debug live browser pages via Chrome DevTools MCP

    • Open source
    • 13 GitHub stars
    • Browser automation
  2. Runs concurrent load and stress tests against API endpoints to find latency and throughput

    • Open source
    • 13 GitHub stars
    • Developer tools
  3. Lets an agent click through a feature in a real browser and check how it behaves

    • Open source
    • 13 GitHub stars
    • Developer tools
  4. Runs quick health checks on backend, frontend and login to catch obvious breakage

    • Open source
    • 13 GitHub stars
    • Developer tools
  5. Guides an agent through red-green-refactor, bug reproduction tests and test pyramid

    • Open source
    • 13 GitHub stars
    • Developer tools
  6. Critiques a test plan or test-infra design before any test code is written

    • Open source
    • 13 GitHub stars
    • Developer tools