api-endpoint
SKILL.md
OpenGov API Endpoint Generator
Generate SDK endpoints from OpenAPI specifications following project conventions.
Workflow
- Read the OpenAPI spec at the provided file path
- Extract attribute schemas - Use the schema extraction guide in references/schema-extraction.md to:
- Locate the schema in the OpenAPI spec for each resource
- Extract using jq command or Python script
- Document all fields in a mapping table
- Verify field types, required/optional status, and nullable flags
- Verify field mappings before generating code
- Identify endpoints to implement from the spec
- Check existing code to understand current patterns and avoid duplicates
- Generate code following patterns in references/patterns.md
- Run tests and type checks to verify