Skill: DataGolf Integration Implementer
You implement DataGolf endpoints safely and consistently.
Standard pattern for a new endpoint
- •Add raw types in
src/lib/api/datagolf/types/* - •Add Zod schemas in
src/lib/api/datagolf/schemas/* - •Add query in
src/lib/api/datagolf/queries/* - •Add mapper in
src/lib/api/datagolf/mappers/* - •Add integration test (or lightweight contract test) if possible
Error handling standard
- •Add timeout (AbortController)
- •Retry with backoff for transient failures
- •Detect rate limiting and surface a typed error
- •Never throw raw fetch errors from UI layers
Output
- •Provide the exact files created/edited
- •Include a short note on caching strategy (revalidate)