[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F771V4ANK1GF4FRHZM7Y26":3,"skill-same:01M6F771V4ANK1GF4FRHZM7Y26":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6F771V4ANK1GF4FRHZM7Y26","guidewire-webhooks-events",null,"Implement Guidewire App Events and webhook integrations for event-driven architecture.\nUse when setting up outbound events, message queuing, webhook receivers,\nor asynchronous integration patterns.\nTrigger with phrases like \"guidewire webhooks\", \"app events\",\n\"event-driven\", \"message queue\", \"guidewire notifications\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fguidewire-pack\u002Fskills\u002Fguidewire-webhooks-events\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"guidewire webhooks events","events","webhooks","message","when","for","event","trigger","io","app","webhook","outbound","architecture","patterns","up","edit","write","read","integrations","Bash","asynchronous","notifications","2026-11-10 10:12:30",false,"---\nname: guidewire-webhooks-events\ndescription: |\n  Implement Guidewire App Events and webhook integrations for event-driven architecture.\n  Use when setting up outbound events, message queuing, webhook receivers,\n  or asynchronous integration patterns.\n  Trigger with phrases like \"guidewire webhooks\", \"app events\",\n  \"event-driven\", \"message queue\", \"guidewire notifications\".\nallowed-tools: Read, Write, Edit, Bash(curl:*), Bash(npm:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Guidewire Webhooks & Events\n\n## Overview\n\nImplement event-driven integrations using Guidewire App Events, webhooks, and message queuing for real-time notifications and asynchronous processing.\n\n## Prerequisites\n\n- Guidewire Cloud Console access\n- Understanding of event-driven architecture\n- HTTPS endpoint for webhook receiver\n- Message queue service (optional)\n\n## App Events Architecture\n\n```\n+------------------+      +------------------+      +------------------+\n|                  |      |                  |      |                  |\n|  InsuranceSuite  |----->|   App Events     |----->|  Your System     |\n|  (PC\u002FCC\u002FBC)      |      |   Service        |      |  (Webhook\u002FQueue) |\n|                  |      |                  |      |                  |\n+------------------+      +------------------+      +------------------+\n        |                         |                         |\n        v                         v                         v\n  Business Event             Kafka Topic              Event Handler\n  (Policy Issued)            (Buffered)              (Process Event)\n```\n\n## Instructions\n\n### Step 1: Configure App Events in Cloud Console\n\n```yaml\n# App Events Configuration\n# Navigate to: Integration Gateway > App Events\n\nevents:\n  - name: policy.issued\n    description: Triggered when a policy is issued\n    application: PolicyCenter\n    entity: Policy\n    payload:\n      include:\n        - policyNumber\n        - effectiveDate\n        - expirationDate\n        - totalPremium\n        - accountNumber\n        - insuredName\n    delivery:\n      type: webhook\n      endpoint: https:\u002F\u002Fyour-api.com\u002Fwebhooks\u002Fguidewire\n      retryPolicy:\n        maxAttempts: 5\n        backoffMultiplier: 2\n        initialDelaySeconds: 10\n\n  - name: claim.created\n    description: Triggered when a new claim is filed\n    application: ClaimCenter\n    entity: Claim\n    payload:\n      include:\n        - claimNumber\n        - lossDate\n        - lossType\n        - policyNumber\n        - status\n    delivery:\n      type: integration_gateway\n      route: claim-processor\n```\n\n### Step 2: Webhook Receiver Implementation\n\n```typescript\n\u002F\u002F Express.js webhook receiver\nimport express from 'express';\nimport crypto from 'crypto';\nimport { Redis } from 'ioredis';\n\nconst app = express();\nconst redis = new Redis(process.env.REDIS_URL);\n\n\u002F\u002F IMPORTANT: Raw body needed for signature verification\napp.post('\u002Fwebhooks\u002Fguidewire',\n  express.raw({ type: 'application\u002Fjson' }),\n  async (req, res) => {\n    const signature = req.headers['x-gw-signature'] as string;\n    const timestamp = req.headers['x-gw-timestamp'] as string;\n    const eventId = req.headers['x-gw-event-id'] as string;\n\n    \u002F\u002F Verify signature\n    if (!verifySignature(req.body, signature, timestamp)) {\n      console.error('Invalid signature');\n      return res.status(401).json({ error: 'Invalid signature' });\n    }\n\n    \u002F\u002F Check for replay attacks\n    if (!await isTimestampValid(timestamp)) {\n      return res.status(401).json({ error: 'Timestamp too old' });\n    }\n\n    \u002F\u002F Ensure idempotency\n    if (await isEventProcessed(eventId)) {\n      console.log(`Event ${eventId} already processed`);\n      return res.status(200).json({ status: 'already_processed' });\n    }\n\n    try {\n      const event = JSON.parse(req.body.toString());\n      await handleGuidewireEvent(event);\n      await markEventProcessed(eventId);\n\n      res.status(200).json({ status: 'processed' });\n    } catch (error) {\n      console.error('Event processing failed:', error);\n      \u002F\u002F Return 500 to trigger retry\n      res.status(500).json({ error: 'Processing failed' });\n    }\n  }\n);\n\nfunction verifySignature(\n  payload: Buffer,\n  signature: string,\n  timestamp: string\n): boolean {\n  const secret = process.env.GW_WEBHOOK_SECRET!;\n\n  \u002F\u002F Validate timestamp age (max 5 minutes)\n  const timestampAge = Date.now() - parseInt(timestamp) * 1000;\n  if (timestampAge > 300000) {\n    return false;\n  }\n\n  \u002F\u002F Compute expected signature\n  const signedPayload = `${timestamp}.${payload.toString()}`;\n  const expectedSignature = crypto\n    .createHmac('sha256', secret)\n    .update(signedPayload)\n    .digest('hex');\n\n  \u002F\u002F Timing-safe comparison\n  return crypto.timingSafeEqual(\n    Buffer.from(signature),\n    Buffer.from(`v1=${expectedSignature}`)\n  );\n}\n\nasync function isEventProcessed(eventId: string): Promise\u003Cboolean> {\n  const key = `gw:event:${eventId}`;\n  return (await redis.exists(key)) === 1;\n}\n\nasync function markEventProcessed(eventId: string): Promise\u003Cvoid> {\n  const key = `gw:event:${eventId}`;\n  await redis.set(key, '1', 'EX', 86400 * 7); \u002F\u002F 7 days TTL\n}\n```\n\n### Step 3: Event Handler Implementation\n\n```typescript\n\u002F\u002F Event handler with type safety\ninterface GuidewireEvent {\n  id: string;\n  type: string;\n  timestamp: string;\n  application: 'PolicyCenter' | 'ClaimCenter' | 'BillingCenter';\n  data: Record\u003Cstring, any>;\n}\n\ninterface PolicyIssuedEvent extends GuidewireEvent {\n  type: 'policy.issued';\n  data: {\n    policyNumber: string;\n    effectiveDate: string;\n    expirationDate: string;\n    totalPremium: { amount: number; currency: string };\n    accountNumber: string;\n    insuredName: string;\n  };\n}\n\ninterface ClaimCreatedEvent extends GuidewireEvent {\n  type: 'claim.created';\n  data: {\n    claimNumber: string;\n    lossDate: string;\n    lossType: string;\n    policyNumber: string;\n    status: string;\n  };\n}\n\ntype EventHandler\u003CT extends GuidewireEvent> = (event: T) => Promise\u003Cvoid>;\n\nconst eventHandlers: Record\u003Cstring, EventHandler\u003Cany>> = {\n  'policy.issued': async (event: PolicyIssuedEvent) => {\n    console.log(`Processing policy issued: ${event.data.policyNumber}`);\n\n    \u002F\u002F Update CRM\n    await crmClient.updatePolicy({\n      policyNumber: event.data.policyNumber,\n      effectiveDate: event.data.effectiveDate,\n      premium: event.data.totalPremium.amount\n    });\n\n    \u002F\u002F Send welcome email\n    await emailService.sendWelcomeEmail({\n      to: event.data.insuredName,\n      policyNumber: event.data.policyNumber,\n      effectiveDate: event.data.effectiveDate\n    });\n\n    \u002F\u002F Update analytics\n    await analyticsService.trackPolicyIssued(event.data);\n  },\n\n  'claim.created': async (event: ClaimCreatedEvent) => {\n    console.log(`Processing claim created: ${event.data.claimNumber}`);\n\n    \u002F\u002F Notify claims team\n    await notificationService.notifyClaimsTeam({\n      claimNumber: event.data.claimNumber,\n      policyNumber: event.data.policyNumber,\n      lossDate: event.data.lossDate\n    });\n\n    \u002F\u002F Create task in task management system\n    await taskService.createTask({\n      type: 'REVIEW_CLAIM',\n      reference: event.data.claimNumber,\n      priority: determineClaimPriority(event.data)\n    });\n  }\n};\n\nasync function handleGuidewireEvent(event: GuidewireEvent): Promise\u003Cvoid> {\n  const handler = eventHandlers[event.type];\n\n  if (!handler) {\n    console.log(`No handler for event type: ${event.type}`);\n    return;\n  }\n\n  await handler(event);\n  console.log(`Processed event: ${event.type} (${event.id})`);\n}\n```\n\n### Step 4: Gosu Event Publisher\n\n```gosu\n\u002F\u002F Publishing custom events from Gosu\npackage gw.events\n\nuses gw.api.messaging.MessageTransport\nuses gw.api.util.Logger\nuses gw.pl.persistence.core.Bundle\n\nclass CustomEventPublisher {\n  private static final var LOG = Logger.forCategory(\"CustomEventPublisher\")\n\n  \u002F\u002F Publish event when policy state changes\n  static function publishPolicyEvent(policy : Policy, eventType : String) {\n    var event = buildPolicyEvent(policy, eventType)\n    publishEvent(event)\n  }\n\n  \u002F\u002F Publish event when claim status changes\n  static function publishClaimEvent(claim : Claim, eventType : String) {\n    var event = buildClaimEvent(claim, eventType)\n    publishEvent(event)\n  }\n\n  private static function buildPolicyEvent(policy : Policy, eventType : String) : Map\u003CString, Object> {\n    return {\n      \"eventType\" -> eventType,\n      \"timestamp\" -> Date.Now.toString(),\n      \"application\" -> \"PolicyCenter\",\n      \"data\" -> {\n        \"policyNumber\" -> policy.PolicyNumber,\n        \"accountNumber\" -> policy.Account.AccountNumber,\n        \"effectiveDate\" -> policy.EffectiveDate.toString(),\n        \"expirationDate\" -> policy.ExpirationDate.toString(),\n        \"status\" -> policy.Status.Code,\n        \"totalPremium\" -> {\n          \"amount\" -> policy.TotalPremiumRPT.Amount,\n          \"currency\" -> policy.TotalPremiumRPT.Currency.Code\n        }\n      }\n    }\n  }\n\n  private static function buildClaimEvent(claim : Claim, eventType : String) : Map\u003CString, Object> {\n    return {\n      \"eventType\" -> eventType,\n      \"timestamp\" -> Date.Now.toString(),\n      \"application\" -> \"ClaimCenter\",\n      \"data\" -> {\n        \"claimNumber\" -> claim.ClaimNumber,\n        \"policyNumber\" -> claim.Policy.PolicyNumber,\n        \"lossDate\" -> claim.LossDate.toString(),\n        \"lossType\" -> claim.LossType.Code,\n        \"status\" -> claim.State.Code\n      }\n    }\n  }\n\n  private static function publishEvent(event : Map\u003CString, Object>) {\n    try {\n      \u002F\u002F Publish to message destination\n      var transport = MessageTransport.getInstance()\n      var message = new gw.api.messaging.Message()\n      message.Destination = \"ExternalEventDestination\"\n      message.Body = gw.api.json.JsonObject.toJson(event)\n\n      transport.send(message)\n      LOG.info(\"Published event: ${event.get('eventType')}\")\n    } catch (e : Exception) {\n      LOG.error(\"Failed to publish event\", e)\n      throw e\n    }\n  }\n}\n```\n\n### Step 5: Integration Gateway Route\n\n```yaml\n# Integration Gateway route configuration\n# config\u002Fintegration\u002Froutes\u002Fclaim-processor.yaml\n\nroute:\n  name: claim-processor\n  description: Process incoming claim events\n\n  from:\n    type: app-events\n    event: claim.created\n\n  steps:\n    - transform:\n        type: gosu\n        class: gw.integration.transform.ClaimEventTransformer\n\n    - filter:\n        condition: ${body.data.lossType != 'test'}\n\n    - choice:\n        when:\n          - condition: ${body.data.totalLoss == true}\n            to:\n              type: http\n              url: https:\u002F\u002Fexternal-system.com\u002Ftotal-loss\n              method: POST\n          - condition: ${body.data.subrogation == true}\n            to:\n              type: http\n              url: https:\u002F\u002Fexternal-system.com\u002Fsubrogation\n              method: POST\n        otherwise:\n          to:\n            type: http\n            url: https:\u002F\u002Fexternal-system.com\u002Fstandard-claim\n            method: POST\n\n  errorHandler:\n    type: retry\n    maxAttempts: 3\n    delay: 5000\n    onExhausted:\n      type: dead-letter\n      destination: claim-processing-dlq\n```\n\n### Step 6: Event Monitoring\n\n```typescript\n\u002F\u002F Monitor event processing\ninterface EventMetrics {\n  totalReceived: number;\n  totalProcessed: number;\n  totalFailed: number;\n  processingTimeMs: number[];\n  eventsByType: Record\u003Cstring, number>;\n  failuresByType: Record\u003Cstring, number>;\n}\n\nclass EventMonitor {\n  private metrics: EventMetrics = {\n    totalReceived: 0,\n    totalProcessed: 0,\n    totalFailed: 0,\n    processingTimeMs: [],\n    eventsByType: {},\n    failuresByType: {}\n  };\n\n  recordEvent(eventType: string, success: boolean, durationMs: number): void {\n    this.metrics.totalReceived++;\n    this.metrics.eventsByType[eventType] = (this.metrics.eventsByType[eventType] || 0) + 1;\n\n    if (success) {\n      this.metrics.totalProcessed++;\n      this.metrics.processingTimeMs.push(durationMs);\n    } else {\n      this.metrics.totalFailed++;\n      this.metrics.failuresByType[eventType] = (this.metrics.failuresByType[eventType] || 0) + 1;\n    }\n  }\n\n  getMetrics(): EventMetrics & { avgProcessingTimeMs: number; successRate: number } {\n    const avgProcessingTimeMs = this.metrics.processingTimeMs.length > 0\n      ? this.metrics.processingTimeMs.reduce((a, b) => a + b, 0) \u002F this.metrics.processingTimeMs.length\n      : 0;\n\n    const successRate = this.metrics.totalReceived > 0\n      ? this.metrics.totalProcessed \u002F this.metrics.totalReceived\n      : 0;\n\n    return {\n      ...this.metrics,\n      avgProcessingTimeMs,\n      successRate\n    };\n  }\n\n  toPrometheus(): string {\n    return `\n# HELP gw_events_received_total Total events received\n# TYPE gw_events_received_total counter\ngw_events_received_total ${this.metrics.totalReceived}\n\n# HELP gw_events_processed_total Successfully processed events\n# TYPE gw_events_processed_total counter\ngw_events_processed_total ${this.metrics.totalProcessed}\n\n# HELP gw_events_failed_total Failed events\n# TYPE gw_events_failed_total counter\ngw_events_failed_total ${this.metrics.totalFailed}\n`.trim();\n  }\n}\n```\n\n## Event Types Reference\n\n| Application | Event Type | Trigger |\n|-------------|------------|---------|\n| PolicyCenter | policy.created | New policy bound |\n| PolicyCenter | policy.issued | Policy issued |\n| PolicyCenter | policy.cancelled | Policy cancelled |\n| PolicyCenter | policy.renewed | Policy renewed |\n| PolicyCenter | submission.quoted | Quote generated |\n| ClaimCenter | claim.created | FNOL submitted |\n| ClaimCenter | claim.closed | Claim closed |\n| ClaimCenter | payment.issued | Payment created |\n| BillingCenter | invoice.created | Invoice generated |\n| BillingCenter | payment.received | Payment received |\n\n## Output\n\n- App Events configuration\n- Webhook receiver with signature validation\n- Type-safe event handlers\n- Gosu event publisher\n- Integration Gateway routes\n- Event monitoring\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Invalid signature | Wrong secret | Verify webhook secret |\n| Event timeout | Slow processing | Use async queue |\n| Duplicate events | Missing idempotency | Track processed event IDs |\n| Delivery failure | Endpoint down | Check webhook endpoint |\n\n## Resources\n\n- [Guidewire App Events](https:\u002F\u002Fdocs.guidewire.com\u002Feducation\u002Fcloud-integration-basics\u002Flatest\u002Fdocs\u002Fintegration_cloud_basics\u002Fappevents_overview\u002F)\n- [Integration Gateway](https:\u002F\u002Fwww.guidewire.com\u002Fdevelopers\u002Fdeveloper-tools-and-guides\u002Fintegration-framework)\n\n## Next Steps\n\nFor performance optimization, see `guidewire-performance-tuning`.\n","# Guidewire Webhooks & Events\n\n## Overview\n\nImplement event-driven integrations using Guidewire App Events, webhooks, and message queuing for real-time notifications and asynchronous processing.\n\n## Prerequisites\n\n- Guidewire Cloud Console access\n- Understanding of event-driven architecture\n- HTTPS endpoint for webhook receiver\n- Message queue service (optional)\n\n## App Events Architecture\n\n```\n+------------------+      +------------------+      +------------------+\n|                  |      |                  |      |                  |\n|  InsuranceSuite  |----->|   App Events     |----->|  Your System     |\n|  (PC\u002FCC\u002FBC)      |      |   Service        |      |  (Webhook\u002FQueue) |\n|                  |      |                  |      |                  |\n+------------------+      +------------------+      +------------------+\n        |                         |                         |\n        v                         v                         v\n  Business Event             Kafka Topic              Event Handler\n  (Policy Issued)            (Buffered)              (Process Event)\n```\n\n## Instructions\n\n### Step 1: Configure App Events in Cloud Console\n\n```yaml\n# App Events Configuration\n# Navigate to: Integration Gateway > App Events\n\nevents:\n  - name: policy.issued\n    description: Triggered when a policy is issued\n    application: PolicyCenter\n    entity: Policy\n    payload:\n      include:\n        - policyNumber\n        - effectiveDate\n        - expirationDate\n        - totalPremium\n        - accountNumber\n        - insuredName\n    delivery:\n      type: webhook\n      endpoint: https:\u002F\u002Fyour-api.com\u002Fwebhooks\u002Fguidewire\n      retryPolicy:\n        maxAttempts: 5\n        backoffMultiplier: 2\n        initialDelaySeconds: 10\n\n  - name: claim.created\n    description: Triggered when a new claim is filed\n    application: ClaimCenter\n    entity: Claim\n    payload:\n      include:\n        - claimNumber\n        - lossDate\n        - lossType\n        - policyNumber\n        - status\n    delivery:\n      type: integration_gateway\n      route: claim-processor\n```\n\n### Step 2: Webhook Receiver Implementation\n\n```typescript\n\u002F\u002F Express.js webhook receiver\nimport express from 'express';\nimport crypto from 'crypto';\nimport { Redis } from 'ioredis';\n\nconst app = express();\nconst redis = new Redis(process.env.REDIS_URL);\n\n\u002F\u002F IMPORTANT: Raw body needed for signature verification\napp.post('\u002Fwebhooks\u002Fguidewire',\n  express.raw({ type: 'application\u002Fjson' }),\n  async (req, res) => {\n    const signature = req.headers['x-gw-signature'] as string;\n    const timestamp = req.headers['x-gw-timestamp'] as string;\n    const eventId = req.headers['x-gw-event-id'] as string;\n\n    \u002F\u002F Verify signature\n    if (!verifySignature(req.body, signature, timestamp)) {\n      console.error('Invalid signature');\n      return res.status(401).json({ error: 'Invalid signature' });\n    }\n\n    \u002F\u002F Check for replay attacks\n    if (!await isTimestampValid(timestamp)) {\n      return res.status(401).json({ error: 'Timestamp too old' });\n    }\n\n    \u002F\u002F Ensure idempotency\n    if (await isEventProcessed(eventId)) {\n      console.log(`Event ${eventId} already processed`);\n      return res.status(200).json({ status: 'already_processed' });\n    }\n\n    try {\n      const event = JSON.parse(req.body.toString());\n      await handleGuidewireEvent(event);\n      await markEventProcessed(eventId);\n\n      res.status(200).json({ status: 'processed' });\n    } catch (error) {\n      console.error('Event processing failed:', error);\n      \u002F\u002F Return 500 to trigger retry\n      res.status(500).json({ error: 'Processing failed' });\n    }\n  }\n);\n\nfunction verifySignature(\n  payload: Buffer,\n  signature: string,\n  timestamp: string\n): boolean {\n  const secret = process.env.GW_WEBHOOK_SECRET!;\n\n  \u002F\u002F Validate timestamp age (max 5 minutes)\n  const timestampAge = Date.now() - parseInt(timestamp) * 1000;\n  if (timestampAge > 300000) {\n    return false;\n  }\n\n  \u002F\u002F Compute expected signature\n  const signedPayload = `${timestamp}.${payload.toString()}`;\n  const expectedSignature = crypto\n    .createHmac('sha256', secret)\n    .update(signedPayload)\n    .digest('hex');\n\n  \u002F\u002F Timing-safe comparison\n  return crypto.timingSafeEqual(\n    Buffer.from(signature),\n    Buffer.from(`v1=${expectedSignature}`)\n  );\n}\n\nasync function isEventProcessed(eventId: string): Promise\u003Cboolean> {\n  const key = `gw:event:${eventId}`;\n  return (await redis.exists(key)) === 1;\n}\n\nasync function markEventProcessed(eventId: string): Promise\u003Cvoid> {\n  const key = `gw:event:${eventId}`;\n  await redis.set(key, '1', 'EX', 86400 * 7); \u002F\u002F 7 days TTL\n}\n```\n\n### Step 3: Event Handler Implementation\n\n```typescript\n\u002F\u002F Event handler with type safety\ninterface GuidewireEvent {\n  id: string;\n  type: string;\n  timestamp: string;\n  application: 'PolicyCenter' | 'ClaimCenter' | 'BillingCenter';\n  data: Record\u003Cstring, any>;\n}\n\ninterface PolicyIssuedEvent extends GuidewireEvent {\n  type: 'policy.issued';\n  data: {\n    policyNumber: string;\n    effectiveDate: string;\n    expirationDate: string;\n    totalPremium: { amount: number; currency: string };\n    accountNumber: string;\n    insuredName: string;\n  };\n}\n\ninterface ClaimCreatedEvent extends GuidewireEvent {\n  type: 'claim.created';\n  data: {\n    claimNumber: string;\n    lossDate: string;\n    lossType: string;\n    policyNumber: string;\n    status: string;\n  };\n}\n\ntype EventHandler\u003CT extends GuidewireEvent> = (event: T) => Promise\u003Cvoid>;\n\nconst eventHandlers: Record\u003Cstring, EventHandler\u003Cany>> = {\n  'policy.issued': async (event: PolicyIssuedEvent) => {\n    console.log(`Processing policy issued: ${event.data.policyNumber}`);\n\n    \u002F\u002F Update CRM\n    await crmClient.updatePolicy({\n      policyNumber: event.data.policyNumber,\n      effectiveDate: event.data.effectiveDate,\n      premium: event.data.totalPremium.amount\n    });\n\n    \u002F\u002F Send welcome email\n    await emailService.sendWelcomeEmail({\n      to: event.data.insuredName,\n      policyNumber: event.data.policyNumber,\n      effectiveDate: event.data.effectiveDate\n    });\n\n    \u002F\u002F Update analytics\n    await analyticsService.trackPolicyIssued(event.data);\n  },\n\n  'claim.created': async (event: ClaimCreatedEvent) => {\n    console.log(`Processing claim created: ${event.data.claimNumber}`);\n\n    \u002F\u002F Notify claims team\n    await notificationService.notifyClaimsTeam({\n      claimNumber: event.data.claimNumber,\n      policyNumber: event.data.policyNumber,\n      lossDate: event.data.lossDate\n    });\n\n    \u002F\u002F Create task in task management system\n    await taskService.createTask({\n      type: 'REVIEW_CLAIM',\n      reference: event.data.claimNumber,\n      priority: determineClaimPriority(event.data)\n    });\n  }\n};\n\nasync function handleGuidewireEvent(event: GuidewireEvent): Promise\u003Cvoid> {\n  const handler = eventHandlers[event.type];\n\n  if (!handler) {\n    console.log(`No handler for event type: ${event.type}`);\n    return;\n  }\n\n  await handler(event);\n  console.log(`Processed event: ${event.type} (${event.id})`);\n}\n```\n\n### Step 4: Gosu Event Publisher\n\n```gosu\n\u002F\u002F Publishing custom events from Gosu\npackage gw.events\n\nuses gw.api.messaging.MessageTransport\nuses gw.api.util.Logger\nuses gw.pl.persistence.core.Bundle\n\nclass CustomEventPublisher {\n  private static final var LOG = Logger.forCategory(\"CustomEventPublisher\")\n\n  \u002F\u002F Publish event when policy state changes\n  static function publishPolicyEvent(policy : Policy, eventType : String) {\n    var event = buildPolicyEvent(policy, eventType)\n    publishEvent(event)\n  }\n\n  \u002F\u002F Publish event when claim status changes\n  static function publishClaimEvent(claim : Claim, eventType : String) {\n    var event = buildClaimEvent(claim, eventType)\n    publishEvent(event)\n  }\n\n  private static function buildPolicyEvent(policy : Policy, eventType : String) : Map\u003CString, Object> {\n    return {\n      \"eventType\" -> eventType,\n      \"timestamp\" -> Date.Now.toString(),\n      \"application\" -> \"PolicyCenter\",\n      \"data\" -> {\n        \"policyNumber\" -> policy.PolicyNumber,\n        \"accountNumber\" -> policy.Account.AccountNumber,\n        \"effectiveDate\" -> policy.EffectiveDate.toString(),\n        \"expirationDate\" -> policy.ExpirationDate.toString(),\n        \"status\" -> policy.Status.Code,\n        \"totalPremium\" -> {\n          \"amount\" -> policy.TotalPremiumRPT.Amount,\n          \"currency\" -> policy.TotalPremiumRPT.Currency.Code\n        }\n      }\n    }\n  }\n\n  private static function buildClaimEvent(claim : Claim, eventType : String) : Map\u003CString, Object> {\n    return {\n      \"eventType\" -> eventType,\n      \"timestamp\" -> Date.Now.toString(),\n      \"application\" -> \"ClaimCenter\",\n      \"data\" -> {\n        \"claimNumber\" -> claim.ClaimNumber,\n        \"policyNumber\" -> claim.Policy.PolicyNumber,\n        \"lossDate\" -> claim.LossDate.toString(),\n        \"lossType\" -> claim.LossType.Code,\n        \"status\" -> claim.State.Code\n      }\n    }\n  }\n\n  private static function publishEvent(event : Map\u003CString, Object>) {\n    try {\n      \u002F\u002F Publish to message destination\n      var transport = MessageTransport.getInstance()\n      var message = new gw.api.messaging.Message()\n      message.Destination = \"ExternalEventDestination\"\n      message.Body = gw.api.json.JsonObject.toJson(event)\n\n      transport.send(message)\n      LOG.info(\"Published event: ${event.get('eventType')}\")\n    } catch (e : Exception) {\n      LOG.error(\"Failed to publish event\", e)\n      throw e\n    }\n  }\n}\n```\n\n### Step 5: Integration Gateway Route\n\n```yaml\n# Integration Gateway route configuration\n# config\u002Fintegration\u002Froutes\u002Fclaim-processor.yaml\n\nroute:\n  name: claim-processor\n  description: Process incoming claim events\n\n  from:\n    type: app-events\n    event: claim.created\n\n  steps:\n    - transform:\n        type: gosu\n        class: gw.integration.transform.ClaimEventTransformer\n\n    - filter:\n        condition: ${body.data.lossType != 'test'}\n\n    - choice:\n        when:\n          - condition: ${body.data.totalLoss == true}\n            to:\n              type: http\n              url: https:\u002F\u002Fexternal-system.com\u002Ftotal-loss\n              method: POST\n          - condition: ${body.data.subrogation == true}\n            to:\n              type: http\n              url: https:\u002F\u002Fexternal-system.com\u002Fsubrogation\n              method: POST\n        otherwise:\n          to:\n            type: http\n            url: https:\u002F\u002Fexternal-system.com\u002Fstandard-claim\n            method: POST\n\n  errorHandler:\n    type: retry\n    maxAttempts: 3\n    delay: 5000\n    onExhausted:\n      type: dead-letter\n      destination: claim-processing-dlq\n```\n\n### Step 6: Event Monitoring\n\n```typescript\n\u002F\u002F Monitor event processing\ninterface EventMetrics {\n  totalReceived: number;\n  totalProcessed: number;\n  totalFailed: number;\n  processingTimeMs: number[];\n  eventsByType: Record\u003Cstring, number>;\n  failuresByType: Record\u003Cstring, number>;\n}\n\nclass EventMonitor {\n  private metrics: EventMetrics = {\n    totalReceived: 0,\n    totalProcessed: 0,\n    totalFailed: 0,\n    processingTimeMs: [],\n    eventsByType: {},\n    failuresByType: {}\n  };\n\n  recordEvent(eventType: string, success: boolean, durationMs: number): void {\n    this.metrics.totalReceived++;\n    this.metrics.eventsByType[eventType] = (this.metrics.eventsByType[eventType] || 0) + 1;\n\n    if (success) {\n      this.metrics.totalProcessed++;\n      this.metrics.processingTimeMs.push(durationMs);\n    } else {\n      this.metrics.totalFailed++;\n      this.metrics.failuresByType[eventType] = (this.metrics.failuresByType[eventType] || 0) + 1;\n    }\n  }\n\n  getMetrics(): EventMetrics & { avgProcessingTimeMs: number; successRate: number } {\n    const avgProcessingTimeMs = this.metrics.processingTimeMs.length > 0\n      ? this.metrics.processingTimeMs.reduce((a, b) => a + b, 0) \u002F this.metrics.processingTimeMs.length\n      : 0;\n\n    const successRate = this.metrics.totalReceived > 0\n      ? this.metrics.totalProcessed \u002F this.metrics.totalReceived\n      : 0;\n\n    return {\n      ...this.metrics,\n      avgProcessingTimeMs,\n      successRate\n    };\n  }\n\n  toPrometheus(): string {\n    return `\n# HELP gw_events_received_total Total events received\n# TYPE gw_events_received_total counter\ngw_events_received_total ${this.metrics.totalReceived}\n\n# HELP gw_events_processed_total Successfully processed events\n# TYPE gw_events_processed_total counter\ngw_events_processed_total ${this.metrics.totalProcessed}\n\n# HELP gw_events_failed_total Failed events\n# TYPE gw_events_failed_total counter\ngw_events_failed_total ${this.metrics.totalFailed}\n`.trim();\n  }\n}\n```\n\n## Event Types Reference\n\n| Application | Event Type | Trigger |\n|-------------|------------|---------|\n| PolicyCenter | policy.created | New policy bound |\n| PolicyCenter | policy.issued | Policy issued |\n| PolicyCenter | policy.cancelled | Policy cancelled |\n| PolicyCenter | policy.renewed | Policy renewed |\n| PolicyCenter | submission.quoted | Quote generated |\n| ClaimCenter | claim.created | FNOL submitted |\n| ClaimCenter | claim.closed | Claim closed |\n| ClaimCenter | payment.issued | Payment created |\n| BillingCenter | invoice.created | Invoice generated |\n| BillingCenter | payment.received | Payment received |\n\n## Output\n\n- App Events configuration\n- Webhook receiver with signature validation\n- Type-safe event handlers\n- Gosu event publisher\n- Integration Gateway routes\n- Event monitoring\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Invalid signature | Wrong secret | Verify webhook secret |\n| Event timeout | Slow processing | Use async queue |\n| Duplicate events | Missing idempotency | Track processed event IDs |\n| Delivery failure | Endpoint down | Check webhook endpoint |\n\n## Resources\n\n- [Guidewire App Events](https:\u002F\u002Fdocs.guidewire.com\u002Feducation\u002Fcloud-integration-basics\u002Flatest\u002Fdocs\u002Fintegration_cloud_basics\u002Fappevents_overview\u002F)\n- [Integration Gateway](https:\u002F\u002Fwww.guidewire.com\u002Fdevelopers\u002Fdeveloper-tools-and-guides\u002Fintegration-framework)\n\n## Next Steps\n\nFor performance optimization, see `guidewire-performance-tuning`.\n",{"name":5,"author":46,"license":15,"version":47,"description":48,"allowed-tools":49},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Guidewire App Events and webhook integrations for event-driven architecture.\nUse when setting up outbound events, message queuing, webhook receivers,\nor asynchronous integration patterns.\nTrigger with phrases like \"guidewire webhooks\", \"app events\",\n\"event-driven\", \"message queue\", \"guidewire notifications\".\n","Read, Write, Edit, Bash(curl:*), Bash(npm:*), Grep","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fguidewire-pack\u002Fskills\u002Fguidewire-webhooks-events",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill guidewire-webhooks-events",{"tool":65,"command":66},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill guidewire-webhooks-events",{"tool":68,"command":69},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill guidewire-webhooks-events","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fguidewire-pack\u002Fskills\u002Fguidewire-webhooks-events\u002FSKILL.md",true,[],[74,108,143,166,192,218],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":87,"publishedAt":107},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[82],{"categoryNo":83,"categoryName":84,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","with","you","fonts","2026-11-11 15:11:14",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":118,"publishedAt":41},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[115],{"categoryNo":116,"categoryName":117,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000009","前端开发",[119,120,94,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,99,137,138,139,140,24,141,142],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","use","single-file","simple","ui components","multi","jsx","suite",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":147,"sourceHtmlUrl":148,"categories":149,"keywords":154,"publishedAt":41},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[150,153],{"categoryNo":151,"categoryName":152,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":116,"categoryName":117,"taxonomyType":85,"taxonomyTypeDesc":86},[155,156,157,123,158,159,120,160,92,161,133,162,163,164,165,104,24],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":170,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":41},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[174,175,176,177,178,179,180,181,136,182,183,184,185,186,187,188,104,189,190,191,24,23],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":196,"sourceHtmlUrl":197,"categories":198,"keywords":202,"publishedAt":41},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[199],{"categoryNo":200,"categoryName":201,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000023","Skill与智能体开发",[203,204,205,206,207,208,209,210,37,211,212,213,214,215,104,24,216,23,217],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":219,"name":220,"nameZh":6,"description":221,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":222,"sourceHtmlUrl":223,"categories":224,"keywords":226,"publishedAt":41},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[225],{"categoryNo":200,"categoryName":201,"taxonomyType":85,"taxonomyTypeDesc":86},[220,227,228,229,230,231,232,161,233,234,136,235,236,237,238,24,239],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]