177-liukuan/tencentdb-agent-memory-eval-kit/fastapi-tdd-workflow
Claude Code and agent skill by 177-liukuan/tencentdb-agent-memory-eval-kit
- community
Checking that the SKILL.md file is still in the repository.
Use when implementing or changing FastAPI endpoints, dependencies, database transactions, exception mapping, or asynchronous integrations. This skill enforces a tests-first workflow and keeps request validation, service logic, persistence, and HTTP translation separated.
Install
npx vskill@latest install 177-liukuan/tencentdb-agent-memory-eval-kit/fastapi-tdd-workflowSKILL.md
The same SKILL.md was published earlier as 177-liukuan/tencentdb-agent-memory-eval-kit/fastapi-tdd-workflow.
FastAPI TDD Workflow
When to Use
- Adding a FastAPI route with non-trivial validation or persistence
- Converting blocking integrations to async httpx calls
- Changing dependency injection or transaction boundaries
- Fixing endpoint behavior that requires a regression test
Core Workflow
- Read neighboring routes, schemas, dependencies, and tests.
- Write a failing API-level or service-level test.
- Define Pydantic request/response models and error cases.
- Implement service logic and keep the route thin.
- Run focused pytest, then the affected suite and static checks.
Reference Files
| Topic | File | Load when | |
|---|---|---|---|
| Async Integration | references/async-integration.md | Read when the task directly involves this topic | |
| Transaction Boundaries | references/transaction-boundaries.md | Read when the task directly involves this topic |
Constraints
MUST DO
- Use Pydantic v2 validation explicitly.
- Keep database sessions in dependencies.
- Test both success and failure paths.
MUST NOT DO
- Create sessions inside route handlers.
- Block the event loop with synchronous HTTP calls.
- Return raw internal exceptions to clients.
Output
Return the changed files or proposed patch, the verification performed, and any remaining risk. Keep unrelated changes out of the final diff.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdataset/skills/fastapi-tdd-workflow/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/177-liukuan/tencentdb-agent-memory-eval-kit/fastapi-tdd-workflow)