Install any skill in seconds. Free to start, no credit card required.
Get Started Free →The Container, ViewModel, View convention of app composition code under apps/*/src/mvvm/** and of every features/flow package. Read when creating, editing or reviewing files in apps/*/src/mvvm/**, or view model and view files in features/flow/** (use*ViewModel.ts, *View.web.tsx, *View.native.tsx). Decide where new code goes with structure-flow first.
55% 100%+45 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 12 of 22 without it.
This test ran on v1. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
apps/<app>/src/mvvm/ holds two kinds of code:
@features/*: the screen, its routing, store and analytics wiring, and
the adapters that connect a feature package to app internals.src/mvvm is not the default home of new code. Decide placement with
structure-flow first: business-aware UI and journeys go to
features/, data access to domain/, generic code to shared/. The app folder keeps only what
composes them.
Example: desktop src/mvvm/features/Contacts/ renders @features/flow-contacts and passes it
app-side adapters (useContactsCurrencySelectionAdapter, useContactsAddressValidationAdapter).
The contacts journey itself lives in the flow package.
The ViewModel pattern is not apps-only: it is also mandatory in every
features/flow package. The folder structure below is apps-only; the anatomy of a flow package
belongs to the flow-package skill.
Applies to apps/*/src/mvvm/ only.
src/mvvm/
├── features/
│ └── FeatureName/
│ ├── __integrations__/ ← mandatory integration tests
│ ├── components/ ← UI reused across this feature's screens
│ ├── screens/ ← individual screen folders
│ ├── hooks/ ← feature-scoped hooks, adapters to app internals
│ └── utils/ ← feature-scoped utilities
├── components/ ← UI shared by several app features
├── hooks/
└── utils/
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.