Not loaded · from fastmcp-engineering
Evidence-first design of production MCP tools, resources and prompts as stable public APIs.
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.
Design MCP tools, resources and prompts as deliberate public contracts, not thin wrappers around database tables or internal methods.
Scope / When to use: design of MCP tools, resources and prompts as stable public APIs. Trigger: adding, changing, or reviewing a public MCP tool, resource, or prompt and its contract surface. Upstream / Prerequisite: identified exact versions; the repository architecture/security/testing/configuration/reliability skills read; an evidence ledger and compatibility matrix. Mission / Goal: design MCP tools, resources and prompts as deliberate public contracts, not thin wrappers around database tables or internal methods. Research / Evidence: read the current official MCP specification and FastMCP documentation/examples for the exact version, especially tools, resources, prompts, annotations, structured output, pagination, elicitation and error semantics; inspect official source/tests when documentation is ambiguous; research Pydantic/PydanticAI schema and validation behavior where used. Decision / Selection rules: one tool represents one coherent capability with bounded responsibility; use explicit Pydantic models to constrain inputs; separate protocol errors from application/domain errors; keep authorization deterministic and outside the LLM; classify side effects and require idempotency for mutations; never return unbounded collections; maintain a contract matrix for clients and server versions. Version / Compatibility: identify exact versions; removing/renaming a public tool, resource URI or required input is a breaking change unless the protocol/version policy explicitly permits it; add optional fields rather than silently changing meaning.
Deliverables / Artifacts: capability inventory, contract matrix, schema definitions, authorization/risk classification, compatibility matrix, pagination strategy, error taxonomy, evidence ledger, implementation, contract tests and verification report. Verification / Testing: test schemas, protocol serialization, authorization, errors, idempotency, pagination, compatibility and dangerous side effects; use official FastMCP/MCP testing mechanisms plus application integration tests; test adversarial/invalid inputs and large result boundaries. Failure / Stop conditions: reject if a public tool bypasses application authorization, exposes ORM/domain internals, has unbounded output, conflates protocol/application errors, permits unsafe replay, uses descriptions as security controls, has ambiguous semantics, or introduces abstraction without evidence. Positive scenario: a public MCP tool is designed as a stable, bounded contract and passes adversarial input and authorization tests. Negative scenario: a tool bypasses application authorization or exposes ORM/domain internals as its public contract.
Before implementation, read the repository architecture/security/testing/configuration/reliability skills and identify exact versions. Then read the current official MCP specification and FastMCP documentation/examples for the exact version, especially tools, resources, prompts, annotations, structured output, pagination, elicitation and error semantics. Inspect official source/tests when documentation is ambiguous. Research Pydantic/PydanticAI schema and validation behavior where used.
Create an evidence ledger and compatibility matrix. Do not rely on blog posts when primary documentation exists.
For every public capability define:
Names describe user-facing capabilities, not database tables or implementation classes.
One tool should represent one coherent capability with a bounded responsibility. Avoid both mega-tools with dozens of modes and one-tool-per-column CRUD noise. Split when authorization, transaction boundary, risk, latency or semantic responsibility differs.
Use explicit Pydantic models where they improve the contract. Constrain inputs; reject ambiguous values. Avoid exposing ORM models as public schemas. Keep internal/domain models separate from MCP wire schemas. Treat model-generated arguments as untrusted input and validate again at the application boundary.
Prefer typed structured output when clients can consume it reliably. Define backward-compatible evolution rules. Never rely on prose parsing for machine-critical data.
Separate protocol errors from application/domain errors. Never leak stack traces, SQL, credentials or internal topology. Make errors actionable without exposing sensitive implementation details. Document whether callers may retry.
Authorization is deterministic and outside the LLM. Every side-effecting or tenant-sensitive tool must resolve identity, tenant and capability through the application security boundary. Tool descriptions/annotations are metadata, not access control.
Classify tools as read-only, reversible mutation, irreversible/consequential mutation. Require explicit idempotency/replay semantics for mutations. Do not rely on the agent to avoid duplicate calls.
Use resources for addressable/read-oriented contextual data rather than disguising commands as resources. Define URI semantics, MIME/type behavior, freshness/consistency and access control. Avoid embedding authorization decisions in resource contents.
Treat prompts as versioned user-facing templates. Keep policy/instructions separate from untrusted resource data. Never assume prompt text is a security boundary.
Never return unbounded collections. Define stable cursors or documented pagination semantics. Ensure ordering is deterministic and pagination remains correct under concurrent writes according to the documented consistency model.
Maintain a contract matrix for clients and server versions. Add optional fields rather than silently changing meaning. Deprecate deliberately. Removing/renaming a public tool, resource URI or required input is a breaking change unless the protocol/version policy explicitly permits it.
Do not add pagination, caching, filtering, versioning, generic CRUD abstractions or elaborate schema machinery without a demonstrated contract need. Complexity must have a concrete reason.
Test schemas, protocol serialization, authorization, errors, idempotency, pagination, compatibility and dangerous side effects. Use official FastMCP/MCP testing mechanisms where available plus application integration tests. Test adversarial/invalid inputs and large result boundaries.
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