원클릭으로
fastapi-backend
FastAPI backend patterns for AI Doctor Assistant
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
FastAPI backend patterns for AI Doctor Assistant
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Generate a structured pre-consultation patient briefing. Use when the physician asks for a briefing, a pre-consultation summary, or sends /briefing.
Search the live web or read a specific web page for recency-sensitive clinical information — drug recalls, newly published guidance, FDA/EMA safety communications — that the local clinical guidelines corpus does not cover. Use when the physician asks to "search the web", "look up the latest", or asks about something the guidelines search returned no results for.
Claude Agent SDK patterns and best practices
Code review and refactoring guidelines
React frontend development patterns for AI Doctor Assistant
Architecture guidance for AI Doctor Assistant
| name | fastapi-backend |
| description | FastAPI backend patterns for AI Doctor Assistant |
# Correct (v2)
obj = MyModel.model_validate(data)
json_str = obj.model_dump_json()
# Wrong (v1 - don't use)
# obj = MyModel.parse_obj(data)
from src.database import get_session
from fastapi import Depends
from sqlalchemy.ext.asyncio import AsyncSession
@app.get("/items")
async def get_items(session: AsyncSession = Depends(get_session)):
result = await session.execute(select(Item))
return result.scalars().all()
from fastapi import HTTPException
if not item:
raise HTTPException(status_code=404, detail="Item not found")
src/
├── __init__.py
├── main.py # FastAPI app entry
├── config.py # Settings from env vars
├── models/ # Pydantic models
├── services/ # Business logic
├── agents/ # Claude Agent SDK agents
│ ├── briefing_agent.py
│ ├── tools.py # @tool definitions
│ └── hooks.py # Langfuse hooks
├── routers/ # API routes
└── database.py # SQLAlchemy setup
# Start server
uv run uvicorn src.main:app --reload
# Run tests
uv run pytest
# Format code
uv run ruff format .
# Lint code
uv run ruff check . --fix
from __future__ import annotations for forward refsasync def for I/O-bound operations