Fastapi 代码审查
- 作者仓库星标 0
- 作者仓库 skills-registry
FastAPI Route Change
Follow AGENTS.md first.
Workflow
- Inspect existing route modules under
genereview_link/api/routes/and reuse their pattern (router declaration, dependency injection, error handling, response_model). - Use Pydantic models from
genereview_link/models/for request and response shapes. Add new models there if needed. - Raise
DataNotFoundErrorfrom the service layer (genereview_service.py) for 404 cases; let the existing exception handler convert it to HTTP 404. - Update or add MCP tool naming in
server_manager.create_mcp_server'smcp_custom_namesandmcp_route_mapsif the route should be exposed via MCP. - Add route-level tests in
tests/test_api_integration.pyand unit tests for any new service logic in the appropriate test file. - Update
README.mdAPI table if the public endpoint list changed. - Run
make ci-localbefore handoff.
<!-- tomevault:4.0:skill_md:2026-05-22 -->Source: berntpopp/genereviews-link — distributed by TomeVault.
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Workflow
Inspect existing route modules under genereviewlink/api/routes/ and reuse their pattern (router declaration, dependency injection, error handling, responsemodel).
# FastAPI Route Change
Follow `AGENTS.md` first.
## Workflow
1. Inspect existing route modules under `genereview_link/api/routes/` and
reuse their pattern (router declaration, dependency injection, error
handling, response_model).
2. Use Pydantic models from `genereview_link/models/` for request and
response shapes. Add new models there if needed.
3. Raise `DataNotFoundError` from the service layer (genereview_service.py)
for 404 cases; let the existing exception handler convert it to HTTP 404.
4. Update or add MCP tool naming in `server_manager.create_mcp_server`'s
`mcp_custom_names` and `mcp_route_maps` if the route should be exposed
via MCP.
5. Add route-level tests in `tests/test_api_integration.py` and unit tests
for any new service logic in the appropriate test file.
6. Update `README.md` API table if the public endpoint list changed.
7. Run `make ci-local` before handoff.
---
> Source: [berntpopp/genereviews-link](https://github.com/berntpopp/genereviews-link) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 --> 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Workflow
要点 -> Follow AGENTS.md first. · --- > Source: [berntpopp/genereviews-link](https://github.com/berntpopp/genereviews-link) — distributed by [TomeVault](https://tomevault.io).
文件/命令 -> AGENTS.md · genereviewlink/api/routes/ · genereviewlink/models/ · DataNotFoundError · servermanager.createmcpserver · mcpcustomnames · mcproutemaps · tests/testapiintegration.py
内容 SHA-256 -> 0301dc0503e9
方法与流程
适用与边界
原文中的明确线索
AGENTS.md、genereviewlink/api/routes/、genereviewlink/models/、DataNotFoundError、servermanager.createmcpserver、mcpcustomnames、mcproutemaps、tests/testapiintegration.py