AGENT SKILL
sync-docs
Regenerate docs/supported_endpoints.md by running utils/docs_generate.py and verify it matches current endpoint registrations in app/main.py
- License 许可
- Apache-2.0
- 最近更新
- 2026-03-08
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- sync-docs
- description
- Regenerate docs/supported_endpoints.md by running utils/docs_generate.py and verify it matches current endpoint registrations in app/main.py
- disable-model-invocation
- true
03 SKILL.md 正文
utils/docs_generate.py requires a running server at localhost:8000 — it fetches /openapi.json to discover endpoints.
Steps:
- Start the server in the background:
PYTHONPATH=. VIRTUAL_ENV= /Users/arobel/repos/nd-mock/.venv/bin/uvicorn app.main:app --port 8000 &>/tmp/uvicorn.log & SERVER_PID=$! - Wait for it to be ready (
sleep 2is sufficient), then run the script:PYTHONPATH=. VIRTUAL_ENV= /Users/arobel/repos/nd-mock/.venv/bin/python utils/docs_generate.py - Stop the server:
kill $SERVER_PID - Verify the regenerated
docs/supported_endpoints.mdcovers all tag groups and routers registered viaapp.include_router()inapp/main.py.