Итерации правил Gosu без полной пересборки runServer за 5–15 минут.

Звёзды2 926
Авторjeremylongshore
Установок27

Установка

SKILL.md

Guidewire Local Dev Loop

Overview

Run a local InsuranceSuite instance and iterate on Gosu rule logic in seconds, not minutes. The single biggest productivity killer in Guidewire development is paying the 5–15 minute gradle runServer cold-start cost on every change because the developer does not know which edits hot-reload and which force a restart.

Three production problems this skill prevents:

  1. Restart cascade — developer changes a Gosu rule, restarts runServer, waits 8 minutes, finds the rule was wrong, repeats. A full day disappears in restarts.
  2. Silent stale code — Studio claims it hot-reloaded a class but the running JVM is still executing the old bytecode (common when interfaces change). Tests pass against stale code.
  3. GUnit drift — unit tests for Gosu rules diverge from the rules themselves because the cycle to run a single test through Studio is too slow; developers stop writing them.

Prerequisites

  • JDK 17 (for Cloud release 202503+)
  • Guidewire Studio installed (IntelliJ-based, distributed by Guidewire)
  • Local InsuranceSuite configuration zone (PolicyCenter, ClaimCenter, or BillingCenter)
  • ≥16 GB RAM on the dev machine — runServer + Studio + the JVM debug agent need headroom
  • Sample data loader configured for the chosen product (e.g., PersonalAuto for PC)

Instructions

Build the inner loop in this order. Every step targets one of the three productivity killers above.

1. Start runServer once, keep it warm

Cold start takes 5–15 minutes; treat it as a session investment.

# Start in dev mode with debug agent on 8088, leaves the server attached to the terminal
./gradlew runServer -Pdebug=true -PdebugPort=8088 -Dgw.servermode=dev

gw.servermode=dev enables the hot-reload paths inside the JVM. debugPort=8088 exposes the JDWP debug agent — attach IntelliJ to it once and leave it. Restart only when the what hot-reloads table below says you must.

2. What hot-reloads, what does not

Memorize this table — it determines whether the next edit costs 0 seconds or 8 minutes.

Change typeHot-reload?Action
Gosu method body in an existing classyessave in Studio; runServer detects via Reload Plugin
Gosu rule (entity, validation, UW) bodyyessave; rule fires on next entity event
New Gosu class added to an existing packageyessave; class is picked up on first reference
Gosu interface signature changenorestart runServer (binary-incompatible class load)
New Gosu plugin registerednorestart runServer (plugin registry is built once at boot)
PCF (Page Configuration Format) layout edityessave; refresh the browser
New PCF page added to the navigationpartialrestart usually; Reload Plugin sometimes works in dev mode
Database schema change (new column, new entity)norestart with gradle dropAndCreateDatabase runServer
Localization bundleyessave; refresh browser
Messaging destination / App Event pluginnorestart (plugin registry)
config/server.xml or config/plugin/registry/*.xmlnorestart

When in doubt, trust the JVM, not Studio. Open the IntelliJ debugger, set a breakpoint on the changed method, trigger the code path, and confirm the breakpoint hits the new line numbers. Studio's "reloaded" status is informational, not authoritative.

3. Attach the IntelliJ debugger once per session

Run > Edit Configurations > + > Remote JVM Debug
  Host: localhost
  Port: 8088
  Module classpath: <your-config-module>
  Save → run with the bug icon

Once attached, breakpoints survive Gosu hot-reloads. The connection drops only on full runServer restart. Use conditional breakpoints (policy.totalPremium.compareTo(BigDecimal("10000")) > 0) for production-shaped data — never trust toy values.

4. GUnit cycle for rule TDD

Gosu rules are testable without a running server. GUnit tests run in seconds and should drive every non-trivial rule change.

# Run a single GUnit test class
./gradlew test --tests "com.acme.policycenter.rules.UnderwritingIssueRuleTest"

# Run all rule tests in a package, with continuous re-run on change
./gradlew test --tests "com.acme.policycenter.rules.*" --continuous

--continuous reruns the matching tests every time a file changes. Pair with the rule under test in a split editor — feedback loop drops to <5 seconds per save.

5. Sample data isolation per session

Every developer needs a deterministic fixture set, not whatever junk is in the shared dev database. Load a per-session sample at runServer start:

# Load the standard sample, then a project-specific overlay
./gradlew loadSampleData -PsampleData=default -PsampleData=acme-uat-fixtures runServer

Project-specific sample sets live in modules/configuration/test/data/ and are checked in. Treat the dev database as ephemeral — never store work-in-progress data only in it; it dies on the next dropAndCreateDatabase.

Output

A working local dev loop ships with all of the following:

  • gradle runServer running in dev mode with debugPort=8088 exposed; remote-debug connection attached from IntelliJ.
  • The hot-reload-vs-restart table internalized and applied — at least 80% of edits cost zero restart time.
  • A gradle test --continuous watcher running in a side terminal for GUnit-driven TDD on the current rule.
  • Sample data loaded from a checked-in fixture set, reproducible across team members.
  • A breakpoint validation habit: every non-trivial rule change is confirmed hot-reloaded by hitting a breakpoint in the new line, not by trusting Studio's reload indicator.

Examples

Example 1 — Pure rule edit, zero restart

1. Edit rule body in modules/configuration/gsrc/.../UnderwritingIssueRules.gs
2. Save (Ctrl-S)
3. Trigger the rule (issue a quote in the running PC instance)
4. Breakpoint hits the new line numbers; rule fires with new logic
5. Total time from save to confirmation: <10 seconds

Example 2 — Interface change, controlled restart

1. Modify interface in modules/configuration/gsrc/.../IPolicyCalculator.gs
2. Recognize this is in the no-hot-reload row of the table
3. Stop runServer (Ctrl-C); start ./gradlew runServer -Pdebug=true -PdebugPort=8088
4. Wait ~8 minutes; reattach debugger
5. Resume work — accept the cost rather than chasing phantom bugs from stale bytecode

Example 3 — TDD cycle on a new validation rule

# Terminal 1: continuous test runner
./gradlew test --tests "com.acme.policycenter.validation.HighValueAccountValidatorTest" --continuous

# Editor: write the failing test first, watch it fail in <5s
# Implement the rule, watch the test pass in <5s
# Commit when green; do not run the full server until the rule is locked

Error Handling

SymptomCauseSolution
Code change "saved" but breakpoint fires on old line numbershot-reload silently failed (interface change, plugin registry edit)restart runServer; do not chase phantom bugs
gradle runServer hangs at Starting server for >20 minfull database rebuild from a recent schema changecheck logs in logs/PolicyCenter.log; if schema migration is running, wait it out; if hung, dropAndCreateDatabase
GUnit test passes locally, fails in CIdev database carries stale data the test depends ontests must self-fixture (@Before loads needed entities); never trust ambient sample data
IntelliJ debugger drops every few minutesrunServer crashed and auto-restarted under a launchercheck logs/PolicyCenter.log for OOM; raise -Xmx in gradle.properties
Hot reload works on Day 1, stops working after a git pullmerged change touched the plugin registry without your local picking it uprestart; rebase pulls do not always invalidate the plugin cache
ClassCastException on a class you just editedbinary-incompatible change to a non-interface class (e.g., changed a public field type)restart; field-type changes are interface-equivalent for the JVM
Breakpoint set in Gosu, never hitsthe rule path is not actually exercised by the test actionverify in logs/PolicyCenter.log that the rule fired; common cause is rule conditions filtering out the test data
Studio shows red error markers everywhere after pulling maindependency cache stale./gradlew clean compileGosu (don't clean the whole project — it nukes runServer's database)

For deeper coverage (containerized dev environments, multi-developer shared servers, plugin debug logging, custom datasource hooks), see implementation guide and API reference.

See Also

  • guidewire-install-auth — once your local runServer integrates outbound to a Cloud tenant, auth layer applies the same as production
  • guidewire-sdk-patterns — when local code calls Cloud API, the same client patterns apply
  • guidewire-ci-cd-pipeline — promotion of locally-developed config through GCC slots; GUnit gates run there too
  • guidewire-core-workflow-a — PolicyCenter workflows that local dev cycles target

Resources

  • Guidewire Developer Portal
  • Gosu language reference
  • JDWP — Java Debug Wire Protocol
  • Gradle continuous build

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: guidewire-local-dev-loop](https://darkplay.ru/ai/skills/jeremylongshore-claude-code-plugins-plus-skills-guidewire-local-dev-loop)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Harness Optimizeraffaan-m · Анализирует и улучшает конфигурацию локального агентного харнесса по надёжности и цене.
225 587 ★
Loop Operatoraffaan-m · Управляет автономными циклами агентов, следит за прогрессом и вмешивается при сбоях.
225 587 ★
Skill Createaffaan-m · Анализирует локальную историю Git, извлекает паттерны кодирования и генерирует файлы…
225 587 ★
ralph-wiggumanthropics · Интерактивные самореферентные циклы ИИ для итеративной разработки. Claude многократно…
34 комп.
open-designnexu-io · MCP-сервер Open Design (stdio). 139 навыков и инструменты для проектов, файлов и…
108 160 ★
ruflo-agentruvnet · Среды выполнения агентов: локальные агенты в песочнице WASM (rvagent) и Anthropic Claude…
240 комп.
ruflo-autopilotruvnet · Автономное выполнение задач на основе /loop с обучением, прогнозированием и отслеживанием…
240 комп.
ruflo-loop-workersruvnet · Кэш-осведомлённые воркеры /loop и фоновая автоматизация CronCreate.
240 комп.
ruflo-ruvllmruvnet · Локальный инференс RuVLLM с форматированием чата, дообучением MicroLoRA и адаптацией SONA.
240 комп.
Workflow Claude Commands Agentshanraisshan · Исследовательский агент: получает документацию Claude Code, читает локальный отчёт по…
61 912 ★

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8