[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79S5RE6GTCEH06PV4P1RB42":3,"skill-same:01M79S5RE6GTCEH06PV4P1RB42":57},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M79S5RE6GTCEH06PV4P1RB42","svelte-template-directives",null,"Svelte template directive guidance. Use when working with snippets, attachments, dynamic HTML, declaration tags, debugging tags, or global DOM events.","ro-56\u002Frepo-dashboard","ro-56","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F31988896?v=4","01M79S3TVE085R308S56XHHEZR","Rodrigo","01M79S3TW2BPEPVX31R3RCZJ96",0,"MIT","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-template-directives\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: svelte-template-directives\n# prettier-ignore\ndescription: \"Svelte template directive guidance. Use when working with snippets, attachments, dynamic HTML, declaration tags, debugging tags, or global DOM events.\"\nmetadata:\n  last_updated: \"2026-05-31\"\n  verified_against: \"Svelte 5 official docs and sveltejs\u002Fsvelte#18282\"\n---\n\n# Svelte Template Directives\n\n## @attach (Svelte 5.29+)\n\n**The reactive alternative to `use:` actions.** Re-runs when dependencies\nchange, passes through components via spread, supports cleanup functions.\n\n```svelte\n\u003Cscript>\n\timport ImageZoom from 'js-image-zoom';\n\n\tfunction useZoom(options) {\n\t\treturn (element) => {\n\t\t\tnew ImageZoom(element, options);\n\t\t\treturn () => console.log('cleanup');\n\t\t};\n\t}\n\u003C\u002Fscript>\n\n\u003C!-- Re-runs if options changes (use: wouldn't!) -->\n\u003Cfigure {@attach useZoom({ width: 400 })}>\n\t\u003Cimg src=\"photo.jpg\" alt=\"zoomable\" \u002F>\n\u003C\u002Ffigure>\n```\n\n## Quick Reference\n\n| Directive                   | Purpose                        | Reactive? |\n| --------------------------- | ------------------------------ | --------- |\n| `{@attach}`                 | DOM manipulation, 3rd-party    | Yes       |\n| `{@html}`                   | Render raw HTML strings        | Yes       |\n| `{@render}`                 | Render snippets                | Yes       |\n| `{let ...}` \u002F `{const ...}` | Local declarations in markup   | N\u002FA       |\n| `{@debug}`                  | Pause debugger on value change | N\u002FA       |\n| `{#each (key)}`             | Keyed iteration (always key!)  | Yes       |\n| `\u003Csvelte:window>`           | Window event listeners         | N\u002FA       |\n\n## @attach vs use: Actions\n\n| Feature               | `use:`  | `@attach`           |\n| --------------------- | ------- | ------------------- |\n| Re-runs on arg change | No      | **Yes**             |\n| Composable            | Limited | **Fully**           |\n| Pass through props    | Manual  | **Auto via spread** |\n| Convert legacy        | N\u002FA     | `fromAction()`      |\n\n## Reference Files\n\n- [attach-patterns.md](references\u002Fattach-patterns.md) - Real-world @attach\n  examples\n- [other-directives.md](references\u002Fother-directives.md) - @html, @render,\n  declaration tags, @debug\n\n## Notes\n\n- `@attach` requires Svelte 5.29+\n- Use `fromAction` from `svelte\u002Fattachments` to convert legacy actions\n- Attachments pass through wrapper components when you spread props\n- Always use keyed each blocks — never use index as key\n- Use `\u003Csvelte:window>`\u002F`\u003Csvelte:document>` for global events, not `$effect`\n- Use `{const ...}` \u002F `{let ...}` declaration tags for local markup variables; `{@const ...}` is legacy syntax.\n- **Last verified:** 2026-05-31\n\n\u003C!--\nPROGRESSIVE DISCLOSURE GUIDELINES:\n- Keep this file ~50 lines total (max ~150 lines)\n- Use 1-2 code blocks only (recommend 1)\n- Keep description \u003C200 chars for Level 1 efficiency\n- Move detailed docs to references\u002F for Level 3 loading\n- This is Level 2 - quick reference ONLY, not a manual\n-->\n","# Svelte Template Directives\n\n## @attach (Svelte 5.29+)\n\n**The reactive alternative to `use:` actions.** Re-runs when dependencies\nchange, passes through components via spread, supports cleanup functions.\n\n```svelte\n\u003Cscript>\n\timport ImageZoom from 'js-image-zoom';\n\n\tfunction useZoom(options) {\n\t\treturn (element) => {\n\t\t\tnew ImageZoom(element, options);\n\t\t\treturn () => console.log('cleanup');\n\t\t};\n\t}\n\u003C\u002Fscript>\n\n\u003C!-- Re-runs if options changes (use: wouldn't!) -->\n\u003Cfigure {@attach useZoom({ width: 400 })}>\n\t\u003Cimg src=\"photo.jpg\" alt=\"zoomable\" \u002F>\n\u003C\u002Ffigure>\n```\n\n## Quick Reference\n\n| Directive                   | Purpose                        | Reactive? |\n| --------------------------- | ------------------------------ | --------- |\n| `{@attach}`                 | DOM manipulation, 3rd-party    | Yes       |\n| `{@html}`                   | Render raw HTML strings        | Yes       |\n| `{@render}`                 | Render snippets                | Yes       |\n| `{let ...}` \u002F `{const ...}` | Local declarations in markup   | N\u002FA       |\n| `{@debug}`                  | Pause debugger on value change | N\u002FA       |\n| `{#each (key)}`             | Keyed iteration (always key!)  | Yes       |\n| `\u003Csvelte:window>`           | Window event listeners         | N\u002FA       |\n\n## @attach vs use: Actions\n\n| Feature               | `use:`  | `@attach`           |\n| --------------------- | ------- | ------------------- |\n| Re-runs on arg change | No      | **Yes**             |\n| Composable            | Limited | **Fully**           |\n| Pass through props    | Manual  | **Auto via spread** |\n| Convert legacy        | N\u002FA     | `fromAction()`      |\n\n## Reference Files\n\n- [attach-patterns.md](references\u002Fattach-patterns.md) - Real-world @attach\n  examples\n- [other-directives.md](references\u002Fother-directives.md) - @html, @render,\n  declaration tags, @debug\n\n## Notes\n\n- `@attach` requires Svelte 5.29+\n- Use `fromAction` from `svelte\u002Fattachments` to convert legacy actions\n- Attachments pass through wrapper components when you spread props\n- Always use keyed each blocks — never use index as key\n- Use `\u003Csvelte:window>`\u002F`\u003Csvelte:document>` for global events, not `$effect`\n- Use `{const ...}` \u002F `{let ...}` declaration tags for local markup variables; `{@const ...}` is legacy syntax.\n- **Last verified:** 2026-05-31\n\n\u003C!--\nPROGRESSIVE DISCLOSURE GUIDELINES:\n- Keep this file ~50 lines total (max ~150 lines)\n- Use 1-2 code blocks only (recommend 1)\n- Keep description \u003C200 chars for Level 1 efficiency\n- Move detailed docs to references\u002F for Level 3 loading\n- This is Level 2 - quick reference ONLY, not a manual\n-->\n",{"name":5,"metadata":24,"description":7},{"last_updated":25,"verified_against":26},"2026-05-31","Svelte 5 official docs and sveltejs\u002Fsvelte#18282","main","eefc243af407341b8f16e77cc9900c45fb6f0ee0","src\u002F.claude\u002Fskills\u002Fsvelte-template-directives","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard","https:\u002F\u002Fgithub.com\u002Fro-56","2026-08-04 20:24:30",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ro-56\u002Frepo-dashboard --skill svelte-template-directives",{"tool":39,"command":40},"bunx","bunx skills add ro-56\u002Frepo-dashboard --skill svelte-template-directives",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ro-56\u002Frepo-dashboard --skill svelte-template-directives","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-template-directives\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fattach-patterns.md","REFERENCE","参考文档",7066,"https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-template-directives\u002Freferences\u002Fattach-patterns.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fother-directives.md",4813,"https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-template-directives\u002Freferences\u002Fother-directives.md",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79S5ZXJP8335YHKWK5CDJ3G","sveltekit-structure","SvelteKit structure guidance. Use for routing, layouts, error handling, SSR, or svelte:boundary. Covers file naming, nested layouts, error boundaries, pending UI, and hydration.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-structure\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79S5W324WD1G026FNQ67AD8","sveltekit-data-flow","SvelteKit data flow guidance. Use when working with load functions, form actions, server\u002Fclient boundaries, serialization, or invalidation.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsveltekit-data-flow\u002FSKILL.md",[],[],{"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":19},"01M79S5MSBD8R46CFB0YEYSZ1P","svelte-styling","Svelte CSS styling patterns. Use for scoped styles, CSS custom properties, style: directive, :global, or styling child components.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-styling\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79S5H8XB5DA46FFM02PTBJD","svelte-runes","Implement Svelte 5 runes correctly. Use for reactive state, props, effects, $state.raw, $derived.by, $props, and $bindable.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-runes\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79S5DHAT20HYC8HAFRT09V8","svelte-layerchart","Build Svelte LayerChart components. Use for tooltip snippets, Chart context access, gradients, highlights, axes, and Svelte 5 snippet patterns.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-layerchart\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79S5B4YBEPYC42Z201M7JJ2","svelte-core-bestpractices","Svelte 5 core best practices. Use when creating, editing, or reviewing .svelte, .svelte.ts, or .svelte.js files. Routes to deeper Svelte skills.","https:\u002F\u002Fgithub.com\u002Fro-56\u002Frepo-dashboard\u002Fblob\u002Fmain\u002Fsrc\u002F.claude\u002Fskills\u002Fsvelte-core-bestpractices\u002FSKILL.md",[],[]]