路由改变

工程开发 社区

技能解读

当前原文的自动摘译,尚未人工审校。

工作流程

检查genereview_link/api/routes/下的现有路由模块并重用它们的模式(路由器声明、依赖项注入、错误处理、response_model)。使用 genereview_link/models/ 中的 Pydantic 模型来表示请求和响应形状。如果需要,可以在其中添加新模型。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
工程开发
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@tomevault-io · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# 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 -->

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。