guidewire-sdk-patterns
Master Guidewire SDK patterns including Digital SDK, REST API Client, and Gosu best practices. Use when implementing integrations, building frontends with Jutro, or writing server-side Gosu code. Trigger with phrases like "guidewire sdk", "digital sdk", "jutro sdk", "guidewire patterns", "gosu best practices", "rest api client".
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- guidewire-sdk-patterns
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Master Guidewire SDK patterns including Digital SDK, REST API Client, and Gosu best practices. Use when implementing integrations, building frontends with Jutro, or writing server-side Gosu code. Trigger with phrases like "guidewire sdk", "digital sdk", "jutro sdk", "guidewire patterns", "gosu best practices", "rest api client".
- allowed-tools
- Read, Write, Edit, Bash(npm:*), Bash(gradle:*), Grep
- compatible-with
- claude-code, codex, openclaw
02 资源文件 1
- 参考文档references/implementation-guide.md9.8 KB
03 SKILL.md 正文
Guidewire SDK Patterns
Overview
Master the key SDK patterns for Guidewire development: Digital SDK for frontends, REST API Client for integrations, and Gosu patterns for server-side development.
Prerequisites
- Completed
guidewire-install-authandguidewire-hello-world - Understanding of TypeScript/JavaScript (for Digital SDK)
- Familiarity with Gosu basics (for server-side patterns)
Instructions
Step 1: Digital SDK (Frontend)
Generate the SDK from your Cloud API using jutro-cli generate-sdk. Configure with OAuth2 auth, then use generated hooks (useAccount, useAccounts, createAccount) for type-safe CRUD operations. Combine with zodResolver for form validation.
Step 2: REST API Client (Integration)
Configure the Gradle REST API Client plugin with an OpenAPI spec. The generated Gosu client includes automatic retry and circuit breaker. For custom integrations, use RestClientBuilder with proper timeout and auth headers.
Step 3: Gosu Query Patterns
Use Query.make() with compare() for simple lookups, join() for related entities, and subselect() for complex filtering. Process large result sets with batch iterators to avoid memory issues.
Step 4: Transaction Patterns
Always use GWTransaction.runWithNewBundle(). Add external entities to the bundle with bundle.add() before modifying. Use AsyncProcess.schedule() for long-running operations.
Step 5: Plugin Patterns
Implement IRatingPlugin or similar interfaces. Compose calculations from base premium, discounts, and taxes. Log entry points for debugging.
For detailed code implementations (Digital SDK components, Gosu classes, Gradle config), load the reference guide:
Read(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)
Output
- Configured Digital SDK with type-safe API calls
- REST API Client with fault tolerance
- Gosu patterns following Guidewire best practices
Error Handling
| Error | Cause | Solution |
|---|---|---|
| SDK generation failed | Invalid API spec | Verify OpenAPI spec URL and access |
| Type mismatch | Schema changed | Regenerate SDK |
| Transaction timeout | Long-running operation | Optimize or use async |
| Client timeout | Network issues | Increase timeout, add retry |
Resources
Next Steps
For core insurance workflows, see guidewire-core-workflow-a and guidewire-core-workflow-b.
Examples
Basic usage: Apply guidewire sdk patterns to a standard project setup with default configuration options.
Advanced scenario: Customize guidewire sdk patterns for production environments with multiple constraints and team-specific requirements.
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.