fastapi-code-review by existential-birds/beagle
npx skills add https://github.com/existential-birds/beagle --skill fastapi-code-review| 问题类型 | 参考文档 |
|---|---|
| APIRouter 设置、response_model、状态码 | references/routes.md |
| Depends()、yield 依赖项、清理、共享依赖项 | references/dependencies.md |
| Pydantic 模型、HTTPException、422 错误处理 | references/validation.md |
| 异步处理器、阻塞 I/O、后台任务 | references/async.md |
response_model 以确保类型安全广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Depends() 而非手动调用async defrequests、time.sleep、open())except这些是符合 FastAPI 习惯的模式,可能看起来有问题但实际上是正确的:
Depends(),而不是作为函数参数传递response_model,Pydantic 会自动转换仅在上下文有要求时才标记问题:
Depends() 时,才标记缺少身份验证FastAPI + Pydantic 自动处理许多关注点:
在标记“缺少”功能之前,请确认 FastAPI 没有处理它。
在报告任何问题之前,请加载并遵循 review-verification-protocol。
每周安装量
165
代码仓库
GitHub 星标数
40
首次出现时间
2026年1月20日
安全审计
安装于
opencode131
gemini-cli126
codex126
cursor112
github-copilot112
claude-code107
| Issue Type | Reference |
|---|---|
| APIRouter setup, response_model, status codes | references/routes.md |
| Depends(), yield deps, cleanup, shared deps | references/dependencies.md |
| Pydantic models, HTTPException, 422 handling | references/validation.md |
| Async handlers, blocking I/O, background tasks | references/async.md |
response_model for type safetyDepends() not manual callsasync defrequests, time.sleep, open())except in route handlersThese are idiomatic FastAPI patterns that may appear problematic but are correct:
Depends(), not passed as function argumentsresponse_model is setOnly flag issues when the context warrants it:
Depends() with an auth dependencyFastAPI + Pydantic handle many concerns automatically:
Before flagging "missing" functionality, verify FastAPI isn't handling it.
Load and follow review-verification-protocol before reporting any issue.
Weekly Installs
165
Repository
GitHub Stars
40
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode131
gemini-cli126
codex126
cursor112
github-copilot112
claude-code107
代码库搜索技能指南:精准查找函数、追踪依赖、理解架构与定位错误
10,900 周安装
ASP.NET Core依赖注入模式:扩展方法组织服务注册,提升代码可维护性
164 周安装
PromptSlide:AI驱动创建精美幻灯片,支持React组件、Tailwind CSS和PDF导出
165 周安装
SEO内容策略师技能:从关键词研究到内容集群的完整SEO优化指南
166 周安装
iOS Network.framework 网络诊断指南:快速定位连接超时、TLS失败、切换问题
163 周安装
前端设计技能:创建独特、生产级UI界面,避免AI垃圾美学,实现创意代码
174 周安装
YouTube视频转录API工具 - 一键提取字幕文本,支持时间戳和JSON格式
166 周安装