[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J9QW2J46Y016CSM9XNQRST":3,"skill-same:01M6J9QW2J46Y016CSM9XNQRST":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M6J9QW2J46Y016CSM9XNQRST","harn-apps",null,"Keep app behavior in Harn while shared hosts draw the view and provide files, network, and browser features.","burin-labs\u002Fharn","burin-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F270508823?v=4","01M6J9MTN4TKZ12YF6BAX0DARN","Burin Labs","01M6J9MTSTW6RRQ2TWKYV1A3X1",31,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fcrates\u002Fharn-skills\u002Fsrc\u002Fcorpus\u002Fharn-apps\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"harn apps","apps","AI workflow","when","features","hosts","with","event","keep","app","shared","drawing","testing","files","use","interactive","view","model","network","browser","workflow","canvas","MCP","2026-11-10 10:12:30",false,"---\nname: harn-apps\nshort: Build Harn apps with typed views, event handlers, and model jobs.\ndescription: Keep app behavior in Harn while shared hosts draw the view and provide files, network, and browser features.\nwhen_to_use: Use when building or testing an interactive app, drawing canvas, MCP App, or AI workflow in Harn.\n---\n\n# Build interactive Harn apps\n\nUse this skill with [[harn-language]] for syntax, [[harn-testing]] for\ndeterministic checks, [[harn-providers]] for model access, and\n[[harn-product-quality]] for proof through the real user path.\n\n## Keep the app in Harn\n\nPut application state, event handling, writing result files, reopening\nunfinished work, recovery, and model-job rules in Harn. Import `std\u002Fui` as a\nnamespace and use short names such as `ui.document`, `ui.event`, and\n`ui.update`. The shared renderer turns that typed document into browser\ncontrols, canvas operations, and accessibility information.\n\nDo not add app-specific Rust or JavaScript unless a concrete user interaction\ncannot be represented by the shared contract. Add a reusable `std\u002Fui` element,\nevent, effect, or host capability when the same gap applies to other apps.\n\n## Use module namespaces\n\n```harn\nimport * as ui from \"std\u002Fui\"\nimport { UiEvent } from \"std\u002Fui\u002Fcontracts\"\n\nconst incoming: UiEvent = ui.event(raw.event)\nreturn ui.update(ui.document(\"Example\", revision, elements))\n```\n\nExport short function names from a module and qualify them where they are used.\nDo not repeat a module name in calls such as `ui.ui_event`. Keep `Ui` on public\ntype names because those types also appear in signatures outside the namespace.\nUse `ui.test.run` for event-handler tests.\n\n## Start the app\n\n1. Read `docs\u002Fsrc\u002Fstdlib\u002Fui.md` and the nearest complete example.\n2. Define a named state record and one event handler for typed UI events.\n3. Return a `UiUpdate` with the next document and any host effects.\n4. Expose the event handler as a tool whose metadata names its UI resource.\n5. Run `harn app run path\u002Fto\u002Fapp.harn` and open the printed URL.\n\nStart with `examples\u002Fapps\u002Fdecision-card.harn` for forms and\n`examples\u002Fapps\u002Flogo-studio.harn` for canvas input, model jobs, exact-text\ncomposition (`std\u002Fmedia\u002Fcomposition`), SVG+PNG export, and restart recovery.\n\n## Run one reducer in browser and server\n\nUse `std\u002Fportable.compile` plus `ui.portable_app_resource` when frequent events\nshould update the view without a server round trip. The reducer receives\n`{state, event}` and returns `{state, update}`. Keep its state to plain Harn\nvalues.\n\nThe fallback event tool must run the same `PortableProgram`, prefer the\n`raw.state` supplied by the renderer, and return the complete reducer result.\nThis keeps fallback on the latest browser state after a worker restart. Do not\ncopy the reducer into JavaScript, Rust, or a second Harn implementation.\n\nThe shared host owns the browser worker and Wasm runtime outside the untrusted\napp view. The current reducer capability list accepts only `tools.invoke`.\nKeep externally visible tool actions safe to retry. Read\n`docs\u002Fsrc\u002Fcookbooks\u002Frun-app-logic-in-browser.md` for the full path and\n`examples\u002Fapps\u002Fportable-counter.harn` for the smallest working app.\n\n## Compose model work\n\nRepresent generated media with `MediaAsset`. Submit local and hosted work\nthrough the same typed model-job contract. Prefer `model_job_submit_result`,\n`model_job_step_result`, and `model_job_finish_result` when the interface must\nshow progress or allow cancellation. Use the synchronous helper only when the\ncaller does not need intermediate states.\n\nKeep exact lettering in `std\u002Fmedia\u002Fcomposition` text layers. Ask image models to\npolish the mark without rendering words, then export a design document, editable\nSVG, and image-layer PNG. Edit outputs should carry parent asset URIs for sketch\n→ candidate lineage.\n\nKeep provider details in provider-specific code. The ComfyUI backend can upload\nverified sketch assets before it builds an image-edit workflow. A hosted backend\nreceives the same request and returns the same result shape.\n\n## Test without a browser first\n\nCall `ui.test.run` with the event handler and input events. It follows\n`send_event` effects in process and returns the final document, emitted effects,\nand handled event trace. Assert stable element IDs and meaningful state. Use\nmock providers and Harn's mock clock for model-job state changes. Do not use\nwall-clock sleeps or polling in tests.\n\nThen run the app through its real host. Prove four things:\n\n- The expected tool fired.\n- Effects completed.\n- State survived a restart.\n- The user can recover from a provider error, or cancel an active job.\n\nUse a real model for quality claims and\nrepeat stochastic trials when the claim depends on output quality.\n\n## Follow the protocols\n\nUse the current [MCP Apps specification](https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fext-apps\u002Fblob\u002Fmain\u002Fspecification\u002F2026-01-26\u002Fapps.mdx)\nfor tool and resource metadata. Use provider-owned workflow examples, such as\nthe [ComfyUI FLUX.2 Klein guide](https:\u002F\u002Fdocs.comfy.org\u002Ftutorials\u002Fflux\u002Fflux-2-klein),\nwhen constructing model graphs.\n\nA custom View sends `protocolVersion`, `appCapabilities`, and `appInfo` in\nits `ui\u002Finitialize` request. Include `fullscreen` in `availableDisplayModes`\nwhen running in Harn's standalone host. Wait for the response, send\n`ui\u002Fnotifications\u002Finitialized`, then call tools or read resources. Do not send\n`ui\u002Fnotifications\u002Fsandbox-*`; those messages belong to the host's sandbox\nframe. Check `hostCapabilities` before using optional host behavior, and do not\nassume that `listChanged` is available when it is omitted.\n\n## Verify the change\n\n- Run the narrow conformance fixture for the changed UI or model-job contract.\n- Run `make fmt-harn`, `make lint-harn`, and `make check-docs-snippets`.\n- Run `harn skill validate` when skill or app guidance changed.\n- Exercise `harn app run` in a real browser and capture evidence for material\n  user-facing claims.\n","# Build interactive Harn apps\n\nUse this skill with [[harn-language]] for syntax, [[harn-testing]] for\ndeterministic checks, [[harn-providers]] for model access, and\n[[harn-product-quality]] for proof through the real user path.\n\n## Keep the app in Harn\n\nPut application state, event handling, writing result files, reopening\nunfinished work, recovery, and model-job rules in Harn. Import `std\u002Fui` as a\nnamespace and use short names such as `ui.document`, `ui.event`, and\n`ui.update`. The shared renderer turns that typed document into browser\ncontrols, canvas operations, and accessibility information.\n\nDo not add app-specific Rust or JavaScript unless a concrete user interaction\ncannot be represented by the shared contract. Add a reusable `std\u002Fui` element,\nevent, effect, or host capability when the same gap applies to other apps.\n\n## Use module namespaces\n\n```harn\nimport * as ui from \"std\u002Fui\"\nimport { UiEvent } from \"std\u002Fui\u002Fcontracts\"\n\nconst incoming: UiEvent = ui.event(raw.event)\nreturn ui.update(ui.document(\"Example\", revision, elements))\n```\n\nExport short function names from a module and qualify them where they are used.\nDo not repeat a module name in calls such as `ui.ui_event`. Keep `Ui` on public\ntype names because those types also appear in signatures outside the namespace.\nUse `ui.test.run` for event-handler tests.\n\n## Start the app\n\n1. Read `docs\u002Fsrc\u002Fstdlib\u002Fui.md` and the nearest complete example.\n2. Define a named state record and one event handler for typed UI events.\n3. Return a `UiUpdate` with the next document and any host effects.\n4. Expose the event handler as a tool whose metadata names its UI resource.\n5. Run `harn app run path\u002Fto\u002Fapp.harn` and open the printed URL.\n\nStart with `examples\u002Fapps\u002Fdecision-card.harn` for forms and\n`examples\u002Fapps\u002Flogo-studio.harn` for canvas input, model jobs, exact-text\ncomposition (`std\u002Fmedia\u002Fcomposition`), SVG+PNG export, and restart recovery.\n\n## Run one reducer in browser and server\n\nUse `std\u002Fportable.compile` plus `ui.portable_app_resource` when frequent events\nshould update the view without a server round trip. The reducer receives\n`{state, event}` and returns `{state, update}`. Keep its state to plain Harn\nvalues.\n\nThe fallback event tool must run the same `PortableProgram`, prefer the\n`raw.state` supplied by the renderer, and return the complete reducer result.\nThis keeps fallback on the latest browser state after a worker restart. Do not\ncopy the reducer into JavaScript, Rust, or a second Harn implementation.\n\nThe shared host owns the browser worker and Wasm runtime outside the untrusted\napp view. The current reducer capability list accepts only `tools.invoke`.\nKeep externally visible tool actions safe to retry. Read\n`docs\u002Fsrc\u002Fcookbooks\u002Frun-app-logic-in-browser.md` for the full path and\n`examples\u002Fapps\u002Fportable-counter.harn` for the smallest working app.\n\n## Compose model work\n\nRepresent generated media with `MediaAsset`. Submit local and hosted work\nthrough the same typed model-job contract. Prefer `model_job_submit_result`,\n`model_job_step_result`, and `model_job_finish_result` when the interface must\nshow progress or allow cancellation. Use the synchronous helper only when the\ncaller does not need intermediate states.\n\nKeep exact lettering in `std\u002Fmedia\u002Fcomposition` text layers. Ask image models to\npolish the mark without rendering words, then export a design document, editable\nSVG, and image-layer PNG. Edit outputs should carry parent asset URIs for sketch\n→ candidate lineage.\n\nKeep provider details in provider-specific code. The ComfyUI backend can upload\nverified sketch assets before it builds an image-edit workflow. A hosted backend\nreceives the same request and returns the same result shape.\n\n## Test without a browser first\n\nCall `ui.test.run` with the event handler and input events. It follows\n`send_event` effects in process and returns the final document, emitted effects,\nand handled event trace. Assert stable element IDs and meaningful state. Use\nmock providers and Harn's mock clock for model-job state changes. Do not use\nwall-clock sleeps or polling in tests.\n\nThen run the app through its real host. Prove four things:\n\n- The expected tool fired.\n- Effects completed.\n- State survived a restart.\n- The user can recover from a provider error, or cancel an active job.\n\nUse a real model for quality claims and\nrepeat stochastic trials when the claim depends on output quality.\n\n## Follow the protocols\n\nUse the current [MCP Apps specification](https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fext-apps\u002Fblob\u002Fmain\u002Fspecification\u002F2026-01-26\u002Fapps.mdx)\nfor tool and resource metadata. Use provider-owned workflow examples, such as\nthe [ComfyUI FLUX.2 Klein guide](https:\u002F\u002Fdocs.comfy.org\u002Ftutorials\u002Fflux\u002Fflux-2-klein),\nwhen constructing model graphs.\n\nA custom View sends `protocolVersion`, `appCapabilities`, and `appInfo` in\nits `ui\u002Finitialize` request. Include `fullscreen` in `availableDisplayModes`\nwhen running in Harn's standalone host. Wait for the response, send\n`ui\u002Fnotifications\u002Finitialized`, then call tools or read resources. Do not send\n`ui\u002Fnotifications\u002Fsandbox-*`; those messages belong to the host's sandbox\nframe. Check `hostCapabilities` before using optional host behavior, and do not\nassume that `listChanged` is available when it is omitted.\n\n## Verify the change\n\n- Run the narrow conformance fixture for the changed UI or model-job contract.\n- Run `make fmt-harn`, `make lint-harn`, and `make check-docs-snippets`.\n- Run `harn skill validate` when skill or app guidance changed.\n- Exercise `harn app run` in a real browser and capture evidence for material\n  user-facing claims.\n",{"name":5,"short":47,"description":7,"when_to_use":48},"Build Harn apps with typed views, event handlers, and model jobs.","Use when building or testing an interactive app, drawing canvas, MCP App, or AI workflow in Harn.","main","a52b7979c25b6be41bc82c4a6e583959a048f618","crates\u002Fharn-skills\u002Fsrc\u002Fcorpus\u002Fharn-apps",6,"https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn","https:\u002F\u002Fharnlang.com","https:\u002F\u002Fgithub.com\u002Fburin-labs","2026-11-15 03:42:47",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add burin-labs\u002Fharn --skill harn-apps",{"tool":63,"command":64},"bunx","bunx skills add burin-labs\u002Fharn --skill harn-apps",{"tool":66,"command":67},"pnpm","pnpm dlx skills add burin-labs\u002Fharn --skill harn-apps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fcrates\u002Fharn-skills\u002Fsrc\u002Fcorpus\u002Fharn-apps\u002FSKILL.md",true,[],[72,90,111,124,140,153],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":42},"01M6J9Y4B3NZ9C24GN47159AEQ","stream-fan-in","Stream trigger example for routing or grouping event batches.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fstream-fan-in\u002FSKILL.md",[],[79,80,81,82,83,84,85,86,26,87,88,89,33],"stream","stream fan in","routing","customize","trigger","pipeline","for","batches","events","grouping","example",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":42},"01M6J9WNJHJV0K3CBZJFG8GD1R","github-stale-pr-nudger","Cron recipe for scanning repositories and nudging old pull requests.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fgithub-stale-pr-nudger\u002FSKILL.md",[],[97,98,99,100,101,85,102,103,104,105,106,33,107,108,109,82,110],"github stale pr nudger","stale","github","pr","requests","scheduled","follow-up","recipe","up","scanning","cron","pull","pull request","pull requests",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":42},"01M6J9Y7X1D3ZSWWAG1GXFTWWY","webhook-generic-hmac","Generic webhook recipe with signed inbound requests.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fwebhook-generic-hmac\u002FSKILL.md",[],[118,119,120,82,22,101,25,104,83,121,122,123,33],"generic","webhook","webhook generic hmac","webhook trigger","provider","webhooks",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":42},"01M6J9Y10NVP86YMXCD9FQ2XZV","slack-thread-summarizer","Slack webhook recipe with a local summarize predicate.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fslack-thread-summarizer\u002FSKILL.md",[],[131,132,133,134,135,136,22,137,138,25,119,104,83,82,139,33],"slack thread","slack thread summarizer","thread","summarizer","slack","local","summaries","threads","summarize",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":42},"01M6J9XWKSBQJ881KBP2TGMN3Z","slack-reaction-action","Slack Events API recipe for reaction_added workflows.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fslack-reaction-action\u002FSKILL.md",[],[135,147,148,85,33,22,103,87,104,83,149,105,150,151,82,152],"action","slack reaction action","reactions","work","api","workflows",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":42},"01M6J9XRE6PD3J99VKA1TYWS9Y","slack-keyword-router","Slack webhook recipe for routing messages by keyword.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fslack-keyword-router\u002FSKILL.md",[],[160,161,135,162,33,84,163,81,82,119,22,164,85,104],"slack keyword router","router","simple","messages","slack messages"]