/stormbreaker:stormbreaker-dispatchersfrom stormbreaker
Write a team's stormbreaker dispatcher with the Go dispatcher-sdk (Prepare and Cleanup hooks over a run's footprint). Use when a team's service must take part in shared-environment runs, preparing before the traffic and cleaning up what its systems created.
Ships in stormbreaker. 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.
A dispatcher is a team's part in runs: one per app per environment. The dispatcher-sdk (github.com/nimbusxr/stormbreaker/dispatcher/sdk) owns the protocol. You write two hooks and call sdk.Main(sdk.Hooks{Prepare: ..., Cleanup: ...}).
func(ctx, run *sdk.Run, declare func(sdk.Entry) error) errorrun.Footprint(ctx, sdk.From(sdk.Suite), sdk.At(store, locator)) (narrowed; run.Footprint(ctx) is every claim) or run.Identities(ctx, store, locator) (one place; an identity can come more than once).declare(sdk.Entry{Store, Locator, Identities}) for what your systems will create, as you go: the SDK sends it in chunks. Never collect everything first.func(ctx, run *sdk.Run, remove func(sdk.Removal) error) (complete bool, err error)run.Unanswered(ctx, store, locator): what you declared there and have not yet reported removed or clean-by, each once. Keep nothing in memory between passes: a restarted dispatcher reads what it already did from the footprint.remove(sdk.Removal{Store, Locator, Identities}), as you go.CleanBy: "YYYY-MM-DD".true when nothing is left. A store written asynchronously can still receive a run's records: return false while records you declared have not appeared, up to a grace period after the run's traffic ended. The hook runs again on each pass, so it must be idempotent.Wrap with sdk.ErrBlocked when a hook cannot succeed (bad credentials, a missing table): a run requiring you fails at once. Other errors are retried on the next pass.
Environment, required: STORMBREAKER_DISPATCHER, STORMBREAKER_INSTANCE (a stable name such as the region, never the pod's), STORMBREAKER_TEAM, STORMBREAKER_CALLBACK_URL (its address + /events), STORMBREAKER_ORCHESTRATOR. STORMBREAKER_GROUPS is how it hears of runs. Optional: STORMBREAKER_TOKEN (when the orchestrator asks for one), STORMBREAKER_SECRET, STORMBREAKER_ADDR (:8090), STORMBREAKER_REASSERT (10s).
Examples: https://github.com/nimbusxr/stormbreaker/tree/main/examples/dispatchers
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub nimbusxr/stormbreaker --plugin stormbreaker