Document qontract-api Integration
SkillDocs & knowledgeGenerate comprehensive documentation for a qontract-api integration. Use this skill when a new integration has been created or migrated to qontract-api and needs documentation, or when someone asks to document an integration. Triggers on requests mentioning integration documentation, documenting API integrations, or after completing a migration with /migrate-integration.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Document qontract-api Integration skill
What this skill tells your AI
The instructions your AI receives, as published by app-sre/qontract-reconcile in .claude/skills/document-api-integration/SKILL.md and read by ahel’s review.
Analyze an existing qontract-api integration and generate documentation following the standard template at docs/integrations/template.md.
Input
Integration name (e.g., "slack-usergroups"). If not provided, ask for it.
Validate the integration exists at qontract_api/qontract_api/integrations/<name>/ before proceeding.
Workflow
-
Read the template from
docs/integrations/template.md -
Analyze the integration by reading:
qontract_api/qontract_api/integrations/<name>/models.py- Request/Response/Action modelsqontract_api/qontract_api/integrations/<name>/service.py- Business logicqontract_api/qontract_api/integrations/<name>/router.py- API endpointsqontract_api/qontract_api/integrations/<name>/tasks.py- Celery tasks- Other files in the integration directory (factory, client, etc.)
reconcile/<name>_api.pyorreconcile/<name>_api/- Client integration- Related ADRs referenced in docstrings/comments
-
Extract information for each template section:
- Features: What it does, actions it can perform, resources it manages
- API Endpoints: POST/GET paths, parameters, responses
- Models: Pydantic structure, key fields, validation rules (dry_run default=True)
- Actions: All action types from discriminated union models
- Architecture: Client-side vs server-side responsibilities
- Limits/Constraints: Safety features, rate limits, cache TTLs, managed resources
- Required Components: Vault secrets, external APIs, environment variables
-
Generate documentation using the template structure exactly. Fill all sections. Mark non-applicable sections as "[Not applicable for this integration]".
-
Show summary to user before writing:
- API path, features count, action types, external APIs, requirements
-
Write files after confirmation:
- Create
docs/integrations/<name>.md - Update
docs/integrations/README.mdwith link in alphabetical order
- Create
Guidelines
- Follow the template structure from
docs/integrations/template.mdexactly - Extract information from actual code, not assumptions
- Reference relevant ADRs
- Include practical usage examples (curl commands, CLI)
- Emphasize dry_run defaults and safety features
- Set Last Updated date to today
Signals
- GitHub stars
- 37
- Forks
- 109
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
document-api-integration- Source
- github.com/app-sre/qontract-reconcile