Not loaded · from fastmcp-engineering
Evidence-first testing and TDD engineering for FastMCP, PydanticAI, SQLAlchemy and production Python services.
Claude Code won't load this skill
It ships in fastmcp-engineering at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Build a test system that proves behavior, contracts, failure handling and architecture without making the suite slow, flaky, provider-dependent or coupled to implementation details.
Scope / When to use: testing and TDD engineering for FastMCP, PydanticAI, SQLAlchemy and production Python services. Trigger: designing or changing the test system, TDD workflow, fixtures, async testing, PydanticAI/FastMCP/database testing, or quality gates. Upstream / Prerequisite: repository architecture, security, reliability and configuration contracts read; identified exact versions; evidence and unresolved questions recorded. Mission / Goal: build a test system that proves behavior, contracts, failure handling and architecture without making the suite slow, flaky, provider-dependent or coupled to implementation details. Research / Evidence: read official pytest documentation for fixtures, parametrization, markers, collection, monkeypatching, async testing and plugin behavior; read official PydanticAI testing documentation and source/tests for TestModel, FunctionModel, Agent.override and request blocking; read official FastMCP testing/client/server documentation and examples for the exact version; read SQLAlchemy testing/async transaction documentation and PostgreSQL integration requirements; inspect official examples/source/tests for version-sensitive behavior. Decision / Selection rules: write a failing test that expresses the desired contract before behavior-changing implementation; use an explicit test taxonomy (unit, component, contract, integration, end-to-end, resilience/failure, security, property-based/fuzz); keep the fast deterministic suite broad and expensive provider/network/e2e tests narrow and separately selectable; make fixtures explicit, modular and lifecycle-scoped; use the current documented async testing mode; keep normal CI free of live model requests via TestModel/FunctionModel/Agent.override; test MCP schemas and behavior at the MCP boundary; use a real PostgreSQL environment for SQL semantics; assert externally meaningful behavior; enforce dependency direction with architecture checks. Version / Compatibility: identify exact Python, pytest, FastMCP, PydanticAI, SQLAlchemy and database-driver versions.
Deliverables / Artifacts: test strategy, test taxonomy, fixture/lifecycle policy, TDD plan, provider-isolation strategy, MCP contract tests, DB integration strategy, resilience/security test matrix, architecture tests, implementation, verification report and residual-risk register. Verification / Testing: run formatting, linting, typing, unit/component tests, contract/integration tests and targeted failure/security suites according to the repository's gates; record exact commands and real results; separate tests skipped because infrastructure/provider access is unavailable from passing tests. Failure / Stop conditions: reject if CI requires live LLMs, tests rely on sleeps/races, integration behavior is claimed from mocks, fixtures leak state, AsyncSession is shared across concurrent tasks, security boundaries are untested, failures are swallowed, or tests assert implementation details instead of contracts without justification. Positive scenario: the test system proves behavior and contracts without a live model in normal CI. Negative scenario: CI requires live LLMs or integration behavior is claimed from mocks.
Before implementation:
Do not infer framework testing semantics from generic pytest knowledge when official framework guidance exists.
For behavior-changing implementation, write a failing test that expresses the desired contract, implement the minimum behavior, then refactor. Do not write meaningless tests solely to satisfy coverage. When research or architecture work cannot sensibly start with a test, document why and establish contract tests before implementation.
Use explicit categories:
Do not confuse a mock-heavy unit test with an integration test.
Keep the fast deterministic suite broad. Keep expensive real-provider, network and end-to-end tests narrow and separately selectable. Tests should fail for behavioral regressions, not refactors that preserve contracts.
Fixtures must be explicit, modular and scoped to lifecycle needs. Prefer function scope for mutable state. Use broader scopes only for genuinely immutable/isolated resources. Avoid autouse fixtures that hide important setup. Cleanup must be guaranteed through fixture finalization/context managers.
Parametrize behavior rather than duplicating test bodies. Give important parameter sets readable IDs. Avoid shared mutable parameter objects.
Use the current documented pytest-asyncio/async testing mode for the exact stack. Never share an AsyncSession across concurrent tasks. Test cancellation and cleanup explicitly.
Normal CI must not make live model requests. Use TestModel or FunctionModel for deterministic tests and Agent.override for controlled replacement of models/dependencies/toolsets. Configure documented request blocking such as ALLOW_MODEL_REQUESTS=False where appropriate. Verify tool availability, arguments, structured output, validation/retry paths, usage limits and failures. Real providers belong in controlled integration tests.
Test tool/resource/prompt schemas and behavior at the MCP boundary using the documented FastMCP testing/client mechanisms. Add protocol/contract tests where client/server interoperability matters. Test authentication/authorization independently from handler business logic. Test lifecycle, cancellation and error mapping.
Use mocks for repository-independent application behavior, but use a real PostgreSQL integration environment for SQL semantics, constraints, transactions, isolation, locking, RLS, migrations and query behavior that SQLite/in-memory fakes cannot prove. Ensure each test owns its transaction/data lifecycle and parallel tests cannot contaminate one another.
Assert externally meaningful behavior: returned data, state changes, emitted domain events, authorization decisions, tool contracts and error taxonomy. Avoid asserting private attributes, exact call counts or incidental implementation structure unless that interaction is itself a contract.
No sleeps as synchronization. Control clocks, randomness, IDs and external responses. Detect order dependence. Bound all external operations. Isolate environment variables and process-global state. Re-run flaky tests and identify the race before changing timing.
Coverage is a diagnostic, not a quality target. Require meaningful coverage of critical branches, authorization, failure paths, transaction boundaries and security-sensitive behavior. Do not lower quality by gaming line coverage.
Where practical, enforce dependency direction and forbidden imports with architecture checks. A test suite must detect accidental framework/database leakage into domain layers.
Use mutation testing selectively on high-value domain/security logic. Use property-based tests for invariants and parsers where generated cases provide meaningful defect detection. Do not introduce expensive tooling everywhere without evidence of value.
Run formatting, linting, typing, unit/component tests, contract/integration tests and targeted failure/security suites according to the repository's gates. Record exact commands and real results. Separate tests skipped because infrastructure/provider access is unavailable from passing tests.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (evgenygurin/fastmcp-engineering) — no native marketplace selected
npx claudepluginhub p/evgenygurin-fastmcp-engineering58 skills in this plugin
/pydantic-ai-agent-integrationEngineer PydanticAI agents behind explicit application boundaries and integrate them with FastMCP without leaking agent state, prompts, model concerns, or provider details into domain logic./api-contract-schema-engineeringEvidence-first API and MCP contract engineering with Pydantic v2 and JSON Schema./api-lifecycle-versioningEvidence-first API lifecycle, schema evolution and compatibility engineering for FastMCP/MCP servers.Other plugins' skills for the same job