Fastapi service development
Skill planifest/planifest-framework/planifest-framework/external-skills/fastapi-service-development
A specification framework for agentic development. Agents build from complete specs - not guesses.
npx -y skills add planifest/planifest-framework --skill fastapi-service-developmentAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
FastAPI service development workflow for production-grade Python APIs. Use when FastAPI service behavior (path operations, dependency injection, request/response models, validation, async execution, OpenAPI exposure) must be implemented or revised; do not use for repository-wide architecture governance or release management policy.
SKILL.md
2.7 KB, 449 tokens by cl100k_base, as published. Nobody here has run it
Fastapi Service Development
Overview
Use this skill to build FastAPI services with explicit schema contracts, controlled dependency lifecycles, and predictable async runtime behavior.
Scope Boundaries
- Use this skill when the task matches the trigger condition described in
description. - Do not use this skill when the primary task falls outside this skill's domain.
Shared References
- Dependency lifecycle guidance:
references/fastapi-dependency-lifecycle-guidance.md
- Schema contract guidance:
references/fastapi-schema-contract-guidance.md
Templates And Assets
- Router implementation starter:
assets/fastapi-router-template.py
- Error response shape template:
assets/fastapi-error-model-template.json
- Service verification checklist:
assets/fastapi-service-checklist.md
Inputs To Gather
- Endpoint definitions and request/response schema requirements.
- Dependency injection graph and external service dependencies.
- Authentication, validation, and observability requirements.
- Async I/O boundaries and expected latency constraints.
- Internal service DTO contracts to avoid untyped
dict[str, Any]propagation.
Deliverables
- Endpoint map with typed request/response models.
- Dependency and lifecycle management plan.
- Error contract and exception handling policy.
- Verification checklist and test focus areas.
Workflow
- Define Pydantic models and endpoint contracts first.
- Separate routers, service logic, and infrastructure adapters.
- Convert boundary payloads to explicit domain input/output models before service-layer execution.
- Manage shared resources using
references/fastapi-dependency-lifecycle-guidance.md. - Implement exception mapping with
assets/fastapi-error-model-template.json. - Validate behavior and docs with
assets/fastapi-service-checklist.md.
Quality Standard
- All endpoints expose explicit typed schemas.
- Dependency scope and teardown behavior are deterministic.
- Error responses are stable and machine-parseable.
- OpenAPI output reflects actual runtime behavior.
- Internal logic minimizes runtime casts by using precise models at boundaries.
Failure Conditions
- Stop when schema contracts are ambiguous or loosely typed.
- Stop when async request paths contain hidden blocking I/O.
- Escalate when dependency lifecycle cannot be managed safely.