Not loaded · from fastmcp-engineering
Engineer Pydantic v2 and MCP-facing schemas with explicit contracts, strict validation, JSON Schema compatibility, evolution rules, and separation from domain/ORM models.
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.
Treat schemas as public contracts. Separate MCP transport DTOs, application commands/results, domain models, and SQLAlchemy persistence models. Do not let framework serialization accidentally define architecture.
Scope / When to use: Pydantic v2 and MCP-facing schemas with explicit contracts, strict validation, JSON Schema compatibility, evolution rules, and separation from domain/ORM models.
Trigger: designing or changing public schemas, validation, JSON Schema generation, or schema evolution.
Upstream / Prerequisite: repository engineering contracts and AGENTS.md read; identified exact Python, Pydantic, FastMCP and relevant dependency versions; evidence recorded before coding.
Mission / Goal: treat schemas as public contracts; separate MCP transport DTOs, application commands/results, domain models, and SQLAlchemy persistence models; do not let framework serialization accidentally define architecture.
Research / Evidence: read official Pydantic v2 documentation relevant to the feature; read official FastMCP schema/input/output documentation and llms material; inspect relevant official FastMCP examples; inspect Pydantic/FastMCP source/tests when behavior is ambiguous; check JSON Schema and MCP specification semantics where they affect interoperability.
Decision / Selection rules: use verified v2 APIs and semantics; avoid Any, unvalidated dictionaries, implicit coercion and custom validation when a precise type can express the invariant; verify how FastMCP derives tool input/output schemas for the exact version and test generated schemas and invocation results; classify every public schema change as additive/backward-compatible, breaking, migration-required, or protocol-version-gated; never treat Pydantic validation as authorization.
Version / Compatibility: identify exact Python, Pydantic, FastMCP and relevant dependency versions.
Deliverables / Artifacts: research package, schema decision matrix, implementation, JSON Schema fixtures, compatibility tests, FastMCP integration tests, architecture re-check, and evidence ledger.
Verification / Testing: test validation success/failure, coercion/strictness, generated JSON Schema, serialization round trips, unions, boundary cases, malicious inputs, compatibility fixtures, and FastMCP protocol invocation; use property-based tests for complex invariants where useful.
Failure / Stop conditions: reject if schema boundaries are implicit, ORM entities are exposed directly, Any hides a contract, authorization is confused with validation, generated schemas are unverified, or a breaking change lacks migration/version treatment.
Positive scenario: a public schema is validated, verified against FastMCP protocol invocation, and evolves compatibly.
Negative scenario: an ORM entity is exposed directly as a public schema or a breaking change lacks migration/version treatment.
Before implementation:
MCP JSON / JSON Schema
↓
MCP DTO / Pydantic adapter model
↓
Application command/result
↓
Domain model/value object
↓
Persistence model
A single model may cross layers only with an explicit architectural reason and documented trade-off.
Use verified v2 APIs and semantics. Evaluate:
Avoid Any, unvalidated dictionaries, implicit coercion, and custom validation when a precise type can express the invariant.
Verify how FastMCP derives tool input/output schemas from Python annotations and Pydantic types for the exact version. Do not assume JSON Schema support equals MCP client compatibility. Test generated schemas and actual invocation results.
Every public schema change must classify compatibility:
Never silently rename fields, change nullability, change requiredness, alter enum semantics, or change serialization format without an explicit compatibility decision.
Validate structural and semantic constraints at the appropriate boundary. Never treat Pydantic validation as authorization. Do not accept arbitrary object construction, unsafe deserialization, secrets in repr/schema, or unbounded payloads without limits.
Test validation success/failure, coercion/strictness, generated JSON Schema, serialization round trips, unions, boundary cases, malicious inputs, compatibility fixtures, and FastMCP protocol invocation. Use property-based tests for complex invariants where useful.
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