重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
fastapi-router-py by sickn33/antigravity-awesome-skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill fastapi-router-py遵循既定模式创建 FastAPI 路由器,包含适当的身份验证、响应模型和 HTTP 状态码。
从 assets/template.py 复制模板并替换占位符:
{{ResourceName}} → 帕斯卡命名法名称(例如:Project){{resource_name}} → 蛇形命名法名称(例如:project){{resource_plural}} → 复数形式(例如:projects)# 可选身份验证 - 如果未通过身份验证则返回 None
current_user: Optional[User] = Depends(get_current_user)
# 必需身份验证 - 如果未通过身份验证则引发 401 错误
current_user: User = Depends(get_current_user_required)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
@router.get("/items/{item_id}", response_model=Item)
async def get_item(item_id: str) -> Item:
...
@router.get("/items", response_model=list[Item])
async def list_items() -> list[Item]:
...
@router.post("/items", status_code=status.HTTP_201_CREATED)
@router.delete("/items/{id}", status_code=status.HTTP_204_NO_CONTENT)
src/backend/app/routers/ 中创建路由器src/backend/app/main.py 中挂载此技能适用于执行概述中描述的工作流程或操作。
每周安装量
68
代码仓库
GitHub 星标数
29.8K
首次出现
2026年2月14日
安全审计
安装于
codex66
opencode66
kimi-cli64
amp64
github-copilot64
gemini-cli64
Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes.
Copy the template from assets/template.py and replace placeholders:
{{ResourceName}} → PascalCase name (e.g., Project){{resource_name}} → snake_case name (e.g., project){{resource_plural}} → plural form (e.g., projects)# Optional auth - returns None if not authenticated
current_user: Optional[User] = Depends(get_current_user)
# Required auth - raises 401 if not authenticated
current_user: User = Depends(get_current_user_required)
@router.get("/items/{item_id}", response_model=Item)
async def get_item(item_id: str) -> Item:
...
@router.get("/items", response_model=list[Item])
async def list_items() -> list[Item]:
...
@router.post("/items", status_code=status.HTTP_201_CREATED)
@router.delete("/items/{id}", status_code=status.HTTP_204_NO_CONTENT)
src/backend/app/routers/src/backend/app/main.pyThis skill is applicable to execute the workflow or actions described in the overview.
Weekly Installs
68
Repository
GitHub Stars
29.8K
First Seen
Feb 14, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex66
opencode66
kimi-cli64
amp64
github-copilot64
gemini-cli64
lark-cli 共享规则:飞书资源操作指南与权限配置详解
41,800 周安装