FlowMVI
AGENTS.md952 starsChanged 24 months agoApache-2.0View on GitHub
FlowMVI is a Kotlin Multiplatform MVI (Model-View-Intent) framework built on coroutines. Format: <type>[!]: [description] where scope is optional, ! = breaking change Types: feat (βπ Features), fix (βπ Fixes), feat!/breaking/api (β𧨠Breaking), docs (βπ Docs), perf, refactor, test, chore, build, ci, style, revert Examples: feat: add state recovery, fix: resolve lifecycle conflict, feat!: change Saver API
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
β0
Common Β· estimate
Many files like this have a rule of this kind.
β3
Distinctive Β· estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Run detektFormat. It will autofix lint, and warn you about remaining issues to solve.
- Very specific: line 43
Run unit tests with gradle allTests.
- Very specific: line 57
Before writing tests, read ./docs/ai/testing.md for instructions.
- Distinctive: line 61
Document public code via kdocs.
- Very specific: line 62
Do not run assemble on the entire project, that task can take hours, use more granular tasks
- Distinctive: line 63
Avoid source-breaking changes.
- Distinctive: line 66
Put native platform code in nativeMain, or if using Apple APIs, in appleMain.
- Very specific: line 67
Keep the ./skills/flowmvi skill up to date, same way you keep docs up to date.
β βCommonβ is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. βVery specificβ is our guess from the words: it names a file, a command, a setting or the project itself.
Files
FlowMVI is a Kotlin Multiplatform MVI (Model-View-Intent) framework built on coroutines.
Build Commands
./gradlew allTests- Run all tests across platforms./gradlew detektFormat- Auto-format code, use before completing ANY task../gradlew :core:jvmTest --tests "pro.respawn.flowmvi.test.StoreTestSuite"- Run specific test class
Main Directories:
core/src/commonMain/kotlin/pro/respawn/flowmvi- core logic, main module- ./StoreImpl.kt - core store implementation
- ./api/ - public API interfaces and contracts (Store, State, Intent, Action, etc.)
- ./dsl/ - DSL builders for stores, plugins, and configurations
- ./modules/ - internal store modules (intent, state, action, recovery, lifecycle)
- ./plugins/ - built-in plugins (logging, undo/redo, caching, job management, etc.)
- ./delegate/ - delegate plugins for composition
- ./decorators/ - public api intent decorators (retry, batch, conflate, timeout)
- ./decorator/ - decorator framework and builders
- ./impl/ - internal implementations
- ./plugin/ - plugin execution machinery
- ./store/ - store internals
- ./util/ - utility classes (locks, dispatchers, collections)
- ./exceptions/ - custom exceptions
- ./annotation/ - API annotations (@ExperimentalFlowMVIAPI, etc.)
- ./logging/ - logging framework and implementations
android/- Android ViewModel integrationcompose/- Compose Multiplatform integration with lifecycle-aware subscriptionssavedstate/- Cross-platform state persistenceessenty/- Decompose/Essenty integration for retained componentstest/- Testing DSL and utilities (actual tests are per-module)debugger/- Remote debugger for the lib (desktop app, IDE plugin, runtime plugin)sample/- Complete sample application (wasm, android, desktop). Usage examples here.benchmarks/- Benchmarks moduledocs/- Documentation directory. Read documentation to self-educate on aspects of the library.metrics/- Metrics decorator and related code
Before you complete a task
- Run
detektFormat. It will autofix lint, and warn you about remaining issues to solve. - Assemble the target module.
- Run unit tests with
gradle allTests.
Commit Guidelines
Format: <type>[!]: [description] where scope is optional, ! = breaking change
Types: feat (βπ Features), fix (βπ Fixes), feat!/breaking/api (β𧨠Breaking), docs (βπ Docs),
perf, refactor, test, chore, build, ci, style, revert
Examples: feat: add state recovery, fix: resolve lifecycle conflict, feat!: change Saver API
Additional docs.
- Before writing tests, read
./docs/ai/testing.mdfor instructions.
Notes
- Document public code via kdocs.
- Do not run
assembleon the entire project, that task can take hours, use more granular tasks - Avoid source-breaking changes. Deprecate public api instead of removing it.
- Main branch:
master. Master = prod. - Ignore warnings about experimental or unsupported features - they are informational
- Put native platform code in nativeMain, or if using Apple APIs, in appleMain. Native includes all Apple platforms.
- Keep the ./skills/flowmvi skill up to date, same way you keep docs up to date. Always update api signatures and docs there when you change public APIs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

