fastapi-route-change
- Repo stars 0
- Author repo 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.
- Fluxly category
- Engineering
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @tomevault-io · no license declared
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Plug-and-play
- External API key
- No requirement detected
- Detected OS requirements
- Unspecified
- Runtime requirements
- Unspecified
- Detected file/system behavior
-
- Read-only
- Write / modify
- Detected network behavior
- Local-only
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. 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 --> Evidence boundary and execution chain
Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> Workflow
terms -> Follow AGENTS.md first. · --- > Source: [berntpopp/genereviews-link](https://github.com/berntpopp/genereviews-link) — distributed by [TomeVault](https://tomevault.io).
files/cmd -> AGENTS.md · genereviewlink/api/routes/ · genereviewlink/models/ · DataNotFoundError · servermanager.createmcpserver · mcpcustomnames · mcproutemaps · tests/testapiintegration.py
body sha256 -> 0301dc0503e9
Decide Fit First
Design Intent
How To Use It
Boundaries And Review