[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C0D2ZHFRBEN9EQ3MTA63SZ":3,"skill-same:01M7C0D2ZHFRBEN9EQ3MTA63SZ":50},{"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":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7C0D2ZHFRBEN9EQ3MTA63SZ","svelte-presentation-mvvm",null,"Use when creating or refactoring Drawloom Svelte Views, route shells, or static publishing components whose text, links, commands, or reactive state need a clear owner.","mafifi\u002Fdrawloom","mafifi","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1842431?v=4","01M7C0CG1V4ZRVA0208EY74XS4","01M7C0CG2EPGZVR8PF9Q0CR5VS",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmafifi\u002Fdrawloom\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsvelte-presentation-mvvm\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: svelte-presentation-mvvm\ndescription: Use when creating or refactoring Drawloom Svelte Views, route shells, or static publishing components whose text, links, commands, or reactive state need a clear owner.\n---\n\n# Svelte Presentation MVVM\n\nKeep route composition, presentation data, commands, and rendering distinct without inventing state machinery.\n\n## Read first\n\nRead `ARCHITECTURE.md`, Accepted ADR 0012, the applicable `DESIGN.md`, and the nearest `AGENTS.md`. For the static journal, also read Accepted ADR 0009.\n\n## Choose the smallest state owner\n\n- For a static page, create typed presentation and action objects in the Astro or Svelte composition shell. Do not introduce a ViewModel class merely to hold constants.\n- Add a ViewModel class only when the surface owns reactive operation state, derived state, or commands whose lifecycle benefits from one.\n- Keep provider selection, data loading, and trust-boundary parsing outside presentation Views.\n\n## Shape the View boundary\n\n1. Define the presentation and action types before refactoring the components.\n2. Let the route or composition shell build the concrete presentation and actions.\n3. Give the top-level `*View.svelte` `{presentation, actions}` props.\n4. Pass each section View only its narrow presentation slice and command or link slice.\n5. Keep user-facing copy, asset metadata, accessibility labels, and destinations out of leaf Views. A View may own semantic structure and genuinely local layout.\n6. Do not pass a concrete ViewModel to leaf Views. Project its public state and commands first.\n\nAction objects may contain callbacks for application commands or `href` values for static navigation. Keep labels in presentation data and destinations in actions so either can change independently.\n\n## Verify the contract\n\n- Write the failing test first.\n- Render or build with non-default fixture values when practical, proving that text and destinations are injected rather than hidden in leaf components.\n- Verify semantic headings, keyboard focus, narrow layouts, and no accidental client hydration for static publishing.\n- Run the nearest targeted checks, then the repository's canonical gate before claiming completion.\n\nPrivate repositories may inform the pattern, but never copy their code, fixtures, copy, or assets into Drawloom. Re-express only the approved public convention.\n","# Svelte Presentation MVVM\n\nKeep route composition, presentation data, commands, and rendering distinct without inventing state machinery.\n\n## Read first\n\nRead `ARCHITECTURE.md`, Accepted ADR 0012, the applicable `DESIGN.md`, and the nearest `AGENTS.md`. For the static journal, also read Accepted ADR 0009.\n\n## Choose the smallest state owner\n\n- For a static page, create typed presentation and action objects in the Astro or Svelte composition shell. Do not introduce a ViewModel class merely to hold constants.\n- Add a ViewModel class only when the surface owns reactive operation state, derived state, or commands whose lifecycle benefits from one.\n- Keep provider selection, data loading, and trust-boundary parsing outside presentation Views.\n\n## Shape the View boundary\n\n1. Define the presentation and action types before refactoring the components.\n2. Let the route or composition shell build the concrete presentation and actions.\n3. Give the top-level `*View.svelte` `{presentation, actions}` props.\n4. Pass each section View only its narrow presentation slice and command or link slice.\n5. Keep user-facing copy, asset metadata, accessibility labels, and destinations out of leaf Views. A View may own semantic structure and genuinely local layout.\n6. Do not pass a concrete ViewModel to leaf Views. Project its public state and commands first.\n\nAction objects may contain callbacks for application commands or `href` values for static navigation. Keep labels in presentation data and destinations in actions so either can change independently.\n\n## Verify the contract\n\n- Write the failing test first.\n- Render or build with non-default fixture values when practical, proving that text and destinations are injected rather than hidden in leaf components.\n- Verify semantic headings, keyboard focus, narrow layouts, and no accidental client hydration for static publishing.\n- Run the nearest targeted checks, then the repository's canonical gate before claiming completion.\n\nPrivate repositories may inform the pattern, but never copy their code, fixtures, copy, or assets into Drawloom. Re-express only the approved public convention.\n",{"name":5,"description":7},"main","831905f7196f47530ebe92ff604c765d3b295447",".agents\u002Fskills\u002Fsvelte-presentation-mvvm","https:\u002F\u002Fgithub.com\u002Fmafifi\u002Fdrawloom","https:\u002F\u002Fdrawloom.org","https:\u002F\u002Fgithub.com\u002Fmafifi","2026-09-26 08:21:19",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add mafifi\u002Fdrawloom --skill svelte-presentation-mvvm",{"tool":36,"command":37},"bunx","bunx skills add mafifi\u002Fdrawloom --skill svelte-presentation-mvvm",{"tool":39,"command":40},"pnpm","pnpm dlx skills add mafifi\u002Fdrawloom --skill svelte-presentation-mvvm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmafifi\u002Fdrawloom\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsvelte-presentation-mvvm\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"agents\u002Fopenai.yaml","REFERENCE","参考文档",234,"https:\u002F\u002Fgithub.com\u002Fmafifi\u002Fdrawloom\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsvelte-presentation-mvvm\u002Fagents\u002Fopenai.yaml",[51,58,65],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7C0D6BVAZ5HMFRWNBCSFCQN","outline","Outline a short public document using the accompanying style reference.","https:\u002F\u002Fgithub.com\u002Fmafifi\u002Fdrawloom\u002Fblob\u002Fmain\u002Fspikes\u002Fadr-0018-plugin-standards\u002Ffixtures\u002Fplain\u002Fskills\u002Foutline\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7C0CZFRKE2WPZ41D08XWX0F","plain-writing","Use when writing or revising Drawloom's website, journal essays, READMEs, ARCHITECTURE.md, CONTRIBUTING.md or developer guides, and when briefing another agent to write them. Not for agent documents such as AGENTS.md, plans, records or working notes.","https:\u002F\u002Fgithub.com\u002Fmafifi\u002Fdrawloom\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplain-writing\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7C0CVFT7JRJRS73QY2966CB","microinteraction-design","Use when designing, refining, auditing, or implementing interactive UI behaviour involving product polish, feedback, interaction states, motion, animation, transitions, hover, press, focus, loading, success, failure, interruption, gestures, reveals, or interactive SVG. Do not use for purely static copy, colour, typography, or layout changes with no behaviour.","https:\u002F\u002Fgithub.com\u002Fmafifi\u002Fdrawloom\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmicrointeraction-design\u002FSKILL.md",[],[]]