<< All versions
Skill v1.0.0
currentAutomated scan100/100not-elm/desktop-homunculus/sync-api-docs
──Details
PublishedOctober 20, 2026 at 12:26 PM
Content Hashsha256:489fc482ad7b624c...
Git SHA02db771cc772
──Files
Files (1 file, 2.4 KB)
SKILL.md2.4 KBactive
SKILL.md · 72 lines · 2.4 KB
version: "1.0.0" name: sync-api-docs description: > Sync API documentation with implementation. Use when files in crates/homunculus_http_server/src/ or sdk/typescript/src/ have changed, or when user requests documentation updates.
Sync API Documentation
Synchronize API documentation with the actual HTTP server and SDK implementation.
Phase 1: Analysis
Gather information and present findings before making changes.
Steps
- Read HTTP endpoints: Scan
crates/homunculus_http_server/src/**to extract all endpoint definitions (routes, methods, request/response types)
- Read SDK interfaces: Scan
sdk/typescript/src/**to extract client interfaces and type definitions
- Read current documentation:
docs/api/open-api.ymlfor OpenAPI specdocs/mod-manual/src/sdk/**for SDK manual
- Compare and classify: For each endpoint and SDK interface, determine status:
new— exists in code but not in docschanged— exists in both but differsunchanged— matches between code and docsremoved— exists in docs but not in code
- Present summary table:
| Type | Name | Status | Notes ||----------|----------------|-----------|-------------------------|| Endpoint | POST /api/xxx | new | Not in OpenAPI spec || Endpoint | GET /api/yyy | changed | Response schema differs || SDK | SomeClient | unchanged | |
- Ask for confirmation: "Proceed with documentation updates?"
Do NOT proceed to Phase 2 without explicit user confirmation.
Phase 2: Update
After user confirms, update the documentation.
Steps
- Update OpenAPI spec: Modify
docs/api/open-api.ymlto reflect current endpoints
- Add new endpoints with appropriate tags
- Update changed endpoint schemas
- For
removeditems: confirm with user before deleting
- Update SDK manual: Modify
docs/mod-manual/src/sdk/**to match SDK interfaces
- Regenerate: Run
make build-openapi
- Report: Summarize what was updated
Constraints
- Documentation must be in English
- Documentation must match the actual implementation (not aspirational)
- Documentation must be clear and concise
- Tag APIs appropriately by category (e.g.,
vrm,webview,chat,system) - Never remove documentation for "removed" endpoints without explicit confirmation