Claude Code FastAPI Endpoint Skill for Read-Only List Contracts
Inspect neighboring models and tests before choosing response fields, filters, and pagination. Prepare a verifiable contract before implementing a FastAPI list endpoint.
中文Install in Claude Code
Use Claude Code with the pinned skill and a local FastAPI project. Running checks requires its Pydantic and pytest setup.
- Get the complete `cli-tool/components/skills/web-development/fastapi-endpoint` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/fastapi-endpoint/SKILL.md`, open Claude Code at the project root, and call `/fastapi-endpoint`.
Example task
Add a public read-only listing to a fictional event catalog. Return title and start time, with an optional month filter. Confirm empty results and invalid months first.What to check
Document query parameters and response fields. Cover populated, empty, and invalid-month samples. Leave undecided pagination behavior open.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should I edit the code as soon as an endpoint is requested?
Check the project's existing patterns and confirm inputs, outputs, and edge cases. Implement and add checks after defining acceptance.