@rubix0270/arboris 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. package/package.json +25 -37
  2. package/run.mjs +10 -0
  3. package/dist/cli.mjs +0 -383
  4. package/manifest.json +0 -323
  5. package/prisma/skills/accessibility/SKILL.md +0 -147
  6. package/prisma/skills/agent-architecture-audit/SKILL.md +0 -257
  7. package/prisma/skills/agent-eval/SKILL.md +0 -146
  8. package/prisma/skills/agent-harness-construction/SKILL.md +0 -74
  9. package/prisma/skills/agent-introspection-debugging/SKILL.md +0 -154
  10. package/prisma/skills/agent-payment-x402/SKILL.md +0 -225
  11. package/prisma/skills/agent-self-evaluation/SKILL.md +0 -182
  12. package/prisma/skills/agent-self-evaluation/examples/high-score-example.md +0 -87
  13. package/prisma/skills/agent-self-evaluation/examples/low-score-example.md +0 -86
  14. package/prisma/skills/agent-self-evaluation/references/evaluation-criteria.md +0 -71
  15. package/prisma/skills/agent-self-evaluation/references/hook-integration.md +0 -64
  16. package/prisma/skills/agent-self-evaluation/scripts/evaluate.py +0 -408
  17. package/prisma/skills/agent-self-evaluation/templates/evaluation-report.md +0 -86
  18. package/prisma/skills/agent-sort/SKILL.md +0 -216
  19. package/prisma/skills/agentic-engineering/SKILL.md +0 -64
  20. package/prisma/skills/agentic-os/SKILL.md +0 -388
  21. package/prisma/skills/ai-first-engineering/SKILL.md +0 -52
  22. package/prisma/skills/ai-regression-testing/SKILL.md +0 -386
  23. package/prisma/skills/android-clean-architecture/SKILL.md +0 -340
  24. package/prisma/skills/angular-developer/SKILL.md +0 -155
  25. package/prisma/skills/angular-developer/references/angular-animations.md +0 -160
  26. package/prisma/skills/angular-developer/references/angular-aria.md +0 -410
  27. package/prisma/skills/angular-developer/references/cli.md +0 -86
  28. package/prisma/skills/angular-developer/references/component-harnesses.md +0 -59
  29. package/prisma/skills/angular-developer/references/component-styling.md +0 -91
  30. package/prisma/skills/angular-developer/references/components.md +0 -117
  31. package/prisma/skills/angular-developer/references/creating-services.md +0 -97
  32. package/prisma/skills/angular-developer/references/data-resolvers.md +0 -69
  33. package/prisma/skills/angular-developer/references/define-routes.md +0 -67
  34. package/prisma/skills/angular-developer/references/defining-providers.md +0 -72
  35. package/prisma/skills/angular-developer/references/di-fundamentals.md +0 -120
  36. package/prisma/skills/angular-developer/references/e2e-testing.md +0 -56
  37. package/prisma/skills/angular-developer/references/effects.md +0 -83
  38. package/prisma/skills/angular-developer/references/hierarchical-injectors.md +0 -43
  39. package/prisma/skills/angular-developer/references/host-elements.md +0 -80
  40. package/prisma/skills/angular-developer/references/injection-context.md +0 -63
  41. package/prisma/skills/angular-developer/references/inputs.md +0 -101
  42. package/prisma/skills/angular-developer/references/linked-signal.md +0 -59
  43. package/prisma/skills/angular-developer/references/loading-strategies.md +0 -61
  44. package/prisma/skills/angular-developer/references/mcp.md +0 -108
  45. package/prisma/skills/angular-developer/references/navigate-to-routes.md +0 -69
  46. package/prisma/skills/angular-developer/references/outputs.md +0 -86
  47. package/prisma/skills/angular-developer/references/reactive-forms.md +0 -122
  48. package/prisma/skills/angular-developer/references/rendering-strategies.md +0 -44
  49. package/prisma/skills/angular-developer/references/resource.md +0 -77
  50. package/prisma/skills/angular-developer/references/route-animations.md +0 -56
  51. package/prisma/skills/angular-developer/references/route-guards.md +0 -52
  52. package/prisma/skills/angular-developer/references/router-lifecycle.md +0 -45
  53. package/prisma/skills/angular-developer/references/router-testing.md +0 -87
  54. package/prisma/skills/angular-developer/references/show-routes-with-outlets.md +0 -68
  55. package/prisma/skills/angular-developer/references/signal-forms.md +0 -795
  56. package/prisma/skills/angular-developer/references/signals-overview.md +0 -94
  57. package/prisma/skills/angular-developer/references/tailwind-css.md +0 -69
  58. package/prisma/skills/angular-developer/references/template-driven-forms.md +0 -114
  59. package/prisma/skills/angular-developer/references/testing-fundamentals.md +0 -65
  60. package/prisma/skills/api-connector-builder/SKILL.md +0 -121
  61. package/prisma/skills/api-design/SKILL.md +0 -524
  62. package/prisma/skills/architecture-decision-records/SKILL.md +0 -180
  63. package/prisma/skills/article-writing/SKILL.md +0 -80
  64. package/prisma/skills/automation-audit-ops/SKILL.md +0 -143
  65. package/prisma/skills/autonomous-agent-harness/SKILL.md +0 -274
  66. package/prisma/skills/autonomous-loops/SKILL.md +0 -611
  67. package/prisma/skills/backend-patterns/SKILL.md +0 -562
  68. package/prisma/skills/benchmark/SKILL.md +0 -94
  69. package/prisma/skills/benchmark-methodology/SKILL.md +0 -190
  70. package/prisma/skills/benchmark-optimization-loop/SKILL.md +0 -70
  71. package/prisma/skills/blender-motion-state-inspection/SKILL.md +0 -165
  72. package/prisma/skills/blueprint/SKILL.md +0 -106
  73. package/prisma/skills/brand-discovery/SKILL.md +0 -145
  74. package/prisma/skills/brand-discovery/references/10_purpose-why.md +0 -40
  75. package/prisma/skills/brand-discovery/references/20_positioning.md +0 -44
  76. package/prisma/skills/brand-discovery/references/30_audience-niche.md +0 -52
  77. package/prisma/skills/brand-discovery/references/40_personality-archetype.md +0 -57
  78. package/prisma/skills/brand-discovery/references/50_voice-tone.md +0 -59
  79. package/prisma/skills/brand-discovery/references/60_narrative-story.md +0 -50
  80. package/prisma/skills/brand-discovery/references/70_founder-tension.md +0 -49
  81. package/prisma/skills/brand-discovery/references/90_SYNTHESIS.md +0 -133
  82. package/prisma/skills/brand-voice/SKILL.md +0 -98
  83. package/prisma/skills/brand-voice/references/voice-profile-schema.md +0 -55
  84. package/prisma/skills/browser-qa/SKILL.md +0 -105
  85. package/prisma/skills/bun-runtime/SKILL.md +0 -85
  86. package/prisma/skills/canary-watch/SKILL.md +0 -108
  87. package/prisma/skills/carrier-relationship-management/SKILL.md +0 -212
  88. package/prisma/skills/cisco-ios-patterns/SKILL.md +0 -164
  89. package/prisma/skills/ck/SKILL.md +0 -148
  90. package/prisma/skills/ck/commands/forget.mjs +0 -44
  91. package/prisma/skills/ck/commands/info.mjs +0 -24
  92. package/prisma/skills/ck/commands/init.mjs +0 -143
  93. package/prisma/skills/ck/commands/list.mjs +0 -40
  94. package/prisma/skills/ck/commands/migrate.mjs +0 -202
  95. package/prisma/skills/ck/commands/resume.mjs +0 -36
  96. package/prisma/skills/ck/commands/save.mjs +0 -210
  97. package/prisma/skills/ck/commands/shared.mjs +0 -387
  98. package/prisma/skills/ck/hooks/session-start.mjs +0 -224
  99. package/prisma/skills/claude-devfleet/SKILL.md +0 -112
  100. package/prisma/skills/click-path-audit/SKILL.md +0 -245
  101. package/prisma/skills/clickhouse-io/SKILL.md +0 -440
  102. package/prisma/skills/code-tour/SKILL.md +0 -254
  103. package/prisma/skills/codebase-onboarding/SKILL.md +0 -234
  104. package/prisma/skills/codehealth-mcp/SKILL.md +0 -167
  105. package/prisma/skills/coding-standards/SKILL.md +0 -551
  106. package/prisma/skills/competitive-platform-analysis/SKILL.md +0 -214
  107. package/prisma/skills/competitive-report-structure/SKILL.md +0 -162
  108. package/prisma/skills/compose-multiplatform-patterns/SKILL.md +0 -300
  109. package/prisma/skills/config-gc/SKILL.md +0 -120
  110. package/prisma/skills/configure-ecc/SKILL.md +0 -385
  111. package/prisma/skills/connections-optimizer/SKILL.md +0 -190
  112. package/prisma/skills/content-engine/SKILL.md +0 -132
  113. package/prisma/skills/content-hash-cache-pattern/SKILL.md +0 -162
  114. package/prisma/skills/context-budget/SKILL.md +0 -136
  115. package/prisma/skills/continuous-agent-loop/SKILL.md +0 -46
  116. package/prisma/skills/continuous-learning/SKILL.md +0 -132
  117. package/prisma/skills/continuous-learning/config.json +0 -18
  118. package/prisma/skills/continuous-learning/evaluate-session.sh +0 -69
  119. package/prisma/skills/continuous-learning-v2/SKILL.md +0 -361
  120. package/prisma/skills/continuous-learning-v2/agents/observer-loop.sh +0 -359
  121. package/prisma/skills/continuous-learning-v2/agents/observer.md +0 -189
  122. package/prisma/skills/continuous-learning-v2/agents/session-guardian.sh +0 -150
  123. package/prisma/skills/continuous-learning-v2/agents/start-observer.sh +0 -248
  124. package/prisma/skills/continuous-learning-v2/config.json +0 -8
  125. package/prisma/skills/continuous-learning-v2/hooks/observe.sh +0 -585
  126. package/prisma/skills/continuous-learning-v2/scripts/detect-project.sh +0 -322
  127. package/prisma/skills/continuous-learning-v2/scripts/instinct-cli.py +0 -1956
  128. package/prisma/skills/continuous-learning-v2/scripts/lib/homunculus-dir.sh +0 -31
  129. package/prisma/skills/continuous-learning-v2/scripts/migrate-homunculus.sh +0 -68
  130. package/prisma/skills/continuous-learning-v2/scripts/test_parse_instinct.py +0 -1421
  131. package/prisma/skills/cost-aware-llm-pipeline/SKILL.md +0 -184
  132. package/prisma/skills/cost-tracking/SKILL.md +0 -97
  133. package/prisma/skills/council/SKILL.md +0 -204
  134. package/prisma/skills/cpp-coding-standards/SKILL.md +0 -724
  135. package/prisma/skills/cpp-testing/SKILL.md +0 -325
  136. package/prisma/skills/crosspost/SKILL.md +0 -112
  137. package/prisma/skills/csharp-testing/SKILL.md +0 -322
  138. package/prisma/skills/customer-billing-ops/SKILL.md +0 -141
  139. package/prisma/skills/customs-trade-compliance/SKILL.md +0 -263
  140. package/prisma/skills/dart-flutter-patterns/SKILL.md +0 -564
  141. package/prisma/skills/dashboard-builder/SKILL.md +0 -109
  142. package/prisma/skills/data-scraper-agent/SKILL.md +0 -765
  143. package/prisma/skills/data-throughput-accelerator/SKILL.md +0 -73
  144. package/prisma/skills/database-migrations/SKILL.md +0 -430
  145. package/prisma/skills/deep-research/SKILL.md +0 -160
  146. package/prisma/skills/defi-amm-security/SKILL.md +0 -167
  147. package/prisma/skills/delivery-gate/SKILL.md +0 -126
  148. package/prisma/skills/delivery-gate/hooks/quality-gate.py +0 -220
  149. package/prisma/skills/deployment-patterns/SKILL.md +0 -428
  150. package/prisma/skills/design-system/SKILL.md +0 -83
  151. package/prisma/skills/django-celery/SKILL.md +0 -458
  152. package/prisma/skills/django-patterns/SKILL.md +0 -735
  153. package/prisma/skills/django-security/SKILL.md +0 -644
  154. package/prisma/skills/django-tdd/SKILL.md +0 -730
  155. package/prisma/skills/django-verification/SKILL.md +0 -470
  156. package/prisma/skills/dmux-workflows/SKILL.md +0 -192
  157. package/prisma/skills/docker-patterns/SKILL.md +0 -365
  158. package/prisma/skills/documentation-lookup/SKILL.md +0 -91
  159. package/prisma/skills/dotnet-patterns/SKILL.md +0 -322
  160. package/prisma/skills/dynamic-workflow-mode/SKILL.md +0 -124
  161. package/prisma/skills/e2e-testing/SKILL.md +0 -327
  162. package/prisma/skills/ecc-guide/SKILL.md +0 -190
  163. package/prisma/skills/ecc-recipes/SKILL.md +0 -149
  164. package/prisma/skills/ecc-tools-cost-audit/SKILL.md +0 -161
  165. package/prisma/skills/email-ops/SKILL.md +0 -122
  166. package/prisma/skills/energy-procurement/SKILL.md +0 -228
  167. package/prisma/skills/enterprise-agent-ops/SKILL.md +0 -51
  168. package/prisma/skills/error-handling/SKILL.md +0 -377
  169. package/prisma/skills/eval-harness/SKILL.md +0 -271
  170. package/prisma/skills/evm-token-decimals/SKILL.md +0 -131
  171. package/prisma/skills/exa-search/SKILL.md +0 -108
  172. package/prisma/skills/fal-ai-media/SKILL.md +0 -289
  173. package/prisma/skills/fastapi-patterns/SKILL.md +0 -514
  174. package/prisma/skills/finance-billing-ops/SKILL.md +0 -128
  175. package/prisma/skills/flox-environments/SKILL.md +0 -497
  176. package/prisma/skills/flutter-dart-code-review/SKILL.md +0 -436
  177. package/prisma/skills/foundation-models-on-device/SKILL.md +0 -243
  178. package/prisma/skills/frontend-a11y/SKILL.md +0 -446
  179. package/prisma/skills/frontend-design-direction/SKILL.md +0 -93
  180. package/prisma/skills/frontend-patterns/SKILL.md +0 -657
  181. package/prisma/skills/frontend-slides/SKILL.md +0 -185
  182. package/prisma/skills/frontend-slides/STYLE_PRESETS.md +0 -330
  183. package/prisma/skills/frontend-slides/animation-patterns.md +0 -122
  184. package/prisma/skills/frontend-slides/html-template.md +0 -419
  185. package/prisma/skills/frontend-slides/scripts/export-pdf.sh +0 -418
  186. package/prisma/skills/frontend-slides/scripts/extract-pptx.py +0 -96
  187. package/prisma/skills/frontend-slides/viewport-base.css +0 -153
  188. package/prisma/skills/fsharp-testing/SKILL.md +0 -281
  189. package/prisma/skills/gan-style-harness/SKILL.md +0 -279
  190. package/prisma/skills/gateguard/SKILL.md +0 -133
  191. package/prisma/skills/generating-python-installer/SKILL.md +0 -820
  192. package/prisma/skills/git-workflow/SKILL.md +0 -716
  193. package/prisma/skills/github-ops/SKILL.md +0 -145
  194. package/prisma/skills/golang-patterns/SKILL.md +0 -675
  195. package/prisma/skills/golang-testing/SKILL.md +0 -721
  196. package/prisma/skills/google-workspace-ops/SKILL.md +0 -96
  197. package/prisma/skills/growth-log/SKILL.md +0 -128
  198. package/prisma/skills/healthcare-cdss-patterns/SKILL.md +0 -246
  199. package/prisma/skills/healthcare-emr-patterns/SKILL.md +0 -160
  200. package/prisma/skills/healthcare-eval-harness/SKILL.md +0 -208
  201. package/prisma/skills/healthcare-phi-compliance/SKILL.md +0 -146
  202. package/prisma/skills/hermes-imports/SKILL.md +0 -89
  203. package/prisma/skills/hexagonal-architecture/SKILL.md +0 -277
  204. package/prisma/skills/hipaa-compliance/SKILL.md +0 -79
  205. package/prisma/skills/homelab-network-readiness/SKILL.md +0 -170
  206. package/prisma/skills/homelab-network-setup/SKILL.md +0 -130
  207. package/prisma/skills/homelab-pihole-dns/SKILL.md +0 -275
  208. package/prisma/skills/homelab-vlan-segmentation/SKILL.md +0 -312
  209. package/prisma/skills/homelab-wireguard-vpn/SKILL.md +0 -306
  210. package/prisma/skills/hookify-rules/SKILL.md +0 -128
  211. package/prisma/skills/inherit-legacy-style/SKILL.md +0 -157
  212. package/prisma/skills/intent-driven-development/SKILL.md +0 -360
  213. package/prisma/skills/inventory-demand-planning/SKILL.md +0 -247
  214. package/prisma/skills/investor-materials/SKILL.md +0 -97
  215. package/prisma/skills/investor-outreach/SKILL.md +0 -92
  216. package/prisma/skills/ios-icon-gen/SKILL.md +0 -158
  217. package/prisma/skills/ios-icon-gen/scripts/generate_icons.swift +0 -258
  218. package/prisma/skills/ios-icon-gen/scripts/iconify_gen.sh +0 -235
  219. package/prisma/skills/iterative-retrieval/SKILL.md +0 -212
  220. package/prisma/skills/ito-basket-compare/SKILL.md +0 -64
  221. package/prisma/skills/ito-data-atlas-agent/SKILL.md +0 -64
  222. package/prisma/skills/ito-market-intelligence/SKILL.md +0 -61
  223. package/prisma/skills/ito-trade-planner/SKILL.md +0 -68
  224. package/prisma/skills/java-coding-standards/SKILL.md +0 -384
  225. package/prisma/skills/jira-integration/SKILL.md +0 -303
  226. package/prisma/skills/jpa-patterns/SKILL.md +0 -152
  227. package/prisma/skills/knowledge-ops/SKILL.md +0 -155
  228. package/prisma/skills/kotlin-coroutines-flows/SKILL.md +0 -285
  229. package/prisma/skills/kotlin-exposed-patterns/SKILL.md +0 -720
  230. package/prisma/skills/kotlin-ktor-patterns/SKILL.md +0 -690
  231. package/prisma/skills/kotlin-patterns/SKILL.md +0 -712
  232. package/prisma/skills/kotlin-testing/SKILL.md +0 -825
  233. package/prisma/skills/kubernetes-patterns/SKILL.md +0 -756
  234. package/prisma/skills/laravel-patterns/SKILL.md +0 -416
  235. package/prisma/skills/laravel-plugin-discovery/SKILL.md +0 -230
  236. package/prisma/skills/laravel-security/SKILL.md +0 -948
  237. package/prisma/skills/laravel-tdd/SKILL.md +0 -675
  238. package/prisma/skills/laravel-verification/SKILL.md +0 -180
  239. package/prisma/skills/latency-critical-systems/SKILL.md +0 -74
  240. package/prisma/skills/lead-intelligence/SKILL.md +0 -322
  241. package/prisma/skills/lead-intelligence/agents/enrichment-agent.md +0 -85
  242. package/prisma/skills/lead-intelligence/agents/mutual-mapper.md +0 -75
  243. package/prisma/skills/lead-intelligence/agents/outreach-drafter.md +0 -98
  244. package/prisma/skills/lead-intelligence/agents/signal-scorer.md +0 -60
  245. package/prisma/skills/liquid-glass-design/SKILL.md +0 -279
  246. package/prisma/skills/llm-trading-agent-security/SKILL.md +0 -147
  247. package/prisma/skills/logistics-exception-management/SKILL.md +0 -222
  248. package/prisma/skills/loop-design-check/SKILL.md +0 -143
  249. package/prisma/skills/mailtrap-email-integration/SKILL.md +0 -77
  250. package/prisma/skills/make-interfaces-feel-better/SKILL.md +0 -152
  251. package/prisma/skills/manim-video/SKILL.md +0 -90
  252. package/prisma/skills/manim-video/assets/network_graph_scene.py +0 -52
  253. package/prisma/skills/market-research/SKILL.md +0 -76
  254. package/prisma/skills/marketing-campaign/SKILL.md +0 -114
  255. package/prisma/skills/mcp-server-patterns/SKILL.md +0 -70
  256. package/prisma/skills/messages-ops/SKILL.md +0 -105
  257. package/prisma/skills/ml-adoption-playbook/SKILL.md +0 -57
  258. package/prisma/skills/mle-workflow/SKILL.md +0 -347
  259. package/prisma/skills/motion-advanced/SKILL.md +0 -596
  260. package/prisma/skills/motion-foundations/SKILL.md +0 -299
  261. package/prisma/skills/motion-patterns/SKILL.md +0 -434
  262. package/prisma/skills/motion-ui/SKILL.md +0 -576
  263. package/prisma/skills/mysql-patterns/SKILL.md +0 -413
  264. package/prisma/skills/nanoclaw-repl/SKILL.md +0 -34
  265. package/prisma/skills/nestjs-patterns/SKILL.md +0 -231
  266. package/prisma/skills/netmiko-ssh-automation/SKILL.md +0 -174
  267. package/prisma/skills/network-bgp-diagnostics/SKILL.md +0 -168
  268. package/prisma/skills/network-config-validation/SKILL.md +0 -211
  269. package/prisma/skills/network-interface-health/SKILL.md +0 -153
  270. package/prisma/skills/nextjs-turbopack/SKILL.md +0 -58
  271. package/prisma/skills/nodejs-keccak256/SKILL.md +0 -103
  272. package/prisma/skills/nutrient-document-processing/SKILL.md +0 -168
  273. package/prisma/skills/nuxt4-patterns/SKILL.md +0 -101
  274. package/prisma/skills/openclaw-persona-forge/SKILL.md +0 -289
  275. package/prisma/skills/openclaw-persona-forge/gacha.py +0 -224
  276. package/prisma/skills/openclaw-persona-forge/gacha.sh +0 -5
  277. package/prisma/skills/openclaw-persona-forge/references/avatar-style.md +0 -124
  278. package/prisma/skills/openclaw-persona-forge/references/boundary-rules.md +0 -53
  279. package/prisma/skills/openclaw-persona-forge/references/error-handling.md +0 -53
  280. package/prisma/skills/openclaw-persona-forge/references/identity-tension.md +0 -48
  281. package/prisma/skills/openclaw-persona-forge/references/naming-system.md +0 -39
  282. package/prisma/skills/openclaw-persona-forge/references/output-template.md +0 -166
  283. package/prisma/skills/opensource-pipeline/SKILL.md +0 -256
  284. package/prisma/skills/orch-add-feature/SKILL.md +0 -45
  285. package/prisma/skills/orch-build-mvp/SKILL.md +0 -49
  286. package/prisma/skills/orch-change-feature/SKILL.md +0 -43
  287. package/prisma/skills/orch-fix-defect/SKILL.md +0 -43
  288. package/prisma/skills/orch-pipeline/SKILL.md +0 -121
  289. package/prisma/skills/orch-refine-code/SKILL.md +0 -44
  290. package/prisma/skills/parallel-execution-optimizer/SKILL.md +0 -73
  291. package/prisma/skills/perl-patterns/SKILL.md +0 -505
  292. package/prisma/skills/perl-security/SKILL.md +0 -504
  293. package/prisma/skills/perl-testing/SKILL.md +0 -476
  294. package/prisma/skills/plan-orchestrate/SKILL.md +0 -263
  295. package/prisma/skills/plankton-code-quality/SKILL.md +0 -237
  296. package/prisma/skills/postgres-patterns/SKILL.md +0 -148
  297. package/prisma/skills/prediction-market-oracle-research/SKILL.md +0 -64
  298. package/prisma/skills/prediction-market-risk-review/SKILL.md +0 -61
  299. package/prisma/skills/prisma-patterns/SKILL.md +0 -401
  300. package/prisma/skills/product-capability/SKILL.md +0 -142
  301. package/prisma/skills/product-lens/SKILL.md +0 -93
  302. package/prisma/skills/production-audit/SKILL.md +0 -207
  303. package/prisma/skills/production-scheduling/SKILL.md +0 -238
  304. package/prisma/skills/project-flow-ops/SKILL.md +0 -112
  305. package/prisma/skills/prompt-optimizer/SKILL.md +0 -398
  306. package/prisma/skills/python-patterns/SKILL.md +0 -751
  307. package/prisma/skills/python-testing/SKILL.md +0 -817
  308. package/prisma/skills/pytorch-patterns/SKILL.md +0 -397
  309. package/prisma/skills/quality-nonconformance/SKILL.md +0 -260
  310. package/prisma/skills/quarkus-patterns/SKILL.md +0 -723
  311. package/prisma/skills/quarkus-security/SKILL.md +0 -468
  312. package/prisma/skills/quarkus-tdd/SKILL.md +0 -812
  313. package/prisma/skills/quarkus-verification/SKILL.md +0 -480
  314. package/prisma/skills/ralphinho-rfc-pipeline/SKILL.md +0 -68
  315. package/prisma/skills/react-native-patterns/SKILL.md +0 -326
  316. package/prisma/skills/react-patterns/SKILL.md +0 -342
  317. package/prisma/skills/react-performance/SKILL.md +0 -575
  318. package/prisma/skills/react-testing/SKILL.md +0 -424
  319. package/prisma/skills/recsys-pipeline-architect/SKILL.md +0 -115
  320. package/prisma/skills/recursive-decision-ledger/SKILL.md +0 -80
  321. package/prisma/skills/redis-patterns/SKILL.md +0 -404
  322. package/prisma/skills/regex-vs-llm-structured-text/SKILL.md +0 -221
  323. package/prisma/skills/remotion-video-creation/SKILL.md +0 -43
  324. package/prisma/skills/remotion-video-creation/rules/3d.md +0 -86
  325. package/prisma/skills/remotion-video-creation/rules/animations.md +0 -29
  326. package/prisma/skills/remotion-video-creation/rules/assets/charts-bar-chart.tsx +0 -173
  327. package/prisma/skills/remotion-video-creation/rules/assets/text-animations-typewriter.tsx +0 -100
  328. package/prisma/skills/remotion-video-creation/rules/assets/text-animations-word-highlight.tsx +0 -108
  329. package/prisma/skills/remotion-video-creation/rules/assets.md +0 -78
  330. package/prisma/skills/remotion-video-creation/rules/audio.md +0 -172
  331. package/prisma/skills/remotion-video-creation/rules/calculate-metadata.md +0 -104
  332. package/prisma/skills/remotion-video-creation/rules/can-decode.md +0 -75
  333. package/prisma/skills/remotion-video-creation/rules/charts.md +0 -58
  334. package/prisma/skills/remotion-video-creation/rules/compositions.md +0 -146
  335. package/prisma/skills/remotion-video-creation/rules/display-captions.md +0 -126
  336. package/prisma/skills/remotion-video-creation/rules/extract-frames.md +0 -229
  337. package/prisma/skills/remotion-video-creation/rules/fonts.md +0 -152
  338. package/prisma/skills/remotion-video-creation/rules/get-audio-duration.md +0 -58
  339. package/prisma/skills/remotion-video-creation/rules/get-video-dimensions.md +0 -68
  340. package/prisma/skills/remotion-video-creation/rules/get-video-duration.md +0 -58
  341. package/prisma/skills/remotion-video-creation/rules/gifs.md +0 -138
  342. package/prisma/skills/remotion-video-creation/rules/images.md +0 -130
  343. package/prisma/skills/remotion-video-creation/rules/import-srt-captions.md +0 -67
  344. package/prisma/skills/remotion-video-creation/rules/lottie.md +0 -67
  345. package/prisma/skills/remotion-video-creation/rules/measuring-dom-nodes.md +0 -34
  346. package/prisma/skills/remotion-video-creation/rules/measuring-text.md +0 -143
  347. package/prisma/skills/remotion-video-creation/rules/sequencing.md +0 -106
  348. package/prisma/skills/remotion-video-creation/rules/tailwind.md +0 -11
  349. package/prisma/skills/remotion-video-creation/rules/text-animations.md +0 -20
  350. package/prisma/skills/remotion-video-creation/rules/timing.md +0 -179
  351. package/prisma/skills/remotion-video-creation/rules/transcribe-captions.md +0 -19
  352. package/prisma/skills/remotion-video-creation/rules/transitions.md +0 -122
  353. package/prisma/skills/remotion-video-creation/rules/trimming.md +0 -52
  354. package/prisma/skills/remotion-video-creation/rules/videos.md +0 -171
  355. package/prisma/skills/repo-scan/SKILL.md +0 -79
  356. package/prisma/skills/research-ops/SKILL.md +0 -113
  357. package/prisma/skills/returns-reverse-logistics/SKILL.md +0 -240
  358. package/prisma/skills/rules-distill/SKILL.md +0 -265
  359. package/prisma/skills/rules-distill/scripts/scan-rules.sh +0 -58
  360. package/prisma/skills/rules-distill/scripts/scan-skills.sh +0 -129
  361. package/prisma/skills/rust-patterns/SKILL.md +0 -500
  362. package/prisma/skills/rust-testing/SKILL.md +0 -501
  363. package/prisma/skills/safety-guard/SKILL.md +0 -76
  364. package/prisma/skills/santa-method/SKILL.md +0 -307
  365. package/prisma/skills/scientific-db-pubmed-database/SKILL.md +0 -176
  366. package/prisma/skills/scientific-db-uspto-database/SKILL.md +0 -178
  367. package/prisma/skills/scientific-pkg-gget/SKILL.md +0 -167
  368. package/prisma/skills/scientific-thinking-literature-review/SKILL.md +0 -193
  369. package/prisma/skills/scientific-thinking-scholar-evaluation/SKILL.md +0 -161
  370. package/prisma/skills/search-first/SKILL.md +0 -183
  371. package/prisma/skills/security-bounty-hunter/SKILL.md +0 -100
  372. package/prisma/skills/security-review/SKILL.md +0 -504
  373. package/prisma/skills/security-review/cloud-infrastructure-security.md +0 -361
  374. package/prisma/skills/security-scan/SKILL.md +0 -166
  375. package/prisma/skills/seo/SKILL.md +0 -155
  376. package/prisma/skills/skill-comply/SKILL.md +0 -59
  377. package/prisma/skills/skill-comply/fixtures/compliant_trace.jsonl +0 -5
  378. package/prisma/skills/skill-comply/fixtures/noncompliant_trace.jsonl +0 -3
  379. package/prisma/skills/skill-comply/fixtures/tdd_spec.yaml +0 -44
  380. package/prisma/skills/skill-comply/prompts/classifier.md +0 -24
  381. package/prisma/skills/skill-comply/prompts/scenario_generator.md +0 -62
  382. package/prisma/skills/skill-comply/prompts/spec_generator.md +0 -42
  383. package/prisma/skills/skill-comply/pyproject.toml +0 -15
  384. package/prisma/skills/skill-comply/scripts/__init__.py +0 -0
  385. package/prisma/skills/skill-comply/scripts/classifier.py +0 -85
  386. package/prisma/skills/skill-comply/scripts/grader.py +0 -124
  387. package/prisma/skills/skill-comply/scripts/parser.py +0 -107
  388. package/prisma/skills/skill-comply/scripts/report.py +0 -170
  389. package/prisma/skills/skill-comply/scripts/run.py +0 -127
  390. package/prisma/skills/skill-comply/scripts/runner.py +0 -194
  391. package/prisma/skills/skill-comply/scripts/scenario_generator.py +0 -70
  392. package/prisma/skills/skill-comply/scripts/spec_generator.py +0 -72
  393. package/prisma/skills/skill-comply/scripts/utils.py +0 -13
  394. package/prisma/skills/skill-comply/tests/test_grader.py +0 -197
  395. package/prisma/skills/skill-comply/tests/test_parser.py +0 -90
  396. package/prisma/skills/skill-comply/tests/test_runner.py +0 -172
  397. package/prisma/skills/skill-scout/SKILL.md +0 -141
  398. package/prisma/skills/skill-stocktake/SKILL.md +0 -195
  399. package/prisma/skills/skill-stocktake/scripts/quick-diff.sh +0 -87
  400. package/prisma/skills/skill-stocktake/scripts/save-results.sh +0 -56
  401. package/prisma/skills/skill-stocktake/scripts/scan.sh +0 -170
  402. package/prisma/skills/social-graph-ranker/SKILL.md +0 -155
  403. package/prisma/skills/social-publisher/SKILL.md +0 -130
  404. package/prisma/skills/springboot-patterns/SKILL.md +0 -315
  405. package/prisma/skills/springboot-security/SKILL.md +0 -273
  406. package/prisma/skills/springboot-tdd/SKILL.md +0 -159
  407. package/prisma/skills/springboot-verification/SKILL.md +0 -232
  408. package/prisma/skills/strategic-compact/SKILL.md +0 -136
  409. package/prisma/skills/swift-actor-persistence/SKILL.md +0 -144
  410. package/prisma/skills/swift-concurrency-6-2/SKILL.md +0 -216
  411. package/prisma/skills/swift-protocol-di-testing/SKILL.md +0 -191
  412. package/prisma/skills/swiftui-patterns/SKILL.md +0 -259
  413. package/prisma/skills/taste/SKILL.md +0 -264
  414. package/prisma/skills/taste/references/genre-taxonomy.md +0 -87
  415. package/prisma/skills/tdd-workflow/SKILL.md +0 -583
  416. package/prisma/skills/team-agent-orchestration/SKILL.md +0 -111
  417. package/prisma/skills/team-builder/SKILL.md +0 -169
  418. package/prisma/skills/terminal-ops/SKILL.md +0 -110
  419. package/prisma/skills/tinystruct-patterns/SKILL.md +0 -279
  420. package/prisma/skills/tinystruct-patterns/references/architecture.md +0 -90
  421. package/prisma/skills/tinystruct-patterns/references/data-handling.md +0 -60
  422. package/prisma/skills/tinystruct-patterns/references/database.md +0 -99
  423. package/prisma/skills/tinystruct-patterns/references/routing.md +0 -64
  424. package/prisma/skills/tinystruct-patterns/references/system-usage.md +0 -97
  425. package/prisma/skills/tinystruct-patterns/references/testing.md +0 -72
  426. package/prisma/skills/token-budget-advisor/SKILL.md +0 -134
  427. package/prisma/skills/ui-demo/SKILL.md +0 -466
  428. package/prisma/skills/ui-to-vue/SKILL.md +0 -135
  429. package/prisma/skills/uncloud/SKILL.md +0 -344
  430. package/prisma/skills/unified-notifications-ops/SKILL.md +0 -188
  431. package/prisma/skills/verification-loop/SKILL.md +0 -127
  432. package/prisma/skills/video-editing/SKILL.md +0 -311
  433. package/prisma/skills/videodb/SKILL.md +0 -375
  434. package/prisma/skills/videodb/reference/api-reference.md +0 -550
  435. package/prisma/skills/videodb/reference/capture-reference.md +0 -407
  436. package/prisma/skills/videodb/reference/capture.md +0 -101
  437. package/prisma/skills/videodb/reference/editor.md +0 -443
  438. package/prisma/skills/videodb/reference/generative.md +0 -331
  439. package/prisma/skills/videodb/reference/rtstream-reference.md +0 -564
  440. package/prisma/skills/videodb/reference/rtstream.md +0 -65
  441. package/prisma/skills/videodb/reference/search.md +0 -230
  442. package/prisma/skills/videodb/reference/streaming.md +0 -406
  443. package/prisma/skills/videodb/reference/use-cases.md +0 -118
  444. package/prisma/skills/videodb/scripts/ws_listener.py +0 -282
  445. package/prisma/skills/visa-doc-translate/README.md +0 -86
  446. package/prisma/skills/visa-doc-translate/SKILL.md +0 -117
  447. package/prisma/skills/vite-patterns/SKILL.md +0 -450
  448. package/prisma/skills/vue-patterns/SKILL.md +0 -471
  449. package/prisma/skills/windows-desktop-e2e/SKILL.md +0 -888
  450. package/prisma/skills/workspace-surface-audit/SKILL.md +0 -126
  451. package/prisma/skills/x-api/SKILL.md +0 -235
@@ -1,436 +0,0 @@
1
- ---
2
- name: flutter-dart-code-review
3
- description: Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture.
4
- metadata:
5
- origin: ECC
6
- ---
7
-
8
- # Flutter/Dart Code Review Best Practices
9
-
10
- Comprehensive, library-agnostic checklist for reviewing Flutter/Dart applications. These principles apply regardless of which state management solution, routing library, or DI framework is used.
11
-
12
- ---
13
-
14
- ## 1. General Project Health
15
-
16
- - [ ] Project follows consistent folder structure (feature-first or layer-first)
17
- - [ ] Proper separation of concerns: UI, business logic, data layers
18
- - [ ] No business logic in widgets; widgets are purely presentational
19
- - [ ] `pubspec.yaml` is clean — no unused dependencies, versions pinned appropriately
20
- - [ ] `analysis_options.yaml` includes a strict lint set with strict analyzer settings enabled
21
- - [ ] No `print()` statements in production code — use `dart:developer` `log()` or a logging package
22
- - [ ] Generated files (`.g.dart`, `.freezed.dart`, `.gr.dart`) are up-to-date or in `.gitignore`
23
- - [ ] Platform-specific code isolated behind abstractions
24
-
25
- ---
26
-
27
- ## 2. Dart Language Pitfalls
28
-
29
- - [ ] **Implicit dynamic**: Missing type annotations leading to `dynamic` — enable `strict-casts`, `strict-inference`, `strict-raw-types`
30
- - [ ] **Null safety misuse**: Excessive `!` (bang operator) instead of proper null checks or Dart 3 pattern matching (`if (value case var v?)`)
31
- - [ ] **Type promotion failures**: Using `this.field` where local variable promotion would work
32
- - [ ] **Catching too broadly**: `catch (e)` without `on` clause; always specify exception types
33
- - [ ] **Catching `Error`**: `Error` subtypes indicate bugs and should not be caught
34
- - [ ] **Unused `async`**: Functions marked `async` that never `await` — unnecessary overhead
35
- - [ ] **`late` overuse**: `late` used where nullable or constructor initialization would be safer; defers errors to runtime
36
- - [ ] **String concatenation in loops**: Use `StringBuffer` instead of `+` for iterative string building
37
- - [ ] **Mutable state in `const` contexts**: Fields in `const` constructor classes should not be mutable
38
- - [ ] **Ignoring `Future` return values**: Use `await` or explicitly call `unawaited()` to signal intent
39
- - [ ] **`var` where `final` works**: Prefer `final` for locals and `const` for compile-time constants
40
- - [ ] **Relative imports**: Use `package:` imports for consistency
41
- - [ ] **Mutable collections exposed**: Public APIs should return unmodifiable views, not raw `List`/`Map`
42
- - [ ] **Missing Dart 3 pattern matching**: Prefer switch expressions and `if-case` over verbose `is` checks and manual casting
43
- - [ ] **Throwaway classes for multiple returns**: Use Dart 3 records `(String, int)` instead of single-use DTOs
44
- - [ ] **`print()` in production code**: Use `dart:developer` `log()` or the project's logging package; `print()` has no log levels and cannot be filtered
45
-
46
- ---
47
-
48
- ## 3. Widget Best Practices
49
-
50
- ### Widget decomposition:
51
- - [ ] No single widget with a `build()` method exceeding ~80-100 lines
52
- - [ ] Widgets split by encapsulation AND by how they change (rebuild boundaries)
53
- - [ ] Private `_build*()` helper methods that return widgets are extracted to separate widget classes (enables element reuse, const propagation, and framework optimizations)
54
- - [ ] Stateless widgets preferred over Stateful where no mutable local state is needed
55
- - [ ] Extracted widgets are in separate files when reusable
56
-
57
- ### Const usage:
58
- - [ ] `const` constructors used wherever possible — prevents unnecessary rebuilds
59
- - [ ] `const` literals for collections that don't change (`const []`, `const {}`)
60
- - [ ] Constructor is declared `const` when all fields are final
61
-
62
- ### Key usage:
63
- - [ ] `ValueKey` used in lists/grids to preserve state across reorders
64
- - [ ] `GlobalKey` used sparingly — only when accessing state across the tree is truly needed
65
- - [ ] `UniqueKey` avoided in `build()` — it forces rebuild every frame
66
- - [ ] `ObjectKey` used when identity is based on a data object rather than a single value
67
-
68
- ### Theming & design system:
69
- - [ ] Colors come from `Theme.of(context).colorScheme` — no hardcoded `Colors.red` or hex values
70
- - [ ] Text styles come from `Theme.of(context).textTheme` — no inline `TextStyle` with raw font sizes
71
- - [ ] Dark mode compatibility verified — no assumptions about light background
72
- - [ ] Spacing and sizing use consistent design tokens or constants, not magic numbers
73
-
74
- ### Build method complexity:
75
- - [ ] No network calls, file I/O, or heavy computation in `build()`
76
- - [ ] No `Future.then()` or `async` work in `build()`
77
- - [ ] No subscription creation (`.listen()`) in `build()`
78
- - [ ] `setState()` localized to smallest possible subtree
79
-
80
- ---
81
-
82
- ## 4. State Management (Library-Agnostic)
83
-
84
- These principles apply to all Flutter state management solutions (BLoC, Riverpod, Provider, GetX, MobX, Signals, ValueNotifier, etc.).
85
-
86
- ### Architecture:
87
- - [ ] Business logic lives outside the widget layer — in a state management component (BLoC, Notifier, Controller, Store, ViewModel, etc.)
88
- - [ ] State managers receive dependencies via injection, not by constructing them internally
89
- - [ ] A service or repository layer abstracts data sources — widgets and state managers should not call APIs or databases directly
90
- - [ ] State managers have a single responsibility — no "god" managers handling unrelated concerns
91
- - [ ] Cross-component dependencies follow the solution's conventions:
92
- - In **Riverpod**: providers depending on providers via `ref.watch` is expected — flag only circular or overly tangled chains
93
- - In **BLoC**: blocs should not directly depend on other blocs — prefer shared repositories or presentation-layer coordination
94
- - In other solutions: follow the documented conventions for inter-component communication
95
-
96
- ### Immutability & value equality (for immutable-state solutions: BLoC, Riverpod, Redux):
97
- - [ ] State objects are immutable — new instances created via `copyWith()` or constructors, never mutated in-place
98
- - [ ] State classes implement `==` and `hashCode` properly (all fields included in comparison)
99
- - [ ] Mechanism is consistent across the project — manual override, `Equatable`, `freezed`, Dart records, or other
100
- - [ ] Collections inside state objects are not exposed as raw mutable `List`/`Map`
101
-
102
- ### Reactivity discipline (for reactive-mutation solutions: MobX, GetX, Signals):
103
- - [ ] State is only mutated through the solution's reactive API (`@action` in MobX, `.value` on signals, `.obs` in GetX) — direct field mutation bypasses change tracking
104
- - [ ] Derived values use the solution's computed mechanism rather than being stored redundantly
105
- - [ ] Reactions and disposers are properly cleaned up (`ReactionDisposer` in MobX, effect cleanup in Signals)
106
-
107
- ### State shape design:
108
- - [ ] Mutually exclusive states use sealed types, union variants, or the solution's built-in async state type (e.g. Riverpod's `AsyncValue`) — not boolean flags (`isLoading`, `isError`, `hasData`)
109
- - [ ] Every async operation models loading, success, and error as distinct states
110
- - [ ] All state variants are handled exhaustively in UI — no silently ignored cases
111
- - [ ] Error states carry error information for display; loading states don't carry stale data
112
- - [ ] Nullable data is not used as a loading indicator — states are explicit
113
-
114
- ```dart
115
- // BAD — boolean flag soup allows impossible states
116
- class UserState {
117
- bool isLoading = false;
118
- bool hasError = false; // isLoading && hasError is representable!
119
- User? user;
120
- }
121
-
122
- // GOOD (immutable approach) — sealed types make impossible states unrepresentable
123
- sealed class UserState {}
124
- class UserInitial extends UserState {}
125
- class UserLoading extends UserState {}
126
- class UserLoaded extends UserState {
127
- final User user;
128
- const UserLoaded(this.user);
129
- }
130
- class UserError extends UserState {
131
- final String message;
132
- const UserError(this.message);
133
- }
134
-
135
- // GOOD (reactive approach) — observable enum + data, mutations via reactivity API
136
- // enum UserStatus { initial, loading, loaded, error }
137
- // Use your solution's observable/signal to wrap status and data separately
138
- ```
139
-
140
- ### Rebuild optimization:
141
- - [ ] State consumer widgets (Builder, Consumer, Observer, Obx, Watch, etc.) scoped as narrow as possible
142
- - [ ] Selectors used to rebuild only when specific fields change — not on every state emission
143
- - [ ] `const` widgets used to stop rebuild propagation through the tree
144
- - [ ] Computed/derived state is calculated reactively, not stored redundantly
145
-
146
- ### Subscriptions & disposal:
147
- - [ ] All manual subscriptions (`.listen()`) are cancelled in `dispose()` / `close()`
148
- - [ ] Stream controllers are closed when no longer needed
149
- - [ ] Timers are cancelled in disposal lifecycle
150
- - [ ] Framework-managed lifecycle is preferred over manual subscription (declarative builders over `.listen()`)
151
- - [ ] `mounted` check before `setState` in async callbacks
152
- - [ ] `BuildContext` not used after `await` without checking `context.mounted` (Flutter 3.7+) — stale context causes crashes
153
- - [ ] No navigation, dialogs, or scaffold messages after async gaps without verifying the widget is still mounted
154
- - [ ] `BuildContext` never stored in singletons, state managers, or static fields
155
-
156
- ### Local vs global state:
157
- - [ ] Ephemeral UI state (checkbox, slider, animation) uses local state (`setState`, `ValueNotifier`)
158
- - [ ] Shared state is lifted only as high as needed — not over-globalized
159
- - [ ] Feature-scoped state is properly disposed when the feature is no longer active
160
-
161
- ---
162
-
163
- ## 5. Performance
164
-
165
- ### Unnecessary rebuilds:
166
- - [ ] `setState()` not called at root widget level — localize state changes
167
- - [ ] `const` widgets used to stop rebuild propagation
168
- - [ ] `RepaintBoundary` used around complex subtrees that repaint independently
169
- - [ ] `AnimatedBuilder` child parameter used for subtrees independent of animation
170
-
171
- ### Expensive operations in build():
172
- - [ ] No sorting, filtering, or mapping large collections in `build()` — compute in state management layer
173
- - [ ] No regex compilation in `build()`
174
- - [ ] `MediaQuery.of(context)` usage is specific (e.g., `MediaQuery.sizeOf(context)`)
175
-
176
- ### Image optimization:
177
- - [ ] Network images use caching (any caching solution appropriate for the project)
178
- - [ ] Appropriate image resolution for target device (no loading 4K images for thumbnails)
179
- - [ ] `Image.asset` with `cacheWidth`/`cacheHeight` to decode at display size
180
- - [ ] Placeholder and error widgets provided for network images
181
-
182
- ### Lazy loading:
183
- - [ ] `ListView.builder` / `GridView.builder` used instead of `ListView(children: [...])` for large or dynamic lists (concrete constructors are fine for small, static lists)
184
- - [ ] Pagination implemented for large data sets
185
- - [ ] Deferred loading (`deferred as`) used for heavy libraries in web builds
186
-
187
- ### Other:
188
- - [ ] `Opacity` widget avoided in animations — use `AnimatedOpacity` or `FadeTransition`
189
- - [ ] Clipping avoided in animations — pre-clip images
190
- - [ ] `operator ==` not overridden on widgets — use `const` constructors instead
191
- - [ ] Intrinsic dimension widgets (`IntrinsicHeight`, `IntrinsicWidth`) used sparingly (extra layout pass)
192
-
193
- ---
194
-
195
- ## 6. Testing
196
-
197
- ### Test types and expectations:
198
- - [ ] **Unit tests**: Cover all business logic (state managers, repositories, utility functions)
199
- - [ ] **Widget tests**: Cover individual widget behavior, interactions, and visual output
200
- - [ ] **Integration tests**: Cover critical user flows end-to-end
201
- - [ ] **Golden tests**: Pixel-perfect comparisons for design-critical UI components
202
-
203
- ### Coverage targets:
204
- - [ ] Aim for 80%+ line coverage on business logic
205
- - [ ] All state transitions have corresponding tests (loading → success, loading → error, retry, etc.)
206
- - [ ] Edge cases tested: empty states, error states, loading states, boundary values
207
-
208
- ### Test isolation:
209
- - [ ] External dependencies (API clients, databases, services) are mocked or faked
210
- - [ ] Each test file tests exactly one class/unit
211
- - [ ] Tests verify behavior, not implementation details
212
- - [ ] Stubs define only the behavior needed for each test (minimal stubbing)
213
- - [ ] No shared mutable state between test cases
214
-
215
- ### Widget test quality:
216
- - [ ] `pumpWidget` and `pump` used correctly for async operations
217
- - [ ] `find.byType`, `find.text`, `find.byKey` used appropriately
218
- - [ ] No flaky tests depending on timing — use `pumpAndSettle` or explicit `pump(Duration)`
219
- - [ ] Tests run in CI and failures block merges
220
-
221
- ---
222
-
223
- ## 7. Accessibility
224
-
225
- ### Semantic widgets:
226
- - [ ] `Semantics` widget used to provide screen reader labels where automatic labels are insufficient
227
- - [ ] `ExcludeSemantics` used for purely decorative elements
228
- - [ ] `MergeSemantics` used to combine related widgets into a single accessible element
229
- - [ ] Images have `semanticLabel` property set
230
-
231
- ### Screen reader support:
232
- - [ ] All interactive elements are focusable and have meaningful descriptions
233
- - [ ] Focus order is logical (follows visual reading order)
234
-
235
- ### Visual accessibility:
236
- - [ ] Contrast ratio >= 4.5:1 for text against background
237
- - [ ] Tappable targets are at least 48x48 pixels
238
- - [ ] Color is not the sole indicator of state (use icons/text alongside)
239
- - [ ] Text scales with system font size settings
240
-
241
- ### Interaction accessibility:
242
- - [ ] No no-op `onPressed` callbacks — every button does something or is disabled
243
- - [ ] Error fields suggest corrections
244
- - [ ] Context does not change unexpectedly while user is inputting data
245
-
246
- ---
247
-
248
- ## 8. Platform-Specific Concerns
249
-
250
- ### iOS/Android differences:
251
- - [ ] Platform-adaptive widgets used where appropriate
252
- - [ ] Back navigation handled correctly (Android back button, iOS swipe-to-go-back)
253
- - [ ] Status bar and safe area handled via `SafeArea` widget
254
- - [ ] Platform-specific permissions declared in `AndroidManifest.xml` and `Info.plist`
255
-
256
- ### Responsive design:
257
- - [ ] `LayoutBuilder` or `MediaQuery` used for responsive layouts
258
- - [ ] Breakpoints defined consistently (phone, tablet, desktop)
259
- - [ ] Text doesn't overflow on small screens — use `Flexible`, `Expanded`, `FittedBox`
260
- - [ ] Landscape orientation tested or explicitly locked
261
- - [ ] Web-specific: mouse/keyboard interactions supported, hover states present
262
-
263
- ---
264
-
265
- ## 9. Security
266
-
267
- ### Secure storage:
268
- - [ ] Sensitive data (tokens, credentials) stored using platform-secure storage (Keychain on iOS, EncryptedSharedPreferences on Android)
269
- - [ ] Never store secrets in plaintext storage
270
- - [ ] Biometric authentication gating considered for sensitive operations
271
-
272
- ### API key handling:
273
- - [ ] API keys NOT hardcoded in Dart source — use `--dart-define`, `.env` files excluded from VCS, or compile-time configuration
274
- - [ ] Secrets not committed to git — check `.gitignore`
275
- - [ ] Backend proxy used for truly secret keys (client should never hold server secrets)
276
-
277
- ### Input validation:
278
- - [ ] All user input validated before sending to API
279
- - [ ] Form validation uses proper validation patterns
280
- - [ ] No raw SQL or string interpolation of user input
281
- - [ ] Deep link URLs validated and sanitized before navigation
282
-
283
- ### Network security:
284
- - [ ] HTTPS enforced for all API calls
285
- - [ ] Certificate pinning considered for high-security apps
286
- - [ ] Authentication tokens refreshed and expired properly
287
- - [ ] No sensitive data logged or printed
288
-
289
- ---
290
-
291
- ## 10. Package/Dependency Review
292
-
293
- ### Evaluating pub.dev packages:
294
- - [ ] Check **pub points score** (aim for 130+/160)
295
- - [ ] Check **likes** and **popularity** as community signals
296
- - [ ] Verify the publisher is **verified** on pub.dev
297
- - [ ] Check last publish date — stale packages (>1 year) are a risk
298
- - [ ] Review open issues and response time from maintainers
299
- - [ ] Check license compatibility with your project
300
- - [ ] Verify platform support covers your targets
301
-
302
- ### Version constraints:
303
- - [ ] Use caret syntax (`^1.2.3`) for dependencies — allows compatible updates
304
- - [ ] Pin exact versions only when absolutely necessary
305
- - [ ] Run `flutter pub outdated` regularly to track stale dependencies
306
- - [ ] No dependency overrides in production `pubspec.yaml` — only for temporary fixes with a comment/issue link
307
- - [ ] Minimize transitive dependency count — each dependency is an attack surface
308
-
309
- ### Monorepo-specific (melos/workspace):
310
- - [ ] Internal packages import only from public API — no `package:other/src/internal.dart` (breaks Dart package encapsulation)
311
- - [ ] Internal package dependencies use workspace resolution, not hardcoded `path: ../../` relative strings
312
- - [ ] All sub-packages share or inherit root `analysis_options.yaml`
313
-
314
- ---
315
-
316
- ## 11. Navigation and Routing
317
-
318
- ### General principles (apply to any routing solution):
319
- - [ ] One routing approach used consistently — no mixing imperative `Navigator.push` with a declarative router
320
- - [ ] Route arguments are typed — no `Map<String, dynamic>` or `Object?` casting
321
- - [ ] Route paths defined as constants, enums, or generated — no magic strings scattered in code
322
- - [ ] Auth guards/redirects centralized — not duplicated across individual screens
323
- - [ ] Deep links configured for both Android and iOS
324
- - [ ] Deep link URLs validated and sanitized before navigation
325
- - [ ] Navigation state is testable — route changes can be verified in tests
326
- - [ ] Back behavior is correct on all platforms
327
-
328
- ---
329
-
330
- ## 12. Error Handling
331
-
332
- ### Framework error handling:
333
- - [ ] `FlutterError.onError` overridden to capture framework errors (build, layout, paint)
334
- - [ ] `PlatformDispatcher.instance.onError` set for async errors not caught by Flutter
335
- - [ ] `ErrorWidget.builder` customized for release mode (user-friendly instead of red screen)
336
- - [ ] Global error capture wrapper around `runApp` (e.g., `runZonedGuarded`, Sentry/Crashlytics wrapper)
337
-
338
- ### Error reporting:
339
- - [ ] Error reporting service integrated (Firebase Crashlytics, Sentry, or equivalent)
340
- - [ ] Non-fatal errors reported with stack traces
341
- - [ ] State management error observer wired to error reporting (e.g., BlocObserver, ProviderObserver, or equivalent for your solution)
342
- - [ ] User-identifiable info (user ID) attached to error reports for debugging
343
-
344
- ### Graceful degradation:
345
- - [ ] API errors result in user-friendly error UI, not crashes
346
- - [ ] Retry mechanisms for transient network failures
347
- - [ ] Offline state handled gracefully
348
- - [ ] Error states in state management carry error info for display
349
- - [ ] Raw exceptions (network, parsing) are mapped to user-friendly, localized messages before reaching the UI — never show raw exception strings to users
350
-
351
- ---
352
-
353
- ## 13. Internationalization (l10n)
354
-
355
- ### Setup:
356
- - [ ] Localization solution configured (Flutter's built-in ARB/l10n, easy_localization, or equivalent)
357
- - [ ] Supported locales declared in app configuration
358
-
359
- ### Content:
360
- - [ ] All user-visible strings use the localization system — no hardcoded strings in widgets
361
- - [ ] Template file includes descriptions/context for translators
362
- - [ ] ICU message syntax used for plurals, genders, selects
363
- - [ ] Placeholders defined with types
364
- - [ ] No missing keys across locales
365
-
366
- ### Code review:
367
- - [ ] Localization accessor used consistently throughout the project
368
- - [ ] Date, time, number, and currency formatting is locale-aware
369
- - [ ] Text directionality (RTL) supported if targeting Arabic, Hebrew, etc.
370
- - [ ] No string concatenation for localized text — use parameterized messages
371
-
372
- ---
373
-
374
- ## 14. Dependency Injection
375
-
376
- ### Principles (apply to any DI approach):
377
- - [ ] Classes depend on abstractions (interfaces), not concrete implementations at layer boundaries
378
- - [ ] Dependencies provided externally via constructor, DI framework, or provider graph — not created internally
379
- - [ ] Registration distinguishes lifetime: singleton vs factory vs lazy singleton
380
- - [ ] Environment-specific bindings (dev/staging/prod) use configuration, not runtime `if` checks
381
- - [ ] No circular dependencies in the DI graph
382
- - [ ] Service locator calls (if used) are not scattered throughout business logic
383
-
384
- ---
385
-
386
- ## 15. Static Analysis
387
-
388
- ### Configuration:
389
- - [ ] `analysis_options.yaml` present with strict settings enabled
390
- - [ ] Strict analyzer settings: `strict-casts: true`, `strict-inference: true`, `strict-raw-types: true`
391
- - [ ] A comprehensive lint rule set is included (very_good_analysis, flutter_lints, or custom strict rules)
392
- - [ ] All sub-packages in monorepos inherit or share the root analysis options
393
-
394
- ### Enforcement:
395
- - [ ] No unresolved analyzer warnings in committed code
396
- - [ ] Lint suppressions (`// ignore:`) are justified with comments explaining why
397
- - [ ] `flutter analyze` runs in CI and failures block merges
398
-
399
- ### Key rules to verify regardless of lint package:
400
- - [ ] `prefer_const_constructors` — performance in widget trees
401
- - [ ] `avoid_print` — use proper logging
402
- - [ ] `unawaited_futures` — prevent fire-and-forget async bugs
403
- - [ ] `prefer_final_locals` — immutability at variable level
404
- - [ ] `always_declare_return_types` — explicit contracts
405
- - [ ] `avoid_catches_without_on_clauses` — specific error handling
406
- - [ ] `always_use_package_imports` — consistent import style
407
-
408
- ---
409
-
410
- ## State Management Quick Reference
411
-
412
- The table below maps universal principles to their implementation in popular solutions. Use this to adapt review rules to whichever solution the project uses.
413
-
414
- | Principle | BLoC/Cubit | Riverpod | Provider | GetX | MobX | Signals | Built-in |
415
- |-----------|-----------|----------|----------|------|------|---------|----------|
416
- | State container | `Bloc`/`Cubit` | `Notifier`/`AsyncNotifier` | `ChangeNotifier` | `GetxController` | `Store` | `signal()` | `StatefulWidget` |
417
- | UI consumer | `BlocBuilder` | `ConsumerWidget` | `Consumer` | `Obx`/`GetBuilder` | `Observer` | `Watch` | `setState` |
418
- | Selector | `BlocSelector`/`buildWhen` | `ref.watch(p.select(...))` | `Selector` | N/A | computed | `computed()` | N/A |
419
- | Side effects | `BlocListener` | `ref.listen` | `Consumer` callback | `ever()`/`once()` | `reaction` | `effect()` | callbacks |
420
- | Disposal | auto via `BlocProvider` | `.autoDispose` | auto via `Provider` | `onClose()` | `ReactionDisposer` | manual | `dispose()` |
421
- | Testing | `blocTest()` | `ProviderContainer` | `ChangeNotifier` directly | `Get.put` in test | store directly | signal directly | widget test |
422
-
423
- ---
424
-
425
- ## Sources
426
-
427
- - [Effective Dart: Style](https://dart.dev/effective-dart/style)
428
- - [Effective Dart: Usage](https://dart.dev/effective-dart/usage)
429
- - [Effective Dart: Design](https://dart.dev/effective-dart/design)
430
- - [Flutter Performance Best Practices](https://docs.flutter.dev/perf/best-practices)
431
- - [Flutter Testing Overview](https://docs.flutter.dev/testing/overview)
432
- - [Flutter Accessibility](https://docs.flutter.dev/ui/accessibility-and-internationalization/accessibility)
433
- - [Flutter Internationalization](https://docs.flutter.dev/ui/accessibility-and-internationalization/internationalization)
434
- - [Flutter Navigation and Routing](https://docs.flutter.dev/ui/navigation)
435
- - [Flutter Error Handling](https://docs.flutter.dev/testing/errors)
436
- - [Flutter State Management Options](https://docs.flutter.dev/data-and-backend/state-mgmt/options)
@@ -1,243 +0,0 @@
1
- ---
2
- name: foundation-models-on-device
3
- description: Apple FoundationModels framework for on-device LLM — text generation, guided generation with @Generable, tool calling, and snapshot streaming in iOS 26+.
4
- ---
5
-
6
- # FoundationModels: On-Device LLM (iOS 26)
7
-
8
- Patterns for integrating Apple's on-device language model into apps using the FoundationModels framework. Covers text generation, structured output with `@Generable`, custom tool calling, and snapshot streaming — all running on-device for privacy and offline support.
9
-
10
- ## When to Activate
11
-
12
- - Building AI-powered features using Apple Intelligence on-device
13
- - Generating or summarizing text without cloud dependency
14
- - Extracting structured data from natural language input
15
- - Implementing custom tool calling for domain-specific AI actions
16
- - Streaming structured responses for real-time UI updates
17
- - Need privacy-preserving AI (no data leaves the device)
18
-
19
- ## Core Pattern — Availability Check
20
-
21
- Always check model availability before creating a session:
22
-
23
- ```swift
24
- struct GenerativeView: View {
25
- private var model = SystemLanguageModel.default
26
-
27
- var body: some View {
28
- switch model.availability {
29
- case .available:
30
- ContentView()
31
- case .unavailable(.deviceNotEligible):
32
- Text("Device not eligible for Apple Intelligence")
33
- case .unavailable(.appleIntelligenceNotEnabled):
34
- Text("Please enable Apple Intelligence in Settings")
35
- case .unavailable(.modelNotReady):
36
- Text("Model is downloading or not ready")
37
- case .unavailable(let other):
38
- Text("Model unavailable: \(other)")
39
- }
40
- }
41
- }
42
- ```
43
-
44
- ## Core Pattern — Basic Session
45
-
46
- ```swift
47
- // Single-turn: create a new session each time
48
- let session = LanguageModelSession()
49
- let response = try await session.respond(to: "What's a good month to visit Paris?")
50
- print(response.content)
51
-
52
- // Multi-turn: reuse session for conversation context
53
- let session = LanguageModelSession(instructions: """
54
- You are a cooking assistant.
55
- Provide recipe suggestions based on ingredients.
56
- Keep suggestions brief and practical.
57
- """)
58
-
59
- let first = try await session.respond(to: "I have chicken and rice")
60
- let followUp = try await session.respond(to: "What about a vegetarian option?")
61
- ```
62
-
63
- Key points for instructions:
64
- - Define the model's role ("You are a mentor")
65
- - Specify what to do ("Help extract calendar events")
66
- - Set style preferences ("Respond as briefly as possible")
67
- - Add safety measures ("Respond with 'I can't help with that' for dangerous requests")
68
-
69
- ## Core Pattern — Guided Generation with @Generable
70
-
71
- Generate structured Swift types instead of raw strings:
72
-
73
- ### 1. Define a Generable Type
74
-
75
- ```swift
76
- @Generable(description: "Basic profile information about a cat")
77
- struct CatProfile {
78
- var name: String
79
-
80
- @Guide(description: "The age of the cat", .range(0...20))
81
- var age: Int
82
-
83
- @Guide(description: "A one sentence profile about the cat's personality")
84
- var profile: String
85
- }
86
- ```
87
-
88
- ### 2. Request Structured Output
89
-
90
- ```swift
91
- let response = try await session.respond(
92
- to: "Generate a cute rescue cat",
93
- generating: CatProfile.self
94
- )
95
-
96
- // Access structured fields directly
97
- print("Name: \(response.content.name)")
98
- print("Age: \(response.content.age)")
99
- print("Profile: \(response.content.profile)")
100
- ```
101
-
102
- ### Supported @Guide Constraints
103
-
104
- - `.range(0...20)` — numeric range
105
- - `.count(3)` — array element count
106
- - `description:` — semantic guidance for generation
107
-
108
- ## Core Pattern — Tool Calling
109
-
110
- Let the model invoke custom code for domain-specific tasks:
111
-
112
- ### 1. Define a Tool
113
-
114
- ```swift
115
- struct RecipeSearchTool: Tool {
116
- let name = "recipe_search"
117
- let description = "Search for recipes matching a given term and return a list of results."
118
-
119
- @Generable
120
- struct Arguments {
121
- var searchTerm: String
122
- var numberOfResults: Int
123
- }
124
-
125
- func call(arguments: Arguments) async throws -> ToolOutput {
126
- let recipes = await searchRecipes(
127
- term: arguments.searchTerm,
128
- limit: arguments.numberOfResults
129
- )
130
- return .string(recipes.map { "- \($0.name): \($0.description)" }.joined(separator: "\n"))
131
- }
132
- }
133
- ```
134
-
135
- ### 2. Create Session with Tools
136
-
137
- ```swift
138
- let session = LanguageModelSession(tools: [RecipeSearchTool()])
139
- let response = try await session.respond(to: "Find me some pasta recipes")
140
- ```
141
-
142
- ### 3. Handle Tool Errors
143
-
144
- ```swift
145
- do {
146
- let answer = try await session.respond(to: "Find a recipe for tomato soup.")
147
- } catch let error as LanguageModelSession.ToolCallError {
148
- print(error.tool.name)
149
- if case .databaseIsEmpty = error.underlyingError as? RecipeSearchToolError {
150
- // Handle specific tool error
151
- }
152
- }
153
- ```
154
-
155
- ## Core Pattern — Snapshot Streaming
156
-
157
- Stream structured responses for real-time UI with `PartiallyGenerated` types:
158
-
159
- ```swift
160
- @Generable
161
- struct TripIdeas {
162
- @Guide(description: "Ideas for upcoming trips")
163
- var ideas: [String]
164
- }
165
-
166
- let stream = session.streamResponse(
167
- to: "What are some exciting trip ideas?",
168
- generating: TripIdeas.self
169
- )
170
-
171
- for try await partial in stream {
172
- // partial: TripIdeas.PartiallyGenerated (all properties Optional)
173
- print(partial)
174
- }
175
- ```
176
-
177
- ### SwiftUI Integration
178
-
179
- ```swift
180
- @State private var partialResult: TripIdeas.PartiallyGenerated?
181
- @State private var errorMessage: String?
182
-
183
- var body: some View {
184
- List {
185
- ForEach(partialResult?.ideas ?? [], id: \.self) { idea in
186
- Text(idea)
187
- }
188
- }
189
- .overlay {
190
- if let errorMessage { Text(errorMessage).foregroundStyle(.red) }
191
- }
192
- .task {
193
- do {
194
- let stream = session.streamResponse(to: prompt, generating: TripIdeas.self)
195
- for try await partial in stream {
196
- partialResult = partial
197
- }
198
- } catch {
199
- errorMessage = error.localizedDescription
200
- }
201
- }
202
- }
203
- ```
204
-
205
- ## Key Design Decisions
206
-
207
- | Decision | Rationale |
208
- |----------|-----------|
209
- | On-device execution | Privacy — no data leaves the device; works offline |
210
- | 4,096 token limit | On-device model constraint; chunk large data across sessions |
211
- | Snapshot streaming (not deltas) | Structured output friendly; each snapshot is a complete partial state |
212
- | `@Generable` macro | Compile-time safety for structured generation; auto-generates `PartiallyGenerated` type |
213
- | Single request per session | `isResponding` prevents concurrent requests; create multiple sessions if needed |
214
- | `response.content` (not `.output`) | Correct API — always access results via `.content` property |
215
-
216
- ## Best Practices
217
-
218
- - **Always check `model.availability`** before creating a session — handle all unavailability cases
219
- - **Use `instructions`** to guide model behavior — they take priority over prompts
220
- - **Check `isResponding`** before sending a new request — sessions handle one request at a time
221
- - **Access `response.content`** for results — not `.output`
222
- - **Break large inputs into chunks** — 4,096 token limit applies to instructions + prompt + output combined
223
- - **Use `@Generable`** for structured output — stronger guarantees than parsing raw strings
224
- - **Use `GenerationOptions(temperature:)`** to tune creativity (higher = more creative)
225
- - **Monitor with Instruments** — use Xcode Instruments to profile request performance
226
-
227
- ## Anti-Patterns to Avoid
228
-
229
- - Creating sessions without checking `model.availability` first
230
- - Sending inputs exceeding the 4,096 token context window
231
- - Attempting concurrent requests on a single session
232
- - Using `.output` instead of `.content` to access response data
233
- - Parsing raw string responses when `@Generable` structured output would work
234
- - Building complex multi-step logic in a single prompt — break into multiple focused prompts
235
- - Assuming the model is always available — device eligibility and settings vary
236
-
237
- ## When to Use
238
-
239
- - On-device text generation for privacy-sensitive apps
240
- - Structured data extraction from user input (forms, natural language commands)
241
- - AI-assisted features that must work offline
242
- - Streaming UI that progressively shows generated content
243
- - Domain-specific AI actions via tool calling (search, compute, lookup)