[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P3EC018GNZFT9H2E06E3TD":3,"skill-same:01M6P3EC018GNZFT9H2E06E3TD":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":24,"linkOnly":25,"markdownContent":26,"markdownBody":26,"frontMatter":27,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":12,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M6P3EC018GNZFT9H2E06E3TD","flutter-clean-architecture-audit",null,"dexter-cnx\u002Fagent-engineering-toolkit","dexter-cnx","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F73522389?v=4","01M6K09WYAAXJXMR26H00WJ2AT","01M6P370Z0XCZ7NC67MJ2MRW94",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit\u002Fblob\u002Fmain\u002Foverlays\u002Fmobile-flutter\u002Fskills\u002Farchitecture\u002Fflutter-clean-architecture-audit\u002FSKILL.md",[],[17,18,19,20,21,22,23],"architecture","audit","flutter","clean","clean architecture","architecture audit","flutter clean architecture audit","2026-11-10 10:12:30",false,"# flutter-clean-architecture-audit\n\n## Purpose\n\nAudit a Flutter feature or app for Clean Architecture compliance, dependency direction, and boundary clarity.\n\n## Use when\n\n- A feature mixes widget code with repository or API logic\n- A module has unclear ownership between presentation, state, domain, and data\n- You need an architecture review before or after a refactor\n\n## Do NOT use when\n\n- You only need a quick UI copy edit\n- The request is purely about visual polish with no boundary change\n- The codebase intentionally uses a simple single-layer pattern\n\n## Inputs required\n\n- Feature name or app area\n- Current folder tree or diff\n- State management choice\n- External dependencies involved\n\n## Constraints\n\n- Do not recommend moving logic into widgets\n- Do not flatten layers just to reduce file count\n- Do not introduce new dependencies without stating why\n- Keep Firebase, routing, and storage behind adapters when possible\n\n## Step-by-step workflow\n\n1. Inspect the current folder tree for layer separation.\n2. Identify imports that cross boundaries in the wrong direction.\n3. Map presentation, state, domain, and data responsibilities.\n4. List architecture violations with file paths and severity.\n5. Propose the smallest refactor that restores the boundary.\n6. Confirm tests, routing, and docs that need updates.\n\n## Output contract\n\n- An audit summary\n- A ranked list of violations\n- A remediation plan with exact file paths\n- A verification checklist\n\n## Validation checklist\n\n- Presentation does not call SDKs directly\n- Domain does not depend on presentation\n- Data adapters own SDK interaction\n- The proposed fix is smaller than a rewrite\n\n## Related skills\n\n- `flutter-feature-folder-scaffold`\n- `flutter-feature-contract-scaffold`\n- `flutter-riverpod-state-skeleton`\n- `flutter-firestore-repository`\n- `flutter-go-router-route-map`\n\n## References\n\n- [`..\u002F..\u002F..\u002Ftemplates\u002Ffeature-module-template.md`](..\u002F..\u002F..\u002Ftemplates\u002Ffeature-module-template.md)\n- [`..\u002F..\u002F..\u002Fexamples\u002Ffull-feature-implementation.md`](..\u002F..\u002F..\u002Fexamples\u002Ffull-feature-implementation.md)\n- [`..\u002F..\u002F..\u002Fpolicies\u002Farchitecture\u002FREADME.md`](..\u002F..\u002F..\u002Fpolicies\u002Farchitecture\u002FREADME.md)\n\n## Real example\n\nExample finding: `lib\u002Ffeatures\u002Fprofile\u002Fpresentation\u002Fpages\u002Fprofile_page.dart` imports `firebase_auth` directly. The fix is to move auth calls into `lib\u002Ffeatures\u002Fprofile\u002Fdata\u002Fdatasources\u002Fprofile_remote_data_source.dart` and expose them through a repository contract.\n\n## Real file output sample\n\n```text\ndocs\u002Faudits\u002Fprofile-architecture-audit.md\nlib\u002Ffeatures\u002Fprofile\u002Fdomain\u002Frepositories\u002Fprofile_repository.dart\nlib\u002Ffeatures\u002Fprofile\u002Fdata\u002Frepositories\u002Fprofile_repository_impl.dart\n```\n",{},"main","3035171e2986d5fdb445e694b9013fbdf58b3ff6","overlays\u002Fmobile-flutter\u002Fskills\u002Farchitecture\u002Fflutter-clean-architecture-audit","https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit","https:\u002F\u002Fgithub.com\u002Fdexter-cnx","https:\u002F\u002Fdexter-cnx.github.io\u002Fportfolio\u002F","2026-05-26 14:24:27",{"source":7,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add dexter-cnx\u002Fagent-engineering-toolkit --skill flutter-clean-architecture-audit",{"tool":41,"command":42},"bunx","bunx skills add dexter-cnx\u002Fagent-engineering-toolkit --skill flutter-clean-architecture-audit",{"tool":44,"command":45},"pnpm","pnpm dlx skills add dexter-cnx\u002Fagent-engineering-toolkit --skill flutter-clean-architecture-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit\u002Fblob\u002Fmain\u002Foverlays\u002Fmobile-flutter\u002Fskills\u002Farchitecture\u002Fflutter-clean-architecture-audit\u002FSKILL.md",true,[],[50,76,86,95,107,116],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":24},"01M6P4P9S9017DTSFMRKGA7XW2","toolkit-i18n-operator","Use the toolkit-i18n CLI for repeated Flutter localization workflows with compact outputs, CSV validation, key coverage reporting, generated JSON exports, and safe non-mutating behavior.","https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit\u002Fblob\u002Fmain\u002Ftools\u002Ftoolkit-i18n\u002Fskills\u002Ftoolkit-i18n-operator\u002FSKILL.md",[],[57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,19,72,73,74,75],"toolkit i18n operator","i18n","operator","toolkit","flutter localization","cli","safe","workflows","for","validation","with","csv","compact","reporting","json","behavior","coverage","generated","use",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":24},"01M6P4NREKE3P0XYV3RBBWC987","toolkit-design-operator","Use the toolkit-design CLI for repeated repository workflows.","https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit\u002Fblob\u002Fmain\u002Ftools\u002Ftoolkit-design\u002Fskills\u002Ftoolkit-design-operator\u002FSKILL.md",[],[83,59,60,84,65,62,64,85,75],"toolkit design operator","design","repository",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":24},"01M6P4NNSQ09QFPYG2PMPWEA94","toolkit-ci-operator","Use the toolkit-ci CLI for repeated repository workflows.","https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit\u002Fblob\u002Fmain\u002Ftools\u002Ftoolkit-ci\u002Fskills\u002Ftoolkit-ci-operator\u002FSKILL.md",[],[93,94,59,60,85,62,64,75,65],"toolkit ci operator","ci",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":24},"01M6P4NK636991P6WWQ6X8HDYX","toolkit-arch-operator","Use the toolkit-arch CLI for repeated repository workflows, including Flutter i18n usage scans, layer checks, and localization coverage.","https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit\u002Fblob\u002Fmain\u002Ftools\u002Ftoolkit-arch\u002Fskills\u002Ftoolkit-arch-operator\u002FSKILL.md",[],[102,103,60,59,58,104,105,65,75,73,19,106,85,64,62],"toolkit arch operator","arch","usage","layer","localization",{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":24},"01M6P4NF18XGVSG2NR01E1DX0R","web-testing","https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit\u002Fblob\u002Fmain\u002Foverlays\u002Fweb-frontend\u002Fskills\u002Fweb-testing\u002Fskill.md",[],[113,114,115],"web testing","web","testing",{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":24},"01M6P4MVK07EJ75FQTFN54AGPM","web-state","https:\u002F\u002Fgithub.com\u002Fdexter-cnx\u002Fagent-engineering-toolkit\u002Fblob\u002Fmain\u002Foverlays\u002Fweb-frontend\u002Fskills\u002Fweb-state\u002Fskill.md",[],[114,122,123],"state","web state"]