r/FlutterDev • • Jul 15 '26

Discussion Any Claude / Codex skills for Flutter app architecture?

I am an embedded software dev, and I have vibecoded a Flutter app with Codex, it looks and works amazing and all. But its architecture is an absolute mess.

The app is basically just a dashboard and configurator for an IoT (Bluetooth) device, and I know this much that Bluetooth and IoT device's models have to be singletons, data and UI layers should be separate etc.

But I can't find a comprehensive skill that provides clear instructions and examples of how the architecture of a good Flutter app should be. The one I see on skills.sh is very basic:

flutter-apply-architecture-best-practices

Does anyone here have any skills they regularly use for architecture? Or any tips?

11 Upvotes

15 comments sorted by

View all comments

2

u/CurrentAd1366 Jul 21 '26

Cool to see more state management libs shipping agent skills. imo the bigger lever for agentic coding is how much complexity your state layer forces on the agent in the first place. Hooks-style state is composable and just less code - no events/states/mappers spread across half a dozen files - so there's way less surface for an agent to get subtly wrong, and quality holds up over long sessions and refactors instead of slowly degrading.

That's why we went hooks-style for our own state management at Utopia: https://github.com/Utopia-USS/utopia-flutter/tree/master/packages/hooks

Paired with the skill that pins down our conventions (https://github.com/Utopia-USS/utopia-flutter-skills/tree/main/plugins/utopia-hooks) it's honestly the best agent output we've gotten out of any Flutter state setup - small composable units seem to be exactly what agents are good at keeping clean.

1

u/Hungry_Discussion693 Jul 25 '26

(disclosure: I'm on the Utopia team too, so obviously biased) but yeah, this matches our experience exactly, small composable state is just easier for an agent to keep straight than event/state/mapper spread across six files. Long sessions are where it usually falls apart for us, and hooks has been the first setup where that hasn't been the case.