Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Consume Guidewire App Events into downstream systems (SQS/SNS, Kafka, webhooks) and survive the event-side failures — events not firing because Gosu registration was missed, duplicates from queue redelivery, out-of-order arrival on the same resource, replay from a checkpoint for backfill, and back-pressure when consumers cannot keep up with producers. Use when registering App Events in Gosu, building an event-consumer service, or recovering from a missed-event window. Trigger with "guidewire app
.claude/skills/jeremylongshore-guidewire-webhooks-integrations/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 68% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 114% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 125% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 65% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 74% | 0% |
Wire Guidewire's event system into downstream consumers — analytics warehouses, fraud-detection services, broker-portal cache invalidators, customer-notification services. Guidewire emits App Events (typed business events fired on entity-state transitions); they are configured server-side in Gosu and routed to a destination (SQS, Kafka, or webhook URL). The consumer side has its own production failure modes that this skill addresses.
Five production failures this skill prevents:
claim.bound event that was never registered in Gosu; consumer waits forever; no error surfaces because there's nothing to error on.claim.reserve.changed before claim.created); consumer rejects the reserve event because the parent claim does not yet exist locally.guidewire-install-auth and guidewire-sdk-patternsBuild the integration in this order. Each step targets one of the five production failures listed in Overview.
Events not registered do not fire. The registration lives in gw.api.messaging.MessageEvents (or carrier-customized equivalent) and pairs an event code with a Gosu callback that decides whether to emit, and what payload.
gosu// modules/configuration/gsrc/com/acme/messaging/ClaimEventBuilder.gs package com.acme.messaging uses gw.api.messaging.MessageContext uses entity.Claim class ClaimEventBuilder { static function buildClaimStatusChangedEvent(ctx: MessageContext, claim: Claim): String { return new gw.api.web.json.JsonObject() {{ put("eventType", "claim.status.changed") put("messageId", java.util.UUID.randomUUID().toString()) put("eventTime", java.time.Instant.now().toString()) put("claimId", claim.PublicID) put("claimNumber", claim.ClaimNumber) put("oldStatus", ctx.PreviousValue?.toString()) put("newStatus", claim.State.Code) put("policyNumber", claim.Policy.PolicyNumber) }}.toString() } }
Register the destination in config/Messaging.xml so the InsuranceSuite messaging engine knows which channel (SQS, webhook, Kafka) routes the event. Without that XML entry, the Gosu callback exists but never fires.
Every event payload includes a messageId (a UUID generated by the producer). The consumer dedups on it before processing. The dedup window must exceed the queue's max-redelivery-window — for SQS with 24-hour message retention, dedup TTL ≥ 7 days is safe.
typescriptasync function handleEvent(msg: SqsMessage): Promise<void> { const event = JSON.parse(msg.Body); const seen = await redis.set(`evt:${event.messageId}`, "1", "EX", 7 * 86400, "NX"); if (!seen) { return; // already processed; ack and skip } await processEvent(event); // your business logic }
SET ... NX (set-if-not-exists) makes the dedup atomic — concurrent workers cannot both decide a duplicate is novel.
Events for the same claim can arrive in arbitrary order. Consumer must tolerate without rejecting.
typescriptasync function processEvent(event: Event): Promise<void> { const local = await getLocalClaim(event.claimId); switch (event.eventType) { case "claim.created": if (!local) await createLocalClaim(event); break; case "claim.status.changed": if (!local) { await deferEvent(event, "waiting-on-claim-created"); return; } await applyStatusChange(local, event); break; } }
The deferEvent helper writes the event to a holding table; a periodic re-processor retries deferred events when their dependencies might have arrived. Events older than a TTL (e.g., 24h) escalate to manual review — a deferred event still missing dependencies after a day indicates a real producer bug.
If the consumer goes down or a downstream system needs to be rebuilt, replay events from a checkpoint. Guidewire's messaging system retains events server-side per the configured retention; in addition, the consumer should persist its own checkpoint (last-processed eventTime per event type).
typescriptawait db.upsert("event_checkpoint", { consumer: "broker-portal-cache", event_type: "policy.bound", last_event_time: maxEventTimeInBatch, updated_at: new Date(), }); async function replay(consumer: string, eventType: string, fromTime: Date): Promise<void> { const events = await fetch(`${BASE}/cc/rest/v1/events?eventType=${eventType}&since=${fromTime.toISOString()}`); for await (const e of events) await handleEvent({ Body: JSON.stringify(e) } as any); }
Replay must be idempotent — that is why the consumer's messageId dedup must outlive the replay window.
If queue depth grows past a threshold, the consumer is losing ground. Three responses, pre-baked rather than improvised at 3am:
yaml# CloudWatch alarm: SQS queue depth > 10000 for 15min on-alarm: - autoscale: increase consumer replicas to 4x - if not catching up after 15min more: - emit metric `consumer-saturation` to incident pipeline - on-call paged - if queue retention near expiry: - last-resort: emergency cap on producer-side rate limit
The autoscale path handles transient bursts; the cap path is for sustained saturation that needs a producer-side conversation.
A production-grade event integration ships with all of the following:
Messaging.xml for every business event the consumer needs; absent registrations explicitly documented as out-of-scope.messageId with TTL ≥ queue retention window.gosuclass RenewalEventBuilder { static function build(ctx: MessageContext, policy: Policy): String { return new gw.api.web.json.JsonObject() {{ put("eventType", "policy.renewed") put("messageId", java.util.UUID.randomUUID().toString()) put("eventTime", java.time.Instant.now().toString()) put("policyNumber", policy.PolicyNumber) put("renewedFrom", policy.RenewedFromPolicy?.PolicyNumber) put("effectiveDate", policy.EffectiveDate.toString()) put("totalPremium", policy.TotalPremium.Amount.toString()) }}.toString() } }
typescriptcase "claim.payment.created": const claim = await getLocalClaim(event.claimId); if (!claim) { await deferEvent(event, "missing claim parent"); return; } if (!claim.exposures.find(e => e.id === event.exposureId)) { await deferEvent(event, "missing exposure parent"); return; } await applyPayment(claim, event); break;
bash# Replay all policy.bound events since last successful checkpoint LAST=$(psql -tAc "SELECT last_event_time FROM event_checkpoint WHERE consumer='broker-portal' AND event_type='policy.bound'") node scripts/replay.js --consumer=broker-portal --type=policy.bound --since="$LAST"
| Symptom | Cause | Solution | |---|---|---| | Event subscription set up but no events arriving | Gosu registration missing or Messaging.xml entry missing | confirm both; the Gosu callback alone does not route | | Same downstream record created twice | consumer not deduping on messageId | wire the Redis SET NX dedup; backfill cleanup of duplicates is painful | | Consumer rejects event with "parent not found" | out-of-order arrival; parent event has not been processed yet | use the deferred-events queue; do not reject | | Events lost during consumer outage | no replay tooling | implement checkpoint + replay; without it, outages are data-loss events | | Queue depth growing 24/7 | producer faster than consumer | scale consumer; if scaling does not help, partition by entity-id | | Replay creates duplicates downstream | consumer dedup TTL too short, or checkpoint not flushed atomically | extend dedup TTL; flush checkpoint only after batch fully processes | | Webhook endpoint returning 5xx for valid events | endpoint capacity or bug | Guidewire retries with backoff; eventually goes to DLQ; investigate the endpoint | | Same messageId showing different payloads in DLQ | producer bug — messageId is supposed to be unique per message | escalate to Guidewire support / config team; consumer cannot fix this |
For deeper coverage (Kafka partitioning strategies, exactly-once semantics across boundaries, schema evolution for event payloads, multi-tenant event fan-out), see implementation guide and API reference.
guidewire-install-auth — auth between Guidewire and the messaging destination if it requires bearer tokensguidewire-core-workflow-a — the bind/issue/renewal events this skill consumes are emitted by that workflowguidewire-core-workflow-b — the FNOL/reserve/payment events this skill consumesguidewire-observability-and-incident-response — queue-depth and saturation alerts that drive this skill's back-pressure response| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 56,772 | 41,541 | -27% | 1 | 1 | 0% | 8,272 | 8,599 | +4% | 0 | 0 | — |
case-02 | fail→fail | 50,085 | 43,418 | -13% | 1 | 1 | 0% | 8,278 | 11,072 | +34% | 0 | 0 | — |
case-03 | pass→fail | 29,590 | 26,632 | -10% | 1 | 1 | 0% | 3,746 | 7,763 | +107% | 0 | 0 | — |
case-04 | pass→pass | 24,350 | 16,249 | -33% | 1 | 1 | 0% | 3,174 | 5,532 | +74% | 0 | 0 | — |
case-05 | pass→fail | 19,369 | 19,851 | +2% | 1 | 1 | 0% | 3,259 | 6,306 | +93% | 0 | 0 | — |
case-06 | fail→pass | 22,334 | 13,938 | -38% | 1 | 1 | 0% | 3,069 | 5,152 | +68% | 0 | 0 | — |
case-07 | fail→pass | 19,375 | 10,989 | -43% | 1 | 1 | 0% | 2,015 | 4,309 | +114% | 0 | 0 | — |
case-08 | fail→pass | 17,169 | 14,349 | -16% | 1 | 1 | 0% | 1,967 | 4,433 | +125% | 0 | 0 | — |
case-09 | pass→pass | 13,541 | 13,831 | +2% | 1 | 1 | 0% | 1,628 | 4,289 | +163% | 0 | 0 | — |
case-10 | fail→pass | 19,833 | 13,070 | -34% | 1 | 1 | 0% | 2,542 | 4,191 | +65% | 0 | 0 | — |
case-11 | pass→pass | 19,720 | 15,889 | -19% | 1 | 1 | 0% | 2,286 | 4,558 | +99% | 0 | 0 | — |
case-12 | pass→pass | 20,757 | 14,187 | -32% | 1 | 1 | 0% | 2,613 | 5,213 | +100% | 0 | 0 | — |
case-13 | fail→pass | 19,147 | 14,295 | -25% | 1 | 1 | 0% | 2,493 | 4,327 | +74% | 0 | 0 | — |
case-14 | pass→pass | 16,706 | 12,367 | -26% | 1 | 1 | 0% | 1,820 | 3,949 | +117% | 0 | 0 | — |
case-15 | fail→pass | 16,134 | 2,918 | -82% | 1 | 1 | 0% | 1,588 | 3,371 | +112% | 0 | 0 | — |
case-16 | fail→pass | 17,061 | 10,656 | -38% | 1 | 1 | 0% | 1,925 | 4,572 | +138% | 0 | 0 | — |
case-17 | fail→pass | 18,455 | 13,712 | -26% | 1 | 1 | 0% | 1,897 | 4,253 | +124% | 0 | 0 | — |
case-18 | fail→fail | 23,154 | 21,629 | -7% | 1 | 1 | 0% | 2,920 | 5,770 | +98% | 0 | 0 | — |
case-19 | pass→pass | 15,624 | 18,313 | +17% | 1 | 1 | 0% | 1,739 | 4,934 | +184% | 0 | 0 | — |
case-20 | fail→fail | 20,393 | 18,878 | -7% | 1 | 1 | 0% | 2,549 | 5,119 | +101% | 0 | 0 | — |
case-21 | pass→pass | 16,421 | 11,435 | -30% | 1 | 1 | 0% | 2,017 | 3,984 | +98% | 0 | 0 | — |
case-22 | fail→pass | 16,485 | 19,365 | +17% | 1 | 1 | 0% | 2,969 | 4,840 | +63% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +32 percentage points is the difference between those two pass rates over the 22 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.