agentleFS
respawn-apprespawn-app/FlowMVI/AGENTS.md

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.

  • In this repository2 other files it gives its agents.

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
  1. Very specific:

    Run detektFormat. It will autofix lint, and warn you about remaining issues to solve.

    line 41
  2. Very specific:

    Run unit tests with gradle allTests.

    line 43
  3. Very specific:

    Before writing tests, read ./docs/ai/testing.md for instructions.

    line 57
  4. Distinctive:

    Document public code via kdocs.

    line 61
  5. Very specific:

    Do not run assemble on the entire project, that task can take hours, use more granular tasks

    line 62
  6. Distinctive:

    Avoid source-breaking changes.

    line 63
  7. Distinctive:

    Put native platform code in nativeMain, or if using Apple APIs, in appleMain.

    line 66
  8. Very specific:

    Keep the ./skills/flowmvi skill up to date, same way you keep docs up to date.

    line 67

β‰ˆ β€œ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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 integration
  • compose/ - Compose Multiplatform integration with lifecycle-aware subscriptions
  • savedstate/ - Cross-platform state persistence
  • essenty/ - Decompose/Essenty integration for retained components
  • test/ - 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 module
  • docs/ - Documentation directory. Read documentation to self-educate on aspects of the library.
  • metrics/ - Metrics decorator and related code

Before you complete a task

  1. Run detektFormat. It will autofix lint, and warn you about remaining issues to solve.
  2. Assemble the target module.
  3. 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.md for instructions.

Notes

  • Document public code via kdocs.
  • Do not run assemble on 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.