@herbertgao/pi-extensions 2026.11.11 → 2026.11.13

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 (262) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +13 -11
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +10 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -4
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -4
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +22 -15
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +22 -8
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +0 -29
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +5 -2
  11. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +60 -39
  12. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +3 -2
  13. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +0 -40
  14. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-parse.ts +4 -1
  15. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +21 -3
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
  17. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  18. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
  19. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  20. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  21. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +2 -2
  22. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +1 -1
  23. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
  24. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
  25. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +12 -504
  26. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  27. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
  28. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
  29. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
  30. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +5 -34
  31. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
  32. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  33. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  34. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +17 -18
  35. package/node_modules/@herbertgao/pi-inline-skill-commands/LICENSE +21 -0
  36. package/node_modules/@herbertgao/pi-inline-skill-commands/README.md +33 -0
  37. package/node_modules/@herbertgao/pi-inline-skill-commands/package.json +53 -0
  38. package/node_modules/@herbertgao/pi-inline-skill-commands/src/index.ts +213 -0
  39. package/node_modules/pi-antigravity/README.md +58 -9
  40. package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
  41. package/node_modules/pi-antigravity/package.json +15 -6
  42. package/node_modules/pi-antigravity/src/client/client.ts +63 -14
  43. package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
  44. package/node_modules/pi-antigravity/src/client/index.ts +1 -0
  45. package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
  46. package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
  47. package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
  48. package/node_modules/pi-antigravity/src/image/image.ts +16 -2
  49. package/node_modules/pi-antigravity/src/index.ts +145 -2
  50. package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
  51. package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
  52. package/node_modules/pi-antigravity/src/models/models.ts +126 -14
  53. package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
  54. package/node_modules/pi-antigravity/src/types/types.ts +30 -1
  55. package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
  56. package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
  57. package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
  58. package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
  59. package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
  60. package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
  61. package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
  62. package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
  63. package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
  64. package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
  65. package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
  66. package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
  67. package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
  68. package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
  69. package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
  70. package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
  71. package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
  72. package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
  73. package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
  74. package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
  75. package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
  76. package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
  77. package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
  78. package/node_modules/pi-antigravity/tsconfig.json +2 -2
  79. package/node_modules/pi-commandcode-provider/CHANGELOG.md +10 -0
  80. package/node_modules/pi-commandcode-provider/README.md +2 -2
  81. package/node_modules/pi-commandcode-provider/package.json +1 -1
  82. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
  83. package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
  84. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  85. package/node_modules/pi-lens/CHANGELOG.md +172 -0
  86. package/node_modules/pi-lens/README.md +103 -217
  87. package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
  88. package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
  89. package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
  90. package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
  91. package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
  92. package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
  93. package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
  94. package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
  95. package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
  96. package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
  97. package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
  98. package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
  99. package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
  100. package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
  101. package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
  102. package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
  103. package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
  104. package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
  105. package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
  106. package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
  107. package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
  108. package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
  109. package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
  110. package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
  111. package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
  112. package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
  113. package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
  114. package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
  115. package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
  116. package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
  117. package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
  118. package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
  119. package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
  120. package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
  121. package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
  122. package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
  123. package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
  124. package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
  125. package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
  126. package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
  127. package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
  128. package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
  129. package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
  130. package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
  131. package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
  132. package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
  133. package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
  134. package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
  135. package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
  136. package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
  137. package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
  138. package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
  139. package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
  140. package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
  141. package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
  142. package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
  143. package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
  144. package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
  145. package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
  146. package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
  147. package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
  148. package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
  149. package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
  150. package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
  151. package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
  152. package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
  153. package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
  154. package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
  155. package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
  156. package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
  157. package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
  158. package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
  159. package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
  160. package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
  161. package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
  162. package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
  163. package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
  164. package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
  165. package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
  166. package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
  167. package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
  168. package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
  169. package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
  170. package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
  171. package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
  172. package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
  173. package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
  174. package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
  175. package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
  176. package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
  177. package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
  178. package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
  179. package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
  180. package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
  181. package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
  182. package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
  183. package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
  184. package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
  185. package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
  186. package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
  187. package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
  188. package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
  189. package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
  190. package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
  191. package/node_modules/pi-lens/dist/index.js +6508 -5413
  192. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
  193. package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
  194. package/node_modules/pi-lens/dist/mcp/server.js +602 -345
  195. package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
  196. package/node_modules/pi-lens/dist/probes/installer.js +19 -17
  197. package/node_modules/pi-lens/docs/architecture.md +113 -0
  198. package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
  199. package/node_modules/pi-lens/docs/ci.md +18 -4
  200. package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
  201. package/node_modules/pi-lens/docs/dependencies.md +10 -10
  202. package/node_modules/pi-lens/docs/features.md +3 -3
  203. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
  204. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
  205. package/node_modules/pi-lens/docs/language-coverage.md +39 -0
  206. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
  207. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  208. package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
  209. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
  210. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
  211. package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
  212. package/node_modules/pi-lens/docs/prose-standard.md +112 -0
  213. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  214. package/node_modules/pi-lens/docs/usage.md +50 -0
  215. package/node_modules/pi-lens/package.json +1 -1
  216. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
  217. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
  218. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
  219. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
  220. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
  221. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
  222. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
  223. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
  224. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
  225. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
  226. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
  227. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
  228. package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
  229. package/node_modules/pi-web-access/CHANGELOG.md +29 -0
  230. package/node_modules/pi-web-access/README.md +35 -15
  231. package/node_modules/pi-web-access/anysearch.ts +7 -3
  232. package/node_modules/pi-web-access/autom.ts +196 -0
  233. package/node_modules/pi-web-access/cloro.ts +254 -0
  234. package/node_modules/pi-web-access/curator-page.ts +7 -1
  235. package/node_modules/pi-web-access/curator-server.ts +3 -0
  236. package/node_modules/pi-web-access/dist/index.js +12931 -12111
  237. package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
  238. package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
  239. package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
  240. package/node_modules/pi-web-access/duckduckgo.ts +11 -3
  241. package/node_modules/pi-web-access/extract.ts +60 -4
  242. package/node_modules/pi-web-access/gemini-search.ts +25 -5
  243. package/node_modules/pi-web-access/index.ts +9 -1
  244. package/node_modules/pi-web-access/package.json +2 -2
  245. package/node_modules/pi-web-access/page-query.ts +12 -3
  246. package/node_modules/pi-web-access/specstream.ts +276 -0
  247. package/node_modules/pi-web-access/tool-activation.ts +21 -6
  248. package/node_modules/pi-web-access/utils.ts +4 -0
  249. package/node_modules/pi-web-access/video-extract.ts +2 -2
  250. package/node_modules/pi-web-access/web-tool-core.ts +24 -5
  251. package/node_modules/pi-web-access/youtube-extract.ts +2 -2
  252. package/package.json +13 -7
  253. package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
  254. package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
  255. package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
  256. package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
  257. package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
  258. package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
  259. package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
  260. package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
  261. package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
  262. package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
@@ -0,0 +1,496 @@
1
+ # Critique rubric
2
+
3
+ Assessment A's rubric in [critique.md](critique.md): cognitive load, the heuristic scores, and personas. The score bands and P0 to P3 severity stay in critique.md, where the report uses them.
4
+
5
+ ### Cognitive Load Assessment
6
+
7
+ 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.
8
+
9
+ ---
10
+
11
+ #### Three Types of Cognitive Load
12
+
13
+ ##### Intrinsic Load: The Task Itself
14
+ Complexity inherent to what the user is trying to do. You can't eliminate this, but you can structure it.
15
+
16
+ **Manage it by**:
17
+ - Breaking complex tasks into discrete steps
18
+ - Providing scaffolding (templates, defaults, examples)
19
+ - Progressive disclosure: show what's needed now, hide the rest
20
+ - Grouping related decisions together
21
+
22
+ ##### Extraneous Load: Bad Design
23
+ Mental effort caused by poor design choices. **Eliminate this ruthlessly.** It's pure waste.
24
+
25
+ **Common sources**:
26
+ - Confusing navigation that requires mental mapping
27
+ - Unclear labels that force users to guess meaning
28
+ - Visual clutter competing for attention
29
+ - Inconsistent patterns that prevent learning
30
+ - Unnecessary steps between user intent and result
31
+
32
+ ##### Germane Load: Learning Effort
33
+ Mental effort spent building understanding. This is *good* cognitive load; it leads to mastery.
34
+
35
+ **Support it by**:
36
+ - Progressive disclosure that reveals complexity gradually
37
+ - Consistent patterns that reward learning
38
+ - Feedback that confirms correct understanding
39
+ - Onboarding that teaches through action, not walls of text
40
+
41
+ ---
42
+
43
+ #### Cognitive Load Checklist
44
+
45
+ Evaluate the interface against these 8 items:
46
+
47
+ - [ ] **Single focus**: Can the user complete their primary task without distraction from competing elements?
48
+ - [ ] **Chunking**: Is information presented in digestible groups (≤4 items per group)?
49
+ - [ ] **Grouping**: Are related items visually grouped together (proximity, borders, shared background)?
50
+ - [ ] **Visual hierarchy**: Is it immediately clear what's most important on the screen?
51
+ - [ ] **One thing at a time**: Can the user focus on a single decision before moving to the next?
52
+ - [ ] **Minimal choices**: Are decisions simplified (≤4 visible options at any decision point)?
53
+ - [ ] **Working memory**: Does the user need to remember information from a previous screen to act on the current one?
54
+ - [ ] **Progressive disclosure**: Is complexity revealed only when the user needs it?
55
+
56
+ **Scoring**: Count the failed items. 0–1 failures = low cognitive load (good). 2–3 = moderate (address soon). 4+ = high cognitive load (critical fix needed).
57
+
58
+ ---
59
+
60
+ #### The Working Memory Rule
61
+
62
+ **Humans can hold ≤4 items in working memory at once** (Miller's Law revised by Cowan, 2001).
63
+
64
+ At any decision point, count the number of distinct options, actions, or pieces of information a user must simultaneously consider:
65
+ - **≤4 items**: Within working memory limits, manageable
66
+ - **5–7 items**: Pushing the boundary; consider grouping or progressive disclosure
67
+ - **8+ items**: Overloaded; users will skip, misclick, or abandon
68
+
69
+ **Practical applications**:
70
+ - Action buttons: 1 primary, 1–2 secondary, group the rest in a menu
71
+ - Navigation menus: ≤5 top-level items (group the rest under clear categories)
72
+ - Long-form articles: one reading path; gather related links into a single block at the end instead of scattering them mid-flow
73
+ - Documentation sidebars: ≤4 sibling choices visible per level before grouping kicks in
74
+ - Portfolio and gallery indexes: one decision per screen (which piece to open), not filter, sort, and tag controls all at once
75
+
76
+ ---
77
+
78
+ #### Common Cognitive Load Violations
79
+
80
+ ##### 1. The Wall of Options
81
+ **Problem**: Presenting 10+ choices at once with no hierarchy.
82
+ **Fix**: Group into categories, highlight recommended, use progressive disclosure.
83
+
84
+ ##### 2. The Memory Bridge
85
+ **Problem**: User must remember info from step 1 to complete step 3.
86
+ **Fix**: Keep relevant context visible, or repeat it where it's needed.
87
+
88
+ ##### 3. The Hidden Navigation
89
+ **Problem**: User must build a mental map of where things are.
90
+ **Fix**: Always show current location (breadcrumbs, active states, progress indicators).
91
+
92
+ ##### 4. The Jargon Barrier
93
+ **Problem**: Technical or domain language forces translation effort.
94
+ **Fix**: Use plain language. If domain terms are unavoidable, define them inline.
95
+
96
+ ##### 5. The Visual Noise Floor
97
+ **Problem**: Every element has the same visual weight; nothing stands out.
98
+ **Fix**: Establish clear hierarchy: one primary element, 2–3 secondary, everything else muted.
99
+
100
+ ##### 6. The Inconsistent Pattern
101
+ **Problem**: Similar actions work differently in different places.
102
+ **Fix**: Standardize interaction patterns. Same type of action = same type of UI.
103
+
104
+ ##### 7. The Multi-Task Demand
105
+ **Problem**: Interface requires processing multiple simultaneous inputs (reading + deciding + navigating).
106
+ **Fix**: Sequence the steps. Let the user do one thing at a time.
107
+
108
+ ##### 8. The Context Switch
109
+ **Problem**: User must jump between screens/tabs/modals to gather info for a single decision.
110
+ **Fix**: Co-locate the information needed for each decision. Reduce back-and-forth.
111
+
112
+ ### Heuristics Scoring Guide
113
+
114
+ Score each of Nielsen's 10 Usability Heuristics on a 0–4 scale. Be honest: a 4 means genuinely excellent, not "good enough."
115
+
116
+ #### Nielsen's 10 Heuristics
117
+
118
+ ##### 1. Visibility of System Status
119
+
120
+ Keep users informed about what's happening through timely, appropriate feedback.
121
+
122
+ **Check for**:
123
+ - Loading indicators during async operations
124
+ - Confirmation of user actions (save, submit, delete)
125
+ - Progress indicators for multi-step processes
126
+ - Current location in navigation (breadcrumbs, active states)
127
+ - Form validation feedback (inline, not just on submit)
128
+
129
+ **Scoring**:
130
+ | Score | Criteria |
131
+ |-------|----------|
132
+ | 0 | No feedback; user is guessing what happened |
133
+ | 1 | Rare feedback; most actions produce no visible response |
134
+ | 2 | Partial; some states communicated, major gaps remain |
135
+ | 3 | Good; most operations give clear feedback, minor gaps |
136
+ | 4 | Excellent; every action confirms, progress is always visible |
137
+
138
+ ##### 2. Match Between System and Real World
139
+
140
+ Speak the user's language. Follow real-world conventions. Information appears in natural, logical order.
141
+
142
+ **Check for**:
143
+ - Familiar terminology (no unexplained jargon)
144
+ - Logical information order matching user expectations
145
+ - Recognizable icons and metaphors
146
+ - Domain-appropriate language for the target audience
147
+ - Natural reading flow (left-to-right, top-to-bottom priority)
148
+
149
+ **Scoring**:
150
+ | Score | Criteria |
151
+ |-------|----------|
152
+ | 0 | Pure tech jargon, alien to users |
153
+ | 1 | Mostly confusing; requires domain expertise to navigate |
154
+ | 2 | Mixed; some plain language, some jargon leaks through |
155
+ | 3 | Mostly natural; occasional term needs context |
156
+ | 4 | Speaks the user's language fluently throughout |
157
+
158
+ ##### 3. User Control and Freedom
159
+
160
+ Users need a clear "emergency exit" from unwanted states without extended dialogue.
161
+
162
+ **Check for**:
163
+ - Undo/redo functionality
164
+ - Cancel buttons on forms and modals
165
+ - Clear navigation back to safety (home, previous)
166
+ - Easy way to clear filters, search, selections
167
+ - Escape from long or multi-step processes
168
+
169
+ **Scoring**:
170
+ | Score | Criteria |
171
+ |-------|----------|
172
+ | 0 | Users get trapped; no way out without refreshing |
173
+ | 1 | Difficult exits; must find obscure paths to escape |
174
+ | 2 | Some exits; main flows have escape, edge cases don't |
175
+ | 3 | Good control; users can exit and undo most actions |
176
+ | 4 | Full control; undo, cancel, back, and escape everywhere |
177
+
178
+ ##### 4. Consistency and Standards
179
+
180
+ Users shouldn't wonder whether different words, situations, or actions mean the same thing.
181
+
182
+ **Check for**:
183
+ - Consistent terminology throughout the interface
184
+ - Same actions produce same results everywhere
185
+ - Platform conventions followed (standard UI patterns)
186
+ - Visual consistency (colors, typography, spacing, components)
187
+ - Consistent interaction patterns (same gesture = same behavior)
188
+
189
+ **Scoring**:
190
+ | Score | Criteria |
191
+ |-------|----------|
192
+ | 0 | Inconsistent everywhere; feels like different products stitched together |
193
+ | 1 | Many inconsistencies; similar things look/behave differently |
194
+ | 2 | Partially consistent; main flows match, details diverge |
195
+ | 3 | Mostly consistent; occasional deviation, nothing confusing |
196
+ | 4 | Fully consistent; cohesive system, predictable behavior |
197
+
198
+ ##### 5. Error Prevention
199
+
200
+ Better than good error messages is a design that prevents problems in the first place.
201
+
202
+ **Check for**:
203
+ - Confirmation before destructive actions (delete, overwrite)
204
+ - Constraints preventing invalid input (date pickers, dropdowns)
205
+ - Smart defaults that reduce errors
206
+ - Clear labels that prevent misunderstanding
207
+ - Autosave and draft recovery
208
+
209
+ **Scoring**:
210
+ | Score | Criteria |
211
+ |-------|----------|
212
+ | 0 | Errors easy to make; no guardrails anywhere |
213
+ | 1 | Few safeguards; some inputs validated, most aren't |
214
+ | 2 | Partial prevention; common errors caught, edge cases slip |
215
+ | 3 | Good prevention; most error paths blocked proactively |
216
+ | 4 | Excellent; errors nearly impossible through smart constraints |
217
+
218
+ ##### 6. Recognition Rather Than Recall
219
+
220
+ Minimize memory load. Make objects, actions, and options visible or easily retrievable.
221
+
222
+ **Check for**:
223
+ - Visible options (not buried in hidden menus)
224
+ - Contextual help when needed (tooltips, inline hints)
225
+ - Recent items and history
226
+ - Autocomplete and suggestions
227
+ - Labels on icons (not icon-only navigation)
228
+
229
+ **Scoring**:
230
+ | Score | Criteria |
231
+ |-------|----------|
232
+ | 0 | Heavy memorization; users must remember paths and commands |
233
+ | 1 | Mostly recall; many hidden features, few visible cues |
234
+ | 2 | Some aids; main actions visible, secondary features hidden |
235
+ | 3 | Good recognition; most things discoverable, few memory demands |
236
+ | 4 | Everything discoverable; users never need to memorize |
237
+
238
+ ##### 7. Flexibility and Efficiency of Use
239
+
240
+ Accelerators, invisible to novices, speed up expert interaction.
241
+
242
+ **Check for**:
243
+ - Keyboard shortcuts for common actions
244
+ - Customizable interface elements
245
+ - Recent items and favorites
246
+ - Bulk/batch actions
247
+ - Power user features that don't complicate the basics
248
+
249
+ **Scoring**:
250
+ | Score | Criteria |
251
+ |-------|----------|
252
+ | 0 | One rigid path; no shortcuts or alternatives |
253
+ | 1 | Limited flexibility; few alternatives to the main path |
254
+ | 2 | Some shortcuts; basic keyboard support, limited bulk actions |
255
+ | 3 | Good accelerators; keyboard nav, some customization |
256
+ | 4 | Highly flexible; multiple paths, power features, customizable |
257
+
258
+ ##### 8. Aesthetic and Minimalist Design
259
+
260
+ Interfaces should not contain irrelevant or rarely needed information. Every element should serve a purpose.
261
+
262
+ **Check for**:
263
+ - Only necessary information visible at each step
264
+ - Clear visual hierarchy directing attention
265
+ - Purposeful use of color and emphasis
266
+ - No decorative clutter competing for attention
267
+ - Focused, uncluttered layouts
268
+
269
+ **Scoring**:
270
+ | Score | Criteria |
271
+ |-------|----------|
272
+ | 0 | Overwhelming; everything competes for attention equally |
273
+ | 1 | Cluttered; too much noise, hard to find what matters |
274
+ | 2 | Some clutter; main content clear, periphery noisy |
275
+ | 3 | Mostly clean; focused design, minor visual noise |
276
+ | 4 | Perfectly minimal; every element earns its pixel |
277
+
278
+ ##### 9. Help Users Recognize, Diagnose, and Recover from Errors
279
+
280
+ Error messages should use plain language, precisely indicate the problem, and constructively suggest a solution.
281
+
282
+ **Check for**:
283
+ - Plain language error messages (no error codes for users)
284
+ - Specific problem identification ("Email is missing @" not "Invalid input")
285
+ - Actionable recovery suggestions
286
+ - Errors displayed near the source of the problem
287
+ - Non-blocking error handling (don't wipe the form)
288
+
289
+ **Scoring**:
290
+ | Score | Criteria |
291
+ |-------|----------|
292
+ | 0 | Cryptic errors; codes, jargon, or no message at all |
293
+ | 1 | Vague errors; "Something went wrong" with no guidance |
294
+ | 2 | Clear but unhelpful; names the problem but not the fix |
295
+ | 3 | Clear with suggestions; identifies problem and offers next steps |
296
+ | 4 | Perfect recovery; pinpoints issue, suggests fix, preserves user work |
297
+
298
+ ##### 10. Help and Documentation
299
+
300
+ Even if the system is usable without docs, help should be easy to find, task-focused, and concise.
301
+
302
+ **Check for**:
303
+ - Searchable help or documentation
304
+ - Contextual help (tooltips, inline hints, guided tours)
305
+ - Task-focused organization (not feature-organized)
306
+ - Concise, scannable content
307
+ - Easy access without leaving current context
308
+
309
+ **Scoring**:
310
+ | Score | Criteria |
311
+ |-------|----------|
312
+ | 0 | No help available anywhere |
313
+ | 1 | Help exists but hard to find or irrelevant |
314
+ | 2 | Basic help; FAQ or docs exist, not contextual |
315
+ | 3 | Good documentation; searchable, mostly task-focused |
316
+ | 4 | Excellent contextual help; right info at the right moment |
317
+
318
+ ### Persona-Based Design Testing
319
+
320
+ 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.
321
+
322
+ **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.
323
+
324
+ ---
325
+
326
+ #### 1. Impatient Power User: "Alex"
327
+
328
+
329
+ **Profile**: Expert with similar products. Expects efficiency, hates hand-holding. Will find shortcuts or leave.
330
+
331
+ **Behaviors**:
332
+ - Skips all onboarding and instructions
333
+ - Looks for keyboard shortcuts immediately
334
+ - Tries to bulk-select, batch-edit, and automate
335
+ - Gets frustrated by required steps that feel unnecessary
336
+ - Abandons if anything feels slow or patronizing
337
+
338
+ **Test Questions**:
339
+ - Can Alex complete the core task in under 60 seconds?
340
+ - Are there keyboard shortcuts for common actions?
341
+ - Can onboarding be skipped entirely?
342
+ - Do modals have keyboard dismiss (Esc)?
343
+ - Is there a "power user" path (shortcuts, bulk actions)?
344
+
345
+ **Red Flags** (report these specifically):
346
+ - Forced tutorials or unskippable onboarding
347
+ - No keyboard navigation for primary actions
348
+ - Slow animations that can't be skipped
349
+ - One-item-at-a-time workflows where batch would be natural
350
+ - Redundant confirmation steps for low-risk actions
351
+
352
+ ---
353
+
354
+ #### 2. Confused First-Timer: "Jordan"
355
+
356
+ **Profile**: Never used this type of product. Needs guidance at every step. Will abandon rather than figure it out.
357
+
358
+ **Behaviors**:
359
+ - Reads all instructions carefully
360
+ - Hesitates before clicking anything unfamiliar
361
+ - Looks for help or support constantly
362
+ - Misunderstands jargon and abbreviations
363
+ - Takes the most literal interpretation of any label
364
+
365
+ **Test Questions**:
366
+ - Is the first action obviously clear within 5 seconds?
367
+ - Are all icons labeled with text?
368
+ - Is there contextual help at decision points?
369
+ - Does terminology assume prior knowledge?
370
+ - Is there a clear "back" or "undo" at every step?
371
+
372
+ **Red Flags** (report these specifically):
373
+ - Icon-only navigation with no labels
374
+ - Technical jargon without explanation
375
+ - No visible help option or guidance
376
+ - Ambiguous next steps after completing an action
377
+ - No confirmation that an action succeeded
378
+
379
+ ---
380
+
381
+ #### 3. Accessibility-Dependent User: "Sam"
382
+
383
+ **Profile**: Uses screen reader (VoiceOver/NVDA), keyboard-only navigation. May have low vision, motor impairment, or cognitive differences.
384
+
385
+ **Behaviors**:
386
+ - Tabs through the interface linearly
387
+ - Relies on ARIA labels and heading structure
388
+ - Cannot see hover states or visual-only indicators
389
+ - Needs adequate color contrast (4.5:1 minimum)
390
+ - May use browser zoom up to 200%
391
+
392
+ **Test Questions**:
393
+ - Can the entire primary flow be completed keyboard-only?
394
+ - Are all interactive elements focusable with visible focus indicators?
395
+ - Do images have meaningful alt text?
396
+ - Is color contrast WCAG AA compliant (4.5:1 for text)?
397
+ - Does the screen reader announce state changes (loading, success, errors)?
398
+
399
+ **Red Flags** (report these specifically):
400
+ - Click-only interactions with no keyboard alternative
401
+ - Missing or invisible focus indicators
402
+ - Meaning conveyed by color alone (red = error, green = success)
403
+ - Unlabeled form fields or buttons
404
+ - Time-limited actions without extension option
405
+ - Custom components that break screen reader flow
406
+
407
+ ---
408
+
409
+ #### 4. Deliberate Stress Tester: "Riley"
410
+
411
+ **Profile**: Methodical user who pushes interfaces beyond the happy path. Tests edge cases, tries unexpected inputs, and probes for gaps in the experience.
412
+
413
+ **Behaviors**:
414
+ - Tests edge cases intentionally (empty states, long strings, special characters)
415
+ - Submits forms with unexpected data (emoji, RTL text, very long values)
416
+ - Tries to break workflows by navigating backwards, refreshing mid-flow, or opening in multiple tabs
417
+ - Looks for inconsistencies between what the UI promises and what actually happens
418
+ - Documents problems methodically
419
+
420
+ **Test Questions**:
421
+ - What happens at the edges (0 items, 1000 items, very long text)?
422
+ - Do error states recover gracefully or leave the UI in a broken state?
423
+ - What happens on refresh mid-workflow? Is state preserved?
424
+ - Are there features that appear to work but produce broken results?
425
+ - How does the UI handle unexpected input (emoji, special chars, paste from Excel)?
426
+
427
+ **Red Flags** (report these specifically):
428
+ - Features that appear to work but silently fail or produce wrong results
429
+ - Error handling that exposes technical details or leaves UI in a broken state
430
+ - Empty states that show nothing useful ("No results" with no guidance)
431
+ - Workflows that lose user data on refresh or navigation
432
+ - Inconsistent behavior between similar interactions in different parts of the UI
433
+
434
+ ---
435
+
436
+ #### 5. Distracted Mobile User: "Casey"
437
+
438
+ **Profile**: Using phone one-handed on the go. Frequently interrupted. Possibly on a slow connection.
439
+
440
+ **Behaviors**:
441
+ - Uses thumb only; prefers bottom-of-screen actions
442
+ - Gets interrupted mid-flow and returns later
443
+ - Switches between apps frequently
444
+ - Has limited attention span and low patience
445
+ - Types as little as possible, prefers taps and selections
446
+
447
+ **Test Questions**:
448
+ - Are primary actions in the thumb zone (bottom half of screen)?
449
+ - Is state preserved if the user leaves and returns?
450
+ - Does it work on slow connections (3G)?
451
+ - Can forms use autocomplete and smart defaults?
452
+ - Are touch targets at least 44×44pt?
453
+
454
+ **Red Flags** (report these specifically):
455
+ - Important actions positioned at the top of the screen (unreachable by thumb)
456
+ - No state persistence; progress lost on tab switch or interruption
457
+ - Large text inputs required where selection would work
458
+ - Heavy assets loading on every page (no lazy loading)
459
+ - Tiny tap targets or targets too close together
460
+
461
+ ---
462
+
463
+ #### Selecting Personas
464
+
465
+ Choose personas based on the interface type:
466
+
467
+ | Interface Type | Primary Personas | Why |
468
+ |---------------|-----------------|-----|
469
+ | Landing page / marketing | Jordan, Riley, Casey | First impressions, trust, mobile |
470
+ | Dashboard / admin | Alex, Sam | Power users, accessibility |
471
+ | E-commerce / checkout | Casey, Riley, Jordan | Mobile, edge cases, clarity |
472
+ | Onboarding flow | Jordan, Casey | Confusion, interruption |
473
+ | Data-heavy / analytics | Alex, Sam | Efficiency, keyboard nav |
474
+ | Form-heavy / wizard | Jordan, Sam, Casey | Clarity, accessibility, mobile |
475
+
476
+ ---
477
+
478
+ #### Project-Specific Personas
479
+
480
+ If PRODUCT.md has a `## Users` section (written by `impeccable init`), derive 1–2 additional personas from it and from `## Brand Commitments`:
481
+
482
+ 1. Read the target audience description
483
+ 2. Identify the primary user archetype not covered by the 5 predefined personas
484
+ 3. Create a persona following this template:
485
+
486
+ ```
487
+ ##### [Role]: "[Name]"
488
+
489
+ **Profile**: [2-3 key characteristics derived from PRODUCT.md]
490
+
491
+ **Behaviors**: [3-4 specific behaviors based on the described audience]
492
+
493
+ **Red Flags**: [3-4 things that would alienate this specific user type]
494
+ ```
495
+
496
+ Only generate project-specific personas when PRODUCT.md describes real users. Don't invent audience details; use the 5 predefined personas when no context exists.