/java:ubiquitous-language-discoveryfrom java
Use when the user wants a domain glossary, ubiquitous language or domain vocabulary ("what do we actually call things"), wants to understand the business domain of a legacy codebase before a DDD refactoring or rewrite, wants to run or simulate an EventStorming on existing material, or asks to find inconsistent terminology between code, docs and users, even without saying "ubiquitous language". Builds or refreshes the ubiquitous language (glossary, EventStorming timeline, hot spots, candidate bounded contexts) from legacy code, schemas, docs, manuals or tickets through a virtual Big Picture EventStorming, asking the user when terms conflict.
Ships in java. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Derive a project's ubiquitous language (UL) from existing artifacts by running a virtual Big Picture EventStorming (Brandolini, Introducing EventStorming: "Running a Big Picture Workshop" and "Discovering Bounded Contexts with EventStorming"). You are the facilitator. Each source is a workshop participant with its own partial, biased view of the business. The user is the domain expert in the room who settles what the sources can't.
A glossary written by reading code top-down reproduces the code's vocabulary — table names, CRUD verbs, status integers — which is the technical language the UL is meant to replace (Khononov, Learning DDD, ch. 2). Domain events are a better entry point: everyone understands them, they're precise enough to remove ambiguity, and they expose behaviour, not just nouns. Putting them on one timeline forces the inconsistencies between sources to the surface, and those inconsistencies are where the real language decisions are. The glossary is the by-product of resolving them.
Two of Brandolini's facilitation patterns shape how you work:
path:line, doc section, or
user, <date>) so the language stays auditable and a later session can resume.Use a task list for the phases if one is available. Phases 1–3 are mostly you working on the sources; Checkpoint A, Phases 4–6 and Checkpoint B are where the user's input matters.
docs/ubiquitous-language/.Treat each source as a separate participant. Harvest candidate domain events (business-relevant facts in past tense: "Booking Confirmed", "Vehicle Returned Late") and the nouns, roles and rules around them. Work source by source and keep each sticky's provenance. See "Mining each kind of source" below for the heuristics.
status = 3 (CLOSED) → "Rental Closed?" [RentalService.java:88].Side findings. Reading code for its language, you'll trip over defects:
missing guards on transitions, race conditions, a late callback reviving a
cancelled record, unused or contradictory fields, rules applied to the wrong
party. They aren't language, so don't let them crowd the glossary, but don't
throw them away either: note each one in one line, with path:line, in the
Side findings section of hotspots.md. Developers refactoring toward the
new language need exactly this list, and it costs nothing to keep.
Order the events into one flow from the scope's start to its end.
Add who triggers or cares about each part of the flow, and which external systems take part. Actors come from manual roles, security roles and permissions, user types in schemas. Systems come from HTTP clients, queues, file imports/exports, SDKs, and outside parties ("the bank", "the regulator"). A role that behaves differently in different parts of the flow (the same "customer" as booker, driver and payer) is a language finding. Record it.
Write the draft files (see "Output files") and present to the user:
Lead with the most consequential ambiguity, usually the central homonym the user mentioned or the overloaded concept everything hangs on. Don't decide it silently even when the evidence looks clear: propose the split as your guess and let the expert confirm it. Prioritise questions whose answer changes the model (a homonym that might split a context, code contradicting the manual, a missing step that breaks the flow) over cosmetic naming. Ask in the domain's language, never the code's: "When a rental is closed, has the car been returned, paid for, or both?", not "What does status 3 mean?". Give the evidence for your guess in one line.
Record each answer in the hot-spot log straight away, with the date and who decided, so a later session can pick up where you stopped.
Narrate the whole story left to right using only candidate UL terms, the way a narrator walks the wall. Speaking the story exposes gaps that reading misses: whenever the narrative needs a word that isn't on the board, uses two words for one thing, or jumps ("…and then the invoice is sent": sent by whom, after what?), add the event or raise a hot spot. Show the narrative to the user and invite them to interrupt. This is the main validation step.
Start from terminal and pivotal events and walk backwards: "What must have
happened for Deposit Refunded to be possible?" Brandolini reports this
typically surfaces 30–40% of the flow that optimistic forward thinking buried.
Look especially at the money flow (payments, invoices, refunds, penalties),
which developer-written sources routinely skip. Check it concretely: for
every amount the sources compute or mention (price, fee, deposit, invoice,
refund), find the event where it is actually paid or collected and the party
who pays it. If no source shows that event, it's a GAP. Do the same for each
role a party can play (e.g. an agency that is both the one booking and the
one billed): follow each rule that targets the party (blocks, notifications,
invoices) and check that it lands on the right one. Add events, raise hot
spots, and ask the user about gaps no source can fill.
Now apply precision. For each concept decide:
Resolve homonyms by splitting terms or contexts, and synonyms by choosing one term per context. Ask the user about remaining disputed terms that are central to the domain; leave peripheral ones as open hot spots rather than interrogating them about everything.
Keep the glossary short enough to read in one sitting. Most classes and tables are implementation, not language.
Propose boundaries from Brandolini's heuristics: pivotal events, swimlanes, places where the same word changes meaning, different actors caring about different parts of the flow, and different source "owners". They're candidates: say what evidence supports each and what would change your mind. Keep it to a short table; a full context map is out of scope.
Only when the user asks, or the scope is one flow they want to implement, go to process/design level for the chosen area:
Put this in its own section of the board file. It often renames events again; that's expected ("the obsession with naming and rewriting is so DDD").
Write the final files, then tell the user: what came out (agreed / proposed / disputed counts, candidate contexts), the 3–5 most important language findings (e.g. "'Order' means three things across sales, warehouse and billing"), the open hot spots that still need an expert, and a one-line pointer to the side findings if there are any. Add one next step if there's a real one, such as a short real workshop with the people behind the disputed terms, or renaming the code aliases in one module.
If the run is unattended or the user says "just do it", follow the same phases, take the most plausible reading at each decision, mark those terms proposed, and put every question you would have asked into the hot-spot log as an open question with your guess. Log the kick-off defaults as working assumptions, not decisions, and keep the checkpoint batches intact so the user can answer them in order when they return. Don't present an inference as an agreed term.
| Tag | Meaning | Example |
|---|---|---|
HOMONYM | Same word, different meanings | "Order" = customer purchase in sales, pick list in warehouse |
SYNONYM | Different words, maybe the same concept | Customer / Client / Account |
DRIFT | Code and docs or manual disagree | Manual: deposit refunded at return; code: refunded by a nightly job |
GAP | The story jumps; a step must exist but no source shows it | Invoice sent, but nothing creates the invoice |
TECH-LEAK | Only technical vocabulary exists for a business concept | flag_x = 2, tbl_ord_det |
IMPLICIT-RULE | A business rule hidden in code, named nowhere | if (km > 300) surcharge |
CONTRADICTION | Two non-code sources disagree | Two manuals describe different approval steps |
Know each participant's bias so you weigh what it says correctly:
| Source | Knows well | Typical bias |
|---|---|---|
| Code | What actually happens, edge cases, hidden rules | Technical vocabulary, CRUD verbs, developer guesses at names |
| DB schema / migrations | Which facts are remembered, when | Table-speak, legacy columns, merged concepts |
| Specs, wikis, ADRs | Intended behaviour, rationale | Out of date; the "official version" of the process |
| User manuals, help, UI labels | How users see and name things | Screen-centric; hides back-office steps |
| Tickets, support emails | Where reality hurts; exceptions | Anecdotal, one-sided |
| Interviews, meeting notes | Experts' own words | Fragmentary, ambiguous |
Code that doesn't follow DDD (CRUD services, anemic entities, transaction scripts) rarely names its events. Look for state changes and facts worth remembering:
status, state, stage,
STATUS_CLOSED = 3). Each transition is a candidate event; find where the
field is set to learn the trigger and the guards.approved_at, shippedDate,
last_reminder_sent): the business wants to remember when this happened, so
it's an event.is_paid, deposit_returned, blacklisted): the moment the
flag flips is an event, and the flag's name often hides a business term.approve(), close() are hints. Generic ones (update,
process, handle, save) mean the intent is in the body; read it.if (...) throw): business rules. Magic numbers
(> 300, < 25) are rules missing a name → IMPLICIT-RULE.ROLE_OPERATOR, @PreAuthorize, permission tables) →
actors. HTTP clients, SDKs, file transfers, queues → external systems.messages_it.properties) are usually closer to the business language than
identifiers. Test names often describe business scenarios in plain words.Contract used for quote, booking
and invoice) is the classic hidden homonym.Dto / Request
/ Vo suffixes, Manager / Helper / Util, generic CRUD endpoints, id,
created_by, version.Schemas and migrations: lookup tables (order_status, claim_type) list
business states directly. Columns filled only late in a lifecycle signal later
events. Renames in migrations show how the language drifted, sometimes
revealing old meanings users still use.
Specs, wikis, ADRs: use them to order the timeline, but don't trust them
over code for what actually happens; the documented flow and the real one
usually diverge (DRIFT). Rewrite "The system shall…" sentences as business
rules without "the system".
Manuals and help pages: procedure steps are commands; outcome sentences
("the booking is now confirmed") are events; notes and warnings ("a cancelled
booking can't be reactivated") are rules. Screen and field names are the users'
vocabulary. Manuals skip what users don't see (back office, batches, billing),
so expect GAPs there and fill them from code.
Tickets, support emails, interviews: complaints point where model and reality diverge. Experts' own phrasing is the strongest candidate for canonical terms; quote briefly and cite.
Other languages: when a source term is in another language than the canonical one, keep the original next to it. Translation choices are language decisions: two Italian words that both translate to "claim" ("sinistro", "pratica") may mean different things. Ask rather than collapse them.
For more than a few dozen files, get a map before reading. Adapt the globs to
the stack; rg is faster but grep -rnE works too:
# status/state enums and constants → candidate states and events
rg -n --no-heading -e 'enum\s+\w*(Status|State|Stage|Phase|Type)\b' -e '\b[A-Z_]*(STATUS|STATE)_[A-Z_]+\s*=' <src>
# timestamp-like fields/columns → candidate events
rg -no --no-heading '\b[a-z]\w*(_at|_date|_on|At|Date)\b' <src> | sort | uniq -c | sort -rn | head -50
# boolean flags → hidden terms and events
rg -no --no-heading '\b(is|has|was)(_[a-z_]+|[A-Z]\w+)\b' <src> | sort | uniq -c | sort -rn | head -40
# roles → actors; outbound clients → external systems
rg -n --no-heading -e 'ROLE_\w+' -e 'has(Any)?Role\(' -e '(RestTemplate|WebClient|FeignClient|HttpClient|axios|fetch)\b' <src>
# schedulers, emails, documents → time-triggered events and policies
rg -n --no-heading -e '@Scheduled|cron|setInterval' -e '(send|mail|notify)\w*\(' -e '(pdf|invoice|contract)\w*\(' -i <src>
# user-facing words
rg --files <src> | rg -i '(messages.*\.properties|i18n|locales?/.*\.json|\.po)$'
Treat the hits as a map, not a glossary: read each in context before it becomes a sticky.
Default location docs/ubiquitous-language/ in the project (or what the user
chose). Markdown next to the code keeps the language versioned and reviewable
in PRs. If the files already exist, update them in place: keep agreed terms and
decisions, add new findings, and log changes in hotspots.md instead of
silently rewriting definitions.
docs/ubiquitous-language/
├── glossary.md # the ubiquitous language
├── event-storming-board.md # timeline, pivotal events, lanes, people & systems, contexts
└── hotspots.md # open questions, decisions log, side findings
# Ubiquitous Language — <Domain>
Scope: <where the story starts and ends>
Canonical language: <e.g. English; original Italian terms under "Also known as">
Last updated: <date> · ✅ agreed · 🟡 proposed · 🔴 disputed
## <Context name> (candidate)
### Rental ✅
A customer's use of one vehicle for an agreed period, from pick-up to return.
- **Rules:** A rental can't start without a valid driving licence on file.
Returning more than 2 h late adds a late-return fee.
- **Lifecycle:** Rental Started → Vehicle Returned → Rental Closed
- **Also known as:** "Noleggio" (operator manual) · `Contract`, `rent_order` (code — retire)
- **Not to be confused with:** _Booking_, the reservation before pick-up
- **Evidence:** `RentalService.java:42-88`, manual §3.2, user 2026-11-17
## Actors
## External systems
## Retired / avoided terms
| Term | Use instead | Why |
Definitions in business language (no "entity", "table", "FK", "DTO"). "Not to be confused with" is where homonym decisions live. The retired-terms table is often what developers use most when renaming code.
A Mermaid diagram for the eye and a table for precision and diffs. Colours follow the EventStorming legend.
# Big Picture board — <Domain>
Legend: 🟧 event · ⭐ pivotal event · 🟨 actor · 🟪 external system · 🟥 hot spot
```mermaid
flowchart LR
classDef event fill:#ffb347,stroke:#c77700,color:#000
classDef pivotal fill:#ff8c00,stroke:#000,stroke-width:3px,color:#000
classDef actor fill:#fff59d,stroke:#b5a400,color:#000
classDef system fill:#f8bbd0,stroke:#ad1457,color:#000
classDef hotspot fill:#e57373,stroke:#b71c1c,color:#fff
subgraph Booking
A1([Customer]):::actor --> E1[Booking Requested]:::event
E1 --> E2[Booking Confirmed]:::pivotal
end
subgraph Rental
E2 --> E3[Vehicle Picked Up]:::event --> E4[Vehicle Returned]:::pivotal
E4 --> H3{{HS-3 when is the deposit refunded?}}:::hotspot
end
subgraph Billing
E4 --> E5[Final Invoice Issued]:::event
S1[[Payment Gateway]]:::system --> E6[Payment Captured]:::event
end
```
## Events
| # | Event | Lane | Pivotal | Triggered by | Evidence | Hot spots |
| --- | ----- | ---- | ------- | ------------ | -------- | --------- |
## People and systems
## Candidate bounded contexts
| Context | Owns terms | Boundary evidence | Confidence |
## Design level (only if requested)
With more than ~30 events, draw one diagram per lane and keep the full list in the table.
# Hot spots & decisions — <Domain>
## Open
### HS-3 `DRIFT` — When is the deposit refunded?
- Manual §4.1: refunded at the counter when the car is returned.
- Code `DepositJob.java:20`: refunded by a nightly job 3 days after return if there's no damage report.
- **Guess:** two events — _Deposit Release Scheduled_ at return, _Deposit Refunded_ by the job.
- **Question for the expert:** Is the 3-day wait a business rule (window for damage claims) or a technical workaround?
- Impacts: Rental, Billing
## Decided
### HS-1 `SYNONYM` — Customer vs Client vs Driver — 2026-11-17, decided by <user>
- _Customer_ = who books and pays; _Driver_ = who drives (may differ). "Client" retired.
## Side findings (not language — for the developers)
| # | Finding | Where | Why it matters |
| ---- | -------------------------------------------------------------------------------------- | -------------------------------------------- | ------------------------------------- |
| SF-1 | Any status can be set through the generic status endpoint, skipping pick-up and return | `ContractController.java:16-20` | Rental can be closed without a return |
| SF-2 | Deposit is never released after a damage case | `ContractController.java:34-38` (empty TODO) | Money held indefinitely |
Every hot spot has an ID, a tag, the conflicting evidence, a guess, the question in domain language, and what it impacts. Side findings stay one line each; they're a checklist, not an analysis.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub leonardo-marziali/agentic-development-kit --plugin java13 skills in this plugin
/checkUse when the user asks to "check the Java standard", "run the java rules", "check these Java files", "run NullAway / ArchUnit on this", or wants pre-existing Java files checked, not just the lines a session changed. Reports every finding of the plugin's source rules, build-file rules, NullAway and ArchUnit./formatUse when the user asks to "format Java", "format these Java files", "run the Eclipse formatter", or wants Java files the session never touched formatted. Formats whole Java files with the plugin's Eclipse JDT engine and the project's formatter profile, including pre-existing files./java-build-standardsUse when editing pom.xml, build.gradle or lombok.config in a project that follows the java-standards opt-in. Covers choosing and parameterizing dependency versions, declaring the Java version, Eclipse JDT formatting, Spring Modulith and ArchUnit together, the OpenAPI contract check, coverage gates and configuring Lombok with MapStruct through one lombok.config (rules B1 to B10).Other plugins' skills for the same job