flowmvi
FreeNo executable scriptsNot checkedFlowMVI usage guidance. Use when working with FlowMVI stores/containers, plugin pipelines, composing stores, decorators, or authoring plugins.
About this skill
Overview
Use this to learn the API of FlowMVI. Prefer the bundled references for exact APIs and the live official docs for plugins/integrations/state.
Key references in this skill:
references/api-signatures.mdfor core API signatures.references/plugin-signatures.mdfor all plugin/decorator signatures.references/plugin-callbacks.mdfor callback behavior and decorator semantics.references/docs-index.mdfor live docs URLs (plugins, integrations, state).
Use rg over references/*signatures*.md for discovery and open URLs from references/docs-index.md when you need full docs.
Core loop
- Define a Contract:
MVIState,MVIIntent,MVIAction. - Build a Store: uses a plugin pipeline, handles intents, updates state, emits actions (side effects).
- Install Plugins: ordered chain of responsibility. Order changes behavior.
- Install Decorators: wrap the entire plugin chain and can short-circuit it.
- Subscribers render state and handle actions.
Contract and state design
State
- Make state immutable and comparable. Use
data class/data object. - Use sealed interfaces for LCE or multi-branch screens. Avoid placeholder fields.
- Use
EmptyStateif no state is needed.
Example (state family):
sealed interface CounterState : MVIState {
data object Loading : CounterState
data class Content(val count: Int) : CounterState
data class Error(val cause: Exception) : CounterState
}
Intent and action
MVIIntent: inputs/events. Use sealed interfaces for MVI style.MVIAction: one-off effects, never rely on them for critical logic.- If no actions, use
Nothingor the no-action store overload.
sealed interface CounterIntent : MVIIntent {
data object Tap : CounterIntent
data class Set(val value: Int) : CounterIntent
}
sealed interface CounterAction : MVIAction {
data class ShowToast(val text: String) : CounterAction
}
Store creation patterns
Container pattern
Prefer a container per screen/feature and expose the store as a property.
class CounterContainer : Container<CounterState, CounterIntent, CounterAction> {
override val store = store(initial = CounterState.Loading) {
configure { debuggable = BuildFlags.debuggable; name = "CounterStore" }
reduce { intent ->
when (intent) {
is CounterIntent.Set -> updateState<_, CounterState.Content> { copy(count = intent.value) }
is CounterIntent.Tap -> action(CounterAction.ShowToast("tap"))
}
}
}
}
Use lazyStore when construction is heavy or should be deferred.
MVVM+ Intents
Intents can be lambdas (Orbit MVI-style):
// contract
typealias CounterIntent = LambdaIntent<CounterState, CounterAction>
// sending
fun onTap() = store.intent { updateState<State.Content, _> { copy(count = count + 1) } }
When using LambdaIntent:
- Mandatory: Install
reduceLambdasplugin to invoke intent blocks. - Prefer
ImmutableStore/ImmutableContainerat the edges to avoid leaking context. - Plugins lose observability into intent contents, prefer regular intents unless codebase already uses lambdas.
State management (SST)
FlowMVI serializes state transactions by default.
Use:
updateState { }for atomic updates.withState { }for safe reads.- Typed overloads for state families:
updateState<T, R> { }andwithState<T, R> { }(note always two parameters, of which first is target state, and second is always underscore_). Also these need an import. updateStateImmediateonly for performance-critical hot paths; it bypasses plugins and safety.
PipelineContext API
You get PipelineContext receiver inside most of the store DSLs and plugin callbacks. Key operations:
updateState { },withState { },updateStateImmediate { }action(action)andintent(intent)configfor store config and loggingFlow.consume(context)for safe collection in store context
Exact signatures in references/api-signatures.md.
Store configuration
Configure inside store { configure { ... } }. Defaults are defined in StoreConfigurationBuilder.
Key flags:
debuggable: enable validations + verbose logging.name: used for logging/debugging and store identity.parallelIntents: process intents concurrently (state safety becomes critical).coroutineContext: merged with start scope.actionShareBehavior:Distribute,Share,Restrict,Disabled.intentCapacity+onOverflow: buffer sizing and backpressure.stateStrategy:Atomic(reentrant = true/false)orImmediate.allowIdleSubscriptions,allowTransientSubscriptions.logger,verifyPlugins.
See exact defaults in references/api-signatures.md and use references/docs-index.md for the latest state docs.
Exact signatures: references/api-signatures.md.
Plugins (system)
Plugins are the core of FlowMVI. Order matters.
- Inst
Install flowmvi in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the flowmvi skill do?
FlowMVI usage guidance. Use when working with FlowMVI stores/containers, plugin pipelines, composing stores, decorators, or authoring plugins.
How do I install the flowmvi skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the flowmvi skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic