Loading...
Loading...
Automate documentation updates when API endpoints, functions, or architecture change. Detects code changes that require doc updates, generates API reference from FastAPI routers, updates architecture diagrams, and syncs between internal and external docs.
npx skill4agent add basedhardware/omi docs-automationbackend/routers/**/*.pybackend/utils/**/*.py@router.get@router.post.cursor/API_REFERENCE.mddocs/api-reference/endpoint/*.mdxdocs/doc/developer/api/*.mdxbackend/routers/**/*.py@router.post("/v1/conversations", response_model=CreateConversationResponse, tags=['conversations'])
def process_in_progress_conversation(
request: ProcessConversationRequest = None,
uid: str = Depends(auth.get_current_user_uid)
):
"""
Process an in-progress conversation after recording is complete.
...
"""### Process In-Progress Conversation
`POST /v1/conversations`
Process an in-progress conversation after recording is complete.
**Request Body**: ProcessConversationRequest (optional)
**Response**: CreateConversationResponse.cursor/ARCHITECTURE.md.cursor/DATA_FLOW.md.cursor/docs/backend/routers/conversations.py@router.postresponse_modeldocs/api-reference/endpoint/{endpoint_name}.mdx.cursor/API_REFERENCE.mdimport ast
from typing import List, Dict
def parse_fastapi_router(file_path: str) -> List[Dict]:
"""Parse FastAPI router file and extract endpoint information."""
with open(file_path) as f:
tree = ast.parse(f.read())
endpoints = []
for node in ast.walk(tree):
if isinstance(node, ast.FunctionDef):
# Check for route decorators
for decorator in node.decorator_list:
if isinstance(decorator, ast.Call):
# Extract @router.post("/path", ...)
method = get_decorator_method(decorator)
path = get_decorator_path(decorator)
response_model = get_response_model(decorator)
endpoints.append({
'method': method,
'path': path,
'function_name': node.name,
'docstring': ast.get_docstring(node),
'parameters': parse_parameters(node),
'response_model': response_model,
})
return endpoints.cursor/rules/documentation-standards.mdc.cursor/rules/auto-documentation.mdc.cursor/rules/backend-api-patterns.mdc.cursor/agents/docs-generator.md/auto-docs/update-api-docs/docs/update-api-docs