Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/tomevault-io/skills-registry --skill fastapi-backend명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | fastapi-backend |
| description | > Use when this capability is needed. |
Load this skill when:
backend/app/api/backend/app/services/All endpoints use async and receive the DB session via dependency injection.
from fastapi import APIRouter, Depends, HTTPException
from sqlalchemy.ext.asyncio import AsyncSession
from app.database import get_db
from app.schemas import IncidentDetail
router = APIRouter()
@router.get("/{incident_id}", response_model=IncidentDetail)
async def get_incident(incident_id: str, db: AsyncSession = Depends(get_db)):
incident = await incident_service.get_incident(db, incident_id)
if not incident:
raise HTTPException(status_code=404, detail="Incident not found")
return incident
All database operations go through service functions, never directly in endpoints.
from sqlalchemy import select
from sqlalchemy.ext.asyncio import AsyncSession
from app.models import Incident
async def get_incident(db: AsyncSession, incident_id: str) -> Incident | None:
stmt = select(Incident).where(Incident.id == incident_id)
result = await db.execute(stmt)
return result.scalar_one_or_none()
Long-running operations (like agent triage) use FastAPI BackgroundTasks.
from fastapi import BackgroundTasks
@router.post("/", status_code=201)
async def create_incident(
data: IncidentCreate,
background_tasks: BackgroundTasks,
db: AsyncSession = Depends(get_db),
):
incident = await incident_service.create_incident(db, **data.model_dump())
background_tasks.add_task(run_triage, incident.id)
return incident
# Bad - DON'T do this
@router.get("/{id}")
def get_incident(id: str):
with Session() as db:
return db.query(Incident).get(id)
# Bad - DON'T do this
@router.post("/")
async def create(data: IncidentCreate, db: AsyncSession = Depends(get_db)):
incident = Incident(**data.model_dump())
db.add(incident)
await db.commit() # Logic should be in service layer
return incident
| Task | Pattern |
|---|---|
| Get DB session | db: AsyncSession = Depends(get_db) |
| Return 404 | raise HTTPException(status_code=404, detail="...") |
| Background task | background_tasks.add_task(fn, *args) |
| Multipart upload | file: UploadFile = File(...) |
| Query params | status: str | None = Query(None) |
| Pagination | page: int = Query(1, ge=1), per_page: int = Query(20, ge=1, le=100) |
Source: alexlombana9/SRE-Agent-Hackathon-2026 — distributed by TomeVault.