[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72SGQF4G76C4NGSF69KZRRF":3,"skill-same:01M72SGQF4G76C4NGSF69KZRRF":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M72SGQF4G76C4NGSF69KZRRF","fs-skia-keyboard-input",null,"Map keyboard input to product commands in a generated FS.Skia.UI product.","EHotwagner\u002FFS-Skia-UI","EHotwagner","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1645484?v=4","01M72S7CTBDPQDQHQJKKHY87K9","01M72S7CVFD0JN82RVX21NFEVC",2,"MIT","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-keyboard-input\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: fs-skia-keyboard-input\ndescription: Map keyboard input to product commands in a generated FS.Skia.UI product.\n---\n\n# KeyboardInput Capability\n\n## Scope\n\nUse this skill for product keyboard handling in the `app` profile: mapping a\nnormalized `ViewerKey` (plus its down\u002Fup flag) to a product `Msg` at the host's\n`MapKey` boundary. This is the boundary the generated host actually threads — there\nis no separate keyboard reducer to seed.\n\n## Public Contract\n\nThe signatures you consume are bundled with this product at\n`docs\u002Fapi-surface\u002FKeyboardInput\u002FKeyboardInput.fsi` (the `ViewerKey` cases the host\ndelivers) and `docs\u002Fapi-surface\u002FSkiaViewer\u002FSkiaViewer.fsi` (the `MapKey: ViewerKey\n-> bool -> 'msg option` field on the generated host). The host normalizes raw key\nstrings to `ViewerKey` for you and calls `MapKey`; your only job is the pure\n`ViewerKey -> bool -> Msg option` mapping.\n\n## Usage\n\n```fsharp\nopen FS.Skia.UI.KeyboardInput\n\n\u002F\u002F The host calls this at its MapKey boundary: a normalized ViewerKey + down flag\n\u002F\u002F in, an optional product Msg out. This is the entire consumer keyboard contract.\nlet mapKey (key: ViewerKey) (isDown: bool) : Msg option =\n    match key, isDown with\n    | ArrowLeft, true -> Some MoveLeft\n    | Space, true -> Some PrimaryAction\n    | _ -> None\n\n\u002F\u002F Wire it into the generated host (app profile):\n\u002F\u002F   let generatedHost = { ... ; MapKey = mapKey ; ... }\n```\n\nThe `Keyboard.init`\u002F`Keyboard.update`\u002F`KeyboardEffect` reducer in\n`KeyboardInput.fsi` is an optional advanced surface for products that maintain\ntheir own keyboard state machine; the `app` host does **not** use it, so do not\nseed it as the consumer path.\n\n## Common pitfalls\n\n- **Duplicate DU case names across co-opened modules.** `ViewerKey.Unknown of raw:\n  string` (from `FS.Skia.UI.KeyboardInput`) and `ViewerRunBlockedStage.Unknown`\n  (from `FS.Skia.UI.SkiaViewer`) are both in scope once you `open` both modules. A\n  bare `Unknown` then binds to whichever module was opened **last**, producing a\n  misleading type error far from the real site. Qualify the case at the use site:\n  ```fsharp\n  match key with\n  | ViewerKey.Unknown raw -> handleUnknownKey raw   \u002F\u002F not a bare `Unknown _`\n  | _ -> ...\n  ```\n  The same trap fires across **your own** co-opened modules — it is not limited to\n  framework-vs-framework collisions. A consumer that declares both\n  `type GameMode = | Launch | Playing | …` and `type Msg = | Launch | Tick | …`\n  and `open`s both has two `Launch` cases in scope; a bare `Launch` binds to the\n  **last-declared** type (`Msg`), so a `GameMode`-typed match arm or constructor\n  yields ten misleading \"expected GameMode but has type Msg\" errors far from the\n  real site. Qualify the case — `GameMode.Launch` \u002F `Msg.Launch` — at every use:\n  ```fsharp\n  let next = GameMode.Launch          \u002F\u002F not a bare `Launch`\n  match mode with\n  | GameMode.Launch -> startGame ()\n  | _ -> ...\n  ```\n\n## Build Commands\n\nRun `.\u002Ffake.sh build -t Dev` then `.\u002Ffake.sh build -t Verify` in this product.\n\n## Test Commands\n\nRun `.\u002Ffake.sh build -t Test` to assert binding resolution and command effects.\n\n## Evidence\n\nRecord keyboard command and state evidence under this product's `readiness\u002F`\npaths. Do not copy framework readiness reports into the product.\n\n## Package Boundary\n\nKeep key reduction pure; the host delivers raw key events and interprets\n`RequestHostKeyCapture` through the viewer, not inside `Keyboard.update`.\n\n## Generated Product\n\nThe app profile threads `mapKey` into `generatedHost` so the viewer routes input\nthrough your pure reducer.\n\n## Persistent problems\n\nWhen a problem outlasts reasonable in-repo attempts, extensive external research is\n**mandatory** — consult **official online docs first** (the F#\u002F.NET docs and the driven\nlibrary's own documentation\u002FAPI reference), then community sources (forums, Reddit, Q&A\nsites, issue trackers and changelogs). Record the findings and resolving links in the\nfeature's `specs\u002F\u003Cfeature>\u002Ffeedback\u002F` folder and, for durable lessons, in this skill's\n**Sources** line. Offline, the mandate degrades to recording \"research blocked — \u003Cwhy>\"\nrather than hard-failing the phase.\n\n## Related\n\n- [[fs-skia-skiaviewer]] — the host that delivers raw key events to `mapKey`.\n- [[fs-skia-elmish]] — thread keyboard `Msg` values through the pure adapter.\n\n## Sources \u002F links\n\n- F#\u002F.NET docs: https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Ffsharp\u002F\n- SkiaSharp (host input\u002Fruntime): https:\u002F\u002Fgithub.com\u002Fmono\u002FSkiaSharp\n","# KeyboardInput Capability\n\n## Scope\n\nUse this skill for product keyboard handling in the `app` profile: mapping a\nnormalized `ViewerKey` (plus its down\u002Fup flag) to a product `Msg` at the host's\n`MapKey` boundary. This is the boundary the generated host actually threads — there\nis no separate keyboard reducer to seed.\n\n## Public Contract\n\nThe signatures you consume are bundled with this product at\n`docs\u002Fapi-surface\u002FKeyboardInput\u002FKeyboardInput.fsi` (the `ViewerKey` cases the host\ndelivers) and `docs\u002Fapi-surface\u002FSkiaViewer\u002FSkiaViewer.fsi` (the `MapKey: ViewerKey\n-> bool -> 'msg option` field on the generated host). The host normalizes raw key\nstrings to `ViewerKey` for you and calls `MapKey`; your only job is the pure\n`ViewerKey -> bool -> Msg option` mapping.\n\n## Usage\n\n```fsharp\nopen FS.Skia.UI.KeyboardInput\n\n\u002F\u002F The host calls this at its MapKey boundary: a normalized ViewerKey + down flag\n\u002F\u002F in, an optional product Msg out. This is the entire consumer keyboard contract.\nlet mapKey (key: ViewerKey) (isDown: bool) : Msg option =\n    match key, isDown with\n    | ArrowLeft, true -> Some MoveLeft\n    | Space, true -> Some PrimaryAction\n    | _ -> None\n\n\u002F\u002F Wire it into the generated host (app profile):\n\u002F\u002F   let generatedHost = { ... ; MapKey = mapKey ; ... }\n```\n\nThe `Keyboard.init`\u002F`Keyboard.update`\u002F`KeyboardEffect` reducer in\n`KeyboardInput.fsi` is an optional advanced surface for products that maintain\ntheir own keyboard state machine; the `app` host does **not** use it, so do not\nseed it as the consumer path.\n\n## Common pitfalls\n\n- **Duplicate DU case names across co-opened modules.** `ViewerKey.Unknown of raw:\n  string` (from `FS.Skia.UI.KeyboardInput`) and `ViewerRunBlockedStage.Unknown`\n  (from `FS.Skia.UI.SkiaViewer`) are both in scope once you `open` both modules. A\n  bare `Unknown` then binds to whichever module was opened **last**, producing a\n  misleading type error far from the real site. Qualify the case at the use site:\n  ```fsharp\n  match key with\n  | ViewerKey.Unknown raw -> handleUnknownKey raw   \u002F\u002F not a bare `Unknown _`\n  | _ -> ...\n  ```\n  The same trap fires across **your own** co-opened modules — it is not limited to\n  framework-vs-framework collisions. A consumer that declares both\n  `type GameMode = | Launch | Playing | …` and `type Msg = | Launch | Tick | …`\n  and `open`s both has two `Launch` cases in scope; a bare `Launch` binds to the\n  **last-declared** type (`Msg`), so a `GameMode`-typed match arm or constructor\n  yields ten misleading \"expected GameMode but has type Msg\" errors far from the\n  real site. Qualify the case — `GameMode.Launch` \u002F `Msg.Launch` — at every use:\n  ```fsharp\n  let next = GameMode.Launch          \u002F\u002F not a bare `Launch`\n  match mode with\n  | GameMode.Launch -> startGame ()\n  | _ -> ...\n  ```\n\n## Build Commands\n\nRun `.\u002Ffake.sh build -t Dev` then `.\u002Ffake.sh build -t Verify` in this product.\n\n## Test Commands\n\nRun `.\u002Ffake.sh build -t Test` to assert binding resolution and command effects.\n\n## Evidence\n\nRecord keyboard command and state evidence under this product's `readiness\u002F`\npaths. Do not copy framework readiness reports into the product.\n\n## Package Boundary\n\nKeep key reduction pure; the host delivers raw key events and interprets\n`RequestHostKeyCapture` through the viewer, not inside `Keyboard.update`.\n\n## Generated Product\n\nThe app profile threads `mapKey` into `generatedHost` so the viewer routes input\nthrough your pure reducer.\n\n## Persistent problems\n\nWhen a problem outlasts reasonable in-repo attempts, extensive external research is\n**mandatory** — consult **official online docs first** (the F#\u002F.NET docs and the driven\nlibrary's own documentation\u002FAPI reference), then community sources (forums, Reddit, Q&A\nsites, issue trackers and changelogs). Record the findings and resolving links in the\nfeature's `specs\u002F\u003Cfeature>\u002Ffeedback\u002F` folder and, for durable lessons, in this skill's\n**Sources** line. Offline, the mandate degrades to recording \"research blocked — \u003Cwhy>\"\nrather than hard-failing the phase.\n\n## Related\n\n- [[fs-skia-skiaviewer]] — the host that delivers raw key events to `mapKey`.\n- [[fs-skia-elmish]] — thread keyboard `Msg` values through the pure adapter.\n\n## Sources \u002F links\n\n- F#\u002F.NET docs: https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Ffsharp\u002F\n- SkiaSharp (host input\u002Fruntime): https:\u002F\u002Fgithub.com\u002Fmono\u002FSkiaSharp\n",{"name":5,"description":7},"main","f943406829a9218b2882e09eb88d4ddb539c5e72","template\u002Fproduct-skills\u002Ffs-skia-keyboard-input",0,"https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI","https:\u002F\u002Fgithub.com\u002FEHotwagner","2026-06-16 16:16:52",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add EHotwagner\u002FFS-Skia-UI --skill fs-skia-keyboard-input",{"tool":36,"command":37},"bunx","bunx skills add EHotwagner\u002FFS-Skia-UI --skill fs-skia-keyboard-input",{"tool":39,"command":40},"pnpm","pnpm dlx skills add EHotwagner\u002FFS-Skia-UI --skill fs-skia-keyboard-input","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-keyboard-input\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M72SGYR4T02T1HTS175E0V86","fs-skia-ui-widgets","Generated product guidance for Skia-rendered FS.Skia.UI Controls, rich text, chart controls, graph controls, DataGrid, and custom wrappers.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-ui-widgets\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M72SGVZJR1B117QK7TCC6E0J","fs-skia-testing","Assert generated-product expectations and evidence in a governed FS.Skia.UI product.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-testing\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M72SGTC5HZYEVVVZT4X51AZ3","fs-skia-skiaviewer","Wire a generated FS.Skia.UI product to the desktop viewer host.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-skiaviewer\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M72SGS47RPYPC9JTC39CC6EF","fs-skia-scene","Build pure scene descriptions in a generated FS.Skia.UI product.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-scene\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M72SGNJP3PMSS2VRP98G7Z42","fs-skia-elmish","Drive a generated FS.Skia.UI product through the pure Elmish adapter.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-elmish\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M72SGM3CFJM9NT6QKX8K1F01","fs-skia-samples","Work on optional generated product sample-pack content.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Ffragments\u002Fsamples\u002Fskill\u002FSKILL.md",[],[]]