177-liukuan/tencentdb-agent-memory-eval-kit/fastapi-tdd-workflow

Claude Code and agent skill by 177-liukuan/tencentdb-agent-memory-eval-kit

Trust tier 3
  • community
Source check pending

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-workflow

SKILL.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

  1. Read neighboring routes, schemas, dependencies, and tests.
  2. Write a failing API-level or service-level test.
  3. Define Pydantic request/response models and error cases.
  4. Implement service logic and keep the route thin.
  5. Run focused pytest, then the affected suite and static checks.

Reference Files

TopicFileLoad when
Async Integrationreferences/async-integration.mdRead when the task directly involves this topic
Transaction Boundariesreferences/transaction-boundaries.mdRead 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/177-liukuan/tencentdb-agent-memory-eval-kit/fastapi-tdd-workflow/badge)](https://verified-skill.com/skills/177-liukuan/tencentdb-agent-memory-eval-kit/fastapi-tdd-workflow)

Something wrong with this skill or its page? Tell us.