guidewire-sdk-patterns
Installation
SKILL.md
Guidewire SDK Patterns
Overview
Build the Cloud API request layer that runs in production. This skill assumes the auth layer from guidewire-install-auth is in place — bearer tokens come from the cached token provider, not a static API_KEY. What this layer adds: safe mutations under optimistic locking, retry-aware writes, quota-friendly request pacing, complete pagination, and a typed error surface that business logic can pattern-match.
Five production failures this skill prevents:
- 409 Conflict storms — client GETs a record, lets the user (or workflow) edit it, then PATCHes back without the latest
checksum; the next concurrent edit causes both PATCHes to lose. - 429 cascades — every retry on
429happens at the same backoff, all clients hammer the endpoint together, the tenant rate quota stays pinned. - Silent data loss in pagination — client treats
pageSize=100as "all results"; misses page 2 onward; reports inflated coverage to downstream. - Duplicate writes on retry — POST to create-claim times out at the load balancer, client retries, two claims land with the same FNOL.
- Generic error handling — every non-2xx response collapses into "request failed", losing the
userMessage,errors[].type, andattributesstructure the API actually returns.