dexter-cnx/agent-engineering-toolkit/flutter-clean-architecture-audit
Claude Code and agent skill by dexter-cnx/agent-engineering-toolkit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install dexter-cnx/agent-engineering-toolkit/flutter-clean-architecture-auditSKILL.md
The same SKILL.md was published earlier as dexter-cnx/agent-engineering-toolkit/flutter-clean-architecture-audit.
flutter-clean-architecture-audit
Purpose
Audit a Flutter feature or app for Clean Architecture compliance, dependency direction, and boundary clarity.
Use when
- A feature mixes widget code with repository or API logic
- A module has unclear ownership between presentation, state, domain, and data
- You need an architecture review before or after a refactor
Do NOT use when
- You only need a quick UI copy edit
- The request is purely about visual polish with no boundary change
- The codebase intentionally uses a simple single-layer pattern
Inputs required
- Feature name or app area
- Current folder tree or diff
- State management choice
- External dependencies involved
Constraints
- Do not recommend moving logic into widgets
- Do not flatten layers just to reduce file count
- Do not introduce new dependencies without stating why
- Keep Firebase, routing, and storage behind adapters when possible
Step-by-step workflow
- Inspect the current folder tree for layer separation.
- Identify imports that cross boundaries in the wrong direction.
- Map presentation, state, domain, and data responsibilities.
- List architecture violations with file paths and severity.
- Propose the smallest refactor that restores the boundary.
- Confirm tests, routing, and docs that need updates.
Output contract
- An audit summary
- A ranked list of violations
- A remediation plan with exact file paths
- A verification checklist
Validation checklist
- Presentation does not call SDKs directly
- Domain does not depend on presentation
- Data adapters own SDK interaction
- The proposed fix is smaller than a rewrite
Related skills
flutter-feature-folder-scaffoldflutter-feature-contract-scaffoldflutter-riverpod-state-skeletonflutter-firestore-repositoryflutter-go-router-route-map
References
- `../../../templates/feature-module-template.md`
- `../../../examples/full-feature-implementation.md`
- `../../../policies/architecture/README.md`
Real example
Example finding: lib/features/profile/presentation/pages/profile_page.dart imports firebase_auth directly. The fix is to move auth calls into lib/features/profile/data/datasources/profile_remote_data_source.dart and expose them through a repository contract.
Real file output sample
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingoverlays/mobile-flutter/skills/architecture/flutter-clean-architecture-audit/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dexter-cnx/agent-engineering-toolkit/flutter-clean-architecture-audit)