[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XG6H72DAAGF1Y7CBW8D3RH":3,"skill-same:01M6XG6H72DAAGF1Y7CBW8D3RH":75},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6XG6H72DAAGF1Y7CBW8D3RH","guidewire-core-workflow-b-2",null,"Execute Guidewire secondary workflow: Claims processing in ClaimCenter.\nUse when implementing FNOL, claim investigation, reserves, payments, and settlement.\nTrigger with phrases like \"claimcenter workflow\", \"create claim\", \"file fnol\",\n\"process claim\", \"claim settlement\", \"claim payment\".","FDU-INS\u002FInsurance-Skills","FDU-INS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F167067594?v=4","01M6XEYMRS4CVJMZ834YWE66BV","FDU-Insurance","01M6XEYMXPDA34HFM0ZE6AY78G",82,"MIT","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fguidewire-core-workflow-b-2\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"core","guidewire core workflow b 2","guidewire core workflow b","workflow","io","when","implementing","claims","create","with","processing","trigger","file","claim","payment","use","process","curl","Bash","payments","2026-11-10 10:12:30",false,"---\nname: guidewire-core-workflow-b-2\ndescription: |\n  Execute Guidewire secondary workflow: Claims processing in ClaimCenter.\n  Use when implementing FNOL, claim investigation, reserves, payments, and settlement.\n  Trigger with phrases like \"claimcenter workflow\", \"create claim\", \"file fnol\",\n  \"process claim\", \"claim settlement\", \"claim payment\".\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 Core Workflow B: Claims Processing\n\n## Overview\n\nMaster the complete claims lifecycle in ClaimCenter: First Notice of Loss (FNOL), claim investigation, reserve setting, payments, and settlement.\n\n## Prerequisites\n\n- Completed `guidewire-install-auth` and `guidewire-core-workflow-a`\n- Understanding of claims handling processes\n- Valid API credentials with claims admin permissions\n\n## Claims Lifecycle States\n\n```\nFNOL → Open → Investigation → Evaluation → Negotiation → Settlement → Closed\n  |      |          |              |             |            |          |\n  v      v          v              v             v            v          v\n[Draft] [Open]  [Reserve]    [Exposure]   [Payment]   [Settle]   [Closed]\n```\n\n## Instructions\n\n### Step 1: Create FNOL (First Notice of Loss)\n\n```typescript\n\u002F\u002F Create a new claim via FNOL\ninterface FNOLRequest {\n  data: {\n    attributes: {\n      lossDate: string;\n      lossTime?: string;\n      reportedDate: string;\n      lossType: { code: string };\n      lossCause: { code: string };\n      description: string;\n      policyNumber: string;\n      lossLocation?: {\n        addressLine1: string;\n        city: string;\n        state: { code: string };\n        postalCode: string;\n      };\n      reporter?: {\n        firstName: string;\n        lastName: string;\n        primaryPhone: string;\n        relationship: { code: string };\n      };\n    };\n  };\n}\n\nasync function createFNOL(fnolData: FNOLData): Promise\u003CClaim> {\n  const request: FNOLRequest = {\n    data: {\n      attributes: {\n        lossDate: fnolData.lossDate,\n        lossTime: fnolData.lossTime,\n        reportedDate: new Date().toISOString().split('T')[0],\n        lossType: { code: fnolData.lossType }, \u002F\u002F 'AUTO', 'PR', 'GL', 'WC'\n        lossCause: { code: fnolData.lossCause },\n        description: fnolData.description,\n        policyNumber: fnolData.policyNumber,\n        lossLocation: {\n          addressLine1: fnolData.location.address,\n          city: fnolData.location.city,\n          state: { code: fnolData.location.state },\n          postalCode: fnolData.location.zip\n        },\n        reporter: {\n          firstName: fnolData.reporter.firstName,\n          lastName: fnolData.reporter.lastName,\n          primaryPhone: fnolData.reporter.phone,\n          relationship: { code: 'insured' }\n        }\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: Claim }>(\n    'POST',\n    '\u002Ffnol\u002Fv1\u002Ffnol',\n    request\n  );\n\n  console.log(`Created claim: ${response.data.claimNumber}`);\n  return response.data;\n}\n```\n\n### Step 2: Add Exposures\n\n```typescript\n\u002F\u002F Add exposures (coverages that may apply)\ninterface ExposureRequest {\n  data: {\n    attributes: {\n      exposureType: { code: string };\n      lossParty: { code: string };\n      primaryCoverage: { code: string };\n      claimant?: { id: string };\n      incident?: { id: string };\n    };\n  };\n}\n\nasync function addExposure(\n  claimId: string,\n  exposureData: ExposureData\n): Promise\u003CExposure> {\n  const request: ExposureRequest = {\n    data: {\n      attributes: {\n        exposureType: { code: exposureData.type }, \u002F\u002F 'VehicleDamage', 'BodilyInjury', etc.\n        lossParty: { code: exposureData.lossParty }, \u002F\u002F 'insured', 'claimant'\n        primaryCoverage: { code: exposureData.coverageCode },\n        claimant: exposureData.claimantId ? { id: exposureData.claimantId } : undefined\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: Exposure }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fexposures`,\n    request\n  );\n\n  return response.data;\n}\n```\n\n### Step 3: Add Incidents\n\n```typescript\n\u002F\u002F Add vehicle incident for auto claims\ninterface VehicleIncidentRequest {\n  data: {\n    attributes: {\n      severity: { code: string };\n      description: string;\n      vehicle: {\n        vin?: string;\n        year: number;\n        make: string;\n        model: string;\n        color?: string;\n        licensePlate?: string;\n      };\n      damageDescription: string;\n      airbagDeployed?: boolean;\n      vehicleOperable?: boolean;\n    };\n  };\n}\n\nasync function addVehicleIncident(\n  claimId: string,\n  vehicleData: VehicleIncidentData\n): Promise\u003CVehicleIncident> {\n  const request: VehicleIncidentRequest = {\n    data: {\n      attributes: {\n        severity: { code: vehicleData.severity }, \u002F\u002F 'minor', 'moderate', 'major', 'total-loss'\n        description: vehicleData.description,\n        vehicle: {\n          vin: vehicleData.vin,\n          year: vehicleData.year,\n          make: vehicleData.make,\n          model: vehicleData.model,\n          licensePlate: vehicleData.licensePlate\n        },\n        damageDescription: vehicleData.damageDescription,\n        airbagDeployed: vehicleData.airbagDeployed,\n        vehicleOperable: vehicleData.vehicleOperable\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: VehicleIncident }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fvehicle-incidents`,\n    request\n  );\n\n  return response.data;\n}\n```\n\n### Step 4: Set Reserves\n\n```typescript\n\u002F\u002F Set reserve on exposure\ninterface ReserveRequest {\n  data: {\n    attributes: {\n      reserveLine: { code: string };\n      costType: { code: string };\n      costCategory: { code: string };\n      newAmount: { amount: number; currency: string };\n      comments: string;\n    };\n  };\n}\n\nasync function setReserve(\n  claimId: string,\n  exposureId: string,\n  reserveData: ReserveData\n): Promise\u003CReserve> {\n  const request: ReserveRequest = {\n    data: {\n      attributes: {\n        reserveLine: { code: reserveData.reserveLine }, \u002F\u002F 'indemnity', 'expenses'\n        costType: { code: reserveData.costType },\n        costCategory: { code: reserveData.costCategory },\n        newAmount: {\n          amount: reserveData.amount,\n          currency: 'usd'\n        },\n        comments: reserveData.comments\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: Reserve }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fexposures\u002F${exposureId}\u002Freserves`,\n    request\n  );\n\n  console.log(`Set reserve: $${reserveData.amount} on exposure ${exposureId}`);\n  return response.data;\n}\n```\n\n### Step 5: Create Payment\n\n```typescript\n\u002F\u002F Create claim payment\ninterface PaymentRequest {\n  data: {\n    attributes: {\n      paymentType: { code: string };\n      exposure: { id: string };\n      payee: {\n        payeeType: { code: string };\n        claimContact?: { id: string };\n        payeeName?: string;\n      };\n      reserveLine: { code: string };\n      costType: { code: string };\n      costCategory: { code: string };\n      amount: { amount: number; currency: string };\n      comments?: string;\n      paymentMethod?: { code: string };\n    };\n  };\n}\n\nasync function createPayment(\n  claimId: string,\n  paymentData: PaymentData\n): Promise\u003CPayment> {\n  const request: PaymentRequest = {\n    data: {\n      attributes: {\n        paymentType: { code: paymentData.paymentType }, \u002F\u002F 'partial', 'final'\n        exposure: { id: paymentData.exposureId },\n        payee: {\n          payeeType: { code: paymentData.payeeType },\n          claimContact: paymentData.claimContactId\n            ? { id: paymentData.claimContactId }\n            : undefined\n        },\n        reserveLine: { code: 'indemnity' },\n        costType: { code: paymentData.costType },\n        costCategory: { code: paymentData.costCategory },\n        amount: { amount: paymentData.amount, currency: 'usd' },\n        comments: paymentData.comments,\n        paymentMethod: { code: paymentData.method || 'check' }\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: Payment }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fpayments`,\n    request\n  );\n\n  console.log(`Created payment: $${paymentData.amount} - Check #${response.data.checkNumber}`);\n  return response.data;\n}\n```\n\n### Step 6: Close Exposure\n\n```typescript\n\u002F\u002F Close exposure after settlement\nasync function closeExposure(\n  claimId: string,\n  exposureId: string,\n  outcome: string\n): Promise\u003CExposure> {\n  const response = await claimCenterClient.request\u003C{ data: Exposure }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fexposures\u002F${exposureId}\u002Fclose`,\n    {\n      data: {\n        attributes: {\n          closedOutcome: { code: outcome } \u002F\u002F 'completed', 'denied', 'duplicate'\n        }\n      }\n    }\n  );\n\n  return response.data;\n}\n```\n\n### Step 7: Close Claim\n\n```typescript\n\u002F\u002F Close claim when all exposures are closed\nasync function closeClaim(claimId: string): Promise\u003CClaim> {\n  const response = await claimCenterClient.request\u003C{ data: Claim }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fclose`,\n    {\n      data: {\n        attributes: {\n          closedOutcome: { code: 'completed' }\n        }\n      }\n    }\n  );\n\n  console.log(`Closed claim: ${response.data.claimNumber}`);\n  return response.data;\n}\n```\n\n## Gosu Implementation\n\n```gosu\n\u002F\u002F Complete claims workflow in Gosu\npackage gw.custom.claim\n\nuses gw.api.util.Logger\nuses gw.cc.claim.Claim\nuses gw.cc.exposure.Exposure\nuses gw.transaction.Transaction\n\nclass ClaimWorkflow {\n  private static final var LOG = Logger.forCategory(\"ClaimWorkflow\")\n\n  static function createClaim(\n    policyNumber : String,\n    lossDate : Date,\n    lossType : LossType,\n    description : String\n  ) : Claim {\n\n    return Transaction.runWithNewBundle(\\bundle -> {\n      \u002F\u002F Find policy\n      var policy = findPolicy(policyNumber)\n      if (policy == null) {\n        throw new IllegalArgumentException(\"Policy not found: ${policyNumber}\")\n      }\n\n      \u002F\u002F Create claim\n      var claim = new Claim(bundle)\n      claim.Policy = policy\n      claim.LossDate = lossDate\n      claim.LossType = lossType\n      claim.Description = description\n      claim.ReportedDate = Date.Today\n      claim.LossCause = LossCause.TC_VEHCOLLISION\n\n      \u002F\u002F Set claim to open\n      claim.open()\n\n      LOG.info(\"Created claim: ${claim.ClaimNumber}\")\n      return claim\n    })\n  }\n\n  static function addVehicleExposure(\n    claim : Claim,\n    vehicle : Vehicle,\n    coverageCode : String\n  ) : Exposure {\n\n    return Transaction.runWithNewBundle(\\bundle -> {\n      var claim = bundle.add(claim)\n\n      \u002F\u002F Create vehicle incident\n      var incident = new VehicleIncident(bundle)\n      incident.Claim = claim\n      incident.Vehicle = vehicle\n      incident.Description = \"Vehicle damage from ${claim.LossCause.DisplayName}\"\n\n      \u002F\u002F Create exposure\n      var exposure = new Exposure(bundle)\n      exposure.Claim = claim\n      exposure.ExposureType = ExposureType.TC_VEHICLEDAMAGE\n      exposure.LossParty = LossPartyType.TC_INSURED\n      exposure.PrimaryCoverage = CoverageType.get(coverageCode)\n      exposure.VehicleIncident = incident\n\n      LOG.info(\"Created exposure: ${exposure.ExposureType.DisplayName}\")\n      return exposure\n    })\n  }\n\n  static function setExposureReserve(\n    exposure : Exposure,\n    amount : java.math.BigDecimal,\n    reserveLine : ReserveLine\n  ) {\n    Transaction.runWithNewBundle(\\bundle -> {\n      var exp = bundle.add(exposure)\n\n      var reserve = new Reserve(bundle)\n      reserve.Exposure = exp\n      reserve.ReserveLine = reserveLine\n      reserve.CostType = CostType.TC_CLAIMCOST\n      reserve.CostCategory = CostCategory.TC_BODY\n      reserve.NewAmount = new gw.api.financials.CurrencyAmount(amount, Currency.TC_USD)\n      reserve.Comments = \"Initial reserve set\"\n\n      LOG.info(\"Set reserve: ${amount} on ${exp.ExposureType.DisplayName}\")\n    })\n  }\n\n  static function createPayment(\n    exposure : Exposure,\n    amount : java.math.BigDecimal,\n    payee : Contact,\n    paymentType : PaymentType\n  ) : Payment {\n\n    return Transaction.runWithNewBundle(\\bundle -> {\n      var exp = bundle.add(exposure)\n\n      var payment = new Payment(bundle)\n      payment.Exposure = exp\n      payment.Claim = exp.Claim\n      payment.PaymentType = paymentType\n      payment.ReserveLine = ReserveLine.TC_INDEMNITY\n      payment.CostType = CostType.TC_CLAIMCOST\n      payment.CostCategory = CostCategory.TC_BODY\n      payment.Payee = payee\n      payment.GrossAmount = new gw.api.financials.CurrencyAmount(amount, Currency.TC_USD)\n\n      \u002F\u002F Submit for approval\n      payment.submit()\n\n      LOG.info(\"Created payment: ${amount} to ${payee.DisplayName}\")\n      return payment\n    })\n  }\n\n  static function closeClaim(claim : Claim, outcome : CloseOutcome) {\n    Transaction.runWithNewBundle(\\bundle -> {\n      var c = bundle.add(claim)\n\n      \u002F\u002F Close all open exposures first\n      c.Exposures\n        .where(\\e -> e.State == ExposureState.TC_OPEN)\n        .each(\\e -> {\n          e.close(outcome)\n        })\n\n      \u002F\u002F Close claim\n      c.close(outcome)\n      LOG.info(\"Closed claim: ${c.ClaimNumber}\")\n    })\n  }\n}\n```\n\n## Output\n\n- FNOL claim with claim number\n- Exposures linked to coverages\n- Reserves set on exposures\n- Payments processed\n- Claim closed with outcome\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Policy not found` | Invalid policy number | Verify policy number and status |\n| `Coverage not applicable` | Wrong coverage type | Check policy coverages |\n| `Reserve exceeds limit` | Over policy limit | Adjust to policy limits |\n| `Payment validation` | Missing required fields | Check payee and amount |\n| `Cannot close` | Open activities\u002Fexposures | Complete pending items |\n\n## Claim Types and Loss Causes\n\n```typescript\n\u002F\u002F Common loss types\nconst lossTypes = {\n  AUTO: ['vehcollision', 'vehglass', 'vehtheft', 'vehvandalism'],\n  PROPERTY: ['fire', 'water', 'theft', 'weather'],\n  LIABILITY: ['bodily_injury', 'property_damage', 'personal_injury'],\n  WORKERS_COMP: ['injury', 'illness', 'death']\n};\n\n\u002F\u002F Map loss cause to exposures\nfunction getDefaultExposures(lossType: string, lossCause: string): string[] {\n  if (lossType === 'AUTO' && lossCause === 'vehcollision') {\n    return ['VehicleDamage', 'BodilyInjury', 'PropertyDamage'];\n  }\n  \u002F\u002F Additional mappings...\n  return [];\n}\n```\n\n## Resources\n\n- [ClaimCenter Cloud API](https:\u002F\u002Fdocs.guidewire.com\u002Fcloud\u002Fcc\u002F202503\u002Fapiref\u002F)\n- [Claims Workflow Guide](https:\u002F\u002Fdocs.guidewire.com\u002Fcloud\u002Fcc\u002F202503\u002Fcloudapica\u002F)\n- [Exposure Types Reference](https:\u002F\u002Fdocs.guidewire.com\u002Feducation\u002F)\n\n## Next Steps\n\nFor error handling patterns, see `guidewire-common-errors`.\n","# Guidewire Core Workflow B: Claims Processing\n\n## Overview\n\nMaster the complete claims lifecycle in ClaimCenter: First Notice of Loss (FNOL), claim investigation, reserve setting, payments, and settlement.\n\n## Prerequisites\n\n- Completed `guidewire-install-auth` and `guidewire-core-workflow-a`\n- Understanding of claims handling processes\n- Valid API credentials with claims admin permissions\n\n## Claims Lifecycle States\n\n```\nFNOL → Open → Investigation → Evaluation → Negotiation → Settlement → Closed\n  |      |          |              |             |            |          |\n  v      v          v              v             v            v          v\n[Draft] [Open]  [Reserve]    [Exposure]   [Payment]   [Settle]   [Closed]\n```\n\n## Instructions\n\n### Step 1: Create FNOL (First Notice of Loss)\n\n```typescript\n\u002F\u002F Create a new claim via FNOL\ninterface FNOLRequest {\n  data: {\n    attributes: {\n      lossDate: string;\n      lossTime?: string;\n      reportedDate: string;\n      lossType: { code: string };\n      lossCause: { code: string };\n      description: string;\n      policyNumber: string;\n      lossLocation?: {\n        addressLine1: string;\n        city: string;\n        state: { code: string };\n        postalCode: string;\n      };\n      reporter?: {\n        firstName: string;\n        lastName: string;\n        primaryPhone: string;\n        relationship: { code: string };\n      };\n    };\n  };\n}\n\nasync function createFNOL(fnolData: FNOLData): Promise\u003CClaim> {\n  const request: FNOLRequest = {\n    data: {\n      attributes: {\n        lossDate: fnolData.lossDate,\n        lossTime: fnolData.lossTime,\n        reportedDate: new Date().toISOString().split('T')[0],\n        lossType: { code: fnolData.lossType }, \u002F\u002F 'AUTO', 'PR', 'GL', 'WC'\n        lossCause: { code: fnolData.lossCause },\n        description: fnolData.description,\n        policyNumber: fnolData.policyNumber,\n        lossLocation: {\n          addressLine1: fnolData.location.address,\n          city: fnolData.location.city,\n          state: { code: fnolData.location.state },\n          postalCode: fnolData.location.zip\n        },\n        reporter: {\n          firstName: fnolData.reporter.firstName,\n          lastName: fnolData.reporter.lastName,\n          primaryPhone: fnolData.reporter.phone,\n          relationship: { code: 'insured' }\n        }\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: Claim }>(\n    'POST',\n    '\u002Ffnol\u002Fv1\u002Ffnol',\n    request\n  );\n\n  console.log(`Created claim: ${response.data.claimNumber}`);\n  return response.data;\n}\n```\n\n### Step 2: Add Exposures\n\n```typescript\n\u002F\u002F Add exposures (coverages that may apply)\ninterface ExposureRequest {\n  data: {\n    attributes: {\n      exposureType: { code: string };\n      lossParty: { code: string };\n      primaryCoverage: { code: string };\n      claimant?: { id: string };\n      incident?: { id: string };\n    };\n  };\n}\n\nasync function addExposure(\n  claimId: string,\n  exposureData: ExposureData\n): Promise\u003CExposure> {\n  const request: ExposureRequest = {\n    data: {\n      attributes: {\n        exposureType: { code: exposureData.type }, \u002F\u002F 'VehicleDamage', 'BodilyInjury', etc.\n        lossParty: { code: exposureData.lossParty }, \u002F\u002F 'insured', 'claimant'\n        primaryCoverage: { code: exposureData.coverageCode },\n        claimant: exposureData.claimantId ? { id: exposureData.claimantId } : undefined\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: Exposure }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fexposures`,\n    request\n  );\n\n  return response.data;\n}\n```\n\n### Step 3: Add Incidents\n\n```typescript\n\u002F\u002F Add vehicle incident for auto claims\ninterface VehicleIncidentRequest {\n  data: {\n    attributes: {\n      severity: { code: string };\n      description: string;\n      vehicle: {\n        vin?: string;\n        year: number;\n        make: string;\n        model: string;\n        color?: string;\n        licensePlate?: string;\n      };\n      damageDescription: string;\n      airbagDeployed?: boolean;\n      vehicleOperable?: boolean;\n    };\n  };\n}\n\nasync function addVehicleIncident(\n  claimId: string,\n  vehicleData: VehicleIncidentData\n): Promise\u003CVehicleIncident> {\n  const request: VehicleIncidentRequest = {\n    data: {\n      attributes: {\n        severity: { code: vehicleData.severity }, \u002F\u002F 'minor', 'moderate', 'major', 'total-loss'\n        description: vehicleData.description,\n        vehicle: {\n          vin: vehicleData.vin,\n          year: vehicleData.year,\n          make: vehicleData.make,\n          model: vehicleData.model,\n          licensePlate: vehicleData.licensePlate\n        },\n        damageDescription: vehicleData.damageDescription,\n        airbagDeployed: vehicleData.airbagDeployed,\n        vehicleOperable: vehicleData.vehicleOperable\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: VehicleIncident }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fvehicle-incidents`,\n    request\n  );\n\n  return response.data;\n}\n```\n\n### Step 4: Set Reserves\n\n```typescript\n\u002F\u002F Set reserve on exposure\ninterface ReserveRequest {\n  data: {\n    attributes: {\n      reserveLine: { code: string };\n      costType: { code: string };\n      costCategory: { code: string };\n      newAmount: { amount: number; currency: string };\n      comments: string;\n    };\n  };\n}\n\nasync function setReserve(\n  claimId: string,\n  exposureId: string,\n  reserveData: ReserveData\n): Promise\u003CReserve> {\n  const request: ReserveRequest = {\n    data: {\n      attributes: {\n        reserveLine: { code: reserveData.reserveLine }, \u002F\u002F 'indemnity', 'expenses'\n        costType: { code: reserveData.costType },\n        costCategory: { code: reserveData.costCategory },\n        newAmount: {\n          amount: reserveData.amount,\n          currency: 'usd'\n        },\n        comments: reserveData.comments\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: Reserve }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fexposures\u002F${exposureId}\u002Freserves`,\n    request\n  );\n\n  console.log(`Set reserve: $${reserveData.amount} on exposure ${exposureId}`);\n  return response.data;\n}\n```\n\n### Step 5: Create Payment\n\n```typescript\n\u002F\u002F Create claim payment\ninterface PaymentRequest {\n  data: {\n    attributes: {\n      paymentType: { code: string };\n      exposure: { id: string };\n      payee: {\n        payeeType: { code: string };\n        claimContact?: { id: string };\n        payeeName?: string;\n      };\n      reserveLine: { code: string };\n      costType: { code: string };\n      costCategory: { code: string };\n      amount: { amount: number; currency: string };\n      comments?: string;\n      paymentMethod?: { code: string };\n    };\n  };\n}\n\nasync function createPayment(\n  claimId: string,\n  paymentData: PaymentData\n): Promise\u003CPayment> {\n  const request: PaymentRequest = {\n    data: {\n      attributes: {\n        paymentType: { code: paymentData.paymentType }, \u002F\u002F 'partial', 'final'\n        exposure: { id: paymentData.exposureId },\n        payee: {\n          payeeType: { code: paymentData.payeeType },\n          claimContact: paymentData.claimContactId\n            ? { id: paymentData.claimContactId }\n            : undefined\n        },\n        reserveLine: { code: 'indemnity' },\n        costType: { code: paymentData.costType },\n        costCategory: { code: paymentData.costCategory },\n        amount: { amount: paymentData.amount, currency: 'usd' },\n        comments: paymentData.comments,\n        paymentMethod: { code: paymentData.method || 'check' }\n      }\n    }\n  };\n\n  const response = await claimCenterClient.request\u003C{ data: Payment }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fpayments`,\n    request\n  );\n\n  console.log(`Created payment: $${paymentData.amount} - Check #${response.data.checkNumber}`);\n  return response.data;\n}\n```\n\n### Step 6: Close Exposure\n\n```typescript\n\u002F\u002F Close exposure after settlement\nasync function closeExposure(\n  claimId: string,\n  exposureId: string,\n  outcome: string\n): Promise\u003CExposure> {\n  const response = await claimCenterClient.request\u003C{ data: Exposure }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fexposures\u002F${exposureId}\u002Fclose`,\n    {\n      data: {\n        attributes: {\n          closedOutcome: { code: outcome } \u002F\u002F 'completed', 'denied', 'duplicate'\n        }\n      }\n    }\n  );\n\n  return response.data;\n}\n```\n\n### Step 7: Close Claim\n\n```typescript\n\u002F\u002F Close claim when all exposures are closed\nasync function closeClaim(claimId: string): Promise\u003CClaim> {\n  const response = await claimCenterClient.request\u003C{ data: Claim }>(\n    'POST',\n    `\u002Fclaim\u002Fv1\u002Fclaims\u002F${claimId}\u002Fclose`,\n    {\n      data: {\n        attributes: {\n          closedOutcome: { code: 'completed' }\n        }\n      }\n    }\n  );\n\n  console.log(`Closed claim: ${response.data.claimNumber}`);\n  return response.data;\n}\n```\n\n## Gosu Implementation\n\n```gosu\n\u002F\u002F Complete claims workflow in Gosu\npackage gw.custom.claim\n\nuses gw.api.util.Logger\nuses gw.cc.claim.Claim\nuses gw.cc.exposure.Exposure\nuses gw.transaction.Transaction\n\nclass ClaimWorkflow {\n  private static final var LOG = Logger.forCategory(\"ClaimWorkflow\")\n\n  static function createClaim(\n    policyNumber : String,\n    lossDate : Date,\n    lossType : LossType,\n    description : String\n  ) : Claim {\n\n    return Transaction.runWithNewBundle(\\bundle -> {\n      \u002F\u002F Find policy\n      var policy = findPolicy(policyNumber)\n      if (policy == null) {\n        throw new IllegalArgumentException(\"Policy not found: ${policyNumber}\")\n      }\n\n      \u002F\u002F Create claim\n      var claim = new Claim(bundle)\n      claim.Policy = policy\n      claim.LossDate = lossDate\n      claim.LossType = lossType\n      claim.Description = description\n      claim.ReportedDate = Date.Today\n      claim.LossCause = LossCause.TC_VEHCOLLISION\n\n      \u002F\u002F Set claim to open\n      claim.open()\n\n      LOG.info(\"Created claim: ${claim.ClaimNumber}\")\n      return claim\n    })\n  }\n\n  static function addVehicleExposure(\n    claim : Claim,\n    vehicle : Vehicle,\n    coverageCode : String\n  ) : Exposure {\n\n    return Transaction.runWithNewBundle(\\bundle -> {\n      var claim = bundle.add(claim)\n\n      \u002F\u002F Create vehicle incident\n      var incident = new VehicleIncident(bundle)\n      incident.Claim = claim\n      incident.Vehicle = vehicle\n      incident.Description = \"Vehicle damage from ${claim.LossCause.DisplayName}\"\n\n      \u002F\u002F Create exposure\n      var exposure = new Exposure(bundle)\n      exposure.Claim = claim\n      exposure.ExposureType = ExposureType.TC_VEHICLEDAMAGE\n      exposure.LossParty = LossPartyType.TC_INSURED\n      exposure.PrimaryCoverage = CoverageType.get(coverageCode)\n      exposure.VehicleIncident = incident\n\n      LOG.info(\"Created exposure: ${exposure.ExposureType.DisplayName}\")\n      return exposure\n    })\n  }\n\n  static function setExposureReserve(\n    exposure : Exposure,\n    amount : java.math.BigDecimal,\n    reserveLine : ReserveLine\n  ) {\n    Transaction.runWithNewBundle(\\bundle -> {\n      var exp = bundle.add(exposure)\n\n      var reserve = new Reserve(bundle)\n      reserve.Exposure = exp\n      reserve.ReserveLine = reserveLine\n      reserve.CostType = CostType.TC_CLAIMCOST\n      reserve.CostCategory = CostCategory.TC_BODY\n      reserve.NewAmount = new gw.api.financials.CurrencyAmount(amount, Currency.TC_USD)\n      reserve.Comments = \"Initial reserve set\"\n\n      LOG.info(\"Set reserve: ${amount} on ${exp.ExposureType.DisplayName}\")\n    })\n  }\n\n  static function createPayment(\n    exposure : Exposure,\n    amount : java.math.BigDecimal,\n    payee : Contact,\n    paymentType : PaymentType\n  ) : Payment {\n\n    return Transaction.runWithNewBundle(\\bundle -> {\n      var exp = bundle.add(exposure)\n\n      var payment = new Payment(bundle)\n      payment.Exposure = exp\n      payment.Claim = exp.Claim\n      payment.PaymentType = paymentType\n      payment.ReserveLine = ReserveLine.TC_INDEMNITY\n      payment.CostType = CostType.TC_CLAIMCOST\n      payment.CostCategory = CostCategory.TC_BODY\n      payment.Payee = payee\n      payment.GrossAmount = new gw.api.financials.CurrencyAmount(amount, Currency.TC_USD)\n\n      \u002F\u002F Submit for approval\n      payment.submit()\n\n      LOG.info(\"Created payment: ${amount} to ${payee.DisplayName}\")\n      return payment\n    })\n  }\n\n  static function closeClaim(claim : Claim, outcome : CloseOutcome) {\n    Transaction.runWithNewBundle(\\bundle -> {\n      var c = bundle.add(claim)\n\n      \u002F\u002F Close all open exposures first\n      c.Exposures\n        .where(\\e -> e.State == ExposureState.TC_OPEN)\n        .each(\\e -> {\n          e.close(outcome)\n        })\n\n      \u002F\u002F Close claim\n      c.close(outcome)\n      LOG.info(\"Closed claim: ${c.ClaimNumber}\")\n    })\n  }\n}\n```\n\n## Output\n\n- FNOL claim with claim number\n- Exposures linked to coverages\n- Reserves set on exposures\n- Payments processed\n- Claim closed with outcome\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Policy not found` | Invalid policy number | Verify policy number and status |\n| `Coverage not applicable` | Wrong coverage type | Check policy coverages |\n| `Reserve exceeds limit` | Over policy limit | Adjust to policy limits |\n| `Payment validation` | Missing required fields | Check payee and amount |\n| `Cannot close` | Open activities\u002Fexposures | Complete pending items |\n\n## Claim Types and Loss Causes\n\n```typescript\n\u002F\u002F Common loss types\nconst lossTypes = {\n  AUTO: ['vehcollision', 'vehglass', 'vehtheft', 'vehvandalism'],\n  PROPERTY: ['fire', 'water', 'theft', 'weather'],\n  LIABILITY: ['bodily_injury', 'property_damage', 'personal_injury'],\n  WORKERS_COMP: ['injury', 'illness', 'death']\n};\n\n\u002F\u002F Map loss cause to exposures\nfunction getDefaultExposures(lossType: string, lossCause: string): string[] {\n  if (lossType === 'AUTO' && lossCause === 'vehcollision') {\n    return ['VehicleDamage', 'BodilyInjury', 'PropertyDamage'];\n  }\n  \u002F\u002F Additional mappings...\n  return [];\n}\n```\n\n## Resources\n\n- [ClaimCenter Cloud API](https:\u002F\u002Fdocs.guidewire.com\u002Fcloud\u002Fcc\u002F202503\u002Fapiref\u002F)\n- [Claims Workflow Guide](https:\u002F\u002Fdocs.guidewire.com\u002Fcloud\u002Fcc\u002F202503\u002Fcloudapica\u002F)\n- [Exposure Types Reference](https:\u002F\u002Fdocs.guidewire.com\u002Feducation\u002F)\n\n## Next Steps\n\nFor error handling patterns, see `guidewire-common-errors`.\n",{"name":5,"author":49,"license":15,"version":50,"description":51,"allowed-tools":52},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Execute Guidewire secondary workflow: Claims processing in ClaimCenter.\nUse when implementing FNOL, claim investigation, reserves, payments, and settlement.\nTrigger with phrases like \"claimcenter workflow\", \"create claim\", \"file fnol\",\n\"process claim\", \"claim settlement\", \"claim payment\".\n","Read, Write, Edit, Bash(curl:*), Bash(npm:*), Grep","main","b22eca2e974f918ce591c5b2bd829fb7510e0191","Skills\u002Fguidewire-core-workflow-b-2",18,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills","https:\u002F\u002Fgithub.com\u002FFDU-INS","Fudan University Department of Risk Management and Insurance","2026-07-12 12:54:34",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add FDU-INS\u002FInsurance-Skills --skill guidewire-core-workflow-b-2",{"tool":67,"command":68},"bunx","bunx skills add FDU-INS\u002FInsurance-Skills --skill guidewire-core-workflow-b-2",{"tool":70,"command":71},"pnpm","pnpm dlx skills add FDU-INS\u002FInsurance-Skills --skill guidewire-core-workflow-b-2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fguidewire-core-workflow-b-2\u002FSKILL.md",true,[],[76,106,130,159,180,213],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":88,"publishedAt":44},"01M713QW6EGEG0YAD75440GSD0","로인장 (Roinjiang)","Activates when the user needs legal advice, contract review, insurance law consultation, startup legal support, or any legal\u002Fregulatory matter. She is a top-tier in-house lawyer with absolute loyalty to the CEO, specializing in insurance law, financial consumer protection, privacy, contracts, labor law, family law, civil and criminal matters.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002F로인장 (Roinjiang)\u002FSKILL.md",[83],{"categoryNo":84,"categoryName":85,"taxonomyType":86,"taxonomyTypeDesc":87},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[78,89,90,91,92,93,29,94,95,33,96,97,98,99,100,101,102,103,104,105],"insurance law","insurance","civil","contract","family","review","loyalty","top","contract review","ceo","support","advice","consultation","regulatory","privacy","protection","startup",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":44},"01M713QRN8VFMA9VKS6R4DJ2WS","zocdoc-doctor-finder","Use when a user needs to find a doctor, dentist, specialist, therapist, or healthcare provider — especially when they mention insurance, in-network, availability, location, appointments, or booking. Also use for browsing provider reviews, comparing doctors by specialty, or checking if a provider takes their insurance.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fzocdoc-doctor-finder\u002FSKILL.md",[],[113,114,115,116,90,117,118,29,119,120,121,122,123,124,125,126,127,128,39,129],"zocdoc doctor finder","doctor","healthcare","reviews","browser automation","access","browsing","browser","booking","network","therapist","computer","availability","for","provider","tool","automation",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":139,"publishedAt":44},"01M713QKGV3FTX7EEYWKDM8ENZ","zenmux-context","Answers any question about ZenMux by reading the latest official documentation. Use this skill whenever the user asks about ZenMux product features, API usage, configuration, integration, pricing, models, providers, routing, fallback, streaming, multimodal, structured output, tool calling, reasoning, prompt caching, image generation, video generation, web search, long context, observability, logs, cost tracking, usage analytics, insurance, subscription, pay-as-you-go, invoices, best practices for tools like Claude Code, Cursor, Cline, CodeX, Gemini CLI, opencode, Cherry Studio, Obsidian, Sider, Open-WebUI, Dify, Neovate, GitHub Copilot, OpenClaw, CC-Switch, Immersive Translate, Studio Chat, architecture, benchmarks, FAQ, contact, privacy, terms of service, compliance, or any other ZenMux-related topic. Also trigger when the user writes in Chinese about ZenMux: 文档, 使用指南, 快速开始, API 参考, 最佳实践, 模型路由, 供应商路由, 订阅, 按量计费, 可观测性, 帮助, 常见问题, 接入指南, 配置. Trigger on phrases like \"how to use ZenMux\", \"ZenMux docs\", \"ZenMux API\", \"ZenMux integration\", \"ZenMux 怎么用\", \"ZenMux 接入\", \"ZenMux 配置\". Even if the user doesn't say \"ZenMux\" explicitly but asks about LLM API aggregation, model routing, provider fallback in a context where ZenMux is the project being worked on, this skill should activate.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fzenmux-context\u002FSKILL.md",[136],{"categoryNo":137,"categoryName":138,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[140,141,142,143,90,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158],"context","zenmux context","Video","chinese","project","web search","translate","search","open","question","pay","image","you","activate","architecture","logs","streaming","cherry studio","how",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":44},"01M713QHWTBG634BCBV7NBJME1","workers-comp-guide","Guide workers compensation compliance and claims management.\nTRIGGERS - Use when user needs help with workers-comp-guide related tasks.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fworkers-comp-guide\u002FSKILL.md",[],[166,167,168,169,170,90,171,172,39,29,173,33,174,31,175,176,177,178,179],"workers","comp","workers comp","workers comp guide","guide","triggers","workers-comp","tasks","claims management","compliance","help","compensation","management","user",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":195,"publishedAt":44},"01M713QF45VMV1685AFNF1GPMA","weekly-kpi-report","Generate McKinsey-style board presentation PPTs from weekly auto insurance data. Automatically calculates 16+ KPIs, creates executive-level slides with actionable insights, and supports week-over-week comparisons. Use when user uploads insurance cost data (Excel\u002FCSV) and requests board report, weekly presentation, executive briefing, or mentions keywords like 董事会汇报, 周报PPT, 经营分析演示, McKinsey-style reports.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fweekly-kpi-report\u002FSKILL.md",[186,189,192],{"categoryNo":187,"categoryName":188,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":190,"categoryName":191,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000004","电子表格",{"categoryNo":193,"categoryName":194,"taxonomyType":86,"taxonomyTypeDesc":87},"01JBSEEDCAT000000000000034","行政与办公人员",[196,197,198,199,200,90,201,202,203,204,29,205,206,207,208,209,210,211,39,212],"weekly","weekly kpi report","kpi","report","xlsx","actionable","insights","briefing","auto","board report","reports","generate","演示","data","presentation","slides","uploads",{"skillNo":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":217,"categories":218,"keywords":222,"publishedAt":44},"01M713QA9WJDHMNVTTY1ENRKVB","wealth-advisory","Wealth management and financial planning for HNW and UHNW clients. Activate when the user\nmentions wealth management, financial planning, retirement, estate planning, tax planning,\nGRAT, IDGT, trust, asset allocation, withdrawal rate, Monte Carlo simulation, goals-based\ninvesting, tax-loss harvesting, Roth conversion, insurance, annuity, mortgage strategy,\nconcentrated stock, family office, direct indexing, 529 plan, charitable giving, donor-advised\nfund, private foundation, or asks about personal finance strategy, inheritance, long-term\nfinancial planning, or UHNW advisory.","https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fwealth-advisory\u002FSKILL.md",[219],{"categoryNo":220,"categoryName":221,"taxonomyType":86,"taxonomyTypeDesc":87},"01JBSEEDCAT000000000000040","财务",[223,224,90,225,226,29,153,227,228,229,230,231,232,233,234,235,236,237,238,239],"wealth advisory","advisory","stock","inheritance","conversion","indexing","plan","simulation","personal finance","rate","allocation","asset","direct","personal","investing","trust","planning"]