/yx-architecture:yx-architecturefrom yx_architecture
Guides structuring features with yx_scope (DI), yx_state (state management), and yx_navigation (routing). Covers layer boundaries, Interactors, ViewModels, and feature module contracts.
Ships in yx_architecture. 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.
Read when SKILL.md points to them.
The stack: yx_scope (DI), yx_state (state management), yx_navigation (navigation). Each package documents its own API in its own skill. This skill covers what none of them can: how a feature is put together out of all three, where each piece belongs, and what a module exposes to the application that embeds it.
Direct triggers: yx_architecture, the phrase "yx architecture", Interactor, ViewModel,
"view object", "feature facade", InputDeps, OutputDeps, WidgetFactory, "Data-Domain
boundary".
Contextual: laying out or reviewing a feature whose code imports package:yx_scope,
package:yx_state or package:yx_navigation; migrating a feature from Riverpod, BLoC, Provider,
go_router or auto_route to this stack.
Not this skill: how one package works on its own. Scopes and deps are yx-scope-fundamentals,
handle and emit are yx-state-fundamentals, the route tree is yx-navigation-fundamentals.
The three packages ship their skills inside the packages themselves. Install them into the project:
fvm dart run skills@ get --agent <claude|codex|cursor|copilot|cline|opencode|antigravity|generic>
That is the Dart skills CLI; it needs version 1.0 or newer,
and it only scans direct dependencies, so the core packages have to be in pubspec.yaml, not only
their _flutter counterparts.
| Skill | Answers |
|---|---|
yx-scope-fundamentals | containers, holders, deps, scope versus ScopeModule, async dependencies |
yx-state-fundamentals | StateManager, handle and emit, strategies, cancellation, StateBuilder |
yx-navigation-fundamentals | the RouteNode tree, guards, deep links, navigating without a BuildContext |
When a question is about one of those and its skill is not installed, say so and give the command above instead of answering from memory - the package APIs change, and an outdated recollection of them is worse than a short answer that points at the source.
Ask the user when the context does not make these clear:
references/architecture/data_domain.md.references/feature_facade/overview.md.ScopeModule
instead. The rule and its examples are in the yx-scope-fundamentals skill.Details are in the reference for each topic, see the index below.
DI -> Presentation -> Domain -> Data -> Shared. Presentation does not depend on Data.StateManager).
Distinguish business, service and ephemeral state.XxxScope interface, the deps
stay hidden, a child depends on a parent interface. The mechanics are yx-scope-fundamentals.yx-state-fundamentals.BuildContext. The mechanics are yx-navigation-fundamentals.NavigationInteractor and platform channels). Do not register a ViewModel in DI.Reading budget: at most 2 files per answer. If you do not know where to start, read
references/architecture/overview.md.
| Topic | File |
|---|---|
| Layers, entities, roles, folder structure | references/architecture/overview.md |
| Easy/Medium/Hard boundaries, state mapping, StateProvider | references/architecture/data_domain.md |
| Recipe for a new feature, antipattern catalog | references/architecture/recipes.md |
| The ViewModel contract, the view object, who creates and disposes it | references/view_model/overview.md |
| ViewModel recipes, a complex screen, the emit filters | references/view_model/recipes.md |
| Feature facade: InputDeps/OutputDeps, the simple case | references/feature_facade/overview.md |
Three larger jobs have a procedure of their own. Each is also a slash command, but the procedure is what does the work - follow it when the user asks for the same thing in prose.
| The user asks to | Procedure | Command |
|---|---|---|
| review code against the canon | references/procedures/review.md | /yx-architecture:yx-review |
| lay out a new feature | references/procedures/new_feature.md | /yx-architecture:yx-new-feature |
| design or audit an embeddable module | references/procedures/feature_facade.md | /yx-architecture:yx-feature-facade |
A procedure sets its own reading budget - the review reads every antipattern catalog that applies, which is more than two files on purpose.
In production code follow the production canon: interfaces in the generics, a parent interface,
hidden deps, BaseScopeHolder instead of ScopeHolder. The simplified getting-started examples (a
container in the generics, visible deps) exist only to explain the idea to a newcomer - do not copy
them into production.
references/architecture/data_domain.md (opens in a new tab)references/architecture/overview.md (opens in a new tab)references/architecture/recipes.md (opens in a new tab)references/feature_facade/overview.md (opens in a new tab)references/procedures/feature_facade.md (opens in a new tab)references/procedures/new_feature.md (opens in a new tab)references/procedures/review.md (opens in a new tab)references/view_model/overview.md (opens in a new tab)references/view_model/recipes.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/yx-feature-facadeDesign or audit an embeddable feature module - the InputDeps, OutputDeps and WidgetFactory contracts, the internal scope, and the wiring into the host./yx-new-featurePlan a new feature in the yx_architecture canon - pick the Data-Domain boundary, decide between a scope, a ScopeModule or neither, define the single business state, and lay out the five layers and the route./yx-reviewReview Dart/Flutter code against the yx_architecture canon - layer flow, yx_scope DI, yx_state handle/emit, navigation and ViewModel rules - and report every violation with a concrete fix.npx claudepluginhub yandex/city-services-pub --plugin yx-architectureOther plugins' skills for the same job