@herbertgao/pi-extensions 2026.10.15 → 2026.10.17
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.
- package/README.md +11 -9
- package/THIRD_PARTY_NOTICES.md +6 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +38 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +13 -9
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/default-mode.ts +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-highlight.ts +41 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts +42 -25
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/LICENSE +191 -0
- package/node_modules/@herbertgao/pi-impeccable/NOTICE.md +11 -0
- package/node_modules/@herbertgao/pi-impeccable/README.md +34 -0
- package/node_modules/@herbertgao/pi-impeccable/package.json +53 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +89 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +318 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.native.md +58 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/android.md +46 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +89 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +139 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +139 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/bolder.md +33 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/clarify.md +94 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/colorize.md +86 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/component-review.md +63 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/craft-floor.md +44 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/craft.md +5 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +819 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/asset-producer.md +42 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +24 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +38 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/delight.md +70 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/distill.md +111 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/doctor.md +54 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/document.md +416 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/extract.md +69 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/generate.md +101 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/harden.md +362 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +114 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/init.md +131 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/ios.md +51 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/layout.md +84 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live-setup.md +104 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +325 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/mode-operate.md +21 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/mode-persuade.md +19 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/mode-read.md +21 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +152 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/onboard.md +234 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/operate.md +61 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/optimize.md +257 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/overdrive.md +127 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/polish.md +105 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/quieter.md +99 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/region-map.md +26 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/routing.md +24 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/shape.md +59 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +90 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/visualize.md +47 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/command-metadata.json +98 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/data/font-index-failures.json +121 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/data/font-index.json +1 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +9 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable +249 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +278 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser-dom.js +320 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser-ignores.js +246 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser-session.js +183 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +13645 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
- package/node_modules/@narumitw/pi-btw/package.json +2 -2
- package/node_modules/pi-lens/CHANGELOG.md +37 -0
- package/node_modules/pi-lens/README.md +32 -0
- package/node_modules/pi-lens/config/biome/core.jsonc +3 -3
- package/node_modules/pi-lens/dist/{chunk-K2GUZ4DN.js → chunk-2DDDCJDL.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-DS2USX5G.js → chunk-2DMLM3ZO.js} +11 -11
- package/node_modules/pi-lens/dist/chunk-2F47TQOA.js +73 -0
- package/node_modules/pi-lens/dist/{chunk-YXDCRUKQ.js → chunk-2PHMIAKO.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-PP2A5V2T.js → chunk-2RLWJO5K.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-T4NGVFYI.js → chunk-2X4VLOCC.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QT66NEYN.js → chunk-3MYEA7QD.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-7ZS7MC24.js → chunk-3WEPUD2V.js} +22 -22
- package/node_modules/pi-lens/dist/{chunk-TL2TCJYL.js → chunk-4AVZ3TG7.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-SNEUMLM7.js → chunk-4PCQCU47.js} +4 -4
- package/node_modules/pi-lens/dist/chunk-4WX4CTUE.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-5LRUKYFA.js → chunk-5APMQ2IJ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-4U7GDSZQ.js → chunk-5CV5ITZF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-VUAVE3QC.js → chunk-5ZR3APIM.js} +36 -36
- package/node_modules/pi-lens/dist/{chunk-CPZ5JJW6.js → chunk-63RIVFQI.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-EDMLIW6W.js → chunk-75SY4F24.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-RCHO5W7M.js → chunk-7RQXA5GG.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-XHDBJODR.js → chunk-A3YNG5KP.js} +21 -21
- package/node_modules/pi-lens/dist/{chunk-3WCEHYOI.js → chunk-AE37FEGH.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KPVLQHCZ.js → chunk-AMXIUN2R.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-XI34NWDI.js → chunk-ARD426WI.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-RG3MXTRI.js → chunk-BHUWL2Y3.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-4ODSZ35Z.js → chunk-BI5LAQ3Y.js} +44 -44
- package/node_modules/pi-lens/dist/{chunk-Q42LJANT.js → chunk-BM5GS6ZH.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-CG5V25HX.js → chunk-BWYQUPOS.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-HYVXA3BB.js → chunk-CFRQMBGP.js} +23 -23
- package/node_modules/pi-lens/dist/{chunk-NLIVE7L6.js → chunk-CJYKEW2L.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-MEFLGBCS.js → chunk-DC4CFXM5.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-ASRAO7KG.js → chunk-DMSLNKF7.js} +27 -27
- package/node_modules/pi-lens/dist/{chunk-YSDPVDFC.js → chunk-DQXSPYRI.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-YKVDBNPO.js → chunk-EVDGNG4F.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2LDMXL2M.js → chunk-F5Z6URKM.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-72J27ICO.js → chunk-F6X3YJWD.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-YXGRRORB.js → chunk-FA5LDARD.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-OMJ3OFBJ.js → chunk-FFL3A2VP.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-FJIVKLPH.js +31 -0
- package/node_modules/pi-lens/dist/chunk-G2B7F6ZU.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-YWWG4AQA.js → chunk-GAACZY6R.js} +24 -25
- package/node_modules/pi-lens/dist/{chunk-F7BO6FWH.js → chunk-GMTFDAOK.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-UVY4TOJH.js → chunk-GNSIWBAT.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-GTAI2J6U.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-SJHC3BCZ.js → chunk-GZE7WOI4.js} +98 -111
- package/node_modules/pi-lens/dist/{chunk-ZAPSUBLU.js → chunk-H7HTEQUZ.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-ZPJM7DID.js → chunk-HK6JVFZC.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-IPDG45G5.js +26 -0
- package/node_modules/pi-lens/dist/{chunk-ZSUX7KEM.js → chunk-J6JP25XU.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6XSESGWD.js → chunk-JL6CXUMW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-Y5KTA2OB.js → chunk-K2YGBXOA.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-AHWA4AKM.js → chunk-KLQVC3XC.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-27VWVB23.js → chunk-KSR7RGQY.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-N3PLNNCW.js → chunk-KXF5R4UN.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-GLW3YDZZ.js → chunk-LEJOJDXL.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-Y2TPADJR.js → chunk-MA77RSFN.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-IL7K66ZQ.js → chunk-MKVZQUEG.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-EIKRZ32J.js → chunk-MN7MHUXQ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-4FHUGDKU.js → chunk-MT6BVNFW.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-3SNDVPOR.js → chunk-NDMCVUYK.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-63NMUNYP.js → chunk-NIU2IPC5.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-APFJKOP6.js → chunk-NNKXDXXS.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-FEDWAYDS.js → chunk-OJLTLYHB.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-KJJAVH3X.js → chunk-OLAWH5UQ.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-G224FADB.js → chunk-OOU2WZZE.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-NFNVDDGB.js → chunk-OSTKYB55.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-P4QNXS6I.js +27 -0
- package/node_modules/pi-lens/dist/{chunk-7IYC4ENJ.js → chunk-PKES3ISE.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-UCVMSOXF.js → chunk-PO45POGF.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-JWOVP5BL.js → chunk-PPIBVH4R.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-EWXXLS26.js → chunk-PQJFG24Z.js} +82 -12
- package/node_modules/pi-lens/dist/{chunk-TPYYEDP5.js → chunk-Q3UZHW6N.js} +45 -22
- package/node_modules/pi-lens/dist/{chunk-5DKE4HGX.js → chunk-Q4EMRFNA.js} +34 -34
- package/node_modules/pi-lens/dist/{chunk-XHLK33VM.js → chunk-Q4FCYCRE.js} +16 -16
- package/node_modules/pi-lens/dist/chunk-Q6D6VMI4.js +22 -0
- package/node_modules/pi-lens/dist/{chunk-Q4BKKOVC.js → chunk-QGSTQH4D.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-GYRZ72R4.js → chunk-RZOXUSPC.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-EN5AM7PX.js → chunk-S67UJDGQ.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-YWNO5Q4R.js → chunk-SCIUNBPF.js} +17 -17
- package/node_modules/pi-lens/dist/{chunk-VIDEKABZ.js → chunk-SJJYRZB4.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-SXGD4ANG.js +25 -0
- package/node_modules/pi-lens/dist/{chunk-THEXI2QO.js → chunk-T7FTXGS3.js} +42 -42
- package/node_modules/pi-lens/dist/{chunk-WUY4BZEP.js → chunk-TIQJPRDD.js} +106 -50
- package/node_modules/pi-lens/dist/{chunk-EXVXBSGN.js → chunk-TIYGSODX.js} +17 -17
- package/node_modules/pi-lens/dist/{chunk-2FYKETQJ.js → chunk-U2SDMG7C.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-PJXNTPB2.js → chunk-U6OC3QEM.js} +21 -21
- package/node_modules/pi-lens/dist/{chunk-LMCTHJ2H.js → chunk-UCGQT677.js} +18 -18
- package/node_modules/pi-lens/dist/{chunk-UL5SXQVX.js → chunk-UHGF5UT5.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-AI3GP74G.js → chunk-UN4TEBWN.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-2SDHYHHO.js → chunk-V3APN3DY.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-7FLRUH6B.js → chunk-V63BC55Q.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-S55TEC7I.js → chunk-VG5JS5SW.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-IEBJF3PN.js → chunk-VPBIMOAQ.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-EX4EXBW7.js → chunk-VQH24FIP.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-TVZRLTG6.js → chunk-VSFLRN5Y.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-KCBRHV5E.js → chunk-W2V54OCL.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-VITFDI3O.js → chunk-W5LGKNET.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-OZNCKLOX.js → chunk-W5R5SABV.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-ELZRSR5N.js → chunk-WIZWZR4C.js} +38 -38
- package/node_modules/pi-lens/dist/{chunk-MKPCELNI.js → chunk-WQOIR3QY.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-COOUUC5W.js → chunk-XAIT2YGS.js} +6 -6
- package/node_modules/pi-lens/dist/chunk-XCUHKYCQ.js +23 -0
- package/node_modules/pi-lens/dist/{chunk-KFXCL4OV.js → chunk-XQCSWV2G.js} +22 -23
- package/node_modules/pi-lens/dist/{chunk-RU34BA4D.js → chunk-YBSONGSZ.js} +34 -34
- package/node_modules/pi-lens/dist/{chunk-GTDSYEA2.js → chunk-YISME6ON.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-YRD4ISED.js +30 -0
- package/node_modules/pi-lens/dist/{chunk-X3UTCXAA.js → chunk-YSBHPOY6.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-XWFIHYCH.js → chunk-Z2XAOKHK.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-K4SZB56V.js → chunk-Z7IGUAXL.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-KX56K73G.js → chunk-ZKXQKGWZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-FWZRGGGY.js → chunk-ZQ6NZZTB.js} +6 -4
- package/node_modules/pi-lens/dist/{chunk-2Y6OJRSI.js → chunk-ZUUI3ZSA.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-UO66IMVP.js → chunk-ZYNI26MI.js} +2 -2
- package/node_modules/pi-lens/dist/index.js +571 -409
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +10 -10
- package/node_modules/pi-lens/dist/mcp/cli.js +42 -42
- package/node_modules/pi-lens/dist/mcp/server.js +108 -108
- package/node_modules/pi-lens/dist/mcp/worker.js +61 -61
- package/node_modules/pi-lens/dist/probes/installer.js +19 -19
- package/node_modules/pi-lens/docs/agent-tools.md +28 -7
- package/node_modules/pi-lens/docs/configuration.md +3 -1
- package/node_modules/pi-lens/docs/defect-shapes.md +738 -0
- package/node_modules/pi-lens/docs/invariants/caches-stores.md +30 -0
- package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +164 -0
- package/node_modules/pi-lens/docs/invariants/git-guard-host.md +53 -0
- package/node_modules/pi-lens/docs/invariants/language-config.md +31 -0
- package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +286 -0
- package/node_modules/pi-lens/docs/invariants/paths-os.md +59 -0
- package/node_modules/pi-lens/docs/invariants/session-telemetry.md +74 -0
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +2 -1
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +10 -8
- package/node_modules/pi-lens/docs/pi-lens-monitor.md +2 -2
- package/node_modules/pi-lens/docs/pi-lens-orchestration.md +41 -0
- package/node_modules/pi-lens/docs/pi-lens-release.md +20 -0
- package/node_modules/pi-lens/docs/pi-lens-retro.md +3 -2
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +6 -6
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +2 -2
- package/node_modules/pi-lens/package.json +3 -2
- package/node_modules/pi-provider-qoder/dist/index.js +27 -5
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/node_modules/pi-typesafe/README.md +1 -1
- package/node_modules/pi-typesafe/dist/client.js +43 -1
- package/node_modules/pi-typesafe/package.json +1 -1
- package/package.json +10 -7
- package/node_modules/pi-lens/dist/chunk-22Y2BM7H.js +0 -23
- package/node_modules/pi-lens/dist/chunk-44X7VIKR.js +0 -73
- package/node_modules/pi-lens/dist/chunk-54NIOJJZ.js +0 -25
- package/node_modules/pi-lens/dist/chunk-7WWQAW5P.js +0 -30
- package/node_modules/pi-lens/dist/chunk-EA2ZRG44.js +0 -27
- package/node_modules/pi-lens/dist/chunk-EKNWOL2I.js +0 -27
- package/node_modules/pi-lens/dist/chunk-G5UCJFT7.js +0 -26
- package/node_modules/pi-lens/dist/chunk-N5FBM25N.js +0 -22
- package/node_modules/pi-lens/dist/chunk-P5XUGPIX.js +0 -31
- package/node_modules/pi-lens/dist/chunk-PKOXJIVT.js +0 -88
- package/node_modules/pi-lens/dist/chunk-RG7OODGM.js +0 -57
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @herbertgao/pi-impeccable
|
|
2
|
+
|
|
3
|
+
The [Impeccable](https://github.com/pbakaus/impeccable) design skill for [Pi](https://pi.dev/), vendored from the official `skill-v4.8.0` release. It provides design steering, critique, audit, and deterministic anti-pattern detection without an installer, background service, or global skill directory.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pi install npm:@herbertgao/pi-impeccable
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Restart Pi or run `/reload`, then invoke the skill:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/skill:impeccable init
|
|
15
|
+
/skill:impeccable critique src
|
|
16
|
+
/skill:impeccable audit src
|
|
17
|
+
/skill:impeccable polish src
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The package does not register a separate `/impeccable` command. Pi does not install Impeccable's post-edit hooks, so detection runs only when requested.
|
|
21
|
+
|
|
22
|
+
## Engine setup
|
|
23
|
+
|
|
24
|
+
The skill's launcher downloads the pinned native engine on first use and verifies it against the bundled SHA-256 checksums. This requires network access and a writable `~/.impeccable` cache. For offline or preinstalled setups, set `IMPECCABLE_BIN` to a compatible engine binary.
|
|
25
|
+
|
|
26
|
+
Upstream `pin` and `unpin` only discover skill installations in project harness directories. They do not support this npm-loaded package; invoke commands through `/skill:impeccable` instead.
|
|
27
|
+
|
|
28
|
+
## Updates and provenance
|
|
29
|
+
|
|
30
|
+
This package vendors the complete official Pi payload: 58 files from commit [`414603bf14c7a344edb466bb1f85690c77ce8b7d`](https://github.com/pbakaus/impeccable/commit/414603bf14c7a344edb466bb1f85690c77ce8b7d). Updates are reviewed and released through this repository rather than the upstream auto-updater.
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
[Apache-2.0](LICENSE). See [NOTICE.md](NOTICE.md) for upstream third-party notices. This package is an independent distribution and is not affiliated with or endorsed by the Impeccable project.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@herbertgao/pi-impeccable",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The Impeccable design skill for Pi, vendored from the official release.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design",
|
|
7
|
+
"frontend",
|
|
8
|
+
"impeccable",
|
|
9
|
+
"pi-package",
|
|
10
|
+
"pi-skill",
|
|
11
|
+
"ux"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/HerbertGao/pi-extensions/tree/master/packages/pi-impeccable#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/HerbertGao/pi-extensions/issues"
|
|
16
|
+
},
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"author": "Herbert Gao",
|
|
19
|
+
"contributors": [
|
|
20
|
+
"Paul Bakaus"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/HerbertGao/pi-extensions.git",
|
|
25
|
+
"directory": "packages/pi-impeccable"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"skills",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE",
|
|
31
|
+
"NOTICE.md"
|
|
32
|
+
],
|
|
33
|
+
"type": "module",
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"provenance": true
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=22.19.0"
|
|
40
|
+
},
|
|
41
|
+
"pi": {
|
|
42
|
+
"skills": [
|
|
43
|
+
"./skills"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"x-upstream": {
|
|
47
|
+
"package": "impeccable",
|
|
48
|
+
"version": "4.8.0",
|
|
49
|
+
"reviewedVersion": "4.8.0",
|
|
50
|
+
"repository": "https://github.com/pbakaus/impeccable",
|
|
51
|
+
"commit": "414603bf14c7a344edb466bb1f85690c77ce8b7d"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: impeccable
|
|
3
|
+
description: "Use when the user wants to design, redesign, shape, critique, audit, polish, simplify, harden, animate, or otherwise improve a frontend interface: websites, landing pages, dashboards, product UI, components, forms, settings, onboarding, empty states, and native iOS or Android screens. Handles UX review, hierarchy, layout, typography, color, motion, UX copy, accessibility, responsive behavior, edge cases, and capturing or documenting design systems (DESIGN.md, tokens). Also for making bland UI bolder, loud UI quieter, or ambitious visual effects. Not for backend-only or non-UI tasks."
|
|
4
|
+
version: 4.8.0
|
|
5
|
+
license: Apache 2.0
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Bash(npx impeccable *)
|
|
8
|
+
- Bash(.pi/skills/impeccable/scripts/impeccable *)
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
This skill gives you the tools and permission to make design that earns the name out-of-distribution craft. Work as an award-winning design director would: production-grade code, a clear POV, a deep grasp of what the client and its users need, and exceptional craft.
|
|
12
|
+
|
|
13
|
+
Core principles:
|
|
14
|
+
- Finish the job. No hedging, no shortcuts: the deliverable is complete, except assets the user must provide.
|
|
15
|
+
- Scale ambition to the surface's mode (see Modes). Persuade and Experience get full commitment: bold, distinct work with a point of view. On Operate and Read, ambition shows as precision and restraint, and patterns the visitor already knows earn their place.
|
|
16
|
+
- Verify by looking at the rendered result at the sizes it ships at, and batch the checks: fix what one look shows before looking again, rather than screenshotting after every tweak.
|
|
17
|
+
|
|
18
|
+
## Setup
|
|
19
|
+
|
|
20
|
+
1. Run `<skill-base-dir>/scripts/impeccable context` once per session, where `<skill-base-dir>` is the directory that contains this SKILL.md (the skill folder, not a plugin root two levels above it); keep cwd at the user's project. That base directory resolves every `.pi/skills/impeccable/scripts/impeccable <verb>` command in this skill and its references, and `.pi/skills/impeccable/scripts` is the fallback only when the runtime reports no base directory. On a Windows shell without `sh`, call `.pi/skills/impeccable/scripts/impeccable.cmd` instead. The launcher runs a self-contained binary that ships next to it or is downloaded once on first run; no Node or other runtime is required. Pass a named source file or route as `--target <path>`. It loads PRODUCT.md, DESIGN.md, the matching surface brief, and native-platform guidance when applicable; follow its directives and do not rerun it.
|
|
21
|
+
2. Load the request's playbook: its Commands-table reference for an explicit/implied sub-command, or [reference/new-work.md](reference/new-work.md) for a new surface or replacement visual world. Inspect target and incumbent visual truth before editing. When the app cannot run, start with committed visual-regression goldens or screenshot fixtures; verify target and freshness against current tokens, CSS, components, or assets, resolve conflicts, and compare theme/variant captures.
|
|
22
|
+
3. After resolving analysis and direction, read [reference/craft-floor.md](reference/craft-floor.md) immediately before any UI edit, including small refinements. It carries the quality floor, the absolute bans, and the reflexes no detector catches. Do not load it for planning-only work.
|
|
23
|
+
|
|
24
|
+
**Launcher unavailable:** On refusal or failure, send a separate message **before the next tool call**: “Context loading did not run; I’ll read the existing project context directly.” Then read existing PRODUCT.md and DESIGN.md without inventing missing context, follow applicable steps 2–3, including reading [reference/craft-floor.md](reference/craft-floor.md) immediately before any UI edit, and continue through permitted tools. This applies to planning and editing; launcher failure alone does not block either.
|
|
25
|
+
|
|
26
|
+
## How to design
|
|
27
|
+
|
|
28
|
+
- **The brief wins.** Honor pinned aesthetics, eras, materials, fonts, and palettes even when they conflict with a saturated-pattern warning. Redirecting a clear brief toward your taste is failure.
|
|
29
|
+
- **Refinement preserves; redesign replaces.** Refinement keeps the incumbent identity, behavior, copy, and everything outside scope. Ask before replacing factual copy or adding claims. Redesign keeps product truth, content, function, native affordances, and constraints, but treats the old look as evidence and anti-reference; choose a replacement world in new-work and replace DESIGN.md. Never split the difference into polish on the discarded look.
|
|
30
|
+
- **Loaded symbols stay out of the decoration.** A subject's world does not license emblems tied to militarism, supremacy, or hate movements as motifs, badges, or ornament, such as the Rising Sun flag's rays, the Confederate battle flag, or Nazi-era insignia and their stylised variants; reach for that world's neutral forms instead. Content that documents such a symbol as fact stays as it is.
|
|
31
|
+
- **Visual authority is evidence, not a filename.** Missing DESIGN.md alone does not make a project greenfield; new-work decides whether to preserve, expand, or replace the incumbent world.
|
|
32
|
+
|
|
33
|
+
## Modes
|
|
34
|
+
|
|
35
|
+
The mode names what the visitor's success looks like on this surface.
|
|
36
|
+
|
|
37
|
+
- **Persuade:** the visitor decides and acts; design is the product. Landing pages, marketing, campaigns, pricing. Earn attention and action. Ship real imagery when the brief needs it; follow the committed world, not category habit.
|
|
38
|
+
- **Operate:** the visitor completes a task. App UI, dashboards, editors, admin, settings, tools. Scanability, consistency, native expectations, and the real usage scene outrank expression. Brand lives in precise details.
|
|
39
|
+
- **Read:** the visitor understands something. Docs, articles, guides, help, changelogs. Structure for comprehension, then make the reading experience worth staying in.
|
|
40
|
+
- **Experience:** the visitor is inside the work itself. Portfolios, galleries, showcases. Let the artifact lead from the first viewport; the interface recedes.
|
|
41
|
+
|
|
42
|
+
Choose the mode from the requested surface, not the product, and persist it only in that surface brief. A tool's landing page is still Persuade; a fashion house's documentation is still Read; a docs index is Read, not Persuade. See [new-work.md](reference/new-work.md) for new surfaces and [operate.md](reference/operate.md) for deeper Operate/Read guidance.
|
|
43
|
+
|
|
44
|
+
## Commands
|
|
45
|
+
|
|
46
|
+
| Command | Category | Description | Reference |
|
|
47
|
+
|---|---|---|---|
|
|
48
|
+
| `craft [feature]` | Build | Deprecated alias for an ordinary new-work request | [reference/craft.md](reference/craft.md) |
|
|
49
|
+
| `shape [feature]` | Build | Plan UX/UI before writing code | [reference/shape.md](reference/shape.md) |
|
|
50
|
+
| `init` | Build | Capture durable product context in PRODUCT.md | [reference/init.md](reference/init.md) |
|
|
51
|
+
| `document` | Build | Generate DESIGN.md from existing project code | [reference/document.md](reference/document.md) |
|
|
52
|
+
| `extract [target]` | Build | Pull reusable tokens and components into design system | [reference/extract.md](reference/extract.md) |
|
|
53
|
+
| `critique [target]` | Evaluate | UX design review with heuristic scoring | [reference/critique.md](reference/critique.md) |
|
|
54
|
+
| `audit [target]` | Evaluate | Technical quality checks (a11y, perf, responsive) | [reference/audit.md](reference/audit.md) · native: [reference/audit.native.md](reference/audit.native.md) |
|
|
55
|
+
| `polish [target]` | Refine | Final quality pass before shipping | [reference/polish.md](reference/polish.md) |
|
|
56
|
+
| `bolder [target]` | Refine | Amplify safe or bland designs | [reference/bolder.md](reference/bolder.md) |
|
|
57
|
+
| `quieter [target]` | Refine | Tone down aggressive or overstimulating designs | [reference/quieter.md](reference/quieter.md) |
|
|
58
|
+
| `distill [target]` | Refine | Strip to essence, remove complexity | [reference/distill.md](reference/distill.md) |
|
|
59
|
+
| `harden [target]` | Refine | Production-ready: errors, i18n, edge cases | [reference/harden.md](reference/harden.md) |
|
|
60
|
+
| `onboard [target]` | Refine | Design first-run flows, empty states, activation | [reference/onboard.md](reference/onboard.md) |
|
|
61
|
+
| `animate [target]` | Enhance | Add purposeful animations and motion | [reference/animate.md](reference/animate.md) |
|
|
62
|
+
| `colorize [target]` | Enhance | Add strategic color to monochromatic UIs | [reference/colorize.md](reference/colorize.md) |
|
|
63
|
+
| `typeset [target]` | Enhance | Improve typography hierarchy and fonts | [reference/typeset.md](reference/typeset.md) |
|
|
64
|
+
| `layout [target]` | Enhance | Fix spacing, rhythm, and visual hierarchy | [reference/layout.md](reference/layout.md) |
|
|
65
|
+
| `delight [target]` | Enhance | Add personality and memorable touches | [reference/delight.md](reference/delight.md) |
|
|
66
|
+
| `overdrive [target]` | Enhance | Push past conventional limits | [reference/overdrive.md](reference/overdrive.md) |
|
|
67
|
+
| `clarify [target]` | Fix | Improve UX copy, labels, and error messages | [reference/clarify.md](reference/clarify.md) |
|
|
68
|
+
| `adapt [target]` | Fix | Adapt for different devices and screen sizes | [reference/adapt.md](reference/adapt.md) · native: [reference/adapt.native.md](reference/adapt.native.md) |
|
|
69
|
+
| `optimize [target]` | Fix | Diagnose and fix UI performance | [reference/optimize.md](reference/optimize.md) |
|
|
70
|
+
| `live` | Iterate | Visual variant mode: pick elements in the browser, iterate on alternatives | [reference/live.md](reference/live.md) |
|
|
71
|
+
| `generate [n] [action] [element]` | Iterate | Variants, versions, or alternatives of a named element to choose from in the live browser; no manual picking | [reference/generate.md](reference/generate.md) |
|
|
72
|
+
|
|
73
|
+
Routing:
|
|
74
|
+
|
|
75
|
+
- **No argument:** read [routing.md](reference/routing.md) and present its context-aware menu; never auto-run a command.
|
|
76
|
+
- **Explicit or clearly implied request to run a command:** load its reference (native variant on native platforms) and follow it. Ask once if two commands fit.
|
|
77
|
+
- **Workflow or command-selection question:** read [Workflow questions](reference/routing.md#workflow-questions).
|
|
78
|
+
- **Otherwise:** treat the request as general design work. Missing PRODUCT.md routes a new surface or replacement world through init, then new-work; a narrow refinement of existing code proceeds on the incumbent implementation as `impeccable context` directs, offering init afterward rather than blocking on it.
|
|
79
|
+
- `teach` aliases `init`. `craft` is a deprecated alias for ordinary new-work and adds nothing. `shape` owns task discovery, then enters new-work only for visual-world and surface-concept decisions.
|
|
80
|
+
|
|
81
|
+
After init writes PRODUCT.md, resume without rerunning `impeccable context`; init loads the native platform reference itself when the platform it recorded is `ios`, `android`, or `adaptive`.
|
|
82
|
+
|
|
83
|
+
**Pin / Unpin:** `.pi/skills/impeccable/scripts/impeccable pin <pin|unpin> <command>` creates or removes a standalone `/<command>` shortcut. Report the script's result concisely; relay stderr verbatim on error.
|
|
84
|
+
|
|
85
|
+
**Hooks:** `/impeccable hooks <on|off|status|ignore-rule|ignore-file|ignore-value|reset>` manages the design detector hook for this project (auto-runs the detector after UI file edits and surfaces findings). Load [reference/hooks.md](reference/hooks.md) when the user invokes it with any argument.
|
|
86
|
+
|
|
87
|
+
**Doctor:** `/impeccable doctor` reports and repairs drift between this project's Impeccable artifacts (PRODUCT.md, DESIGN.md and its sidecar, config, surface briefs, the hook) and what this version reads. Load [reference/doctor.md](reference/doctor.md) when the user invokes it, or when they ask what is out of date, stale, or needs refreshing. A `CONTEXT_STALE` directive in Setup's output is the cheap subset of the same report; act on it there per its own instructions rather than running doctor unasked.
|
|
88
|
+
|
|
89
|
+
**Never repair drift as a side effect of a design task.** A `CONTEXT_STALE` finding is reported, not acted on, unless the user asks. The one exception is a finding marked `auto`, which the next write to that file performs anyway.
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
> **Additional context needed**: target platforms/devices and usage contexts.
|
|
2
|
+
|
|
3
|
+
Adapt an existing design to a different context: another screen size, device, platform, or use case. The trap is treating adaptation as scaling. The job is rethinking the experience for the new context.
|
|
4
|
+
|
|
5
|
+
**Web only** (mobile web included). Native platforms (`ios` / `android` / `adaptive`) route to [adapt.native.md](adapt.native.md) instead; if the project is native, switch to it now.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Assess Adaptation Challenge
|
|
10
|
+
|
|
11
|
+
Understand what needs adaptation and why:
|
|
12
|
+
|
|
13
|
+
1. **Identify the source context**:
|
|
14
|
+
- What was it designed for originally? (Desktop web? Mobile app?)
|
|
15
|
+
- What assumptions were made? (Large screen? Mouse input? Fast connection?)
|
|
16
|
+
- What works well in current context?
|
|
17
|
+
|
|
18
|
+
2. **Understand target context**:
|
|
19
|
+
- **Device**: Mobile, tablet, desktop, TV, watch, print?
|
|
20
|
+
- **Input method**: Touch, mouse, keyboard, voice, gamepad?
|
|
21
|
+
- **Screen constraints**: Size, resolution, orientation?
|
|
22
|
+
- **Connection**: Fast wifi, slow 3G, offline?
|
|
23
|
+
- **Usage context**: On-the-go vs desk, quick glance vs focused reading?
|
|
24
|
+
- **User expectations**: What do users expect on this platform?
|
|
25
|
+
|
|
26
|
+
3. **Identify adaptation challenges**:
|
|
27
|
+
- What won't fit? (Content, navigation, features)
|
|
28
|
+
- What won't work? (Hover states on touch, tiny touch targets)
|
|
29
|
+
- What's inappropriate? (Desktop patterns on mobile, mobile patterns on desktop)
|
|
30
|
+
|
|
31
|
+
Adaptation is rethinking the experience for the new context, not scaling pixels.
|
|
32
|
+
|
|
33
|
+
## Plan Adaptation Strategy
|
|
34
|
+
|
|
35
|
+
Create context-appropriate strategy:
|
|
36
|
+
|
|
37
|
+
### Mobile Adaptation (Desktop → Mobile)
|
|
38
|
+
|
|
39
|
+
**Layout Strategy**:
|
|
40
|
+
- Single column instead of multi-column
|
|
41
|
+
- Vertical stacking instead of side-by-side
|
|
42
|
+
- Full-width components instead of fixed widths
|
|
43
|
+
- Bottom navigation instead of top/side navigation
|
|
44
|
+
|
|
45
|
+
**Interaction Strategy**:
|
|
46
|
+
- Touch targets 44x44px minimum (not hover-dependent)
|
|
47
|
+
- Swipe gestures where appropriate (lists, carousels)
|
|
48
|
+
- Bottom sheets instead of dropdowns
|
|
49
|
+
- Thumbs-first design (controls within thumb reach)
|
|
50
|
+
- Larger tap areas with more spacing
|
|
51
|
+
|
|
52
|
+
**Content Strategy**:
|
|
53
|
+
- Progressive disclosure (don't show everything at once)
|
|
54
|
+
- Prioritize primary content (secondary content in tabs/accordions)
|
|
55
|
+
- Shorter text (more concise)
|
|
56
|
+
- Larger text (16px minimum)
|
|
57
|
+
|
|
58
|
+
**Navigation Strategy**:
|
|
59
|
+
- Hamburger menu or bottom navigation
|
|
60
|
+
- Reduce navigation complexity
|
|
61
|
+
- Sticky headers for context
|
|
62
|
+
- Back button in navigation flow
|
|
63
|
+
|
|
64
|
+
### Tablet Adaptation (Hybrid Approach)
|
|
65
|
+
|
|
66
|
+
**Layout Strategy**:
|
|
67
|
+
- Two-column layouts (not single or three-column)
|
|
68
|
+
- Side panels for secondary content
|
|
69
|
+
- Master-detail views (list + detail)
|
|
70
|
+
- Adaptive based on orientation (portrait vs landscape)
|
|
71
|
+
|
|
72
|
+
**Interaction Strategy**:
|
|
73
|
+
- Support both touch and pointer
|
|
74
|
+
- Touch targets 44x44px but allow denser layouts than phone
|
|
75
|
+
- Side navigation drawers
|
|
76
|
+
- Multi-column forms where appropriate
|
|
77
|
+
|
|
78
|
+
### Desktop Adaptation (Mobile → Desktop)
|
|
79
|
+
|
|
80
|
+
**Layout Strategy**:
|
|
81
|
+
- Multi-column layouts (use horizontal space)
|
|
82
|
+
- Side navigation always visible
|
|
83
|
+
- Multiple information panels simultaneously
|
|
84
|
+
- Fixed widths with max-width constraints (don't stretch to 4K)
|
|
85
|
+
|
|
86
|
+
**Interaction Strategy**:
|
|
87
|
+
- Hover states for additional information
|
|
88
|
+
- Keyboard shortcuts
|
|
89
|
+
- Right-click context menus
|
|
90
|
+
- Drag and drop where helpful
|
|
91
|
+
- Multi-select with Shift/Cmd
|
|
92
|
+
|
|
93
|
+
**Content Strategy**:
|
|
94
|
+
- Show more information upfront (less progressive disclosure)
|
|
95
|
+
- Data tables with many columns
|
|
96
|
+
- Richer visualizations
|
|
97
|
+
- More detailed descriptions
|
|
98
|
+
|
|
99
|
+
### Print Adaptation (Screen → Print)
|
|
100
|
+
|
|
101
|
+
**Layout Strategy**:
|
|
102
|
+
- Page breaks at logical points
|
|
103
|
+
- Remove navigation, footer, interactive elements
|
|
104
|
+
- Black and white (or limited color)
|
|
105
|
+
- Proper margins for binding
|
|
106
|
+
|
|
107
|
+
**Content Strategy**:
|
|
108
|
+
- Expand shortened content (show full URLs, hidden sections)
|
|
109
|
+
- Add page numbers, headers, footers
|
|
110
|
+
- Include metadata (print date, page title)
|
|
111
|
+
- Convert charts to print-friendly versions
|
|
112
|
+
|
|
113
|
+
### Email Adaptation (Web → Email)
|
|
114
|
+
|
|
115
|
+
**Layout Strategy**:
|
|
116
|
+
- Narrow width (600px max)
|
|
117
|
+
- Single column only
|
|
118
|
+
- Inline CSS (no external stylesheets)
|
|
119
|
+
- Table-based layouts (for email client compatibility)
|
|
120
|
+
|
|
121
|
+
**Interaction Strategy**:
|
|
122
|
+
- Large, obvious CTAs (buttons not text links)
|
|
123
|
+
- No hover states (not reliable)
|
|
124
|
+
- Deep links to web app for complex interactions
|
|
125
|
+
|
|
126
|
+
## Implement Adaptations
|
|
127
|
+
|
|
128
|
+
Apply changes systematically:
|
|
129
|
+
|
|
130
|
+
### Responsive Breakpoints
|
|
131
|
+
|
|
132
|
+
Choose appropriate breakpoints:
|
|
133
|
+
- Mobile: 320px-767px
|
|
134
|
+
- Tablet: 768px-1023px
|
|
135
|
+
- Desktop: 1024px+
|
|
136
|
+
- Or content-driven breakpoints (where design breaks)
|
|
137
|
+
|
|
138
|
+
### Layout Adaptation Techniques
|
|
139
|
+
|
|
140
|
+
- **CSS Grid/Flexbox**: Reflow layouts automatically
|
|
141
|
+
- **Container Queries**: Adapt based on container, not viewport
|
|
142
|
+
- **`clamp()`**: Fluid sizing between min and max
|
|
143
|
+
- **Media queries**: Different styles for different contexts
|
|
144
|
+
- **Display properties**: Show/hide elements per context
|
|
145
|
+
|
|
146
|
+
### Touch Adaptation
|
|
147
|
+
|
|
148
|
+
- Increase touch target sizes (44x44px minimum)
|
|
149
|
+
- Add more spacing between interactive elements
|
|
150
|
+
- Remove hover-dependent interactions
|
|
151
|
+
- Add touch feedback (ripples, highlights)
|
|
152
|
+
- Consider thumb zones (easier to reach bottom than top)
|
|
153
|
+
|
|
154
|
+
### Content Adaptation
|
|
155
|
+
|
|
156
|
+
- Use `display: none` sparingly (still downloads)
|
|
157
|
+
- Progressive enhancement (core content first, enhancements on larger screens)
|
|
158
|
+
- Lazy loading for off-screen content
|
|
159
|
+
- Responsive images (`srcset`, `picture` element)
|
|
160
|
+
|
|
161
|
+
### Navigation Adaptation
|
|
162
|
+
|
|
163
|
+
- Transform complex nav to hamburger/drawer on mobile
|
|
164
|
+
- Bottom nav bar for mobile apps
|
|
165
|
+
- Persistent side navigation on desktop
|
|
166
|
+
- Breadcrumbs on smaller screens for context
|
|
167
|
+
|
|
168
|
+
Test on real devices. DevTools emulation is a useful first pass but misses real touch, performance, and browser chrome.
|
|
169
|
+
|
|
170
|
+
**Avoid**:
|
|
171
|
+
- Hide core functionality on mobile (if it matters, make it work)
|
|
172
|
+
- Assume desktop = powerful device (consider accessibility, older machines)
|
|
173
|
+
- Use different information architecture across contexts (confusing)
|
|
174
|
+
- Break user expectations for platform (mobile users expect mobile patterns)
|
|
175
|
+
- Forget landscape orientation on mobile/tablet
|
|
176
|
+
- Use generic breakpoints blindly (use content-driven breakpoints)
|
|
177
|
+
- Ignore touch on desktop (many desktop devices have touch)
|
|
178
|
+
|
|
179
|
+
## Verify Adaptations
|
|
180
|
+
|
|
181
|
+
Test thoroughly across contexts:
|
|
182
|
+
|
|
183
|
+
- **Real devices**: Test on actual phones, tablets, desktops
|
|
184
|
+
- **Different orientations**: Portrait and landscape
|
|
185
|
+
- **Different browsers**: Safari, Chrome, Firefox, Edge
|
|
186
|
+
- **Different OS**: iOS, Android, Windows, macOS
|
|
187
|
+
- **Different input methods**: Touch, mouse, keyboard
|
|
188
|
+
- **Edge cases**: Very small screens (320px), very large screens (4K)
|
|
189
|
+
- **Slow connections**: Test on throttled network
|
|
190
|
+
|
|
191
|
+
**Custom controls** (sliders, drag surfaces, scrollable control strips): a before/after slider can pass every width check above and still refuse to drag on iOS, so exercise each one in scope in the same batched round as the checks above:
|
|
192
|
+
|
|
193
|
+
- **Primary gesture**: Tap it and confirm it responds as designed, then drag it with the target input method; the drag must complete, not just start
|
|
194
|
+
- **Scroll across it**: A swipe along the page's scroll axis across the control scrolls the page or container without activating it; a drag that starts on the control along its axis moves the control, not the page. Neither failure throws an error, so try both
|
|
195
|
+
- **Evidence**: Say what produced the evidence: an emulated viewport, synthesized touch input through a browser tool, which engine ran it (Chromium is not Safari), or a physical device. Screenshots and resized viewports verify layout, never a gesture. Name what stayed untested and move on; unreachable hardware is a reported gap, not a blocker
|
|
196
|
+
|
|
197
|
+
When the adaptation feels native to each context, hand off to `/impeccable polish` for the final pass.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Reference Material
|
|
202
|
+
|
|
203
|
+
The sections below were previously `responsive-design.md` and live inline now so the adapt flow has its deep responsive reference in one place.
|
|
204
|
+
|
|
205
|
+
### Responsive Design
|
|
206
|
+
|
|
207
|
+
#### Mobile-First: Write It Right
|
|
208
|
+
|
|
209
|
+
Start with base styles for mobile, use `min-width` queries to layer complexity. Desktop-first (`max-width`) means mobile loads unnecessary styles first.
|
|
210
|
+
|
|
211
|
+
#### Breakpoints: Content-Driven
|
|
212
|
+
|
|
213
|
+
Don't chase device sizes; let content tell you where to break. Start narrow, stretch until design breaks, add breakpoint there. Three breakpoints usually suffice (640, 768, 1024px). Use `clamp()` for fluid values without breakpoints.
|
|
214
|
+
|
|
215
|
+
#### Detect Input Method, Not Just Screen Size
|
|
216
|
+
|
|
217
|
+
**Screen size doesn't tell you input method.** A laptop with touchscreen, a tablet with keyboard. Use pointer and hover queries:
|
|
218
|
+
|
|
219
|
+
```css
|
|
220
|
+
/* Fine pointer (mouse, trackpad) */
|
|
221
|
+
@media (pointer: fine) {
|
|
222
|
+
.button { padding: 8px 16px; }
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Coarse pointer (touch, stylus) */
|
|
226
|
+
@media (pointer: coarse) {
|
|
227
|
+
.button { padding: 12px 20px; } /* Larger touch target */
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Device supports hover */
|
|
231
|
+
@media (hover: hover) {
|
|
232
|
+
.card:hover { transform: translateY(-2px); }
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Device doesn't support hover (touch) */
|
|
236
|
+
@media (hover: none) {
|
|
237
|
+
.card { /* No hover state - use active instead */ }
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
**Critical**: Don't rely on hover for functionality. Touch users can't hover.
|
|
242
|
+
|
|
243
|
+
#### Safe Areas: Handle the Notch
|
|
244
|
+
|
|
245
|
+
Modern phones have notches, rounded corners, and home indicators. Use `env()`:
|
|
246
|
+
|
|
247
|
+
```css
|
|
248
|
+
body {
|
|
249
|
+
padding-top: env(safe-area-inset-top);
|
|
250
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
251
|
+
padding-left: env(safe-area-inset-left);
|
|
252
|
+
padding-right: env(safe-area-inset-right);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* With fallback */
|
|
256
|
+
.footer {
|
|
257
|
+
padding-bottom: max(1rem, env(safe-area-inset-bottom));
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
**Enable viewport-fit** in your meta tag:
|
|
262
|
+
```html
|
|
263
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
#### Responsive Images: Get It Right
|
|
267
|
+
|
|
268
|
+
##### srcset with Width Descriptors
|
|
269
|
+
|
|
270
|
+
```html
|
|
271
|
+
<img
|
|
272
|
+
src="hero-800.jpg"
|
|
273
|
+
srcset="
|
|
274
|
+
hero-400.jpg 400w,
|
|
275
|
+
hero-800.jpg 800w,
|
|
276
|
+
hero-1200.jpg 1200w
|
|
277
|
+
"
|
|
278
|
+
sizes="(max-width: 768px) 100vw, 50vw"
|
|
279
|
+
alt="Hero image"
|
|
280
|
+
>
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
**How it works**:
|
|
284
|
+
- `srcset` lists available images with their actual widths (`w` descriptors)
|
|
285
|
+
- `sizes` tells the browser how wide the image will display
|
|
286
|
+
- Browser picks the best file based on viewport width AND device pixel ratio
|
|
287
|
+
|
|
288
|
+
##### Picture Element for Art Direction
|
|
289
|
+
|
|
290
|
+
When you need different crops/compositions (not just resolutions):
|
|
291
|
+
|
|
292
|
+
```html
|
|
293
|
+
<picture>
|
|
294
|
+
<source media="(min-width: 768px)" srcset="wide.jpg">
|
|
295
|
+
<source media="(max-width: 767px)" srcset="tall.jpg">
|
|
296
|
+
<img src="fallback.jpg" alt="...">
|
|
297
|
+
</picture>
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
#### Layout Adaptation Patterns
|
|
301
|
+
|
|
302
|
+
**Navigation**: Three stages: hamburger + drawer on mobile, horizontal compact on tablet, full with labels on desktop. **Tables**: Transform to cards on mobile using `display: block` and `data-label` attributes. **Progressive disclosure**: Use `<details>/<summary>` for content that can collapse on mobile.
|
|
303
|
+
|
|
304
|
+
#### Testing: Don't Trust DevTools Alone
|
|
305
|
+
|
|
306
|
+
DevTools device emulation is useful for layout but misses:
|
|
307
|
+
|
|
308
|
+
- Actual touch interactions
|
|
309
|
+
- Real CPU/memory constraints
|
|
310
|
+
- Network latency patterns
|
|
311
|
+
- Font rendering differences
|
|
312
|
+
- Browser chrome/keyboard appearances
|
|
313
|
+
|
|
314
|
+
**Test on at least**: One real iPhone, one real Android, a tablet if relevant. Cheap Android phones reveal performance issues you'll never see on simulators.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
**Avoid**: Desktop-first design. Device detection instead of feature detection. Separate mobile/desktop codebases. Ignoring tablet and landscape. Assuming all mobile devices are powerful.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
> **Additional context needed**: target platforms/devices and usage contexts.
|
|
2
|
+
|
|
3
|
+
Adapt an existing **native** design (`ios` / `android` / `adaptive`) to a different context: another device class, orientation, platform, or origin. The trap is treating adaptation as scaling. The job is rethinking the experience for the new context, inside the platform conventions of [ios.md](ios.md) / [android.md](android.md); read the target platform's reference before planning if Setup hasn't already.
|
|
4
|
+
|
|
5
|
+
## Assess Adaptation Challenge
|
|
6
|
+
|
|
7
|
+
1. **Source context**: what was it designed for, and what assumptions did it make? (Phone-only? Portrait-only? One platform's idioms? A website?)
|
|
8
|
+
2. **Target context**: which device class (phone, tablet, foldable), orientation, platform, and usage posture (one-handed on the go vs two-handed at rest)?
|
|
9
|
+
3. **What breaks**: navigation that doesn't fit the target, layouts that stretch instead of restructure, gestures or controls that don't exist there?
|
|
10
|
+
|
|
11
|
+
## Adaptation Strategies
|
|
12
|
+
|
|
13
|
+
### Phone → Tablet (iPad / large screens)
|
|
14
|
+
|
|
15
|
+
- **Restructure, don't stretch.** A scaled-up phone UI on a tablet is the failure mode. Use size classes (iOS) / window size classes (Android) to switch structure.
|
|
16
|
+
- **Navigation changes shape**: tab bar stays or becomes a sidebar on iPad; Android navigation bar becomes a rail or drawer on expanded width.
|
|
17
|
+
- **Use the width**: split view / master-detail (list + detail side by side), multi-column grids, popovers where phones used sheets.
|
|
18
|
+
- **Multitasking is a size, not an edge case**: iPad Split View and Android multi-window can hand you a phone-width window on a tablet; size-class-driven layout handles both for free.
|
|
19
|
+
|
|
20
|
+
### Orientation & foldables
|
|
21
|
+
|
|
22
|
+
- Landscape restructures (side-by-side panes, repositioned controls); never clip or letterbox. Lock orientation only when the task truly demands it.
|
|
23
|
+
- Foldables (Android): react to posture and hinge via window size classes; test folded, unfolded, and tabletop.
|
|
24
|
+
|
|
25
|
+
### Platform → platform (iOS ↔ Android)
|
|
26
|
+
|
|
27
|
+
Translate idioms; never transplant them:
|
|
28
|
+
|
|
29
|
+
| iOS | Android |
|
|
30
|
+
|---|---|
|
|
31
|
+
| Tab bar | Navigation bar / rail / drawer |
|
|
32
|
+
| Edge-swipe back, back chevron | Predictive Back gesture / button |
|
|
33
|
+
| Switch, segmented control, system pickers | Material switch, chips, Material pickers |
|
|
34
|
+
| Action sheet | Bottom sheet / Material dialog |
|
|
35
|
+
| SF Symbols, SF Pro, Dynamic Type | Material Symbols, Roboto, sp scaling |
|
|
36
|
+
| Semantic system colors, materials | Material color roles, tonal elevation |
|
|
37
|
+
| System push/sheet transitions | Container transform, shared-axis, fade-through |
|
|
38
|
+
|
|
39
|
+
Rebuild navigation and controls in the target's vocabulary; carry over the brand's expressive layer (palette intent, type accent, motion personality) through the target's theming system.
|
|
40
|
+
|
|
41
|
+
### Web → native (porting a website or web app)
|
|
42
|
+
|
|
43
|
+
Reconform, don't reflow. Replace web navigation with the platform's model, HTML-shaped controls with platform controls, hover affordances with touch-first ones, and px-based type with Dynamic Type / sp. Then treat the result to the full platform reference; the slop test there is the acceptance bar.
|
|
44
|
+
|
|
45
|
+
## Implement & Verify
|
|
46
|
+
|
|
47
|
+
- Drive structure from **size classes / window size classes**, never from device-model checks.
|
|
48
|
+
- Respect safe areas and window insets in every new configuration (notch, hinge, status bar, keyboard).
|
|
49
|
+
- Test on simulators for breadth, then real hardware for truth: at least one phone and one tablet per shipped platform, both orientations, split-screen where supported.
|
|
50
|
+
|
|
51
|
+
When the adaptation feels native to each context, hand off to `/impeccable polish` for the final pass.
|
|
52
|
+
|
|
53
|
+
**Avoid**:
|
|
54
|
+
- Ship a stretched phone layout on a tablet
|
|
55
|
+
- Port one platform's controls or navigation onto the other
|
|
56
|
+
- Hide core functionality on smaller devices (if it matters, make it work)
|
|
57
|
+
- Lock orientation to dodge a layout bug
|
|
58
|
+
- Trust simulators alone (posture, gestures, and performance need hardware)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Android platform
|
|
2
|
+
|
|
3
|
+
For native Android apps: Jetpack Compose, Android Views, React Native, Expo, Flutter shipping to Android hardware.
|
|
4
|
+
|
|
5
|
+
On native, the visitor mode narrows what expression may override. Material Design 3 governs structure, navigation, and interaction in every mode; brand expresses through Material's theming (color roles, type scale, shape, motion). A Material-everywhere cross-platform app that also ships to iPhone still owes iOS its OS guarantees on that hardware: safe-area insets, Reduce Motion, edge-swipe back.
|
|
6
|
+
|
|
7
|
+
## The Android slop test
|
|
8
|
+
|
|
9
|
+
Would a fluent Android user trust this app, or trip on off-spec components? The most common tell is an iOS app wearing Android's skin: a bottom-only navigation copied from iPhone, a back arrow that ignores the system Back gesture, Cupertino-shaped switches and dialogs. Material 3 is the rulebook; follow its components and theme the brand through it.
|
|
10
|
+
|
|
11
|
+
## Layout & structure
|
|
12
|
+
|
|
13
|
+
- **Material navigation, matched to size.** Navigation bar (bottom, 3–5 destinations) on compact width; navigation rail or drawer on expanded width. Never ship a phone bottom-bar untouched on a tablet.
|
|
14
|
+
- **System Back always works.** Honor the predictive Back gesture and Back button; never trap the user or hijack the gesture.
|
|
15
|
+
- **Edge-to-edge with window insets.** Apply the status bar, navigation bar, display cutout, and IME insets so content never hides behind system bars or the keyboard.
|
|
16
|
+
- **Top app bar for screen context**; pair with a FAB when the screen has a single primary action.
|
|
17
|
+
|
|
18
|
+
## Touch targets
|
|
19
|
+
|
|
20
|
+
- **48×48 dp minimum** for every touch target, with at least 8 dp between them.
|
|
21
|
+
|
|
22
|
+
## Typography
|
|
23
|
+
|
|
24
|
+
- **Material type scale.** Display, Headline, Title, Body, Label roles (large/medium/small each). Map text to roles; never hand-pick sizes per screen.
|
|
25
|
+
- **Roboto is the system face**; theme a brand face in through the type scale, keeping body, labels, and controls legible and consistent.
|
|
26
|
+
- **sp units, never fixed px**, so type follows the system font-size setting.
|
|
27
|
+
|
|
28
|
+
## Color & theming
|
|
29
|
+
|
|
30
|
+
- **Material color roles** (primary, on-primary, surface, surface-variant, secondary-container, outline, error). Role tokens resolve light/dark and contrast variants automatically; raw hex breaks there.
|
|
31
|
+
- **Dynamic Color (Material You)** where it fits: derive the scheme from the user's wallpaper on Android 12+, with a static fallback.
|
|
32
|
+
- **Dark theme is a first-class scheme.** Design and test it; never a quick invert.
|
|
33
|
+
- **Tonal elevation.** Convey elevation through the standard surface tonal levels (plus shadow where appropriate); no arbitrary drop shadows.
|
|
34
|
+
|
|
35
|
+
## Components & motion
|
|
36
|
+
|
|
37
|
+
- **Material components.** Buttons (filled / tonal / outlined / text), FAB, switches, chips, snackbars, bottom sheets, Material dialogs, navigation bar/rail/drawer. Never port iOS controls or invent equivalents.
|
|
38
|
+
- **One FAB, one primary action.** Never stack FABs or spend one on a secondary task.
|
|
39
|
+
- **Snackbars for transient feedback** (actionable when useful, never a toast for that); dialogs only for decisions that must interrupt.
|
|
40
|
+
- **Material motion patterns.** Container transform, shared-axis, fade-through, with standard easing and durations; honor the system Remove animations setting with a crossfade or instant cut.
|
|
41
|
+
|
|
42
|
+
## Verifying the build
|
|
43
|
+
|
|
44
|
+
- **Screenshots come from the emulator or a connected device, never a browser.** Build and install, then capture with `adb exec-out screencap -p > <path>` (pick a device with `adb -s <serial>` when several are attached). Capture every device class the app ships to, at least one phone and, when tablets are a target, one tablet, and write the files where the review flow expects them.
|
|
45
|
+
- **Dark theme and font scale belong in the pass.** `adb shell cmd uimode night yes` flips the theme; `adb shell settings put system font_scale 1.3` (read both settings first with `adb shell cmd uimode night` and `adb shell settings get system font_scale`, and restore them after) catches the clipped labels a fixed layout hides; with several targets attached, the capture's `-s <serial>` goes on these commands too.
|
|
46
|
+
- **Emulators give breadth; gestures, refresh rates, and performance need hardware.** Say which one produced the evidence.
|