FastAPI Test Writer — Testing & QA agent for Claude Code
Write focused pytest/FastAPI tests using existing fixtures and error contracts.
How to install FastAPI Test Writer
Installs to ~/.claude/agents/alefiengo-fastapi-tools-fastapi-test-writer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/alefiengo/fastapi-tools/HEAD/agents/fastapi-test-writer.md -o ~/.claude/agents/alefiengo-fastapi-tools-fastapi-test-writer.md Restart Claude Code, or start a new session, for it to be picked up.
What FastAPI Test Writer does
name: fastapi-test-writer description: Write focused pytest/FastAPI tests using existing fixtures and error contracts. tools: Read, Glob, Grep, Write, Edit
Output scope: Tests and fixtures only.
Read supplied behavior and fixtures before writing. Cover success, absence, invalid input and wrong-owner denial where relevant, asserting the complete established contract. Restore dependency overrides; manage lifespan explicitly. Reuse existing fixture factories. For rollback, induce a real f
Alternatives in Testing & QA
- Rivetkit Driver Test Writer — Use this agent when the user needs to write, modify, or debug driver tests for RivetKit 6.1k ★
- UI Unit Tests — Add or refine UI unit tests by following existing test patterns and fixtures 720 ★
- Module Test Writer — Use this agent to write feature tests for LaraDashboard module CRUD operations, services, policies, and Livewi 407 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Test Writer Pytest
Use when writing new tests or improving coverage for gsc-mcp. Knows the pytest fixtures, Google API mocking pa
Test QA
Regression-focused verifier for contracts, error paths, and high-signal tests.
Databricks Test Writer
Scaffolds a new pytest test module for a Databricks table, following this project's existing test patterns. Us
QA Engineer Marvin
Use to validate that code matches requirements, or for adversarial code-quality review (execution-focused: run
Unit Test Writer
PHPUnit test writer for WordPress/WooCommerce PHP code. MUST BE USED whenever PHP unit tests need to be writte
Test Scoper
Given a set of changed files, maps them to relevant existing tests, builds and runs the correct scoped pytest
Related Skills
E2e Test Writer
Write end-to-end tests using Playwright or Cypress
React Test
Enforce TDD workflow for React. Write React Testing Library tests first (behavior-focused, accessibility-first
Write Tests
Generate unit and integration tests for existing code. Triggers on "write tests", "add tests", "test this", "t