quiver-cli 0.1.0

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 (281) hide show
  1. package/README.md +188 -0
  2. package/bin/quiver-cli.mjs +2 -0
  3. package/dist/cli.js +3074 -0
  4. package/package.json +55 -0
  5. package/template/.agents/AGENTS.md +25 -0
  6. package/template/.agents/commands/cp.md +116 -0
  7. package/template/.agents/commands/next-setup.md +1064 -0
  8. package/template/.agents/commands/tf-readme.md +38 -0
  9. package/template/.agents/config.json +60 -0
  10. package/template/.agents/skills/agent-browser/SKILL.md +55 -0
  11. package/template/.agents/skills/apps/skybridge/SKILL.md +46 -0
  12. package/template/.agents/skills/apps/skybridge/references/architecture.md +175 -0
  13. package/template/.agents/skills/apps/skybridge/references/copy-template.md +24 -0
  14. package/template/.agents/skills/apps/skybridge/references/csp.md +33 -0
  15. package/template/.agents/skills/apps/skybridge/references/deploy.md +33 -0
  16. package/template/.agents/skills/apps/skybridge/references/discover.md +84 -0
  17. package/template/.agents/skills/apps/skybridge/references/download-file.md +77 -0
  18. package/template/.agents/skills/apps/skybridge/references/fetch-and-render-data.md +151 -0
  19. package/template/.agents/skills/apps/skybridge/references/oauth.md +115 -0
  20. package/template/.agents/skills/apps/skybridge/references/open-external-links.md +71 -0
  21. package/template/.agents/skills/apps/skybridge/references/prompt-llm.md +20 -0
  22. package/template/.agents/skills/apps/skybridge/references/publish.md +19 -0
  23. package/template/.agents/skills/apps/skybridge/references/run-locally.md +51 -0
  24. package/template/.agents/skills/apps/skybridge/references/state-and-context.md +151 -0
  25. package/template/.agents/skills/apps/skybridge/references/ui-guidelines.md +205 -0
  26. package/template/.agents/skills/code/cleanup/SKILL.md +26 -0
  27. package/template/.agents/skills/code/vercel-react-best-practices/AGENTS.md +3810 -0
  28. package/template/.agents/skills/code/vercel-react-best-practices/README.md +123 -0
  29. package/template/.agents/skills/code/vercel-react-best-practices/SKILL.md +149 -0
  30. package/template/.agents/skills/code/vercel-react-best-practices/metadata.json +15 -0
  31. package/template/.agents/skills/code/vercel-react-best-practices/rules/_sections.md +46 -0
  32. package/template/.agents/skills/code/vercel-react-best-practices/rules/_template.md +28 -0
  33. package/template/.agents/skills/code/vercel-react-best-practices/rules/advanced-effect-event-deps.md +56 -0
  34. package/template/.agents/skills/code/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  35. package/template/.agents/skills/code/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
  36. package/template/.agents/skills/code/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
  37. package/template/.agents/skills/code/vercel-react-best-practices/rules/async-api-routes.md +38 -0
  38. package/template/.agents/skills/code/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +37 -0
  39. package/template/.agents/skills/code/vercel-react-best-practices/rules/async-defer-await.md +82 -0
  40. package/template/.agents/skills/code/vercel-react-best-practices/rules/async-dependencies.md +51 -0
  41. package/template/.agents/skills/code/vercel-react-best-practices/rules/async-parallel.md +28 -0
  42. package/template/.agents/skills/code/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
  43. package/template/.agents/skills/code/vercel-react-best-practices/rules/bundle-analyzable-paths.md +63 -0
  44. package/template/.agents/skills/code/vercel-react-best-practices/rules/bundle-barrel-imports.md +60 -0
  45. package/template/.agents/skills/code/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
  46. package/template/.agents/skills/code/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
  47. package/template/.agents/skills/code/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  48. package/template/.agents/skills/code/vercel-react-best-practices/rules/bundle-preload.md +50 -0
  49. package/template/.agents/skills/code/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
  50. package/template/.agents/skills/code/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
  51. package/template/.agents/skills/code/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
  52. package/template/.agents/skills/code/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
  53. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
  54. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
  55. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
  56. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
  57. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
  58. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-early-exit.md +50 -0
  59. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-flatmap-filter.md +60 -0
  60. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
  61. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-index-maps.md +37 -0
  62. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
  63. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
  64. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-request-idle-callback.md +105 -0
  65. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
  66. package/template/.agents/skills/code/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
  67. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-activity.md +26 -0
  68. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  69. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
  70. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
  71. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  72. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  73. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
  74. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-resource-hints.md +85 -0
  75. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-script-defer-async.md +68 -0
  76. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
  77. package/template/.agents/skills/code/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
  78. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
  79. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
  80. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
  81. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
  82. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
  83. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  84. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
  85. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-memo.md +44 -0
  86. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
  87. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-no-inline-components.md +82 -0
  88. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
  89. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +64 -0
  90. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
  91. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-use-deferred-value.md +59 -0
  92. package/template/.agents/skills/code/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
  93. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
  94. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
  95. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
  96. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-cache-react.md +76 -0
  97. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
  98. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-hoist-static-io.md +149 -0
  99. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-no-shared-module-state.md +50 -0
  100. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
  101. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +34 -0
  102. package/template/.agents/skills/code/vercel-react-best-practices/rules/server-serialization.md +38 -0
  103. package/template/.agents/skills/data/prisma-cli/SKILL.md +247 -0
  104. package/template/.agents/skills/data/prisma-cli/references/db-execute.md +78 -0
  105. package/template/.agents/skills/data/prisma-cli/references/db-pull.md +185 -0
  106. package/template/.agents/skills/data/prisma-cli/references/db-push.md +148 -0
  107. package/template/.agents/skills/data/prisma-cli/references/db-seed.md +188 -0
  108. package/template/.agents/skills/data/prisma-cli/references/debug.md +46 -0
  109. package/template/.agents/skills/data/prisma-cli/references/dev.md +157 -0
  110. package/template/.agents/skills/data/prisma-cli/references/format.md +48 -0
  111. package/template/.agents/skills/data/prisma-cli/references/generate.md +173 -0
  112. package/template/.agents/skills/data/prisma-cli/references/init.md +136 -0
  113. package/template/.agents/skills/data/prisma-cli/references/mcp.md +38 -0
  114. package/template/.agents/skills/data/prisma-cli/references/migrate-deploy.md +127 -0
  115. package/template/.agents/skills/data/prisma-cli/references/migrate-dev.md +145 -0
  116. package/template/.agents/skills/data/prisma-cli/references/migrate-diff.md +89 -0
  117. package/template/.agents/skills/data/prisma-cli/references/migrate-reset.md +78 -0
  118. package/template/.agents/skills/data/prisma-cli/references/migrate-resolve.md +57 -0
  119. package/template/.agents/skills/data/prisma-cli/references/migrate-status.md +65 -0
  120. package/template/.agents/skills/data/prisma-cli/references/studio.md +137 -0
  121. package/template/.agents/skills/data/prisma-cli/references/validate.md +53 -0
  122. package/template/.agents/skills/data/prisma-client-api/SKILL.md +216 -0
  123. package/template/.agents/skills/data/prisma-client-api/references/client-methods.md +223 -0
  124. package/template/.agents/skills/data/prisma-client-api/references/constructor.md +208 -0
  125. package/template/.agents/skills/data/prisma-client-api/references/filters.md +256 -0
  126. package/template/.agents/skills/data/prisma-client-api/references/model-queries.md +281 -0
  127. package/template/.agents/skills/data/prisma-client-api/references/query-options.md +276 -0
  128. package/template/.agents/skills/data/prisma-client-api/references/raw-queries.md +194 -0
  129. package/template/.agents/skills/data/prisma-client-api/references/relations.md +308 -0
  130. package/template/.agents/skills/data/prisma-client-api/references/transactions.md +184 -0
  131. package/template/.agents/skills/design/impeccable/SKILL.md +176 -0
  132. package/template/.agents/skills/design/impeccable/reference/adapt.md +311 -0
  133. package/template/.agents/skills/design/impeccable/reference/animate.md +201 -0
  134. package/template/.agents/skills/design/impeccable/reference/audit.md +133 -0
  135. package/template/.agents/skills/design/impeccable/reference/bolder.md +113 -0
  136. package/template/.agents/skills/design/impeccable/reference/brand.md +108 -0
  137. package/template/.agents/skills/design/impeccable/reference/clarify.md +288 -0
  138. package/template/.agents/skills/design/impeccable/reference/codex.md +105 -0
  139. package/template/.agents/skills/design/impeccable/reference/colorize.md +257 -0
  140. package/template/.agents/skills/design/impeccable/reference/craft.md +123 -0
  141. package/template/.agents/skills/design/impeccable/reference/critique.md +767 -0
  142. package/template/.agents/skills/design/impeccable/reference/delight.md +302 -0
  143. package/template/.agents/skills/design/impeccable/reference/distill.md +111 -0
  144. package/template/.agents/skills/design/impeccable/reference/document.md +429 -0
  145. package/template/.agents/skills/design/impeccable/reference/extract.md +69 -0
  146. package/template/.agents/skills/design/impeccable/reference/harden.md +347 -0
  147. package/template/.agents/skills/design/impeccable/reference/init.md +172 -0
  148. package/template/.agents/skills/design/impeccable/reference/interaction-design.md +189 -0
  149. package/template/.agents/skills/design/impeccable/reference/layout.md +161 -0
  150. package/template/.agents/skills/design/impeccable/reference/live.md +718 -0
  151. package/template/.agents/skills/design/impeccable/reference/onboard.md +234 -0
  152. package/template/.agents/skills/design/impeccable/reference/optimize.md +258 -0
  153. package/template/.agents/skills/design/impeccable/reference/overdrive.md +130 -0
  154. package/template/.agents/skills/design/impeccable/reference/polish.md +241 -0
  155. package/template/.agents/skills/design/impeccable/reference/product.md +60 -0
  156. package/template/.agents/skills/design/impeccable/reference/quieter.md +99 -0
  157. package/template/.agents/skills/design/impeccable/reference/shape.md +165 -0
  158. package/template/.agents/skills/design/impeccable/reference/typeset.md +279 -0
  159. package/template/.agents/skills/design/impeccable/scripts/cleanup-deprecated.mjs +284 -0
  160. package/template/.agents/skills/design/impeccable/scripts/command-metadata.json +94 -0
  161. package/template/.agents/skills/design/impeccable/scripts/context-signals.mjs +225 -0
  162. package/template/.agents/skills/design/impeccable/scripts/context.mjs +270 -0
  163. package/template/.agents/skills/design/impeccable/scripts/critique-storage.mjs +242 -0
  164. package/template/.agents/skills/design/impeccable/scripts/design-parser.mjs +835 -0
  165. package/template/.agents/skills/design/impeccable/scripts/detect-csp.mjs +198 -0
  166. package/template/.agents/skills/design/impeccable/scripts/detect.mjs +21 -0
  167. package/template/.agents/skills/design/impeccable/scripts/detector/browser/injected/index.mjs +1733 -0
  168. package/template/.agents/skills/design/impeccable/scripts/detector/cli/main.mjs +244 -0
  169. package/template/.agents/skills/design/impeccable/scripts/detector/detect-antipatterns-browser.js +4551 -0
  170. package/template/.agents/skills/design/impeccable/scripts/detector/detect-antipatterns.mjs +43 -0
  171. package/template/.agents/skills/design/impeccable/scripts/detector/engines/browser/detect-url.mjs +252 -0
  172. package/template/.agents/skills/design/impeccable/scripts/detector/engines/regex/detect-text.mjs +535 -0
  173. package/template/.agents/skills/design/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +986 -0
  174. package/template/.agents/skills/design/impeccable/scripts/detector/engines/static-html/detect-html.mjs +208 -0
  175. package/template/.agents/skills/design/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +189 -0
  176. package/template/.agents/skills/design/impeccable/scripts/detector/findings.mjs +12 -0
  177. package/template/.agents/skills/design/impeccable/scripts/detector/node/file-system.mjs +198 -0
  178. package/template/.agents/skills/design/impeccable/scripts/detector/profile/profiler.mjs +166 -0
  179. package/template/.agents/skills/design/impeccable/scripts/detector/registry/antipatterns.mjs +419 -0
  180. package/template/.agents/skills/design/impeccable/scripts/detector/rules/checks.mjs +2316 -0
  181. package/template/.agents/skills/design/impeccable/scripts/detector/shared/color.mjs +124 -0
  182. package/template/.agents/skills/design/impeccable/scripts/detector/shared/constants.mjs +101 -0
  183. package/template/.agents/skills/design/impeccable/scripts/detector/shared/page.mjs +7 -0
  184. package/template/.agents/skills/design/impeccable/scripts/impeccable-paths.mjs +126 -0
  185. package/template/.agents/skills/design/impeccable/scripts/is-generated.mjs +69 -0
  186. package/template/.agents/skills/design/impeccable/scripts/live-accept.mjs +812 -0
  187. package/template/.agents/skills/design/impeccable/scripts/live-browser-session.js +123 -0
  188. package/template/.agents/skills/design/impeccable/scripts/live-browser.js +10316 -0
  189. package/template/.agents/skills/design/impeccable/scripts/live-commit-manual-edits.mjs +1241 -0
  190. package/template/.agents/skills/design/impeccable/scripts/live-complete.mjs +75 -0
  191. package/template/.agents/skills/design/impeccable/scripts/live-completion.mjs +19 -0
  192. package/template/.agents/skills/design/impeccable/scripts/live-copy-edit-agent.mjs +683 -0
  193. package/template/.agents/skills/design/impeccable/scripts/live-discard-manual-edits.mjs +51 -0
  194. package/template/.agents/skills/design/impeccable/scripts/live-event-validation.mjs +136 -0
  195. package/template/.agents/skills/design/impeccable/scripts/live-inject.mjs +557 -0
  196. package/template/.agents/skills/design/impeccable/scripts/live-insert-ui.mjs +458 -0
  197. package/template/.agents/skills/design/impeccable/scripts/live-insert.mjs +272 -0
  198. package/template/.agents/skills/design/impeccable/scripts/live-manual-edit-evidence.mjs +363 -0
  199. package/template/.agents/skills/design/impeccable/scripts/live-manual-edits-buffer.mjs +152 -0
  200. package/template/.agents/skills/design/impeccable/scripts/live-poll.mjs +379 -0
  201. package/template/.agents/skills/design/impeccable/scripts/live-resume.mjs +94 -0
  202. package/template/.agents/skills/design/impeccable/scripts/live-server.mjs +2322 -0
  203. package/template/.agents/skills/design/impeccable/scripts/live-session-store.mjs +289 -0
  204. package/template/.agents/skills/design/impeccable/scripts/live-status.mjs +61 -0
  205. package/template/.agents/skills/design/impeccable/scripts/live-svelte-component.mjs +826 -0
  206. package/template/.agents/skills/design/impeccable/scripts/live-sveltekit-adapter.mjs +274 -0
  207. package/template/.agents/skills/design/impeccable/scripts/live-ui-core.mjs +179 -0
  208. package/template/.agents/skills/design/impeccable/scripts/live-wrap.mjs +894 -0
  209. package/template/.agents/skills/design/impeccable/scripts/live.mjs +246 -0
  210. package/template/.agents/skills/design/impeccable/scripts/modern-screenshot.umd.js +14 -0
  211. package/template/.agents/skills/design/impeccable/scripts/palette.mjs +633 -0
  212. package/template/.agents/skills/design/impeccable/scripts/pin.mjs +214 -0
  213. package/template/.agents/skills/design/shadcn/SKILL.md +242 -0
  214. package/template/.agents/skills/design/shadcn/agents/openai.yml +5 -0
  215. package/template/.agents/skills/design/shadcn/assets/shadcn-small.png +0 -0
  216. package/template/.agents/skills/design/shadcn/assets/shadcn.png +0 -0
  217. package/template/.agents/skills/design/shadcn/cli.md +257 -0
  218. package/template/.agents/skills/design/shadcn/customization.md +202 -0
  219. package/template/.agents/skills/design/shadcn/evals/evals.json +47 -0
  220. package/template/.agents/skills/design/shadcn/mcp.md +94 -0
  221. package/template/.agents/skills/design/shadcn/rules/base-vs-radix.md +306 -0
  222. package/template/.agents/skills/design/shadcn/rules/composition.md +195 -0
  223. package/template/.agents/skills/design/shadcn/rules/forms.md +192 -0
  224. package/template/.agents/skills/design/shadcn/rules/icons.md +101 -0
  225. package/template/.agents/skills/design/shadcn/rules/styling.md +162 -0
  226. package/template/.agents/skills/find-skills/SKILL.md +142 -0
  227. package/template/.agents/skills/integrations/langfuse/SKILL.md +142 -0
  228. package/template/.agents/skills/integrations/langfuse/references/cli.md +52 -0
  229. package/template/.agents/skills/integrations/langfuse/references/error-analysis.md +100 -0
  230. package/template/.agents/skills/integrations/langfuse/references/instrumentation.md +134 -0
  231. package/template/.agents/skills/integrations/langfuse/references/judge-calibration.md +288 -0
  232. package/template/.agents/skills/integrations/langfuse/references/prompt-migration.md +234 -0
  233. package/template/.agents/skills/integrations/langfuse/references/sdk-upgrade.md +175 -0
  234. package/template/.agents/skills/integrations/langfuse/references/skill-feedback.md +52 -0
  235. package/template/.agents/skills/integrations/langfuse/references/user-feedback.md +88 -0
  236. package/template/.agents/skills/integrations/posthog/SKILL.md +102 -0
  237. package/template/.agents/skills/integrations/posthog/references/error-tracking-alerts.md +63 -0
  238. package/template/.agents/skills/integrations/posthog/references/error-tracking-assigning-issues.md +77 -0
  239. package/template/.agents/skills/integrations/posthog/references/error-tracking-fingerprints.md +57 -0
  240. package/template/.agents/skills/integrations/posthog/references/error-tracking-monitoring.md +140 -0
  241. package/template/.agents/skills/integrations/posthog/references/error-tracking-nextjs.md +490 -0
  242. package/template/.agents/skills/integrations/posthog/references/error-tracking-source-maps.md +45 -0
  243. package/template/.agents/skills/integrations/posthog/references/feature-flags-best-practices.md +139 -0
  244. package/template/.agents/skills/integrations/posthog/references/feature-flags-react.md +302 -0
  245. package/template/.agents/skills/integrations/posthog/references/identify-users.md +202 -0
  246. package/template/.agents/skills/integrations/posthog/references/integration-example.md +706 -0
  247. package/template/.agents/skills/integrations/posthog/references/integration-nextjs.md +385 -0
  248. package/template/.agents/skills/integrations/posthog/references/integration-step-1-begin.md +43 -0
  249. package/template/.agents/skills/integrations/posthog/references/integration-step-2-edit.md +37 -0
  250. package/template/.agents/skills/integrations/posthog/references/integration-step-3-revise.md +22 -0
  251. package/template/.agents/skills/integrations/posthog/references/integration-step-4-conclude.md +38 -0
  252. package/template/.agents/skills/integrations/posthog/references/llm-analytics-anthropic.md +200 -0
  253. package/template/.agents/skills/integrations/posthog/references/llm-analytics-basics.md +62 -0
  254. package/template/.agents/skills/integrations/posthog/references/llm-analytics-costs.md +197 -0
  255. package/template/.agents/skills/integrations/posthog/references/llm-analytics-manual-capture.md +397 -0
  256. package/template/.agents/skills/integrations/posthog/references/llm-analytics-traces.md +98 -0
  257. package/template/.agents/skills/integrations/posthog/references/llm-analytics-vercel-ai.md +120 -0
  258. package/template/.agents/skills/repo/repo-ci/SKILL.md +265 -0
  259. package/template/.agents/skills/repo/repo-init-next-js/SKILL.md +129 -0
  260. package/template/.agents/skills/repo/repo-init-next-js/references/file-contents.md +800 -0
  261. package/template/.agents/skills/repo/repo-init-next-js/scripts/setup.sh +47 -0
  262. package/template/.agents/skills/repo/repo-init-node/SKILL.md +196 -0
  263. package/template/.agents/skills/skill-creator/LICENSE.txt +202 -0
  264. package/template/.agents/skills/skill-creator/SKILL.md +485 -0
  265. package/template/.agents/skills/skill-creator/agents/analyzer.md +274 -0
  266. package/template/.agents/skills/skill-creator/agents/comparator.md +202 -0
  267. package/template/.agents/skills/skill-creator/agents/grader.md +223 -0
  268. package/template/.agents/skills/skill-creator/assets/eval_review.html +146 -0
  269. package/template/.agents/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  270. package/template/.agents/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  271. package/template/.agents/skills/skill-creator/references/schemas.md +430 -0
  272. package/template/.agents/skills/skill-creator/scripts/__init__.py +0 -0
  273. package/template/.agents/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  274. package/template/.agents/skills/skill-creator/scripts/generate_report.py +326 -0
  275. package/template/.agents/skills/skill-creator/scripts/improve_description.py +247 -0
  276. package/template/.agents/skills/skill-creator/scripts/package_skill.py +136 -0
  277. package/template/.agents/skills/skill-creator/scripts/quick_validate.py +103 -0
  278. package/template/.agents/skills/skill-creator/scripts/run_eval.py +310 -0
  279. package/template/.agents/skills/skill-creator/scripts/run_loop.py +328 -0
  280. package/template/.agents/skills/skill-creator/scripts/utils.py +47 -0
  281. package/template/.agents/upstreams.json +80 -0
@@ -0,0 +1,767 @@
1
+ ### Purpose
2
+
3
+ Resolve one stable target, run two independent assessments, synthesize a design critique, persist a snapshot, and ask the user what to improve next. The chat response is the primary deliverable; the snapshot is an archive/backlog for future commands.
4
+
5
+ ### Hard Invariants
6
+
7
+ - Assessment A (design review) and Assessment B (detector/browser evidence) are both required.
8
+ - Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.
9
+ - If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.
10
+ - A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.
11
+ - Viewable targets require browser inspection when available.
12
+ - Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.
13
+ - Do not claim a user-visible overlay exists unless script injection succeeded and the detector ran in the page.
14
+
15
+ ### Setup
16
+
17
+ 1. **Resolve the target** to a concrete file path or URL. Prefer a source path over a dev-server URL when both identify the same surface; ports drift, paths do not.
18
+ - "the homepage" -> `site/pages/index.astro` or `index.html`
19
+ - "the settings modal" -> the primary component file
20
+ - "this page" -> the current URL or source file
21
+ 2. **Compute the slug**:
22
+ ```bash
23
+ node .agents/skills/design/impeccable/scripts/critique-storage.mjs slug "<resolved-path-or-url>"
24
+ ```
25
+ Keep it. If the command exits non-zero, skip persistence and trend for this run, but continue the critique.
26
+ 3. **Read `.impeccable/critique/ignore.md`** if it exists. Drop matching findings silently; it is the only prior-run input critique consumes.
27
+
28
+ ### Assessment Orchestration
29
+
30
+ Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.
31
+
32
+ If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.
33
+
34
+ ### Assessment A: Design Review
35
+
36
+ Read relevant source files and visually inspect the live page when browser automation is available. Think like a design director.
37
+
38
+ Evaluate:
39
+ - **AI slop**: Would someone believe "AI made this" immediately? Check all DON'T guidance from the parent Impeccable skill.
40
+ - **Holistic design**: hierarchy, IA, emotional fit, discoverability, composition, typography, color, accessibility, states, copy, and edge cases.
41
+ - **Cognitive load**: consult the [Cognitive Load Assessment](#cognitive-load-assessment) section below; report checklist failures and decision points with >4 visible options.
42
+ - **Emotional journey**: peak-end rule, emotional valleys, reassurance at high-stakes moments.
43
+ - **Nielsen heuristics**: consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below; score all 10 heuristics 0-4.
44
+
45
+ Return: AI slop verdict, heuristic scores, cognitive load, emotional journey, 2-3 strengths, 3-5 priority issues, persona red flags, minor observations, and provocative questions.
46
+
47
+ ### Assessment B: Detector + Browser Evidence
48
+
49
+ Run the bundled detector and browser visualization evidence. Assessment B is mandatory and must remain isolated from Assessment A until both are complete.
50
+
51
+ CLI scan:
52
+ ```bash
53
+ node .agents/skills/design/impeccable/scripts/detect.mjs --json [target]
54
+ ```
55
+
56
+ - Pass markup files/directories as `[target]`; do not pass CSS-only files.
57
+ - For URLs, skip CLI scan and use browser visualization.
58
+ - For very large trees (500+ scannable files), narrow scope or ask.
59
+ - Exit code 0 = clean; 2 = findings.
60
+ - If the detector entrypoint is missing or fails to load, report deterministic scan unavailable and continue with browser/manual review.
61
+
62
+ Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:
63
+
64
+ 1. Create a fresh tab and navigate.
65
+ 2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.
66
+ 3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.
67
+ 4. If mutation is available, start `node .agents/skills/design/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.
68
+ 5. For multi-view targets, inject on 3-5 representative pages.
69
+
70
+ Return: CLI findings JSON/counts, browser console findings if applicable, false positives, and skipped/failed browser steps with concrete reasons.
71
+
72
+ After Assessment B returns usable CLI findings, reuse them. Do not rerun `detect.mjs` in the parent unless Assessment B failed, was truncated, or omitted count, rule names, or file locations.
73
+
74
+ ### Generate Combined Critique Report
75
+
76
+ Synthesize both assessments into a single report. Do NOT simply concatenate. Weave the findings together, noting where the LLM review and detector agree, where the detector caught issues the LLM missed, and where detector findings are false positives.
77
+
78
+ The chat response is the primary user-facing deliverable. Present the full structured critique below in chat; do not replace it with a summary and a link. The persisted snapshot is only an archive/backlog for later commands.
79
+
80
+ Structure your feedback as a design director would:
81
+
82
+ #### Design Health Score
83
+ > *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*
84
+
85
+ Present the Nielsen's 10 heuristics scores as a table:
86
+
87
+ | # | Heuristic | Score | Key Issue |
88
+ |---|-----------|-------|-----------|
89
+ | 1 | Visibility of System Status | ? | [specific finding or "n/a" if solid] |
90
+ | 2 | Match System / Real World | ? | |
91
+ | 3 | User Control and Freedom | ? | |
92
+ | 4 | Consistency and Standards | ? | |
93
+ | 5 | Error Prevention | ? | |
94
+ | 6 | Recognition Rather Than Recall | ? | |
95
+ | 7 | Flexibility and Efficiency | ? | |
96
+ | 8 | Aesthetic and Minimalist Design | ? | |
97
+ | 9 | Error Recovery | ? | |
98
+ | 10 | Help and Documentation | ? | |
99
+ | **Total** | | **??/40** | **[Rating band]** |
100
+
101
+ Be honest with scores. A 4 means genuinely excellent. Most real interfaces score 20-32.
102
+
103
+ #### Anti-Patterns Verdict
104
+
105
+ **Start here.** Does this look AI-generated?
106
+
107
+ **LLM assessment**: Your own evaluation of AI slop tells. Cover overall aesthetic feel, layout sameness, generic composition, missed opportunities for personality.
108
+
109
+ **Deterministic scan**: Summarize what the automated detector found, with counts and file locations. Note any additional issues the detector caught that you missed, and flag any false positives.
110
+
111
+ **Visual overlays** (if injection succeeded): Tell the user that overlays are now visible in the **[Human]** tab in their browser, highlighting the detected issues. Summarize what the console output reported. If browser visualization was attempted but injection failed, say that no reliable user-visible overlay is available and report the fallback signal instead.
112
+
113
+ #### Overall Impression
114
+ A brief gut reaction: what works, what doesn't, and the single biggest opportunity.
115
+
116
+ #### What's Working
117
+ Highlight 2-3 things done well. Be specific about why they work.
118
+
119
+ #### Priority Issues
120
+ The 3-5 most impactful design problems, ordered by importance.
121
+
122
+ For each issue, tag with **P0-P3 severity** (see [Issue Severity below](#issue-severity-p0p3) for definitions):
123
+ - **[P?] What**: Name the problem clearly
124
+ - **Why it matters**: How this hurts users or undermines goals
125
+ - **Fix**: What to do about it (be concrete)
126
+ - **Suggested command**: Which command could address this (from: /impeccable adapt, /impeccable animate, /impeccable audit, /impeccable bolder, /impeccable clarify, /impeccable colorize, /impeccable critique, /impeccable delight, /impeccable distill, /impeccable document, /impeccable harden, /impeccable layout, /impeccable onboard, /impeccable optimize, /impeccable overdrive, /impeccable polish, /impeccable quieter, /impeccable shape, /impeccable typeset)
127
+
128
+ #### Persona Red Flags
129
+ > *Consult the [Personas reference](#persona-based-design-testing) below.*
130
+
131
+ Auto-select 2-3 personas most relevant to this interface type (use the selection table in the reference). If `AGENTS.md` contains a `## Design Context` section from `impeccable init`, also generate 1-2 project-specific personas from the audience/brand info.
132
+
133
+ For each selected persona, walk through the primary user action and list specific red flags found:
134
+
135
+ **Alex (Power User)**: No keyboard shortcuts detected. Form requires 8 clicks for primary action. Forced modal onboarding. High abandonment risk.
136
+
137
+ **Jordan (First-Timer)**: Icon-only nav in sidebar. Technical jargon in error messages ("404 Not Found"). No visible help. Will abandon at step 2.
138
+
139
+ Be specific. Name the exact elements and interactions that fail each persona. Don't write generic persona descriptions; write what broke for them.
140
+
141
+ #### Minor Observations
142
+ Quick notes on smaller issues worth addressing.
143
+
144
+ #### Questions to Consider
145
+ Provocative questions that might unlock better solutions:
146
+ - "What if the primary action were more prominent?"
147
+ - "Does this need to feel this complex?"
148
+ - "What would a confident version of this look like?"
149
+
150
+ **Remember**:
151
+ - Be direct. Vague feedback wastes everyone's time.
152
+ - Be specific. "The submit button," not "some elements."
153
+ - Say what's wrong AND why it matters to users.
154
+ - Give concrete suggestions. Cut "consider exploring..." entirely.
155
+ - Prioritize ruthlessly. If everything is important, nothing is.
156
+ - Don't soften criticism. Developers need honest feedback to ship great design.
157
+
158
+ ### Persist the Snapshot
159
+
160
+ Once the report above is finalized, write it to `.impeccable/critique/` so the user can refer back, and so `/impeccable polish` can pick up the priority issues without a copy-paste.
161
+
162
+ Skip this step if the Setup slug was null (vague or root-level target).
163
+
164
+ 1. **Write the body to a temp file** so you can pipe it to the helper. Use the full critique report (heuristic table, anti-patterns verdict, priority issues, persona red flags, minor observations, and questions), but stop before the "Ask the User" / "Recommended Actions" sections that come later.
165
+
166
+ 2. **Pass the structured metadata** through `IMPECCABLE_CRITIQUE_META` (JSON), then run the write command:
167
+ ```bash
168
+ IMPECCABLE_CRITIQUE_META='{"target":"<user phrasing>","total_score":<n>,"p0_count":<n>,"p1_count":<n>}' \
169
+ node .agents/skills/design/impeccable/scripts/critique-storage.mjs write <slug> <body-file>
170
+ ```
171
+ The helper prints the absolute path it wrote.
172
+
173
+ 3. **Delete the temp body file** after the write attempt completes, whether the write succeeded or failed. If deletion fails, mention `temp-file cleanup failed: <reason>` briefly in the final output, but do not block the critique.
174
+
175
+ 4. **Read the trend** for context:
176
+ ```bash
177
+ node .agents/skills/design/impeccable/scripts/critique-storage.mjs trend <slug> 5
178
+ ```
179
+ This returns a JSON array of the last 5 frontmatter entries (including the one you just wrote).
180
+
181
+ 5. **Append a single line to the user-visible output**, after the report and before the questions:
182
+
183
+ > **Trend for `<slug>` (last 5 runs): 24 → 28 → 32 → 29 → 32**
184
+ > Wrote `.impeccable/critique/<filename>`.
185
+
186
+ If this is the first run for the slug, the trend is just one score; say so: "First run for this target, no trend yet."
187
+
188
+ This is fire-and-forget. Do not show the user the helper's JSON output; only the human-readable trend line and the written path. Failures here should not block the rest of the flow; print the error and move on.
189
+
190
+ ### Ask the User
191
+
192
+ **After presenting findings**, use targeted questions based on what was actually found. STOP and call the `question` tool to clarify. These answers will shape the action plan.
193
+
194
+ Ask questions along these lines (adapt to the specific findings; do NOT ask generic questions):
195
+
196
+ 1. **Priority direction**: Based on the issues found, ask which category matters most to the user right now. For example: "I found problems with visual hierarchy, color usage, and information overload. Which area should we tackle first?" Offer the top 2-3 issue categories as options.
197
+
198
+ 2. **Design intent**: If the critique found a tonal mismatch, ask whether it was intentional. For example: "The interface feels clinical and corporate. Is that the intended tone, or should it feel warmer/bolder/more playful?" Offer 2-3 tonal directions as options based on what would fix the issues found.
199
+
200
+ 3. **Scope**: Ask how much the user wants to take on. For example: "I found N issues. Want to address everything, or focus on the top 3?" Offer scope options like "Top 3 only", "All issues", "Critical issues only".
201
+
202
+ 4. **Constraints** (optional; only ask if relevant): If the findings touch many areas, ask if anything is off-limits. For example: "Should any sections stay as-is?" This prevents the plan from touching things the user considers done.
203
+
204
+ **Rules for questions**:
205
+ - Every question must reference specific findings from the report. Never ask generic "who is your audience?" questions.
206
+ - Keep it to 2-4 questions maximum. Respect the user's time.
207
+ - Offer concrete options, not open-ended prompts.
208
+ - If findings are straightforward (e.g., only 1-2 clear issues), skip questions and go directly to Recommended Actions.
209
+
210
+ ### Recommended Actions
211
+
212
+ **After receiving the user's answers**, present a prioritized action summary reflecting the user's priorities and scope from Ask the User.
213
+
214
+ #### Action Summary
215
+
216
+ List recommended commands in priority order, based on the user's answers:
217
+
218
+ 1. **`/command-name`**: Brief description of what to fix (specific context from critique findings)
219
+ 2. **`/command-name`**: Brief description (specific context)
220
+ ...
221
+
222
+ **Rules for recommendations**:
223
+ - Only recommend commands from: /impeccable adapt, /impeccable animate, /impeccable audit, /impeccable bolder, /impeccable clarify, /impeccable colorize, /impeccable critique, /impeccable delight, /impeccable distill, /impeccable document, /impeccable harden, /impeccable layout, /impeccable onboard, /impeccable optimize, /impeccable overdrive, /impeccable polish, /impeccable quieter, /impeccable shape, /impeccable typeset
224
+ - Order by the user's stated priorities first, then by impact
225
+ - Each item's description should carry enough context that the command knows what to focus on
226
+ - Map each Priority Issue to the appropriate command
227
+ - Skip commands that would address zero issues
228
+ - If the user chose a limited scope, only include items within that scope
229
+ - If the user marked areas as off-limits, exclude commands that would touch those areas
230
+ - End with `/impeccable polish` as the final step if any fixes were recommended
231
+
232
+ After presenting the summary, tell the user:
233
+
234
+ > You can ask me to run these one at a time, all at once, or in any order you prefer.
235
+ >
236
+ > Re-run `/impeccable critique` after fixes to see your score improve.
237
+
238
+ ---
239
+
240
+ ## Reference Material
241
+
242
+ The sections below were previously separate reference files (`cognitive-load.md`, `heuristics-scoring.md`, `personas.md`). They live inline now so the critique flow has all its deep context in one place.
243
+
244
+ ### Cognitive Load Assessment
245
+
246
+ Cognitive load is the total mental effort required to use an interface. Overloaded users make mistakes, get frustrated, and leave. This reference helps identify and fix cognitive overload.
247
+
248
+ ---
249
+
250
+ #### Three Types of Cognitive Load
251
+
252
+ ##### Intrinsic Load: The Task Itself
253
+ Complexity inherent to what the user is trying to do. You can't eliminate this, but you can structure it.
254
+
255
+ **Manage it by**:
256
+ - Breaking complex tasks into discrete steps
257
+ - Providing scaffolding (templates, defaults, examples)
258
+ - Progressive disclosure: show what's needed now, hide the rest
259
+ - Grouping related decisions together
260
+
261
+ ##### Extraneous Load: Bad Design
262
+ Mental effort caused by poor design choices. **Eliminate this ruthlessly.** It's pure waste.
263
+
264
+ **Common sources**:
265
+ - Confusing navigation that requires mental mapping
266
+ - Unclear labels that force users to guess meaning
267
+ - Visual clutter competing for attention
268
+ - Inconsistent patterns that prevent learning
269
+ - Unnecessary steps between user intent and result
270
+
271
+ ##### Germane Load: Learning Effort
272
+ Mental effort spent building understanding. This is *good* cognitive load; it leads to mastery.
273
+
274
+ **Support it by**:
275
+ - Progressive disclosure that reveals complexity gradually
276
+ - Consistent patterns that reward learning
277
+ - Feedback that confirms correct understanding
278
+ - Onboarding that teaches through action, not walls of text
279
+
280
+ ---
281
+
282
+ #### Cognitive Load Checklist
283
+
284
+ Evaluate the interface against these 8 items:
285
+
286
+ - [ ] **Single focus**: Can the user complete their primary task without distraction from competing elements?
287
+ - [ ] **Chunking**: Is information presented in digestible groups (≤4 items per group)?
288
+ - [ ] **Grouping**: Are related items visually grouped together (proximity, borders, shared background)?
289
+ - [ ] **Visual hierarchy**: Is it immediately clear what's most important on the screen?
290
+ - [ ] **One thing at a time**: Can the user focus on a single decision before moving to the next?
291
+ - [ ] **Minimal choices**: Are decisions simplified (≤4 visible options at any decision point)?
292
+ - [ ] **Working memory**: Does the user need to remember information from a previous screen to act on the current one?
293
+ - [ ] **Progressive disclosure**: Is complexity revealed only when the user needs it?
294
+
295
+ **Scoring**: Count the failed items. 0–1 failures = low cognitive load (good). 2–3 = moderate (address soon). 4+ = high cognitive load (critical fix needed).
296
+
297
+ ---
298
+
299
+ #### The Working Memory Rule
300
+
301
+ **Humans can hold ≤4 items in working memory at once** (Miller's Law revised by Cowan, 2001).
302
+
303
+ At any decision point, count the number of distinct options, actions, or pieces of information a user must simultaneously consider:
304
+ - **≤4 items**: Within working memory limits, manageable
305
+ - **5–7 items**: Pushing the boundary; consider grouping or progressive disclosure
306
+ - **8+ items**: Overloaded; users will skip, misclick, or abandon
307
+
308
+ **Practical applications**:
309
+ - Navigation menus: ≤5 top-level items (group the rest under clear categories)
310
+ - Form sections: ≤4 fields visible per group before a visual break
311
+ - Action buttons: 1 primary, 1–2 secondary, group the rest in a menu
312
+ - Dashboard widgets: ≤4 key metrics visible without scrolling
313
+ - Pricing tiers: ≤3 options (more causes analysis paralysis)
314
+
315
+ ---
316
+
317
+ #### Common Cognitive Load Violations
318
+
319
+ ##### 1. The Wall of Options
320
+ **Problem**: Presenting 10+ choices at once with no hierarchy.
321
+ **Fix**: Group into categories, highlight recommended, use progressive disclosure.
322
+
323
+ ##### 2. The Memory Bridge
324
+ **Problem**: User must remember info from step 1 to complete step 3.
325
+ **Fix**: Keep relevant context visible, or repeat it where it's needed.
326
+
327
+ ##### 3. The Hidden Navigation
328
+ **Problem**: User must build a mental map of where things are.
329
+ **Fix**: Always show current location (breadcrumbs, active states, progress indicators).
330
+
331
+ ##### 4. The Jargon Barrier
332
+ **Problem**: Technical or domain language forces translation effort.
333
+ **Fix**: Use plain language. If domain terms are unavoidable, define them inline.
334
+
335
+ ##### 5. The Visual Noise Floor
336
+ **Problem**: Every element has the same visual weight; nothing stands out.
337
+ **Fix**: Establish clear hierarchy: one primary element, 2–3 secondary, everything else muted.
338
+
339
+ ##### 6. The Inconsistent Pattern
340
+ **Problem**: Similar actions work differently in different places.
341
+ **Fix**: Standardize interaction patterns. Same type of action = same type of UI.
342
+
343
+ ##### 7. The Multi-Task Demand
344
+ **Problem**: Interface requires processing multiple simultaneous inputs (reading + deciding + navigating).
345
+ **Fix**: Sequence the steps. Let the user do one thing at a time.
346
+
347
+ ##### 8. The Context Switch
348
+ **Problem**: User must jump between screens/tabs/modals to gather info for a single decision.
349
+ **Fix**: Co-locate the information needed for each decision. Reduce back-and-forth.
350
+
351
+ ---
352
+
353
+ ### Heuristics Scoring Guide
354
+
355
+ Score each of Nielsen's 10 Usability Heuristics on a 0–4 scale. Be honest: a 4 means genuinely excellent, not "good enough."
356
+
357
+ #### Nielsen's 10 Heuristics
358
+
359
+ ##### 1. Visibility of System Status
360
+
361
+ Keep users informed about what's happening through timely, appropriate feedback.
362
+
363
+ **Check for**:
364
+ - Loading indicators during async operations
365
+ - Confirmation of user actions (save, submit, delete)
366
+ - Progress indicators for multi-step processes
367
+ - Current location in navigation (breadcrumbs, active states)
368
+ - Form validation feedback (inline, not just on submit)
369
+
370
+ **Scoring**:
371
+ | Score | Criteria |
372
+ |-------|----------|
373
+ | 0 | No feedback; user is guessing what happened |
374
+ | 1 | Rare feedback; most actions produce no visible response |
375
+ | 2 | Partial; some states communicated, major gaps remain |
376
+ | 3 | Good; most operations give clear feedback, minor gaps |
377
+ | 4 | Excellent; every action confirms, progress is always visible |
378
+
379
+ ##### 2. Match Between System and Real World
380
+
381
+ Speak the user's language. Follow real-world conventions. Information appears in natural, logical order.
382
+
383
+ **Check for**:
384
+ - Familiar terminology (no unexplained jargon)
385
+ - Logical information order matching user expectations
386
+ - Recognizable icons and metaphors
387
+ - Domain-appropriate language for the target audience
388
+ - Natural reading flow (left-to-right, top-to-bottom priority)
389
+
390
+ **Scoring**:
391
+ | Score | Criteria |
392
+ |-------|----------|
393
+ | 0 | Pure tech jargon, alien to users |
394
+ | 1 | Mostly confusing; requires domain expertise to navigate |
395
+ | 2 | Mixed; some plain language, some jargon leaks through |
396
+ | 3 | Mostly natural; occasional term needs context |
397
+ | 4 | Speaks the user's language fluently throughout |
398
+
399
+ ##### 3. User Control and Freedom
400
+
401
+ Users need a clear "emergency exit" from unwanted states without extended dialogue.
402
+
403
+ **Check for**:
404
+ - Undo/redo functionality
405
+ - Cancel buttons on forms and modals
406
+ - Clear navigation back to safety (home, previous)
407
+ - Easy way to clear filters, search, selections
408
+ - Escape from long or multi-step processes
409
+
410
+ **Scoring**:
411
+ | Score | Criteria |
412
+ |-------|----------|
413
+ | 0 | Users get trapped; no way out without refreshing |
414
+ | 1 | Difficult exits; must find obscure paths to escape |
415
+ | 2 | Some exits; main flows have escape, edge cases don't |
416
+ | 3 | Good control; users can exit and undo most actions |
417
+ | 4 | Full control; undo, cancel, back, and escape everywhere |
418
+
419
+ ##### 4. Consistency and Standards
420
+
421
+ Users shouldn't wonder whether different words, situations, or actions mean the same thing.
422
+
423
+ **Check for**:
424
+ - Consistent terminology throughout the interface
425
+ - Same actions produce same results everywhere
426
+ - Platform conventions followed (standard UI patterns)
427
+ - Visual consistency (colors, typography, spacing, components)
428
+ - Consistent interaction patterns (same gesture = same behavior)
429
+
430
+ **Scoring**:
431
+ | Score | Criteria |
432
+ |-------|----------|
433
+ | 0 | Inconsistent everywhere; feels like different products stitched together |
434
+ | 1 | Many inconsistencies; similar things look/behave differently |
435
+ | 2 | Partially consistent; main flows match, details diverge |
436
+ | 3 | Mostly consistent; occasional deviation, nothing confusing |
437
+ | 4 | Fully consistent; cohesive system, predictable behavior |
438
+
439
+ ##### 5. Error Prevention
440
+
441
+ Better than good error messages is a design that prevents problems in the first place.
442
+
443
+ **Check for**:
444
+ - Confirmation before destructive actions (delete, overwrite)
445
+ - Constraints preventing invalid input (date pickers, dropdowns)
446
+ - Smart defaults that reduce errors
447
+ - Clear labels that prevent misunderstanding
448
+ - Autosave and draft recovery
449
+
450
+ **Scoring**:
451
+ | Score | Criteria |
452
+ |-------|----------|
453
+ | 0 | Errors easy to make; no guardrails anywhere |
454
+ | 1 | Few safeguards; some inputs validated, most aren't |
455
+ | 2 | Partial prevention; common errors caught, edge cases slip |
456
+ | 3 | Good prevention; most error paths blocked proactively |
457
+ | 4 | Excellent; errors nearly impossible through smart constraints |
458
+
459
+ ##### 6. Recognition Rather Than Recall
460
+
461
+ Minimize memory load. Make objects, actions, and options visible or easily retrievable.
462
+
463
+ **Check for**:
464
+ - Visible options (not buried in hidden menus)
465
+ - Contextual help when needed (tooltips, inline hints)
466
+ - Recent items and history
467
+ - Autocomplete and suggestions
468
+ - Labels on icons (not icon-only navigation)
469
+
470
+ **Scoring**:
471
+ | Score | Criteria |
472
+ |-------|----------|
473
+ | 0 | Heavy memorization; users must remember paths and commands |
474
+ | 1 | Mostly recall; many hidden features, few visible cues |
475
+ | 2 | Some aids; main actions visible, secondary features hidden |
476
+ | 3 | Good recognition; most things discoverable, few memory demands |
477
+ | 4 | Everything discoverable; users never need to memorize |
478
+
479
+ ##### 7. Flexibility and Efficiency of Use
480
+
481
+ Accelerators, invisible to novices, speed up expert interaction.
482
+
483
+ **Check for**:
484
+ - Keyboard shortcuts for common actions
485
+ - Customizable interface elements
486
+ - Recent items and favorites
487
+ - Bulk/batch actions
488
+ - Power user features that don't complicate the basics
489
+
490
+ **Scoring**:
491
+ | Score | Criteria |
492
+ |-------|----------|
493
+ | 0 | One rigid path; no shortcuts or alternatives |
494
+ | 1 | Limited flexibility; few alternatives to the main path |
495
+ | 2 | Some shortcuts; basic keyboard support, limited bulk actions |
496
+ | 3 | Good accelerators; keyboard nav, some customization |
497
+ | 4 | Highly flexible; multiple paths, power features, customizable |
498
+
499
+ ##### 8. Aesthetic and Minimalist Design
500
+
501
+ Interfaces should not contain irrelevant or rarely needed information. Every element should serve a purpose.
502
+
503
+ **Check for**:
504
+ - Only necessary information visible at each step
505
+ - Clear visual hierarchy directing attention
506
+ - Purposeful use of color and emphasis
507
+ - No decorative clutter competing for attention
508
+ - Focused, uncluttered layouts
509
+
510
+ **Scoring**:
511
+ | Score | Criteria |
512
+ |-------|----------|
513
+ | 0 | Overwhelming; everything competes for attention equally |
514
+ | 1 | Cluttered; too much noise, hard to find what matters |
515
+ | 2 | Some clutter; main content clear, periphery noisy |
516
+ | 3 | Mostly clean; focused design, minor visual noise |
517
+ | 4 | Perfectly minimal; every element earns its pixel |
518
+
519
+ ##### 9. Help Users Recognize, Diagnose, and Recover from Errors
520
+
521
+ Error messages should use plain language, precisely indicate the problem, and constructively suggest a solution.
522
+
523
+ **Check for**:
524
+ - Plain language error messages (no error codes for users)
525
+ - Specific problem identification ("Email is missing @" not "Invalid input")
526
+ - Actionable recovery suggestions
527
+ - Errors displayed near the source of the problem
528
+ - Non-blocking error handling (don't wipe the form)
529
+
530
+ **Scoring**:
531
+ | Score | Criteria |
532
+ |-------|----------|
533
+ | 0 | Cryptic errors; codes, jargon, or no message at all |
534
+ | 1 | Vague errors; "Something went wrong" with no guidance |
535
+ | 2 | Clear but unhelpful; names the problem but not the fix |
536
+ | 3 | Clear with suggestions; identifies problem and offers next steps |
537
+ | 4 | Perfect recovery; pinpoints issue, suggests fix, preserves user work |
538
+
539
+ ##### 10. Help and Documentation
540
+
541
+ Even if the system is usable without docs, help should be easy to find, task-focused, and concise.
542
+
543
+ **Check for**:
544
+ - Searchable help or documentation
545
+ - Contextual help (tooltips, inline hints, guided tours)
546
+ - Task-focused organization (not feature-organized)
547
+ - Concise, scannable content
548
+ - Easy access without leaving current context
549
+
550
+ **Scoring**:
551
+ | Score | Criteria |
552
+ |-------|----------|
553
+ | 0 | No help available anywhere |
554
+ | 1 | Help exists but hard to find or irrelevant |
555
+ | 2 | Basic help; FAQ or docs exist, not contextual |
556
+ | 3 | Good documentation; searchable, mostly task-focused |
557
+ | 4 | Excellent contextual help; right info at the right moment |
558
+
559
+ ---
560
+
561
+ #### Score Summary
562
+
563
+ **Total possible**: 40 points (10 heuristics × 4 max)
564
+
565
+ | Score Range | Rating | What It Means |
566
+ |-------------|--------|---------------|
567
+ | 36–40 | Excellent | Minor polish only; ship it |
568
+ | 28–35 | Good | Address weak areas, solid foundation |
569
+ | 20–27 | Acceptable | Significant improvements needed before users are happy |
570
+ | 12–19 | Poor | Major UX overhaul required; core experience broken |
571
+ | 0–11 | Critical | Redesign needed; unusable in current state |
572
+
573
+ ---
574
+
575
+ #### Issue Severity (P0–P3)
576
+
577
+ Tag each individual issue found during scoring with a priority level:
578
+
579
+ | Priority | Name | Description | Action |
580
+ |----------|------|-------------|--------|
581
+ | **P0** | Blocking | Prevents task completion entirely | Fix immediately; this is a showstopper |
582
+ | **P1** | Major | Causes significant difficulty or confusion | Fix before release |
583
+ | **P2** | Minor | Annoyance, but workaround exists | Fix in next pass |
584
+ | **P3** | Polish | Nice-to-fix, no real user impact | Fix if time permits |
585
+
586
+ **Tip**: If you're unsure between two levels, ask: "Would a user contact support about this?" If yes, it's at least P1.
587
+
588
+ ---
589
+
590
+ ### Persona-Based Design Testing
591
+
592
+ Test the interface through the eyes of 5 distinct user archetypes. Each persona exposes different failure modes that a single "design director" perspective would miss.
593
+
594
+ **How to use**: Select 2–3 personas most relevant to the interface being critiqued. Walk through the primary user action as each persona. Report specific red flags, not generic concerns.
595
+
596
+ ---
597
+
598
+ #### 1. Impatient Power User: "Alex"
599
+
600
+ **Profile**: Expert with similar products. Expects efficiency, hates hand-holding. Will find shortcuts or leave.
601
+
602
+ **Behaviors**:
603
+ - Skips all onboarding and instructions
604
+ - Looks for keyboard shortcuts immediately
605
+ - Tries to bulk-select, batch-edit, and automate
606
+ - Gets frustrated by required steps that feel unnecessary
607
+ - Abandons if anything feels slow or patronizing
608
+
609
+ **Test Questions**:
610
+ - Can Alex complete the core task in under 60 seconds?
611
+ - Are there keyboard shortcuts for common actions?
612
+ - Can onboarding be skipped entirely?
613
+ - Do modals have keyboard dismiss (Esc)?
614
+ - Is there a "power user" path (shortcuts, bulk actions)?
615
+
616
+ **Red Flags** (report these specifically):
617
+ - Forced tutorials or unskippable onboarding
618
+ - No keyboard navigation for primary actions
619
+ - Slow animations that can't be skipped
620
+ - One-item-at-a-time workflows where batch would be natural
621
+ - Redundant confirmation steps for low-risk actions
622
+
623
+ ---
624
+
625
+ #### 2. Confused First-Timer: "Jordan"
626
+
627
+ **Profile**: Never used this type of product. Needs guidance at every step. Will abandon rather than figure it out.
628
+
629
+ **Behaviors**:
630
+ - Reads all instructions carefully
631
+ - Hesitates before clicking anything unfamiliar
632
+ - Looks for help or support constantly
633
+ - Misunderstands jargon and abbreviations
634
+ - Takes the most literal interpretation of any label
635
+
636
+ **Test Questions**:
637
+ - Is the first action obviously clear within 5 seconds?
638
+ - Are all icons labeled with text?
639
+ - Is there contextual help at decision points?
640
+ - Does terminology assume prior knowledge?
641
+ - Is there a clear "back" or "undo" at every step?
642
+
643
+ **Red Flags** (report these specifically):
644
+ - Icon-only navigation with no labels
645
+ - Technical jargon without explanation
646
+ - No visible help option or guidance
647
+ - Ambiguous next steps after completing an action
648
+ - No confirmation that an action succeeded
649
+
650
+ ---
651
+
652
+ #### 3. Accessibility-Dependent User: "Sam"
653
+
654
+ **Profile**: Uses screen reader (VoiceOver/NVDA), keyboard-only navigation. May have low vision, motor impairment, or cognitive differences.
655
+
656
+ **Behaviors**:
657
+ - Tabs through the interface linearly
658
+ - Relies on ARIA labels and heading structure
659
+ - Cannot see hover states or visual-only indicators
660
+ - Needs adequate color contrast (4.5:1 minimum)
661
+ - May use browser zoom up to 200%
662
+
663
+ **Test Questions**:
664
+ - Can the entire primary flow be completed keyboard-only?
665
+ - Are all interactive elements focusable with visible focus indicators?
666
+ - Do images have meaningful alt text?
667
+ - Is color contrast WCAG AA compliant (4.5:1 for text)?
668
+ - Does the screen reader announce state changes (loading, success, errors)?
669
+
670
+ **Red Flags** (report these specifically):
671
+ - Click-only interactions with no keyboard alternative
672
+ - Missing or invisible focus indicators
673
+ - Meaning conveyed by color alone (red = error, green = success)
674
+ - Unlabeled form fields or buttons
675
+ - Time-limited actions without extension option
676
+ - Custom components that break screen reader flow
677
+
678
+ ---
679
+
680
+ #### 4. Deliberate Stress Tester: "Riley"
681
+
682
+ **Profile**: Methodical user who pushes interfaces beyond the happy path. Tests edge cases, tries unexpected inputs, and probes for gaps in the experience.
683
+
684
+ **Behaviors**:
685
+ - Tests edge cases intentionally (empty states, long strings, special characters)
686
+ - Submits forms with unexpected data (emoji, RTL text, very long values)
687
+ - Tries to break workflows by navigating backwards, refreshing mid-flow, or opening in multiple tabs
688
+ - Looks for inconsistencies between what the UI promises and what actually happens
689
+ - Documents problems methodically
690
+
691
+ **Test Questions**:
692
+ - What happens at the edges (0 items, 1000 items, very long text)?
693
+ - Do error states recover gracefully or leave the UI in a broken state?
694
+ - What happens on refresh mid-workflow? Is state preserved?
695
+ - Are there features that appear to work but produce broken results?
696
+ - How does the UI handle unexpected input (emoji, special chars, paste from Excel)?
697
+
698
+ **Red Flags** (report these specifically):
699
+ - Features that appear to work but silently fail or produce wrong results
700
+ - Error handling that exposes technical details or leaves UI in a broken state
701
+ - Empty states that show nothing useful ("No results" with no guidance)
702
+ - Workflows that lose user data on refresh or navigation
703
+ - Inconsistent behavior between similar interactions in different parts of the UI
704
+
705
+ ---
706
+
707
+ #### 5. Distracted Mobile User: "Casey"
708
+
709
+ **Profile**: Using phone one-handed on the go. Frequently interrupted. Possibly on a slow connection.
710
+
711
+ **Behaviors**:
712
+ - Uses thumb only; prefers bottom-of-screen actions
713
+ - Gets interrupted mid-flow and returns later
714
+ - Switches between apps frequently
715
+ - Has limited attention span and low patience
716
+ - Types as little as possible, prefers taps and selections
717
+
718
+ **Test Questions**:
719
+ - Are primary actions in the thumb zone (bottom half of screen)?
720
+ - Is state preserved if the user leaves and returns?
721
+ - Does it work on slow connections (3G)?
722
+ - Can forms use autocomplete and smart defaults?
723
+ - Are touch targets at least 44×44pt?
724
+
725
+ **Red Flags** (report these specifically):
726
+ - Important actions positioned at the top of the screen (unreachable by thumb)
727
+ - No state persistence; progress lost on tab switch or interruption
728
+ - Large text inputs required where selection would work
729
+ - Heavy assets loading on every page (no lazy loading)
730
+ - Tiny tap targets or targets too close together
731
+
732
+ ---
733
+
734
+ #### Selecting Personas
735
+
736
+ Choose personas based on the interface type:
737
+
738
+ | Interface Type | Primary Personas | Why |
739
+ |---------------|-----------------|-----|
740
+ | Landing page / marketing | Jordan, Riley, Casey | First impressions, trust, mobile |
741
+ | Dashboard / admin | Alex, Sam | Power users, accessibility |
742
+ | E-commerce / checkout | Casey, Riley, Jordan | Mobile, edge cases, clarity |
743
+ | Onboarding flow | Jordan, Casey | Confusion, interruption |
744
+ | Data-heavy / analytics | Alex, Sam | Efficiency, keyboard nav |
745
+ | Form-heavy / wizard | Jordan, Sam, Casey | Clarity, accessibility, mobile |
746
+
747
+ ---
748
+
749
+ #### Project-Specific Personas
750
+
751
+ If `AGENTS.md` contains a `## Design Context` section (generated by `impeccable init`), derive 1–2 additional personas from the audience and brand information:
752
+
753
+ 1. Read the target audience description
754
+ 2. Identify the primary user archetype not covered by the 5 predefined personas
755
+ 3. Create a persona following this template:
756
+
757
+ ```
758
+ ##### [Role]: "[Name]"
759
+
760
+ **Profile**: [2-3 key characteristics derived from Design Context]
761
+
762
+ **Behaviors**: [3-4 specific behaviors based on the described audience]
763
+
764
+ **Red Flags**: [3-4 things that would alienate this specific user type]
765
+ ```
766
+
767
+ Only generate project-specific personas when real Design Context data is available. Don't invent audience details; use the 5 predefined personas when no context exists.