update-hive

A set of instructions for upgrading the @hazelcast/ui design system from version 3 to version 4 while keeping older components available.

In plain words
What is it for?
It guides updates to components, styles, public exports, stories, and tests in a TypeScript UI library.
Why use it?
It helps manage breaking changes without forcing every user of the design system to migrate at once. Older components remain available while newer versions are adopted gradually.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/hazelcast/hive/update-hive
Clone the repo
git clone --depth 1 https://github.com/hazelcast/hive

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,456 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01456
Opus 5 $0.00000 $0.00728
Sonnet 5 $0.00000 $0.00291
Haiku 4.5 $0.00000 $0.00146

Measured 3d ago against content hash 30f1a374bb25, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

update-hive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/update-hive.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hive Library Update — v4

You are helping update the @hazelcast/ui design system from v3 to v4.

Library context

  • Package: @hazelcast/ui at /Users/mykolafant/Desktop/projects/hive
  • Components: src/components/ — each component has its own .tsx + .module.scss (being replaced with .module.css)
  • Legacy components: src/old/ — preserved v3 versions, exported via @hazelcast/ui/old
  • Public API: everything exported from src/index.ts
  • Legacy API: everything exported from src/old/index.ts (subpath @hazelcast/ui/old)
  • Stories: __stories__/<Component>.stories.tsx
  • Tests: __tests__/<Component>.test.tsx
  • Styles: global tokens/constants in styles/

Backward-compat model

v4 is designed for gradual client migration. When a component changes in a breaking way:

  • The old version is preserved in src/components/old/ and exported from @hazelcast/ui/old
  • The new version lives in src/components/ and is exported from @hazelcast/ui (the main entry)
  • Clients can temporarily import from @hazelcast/ui/old to stay unblocked, then migrate at their own pace
  • Old components are deprecated (not deleted). They will be removed in v5.

This means there are no hard removal deadlines in v4 — only deprecations.

v4 rules

SCSS → CSS

  • All *.module.scss files must be migrated to *.module.css
  • Replace @use/@forward with standard CSS custom properties
  • Move shared design tokens to CSS variables in styles/ (not SCSS variables/mixins)
  • Update all import styles from './Foo.module.scss'import styles from './Foo.module.css'

Updating an existing component (breaking change)

  1. Read the current component file (src/components/<Name>.tsx) and its SCSS module
  2. Copy the current (old) version to src/components/old/<Name>.tsx — do not modify it
  3. Also copy its SCSS module to src/components/old/<Name>.module.scss — do not modify it
  4. Add the old component to src/old/index.ts (create this file if it doesn't exist yet — see structure below)
  5. Now update src/components/<Name>.tsx with the new v4 changes
  6. Migrate src/components/<Name>.module.scsssrc/components/<Name>.module.css with the new styles
  7. Update the story in __stories__/ to reflect the new API
  8. Update the test in __tests__/ — keep tests passing
  9. Log the change in docs/migration-v4.md

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 135 lines · 0 tokens per session scan A 30f1a374bb25

Subscribe to this mod's changes

update-hive is a command published in the GitHub repository hazelcast/hive (19 stars, last pushed 7d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,456 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.