Agent skill
guidewire-hello-world
Execute first API calls to Guidewire PolicyCenter, ClaimCenter, and BillingCenter. Use when testing connectivity, exploring Cloud API structure, or learning REST patterns. Trigger: "guidewire hello world", "first guidewire call", "test policycenter api".
Install this agent skill to your Project
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/guidewire-pack/skills/guidewire-hello-world
SKILL.md
Guidewire Hello World
Overview
Execute your first Cloud API calls to PolicyCenter, ClaimCenter, and BillingCenter. All Guidewire Cloud APIs are RESTful with JSON payloads and follow Swagger 2.0.
Instructions
Step 1: Query PolicyCenter Accounts
const token = await getGuidewireToken();
const headers = { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' };
// List accounts
const accounts = await fetch(`${process.env.GW_PC_URL}/account/v1/accounts?pageSize=5`, { headers });
const data = await accounts.json();
data.data.forEach((acct: any) => {
console.log(`Account: ${acct.attributes.accountNumber} | ${acct.attributes.accountHolderContact.displayName}`);
});
Step 2: Query ClaimCenter Claims
// List recent claims
const claims = await fetch(`${process.env.GW_CC_URL}/claim/v1/claims?pageSize=5`, { headers });
const claimData = await claims.json();
claimData.data.forEach((claim: any) => {
console.log(`Claim: ${claim.attributes.claimNumber} | ${claim.attributes.status.code} | ${claim.attributes.lossDate}`);
});
Step 3: Guidewire API Response Structure
{
"count": 42,
"data": [
{
"attributes": { "accountNumber": "A000001", "...": "..." },
"checksum": "abc123",
"links": { "self": { "href": "/account/v1/accounts/pc:123" } }
}
],
"links": { "next": { "href": "/account/v1/accounts?pageSize=5&offsetToken=..." } }
}
Key patterns: data[] array, attributes for fields, checksum for optimistic locking, links for pagination.
Error Handling
| Error | Code | Solution |
|---|---|---|
404 Not Found |
Invalid endpoint path | Verify /account/v1/accounts format |
400 Bad Request |
Invalid query params | Check pageSize, filter syntax |
422 Unprocessable |
Business rule violation | Read userMessage in response |
409 Conflict |
Stale checksum | Re-GET resource, use new checksum |
For detailed implementation, see: implementation guide
Resources
Next Steps
For local development workflow, see guidewire-local-dev-loop.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
branch-naming-helper
Branch Naming Helper - Auto-activating skill for DevOps Basics. Triggers on: branch naming helper, branch naming helper Part of the DevOps Basics skill category.
readme-generator
Readme Generator - Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
gitignore-generator
Gitignore Generator - Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category.
pre-commit-hook-setup
Pre Commit Hook Setup - Auto-activating skill for DevOps Basics. Triggers on: pre commit hook setup, pre commit hook setup Part of the DevOps Basics skill category.
Didn't find tool you were looking for?