[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NQE4Z802R8B8PBE23JRR5W":3,"skill-same:01M6NQE4Z802R8B8PBE23JRR5W":64},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6NQE4Z802R8B8PBE23JRR5W","new-component",null,"Step-by-step checklist for adding a new Svelte 5 component with proper patterns, tests, and TypeScript types. Use when creating new UI components.","C360Studio\u002Fsemteams","C360Studio","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F107274645?v=4","01M6NQ809JZG513TZ7FJX8SAKQ","Complete 360 Studio","01M6NQ80DRB447R1H9W554K7V8",0,"MIT","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002Fui\u002F.claude\u002Fskills\u002Fnew-component\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"new","component","new component","svelte","when","for","with","types","ui components","tests","typescript","patterns","checklist","svelte 5","use","ui","components","2026-11-10 10:12:30",false,"---\nname: new-component\ndescription: Step-by-step checklist for adding a new Svelte 5 component with proper patterns, tests, and TypeScript types. Use when creating new UI components.\nargument-hint: [ComponentName]\n---\n\n# New Component Checklist\n\n## What component are you adding?\n\n$ARGUMENTS\n\n## Step 1: Define the Props Interface\n\n```typescript\n\u002F\u002F src\u002Flib\u002Fcomponents\u002FComponentName.svelte\n\u003Cscript lang=\"ts\">\n  interface Props {\n    requiredProp: string;\n    optionalProp?: number;\n    onAction?: (value: string) => void;\n  }\n\n  let { requiredProp, optionalProp = 0, onAction }: Props = $props();\n\u003C\u002Fscript>\n```\n\nKey rules:\n\n- Use `interface Props` (not `type`)\n- Default values for optional props\n- Event handlers as callback props (`onAction`, not `createEventDispatcher`)\n- Use `$bindable()` only when parent needs two-way binding\n\n## Step 2: Add Reactive State\n\n```svelte\n\u003Cscript lang=\"ts\">\n  \u002F\u002F Local UI state\n  let isOpen = $state(false);\n\n  \u002F\u002F Computed values — ALWAYS use $derived, never $state + $effect\n  let displayValue = $derived(formatValue(requiredProp));\n\n  \u002F\u002F Complex computation\n  let filtered = $derived.by(() => {\n    \u002F\u002F multi-line logic here\n    return items.filter(i => i.active);\n  });\n\u003C\u002Fscript>\n```\n\nDecision guide:\n\n- `$state` — mutable local UI state (open\u002Fclosed, selected, input value)\n- `$derived` — anything computed from props or other state\n- `$effect` — side effects only (DOM manipulation, fetch, logging). Last resort.\n\n## Step 3: Write the Template\n\n```svelte\n\u003C!-- Use semantic HTML -->\n\u003Csection class=\"component-name\">\n  \u003Ch3>{displayValue}\u003C\u002Fh3>\n\n  \u003C!-- Events: use onclick, not on:click -->\n  \u003Cbutton onclick={() => isOpen = !isOpen}>\n    Toggle\n  \u003C\u002Fbutton>\n\n  \u003C!-- Conditional rendering -->\n  {#if isOpen}\n    \u003Cdiv class=\"content\">\n      {#each items as item (item.id)}\n        \u003Cp>{item.name}\u003C\u002Fp>\n      {\u002Feach}\n    \u003C\u002Fdiv>\n  {\u002Fif}\n\u003C\u002Fsection>\n```\n\nKey rules:\n\n- Always use `(item.id)` key in `{#each}` blocks\n- Use `onclick` not `on:click` (Svelte 5)\n- Semantic HTML elements over generic `\u003Cdiv>`\n- Add `data-testid` attributes for testing\n\n## Step 4: Write Tests First\n\n```typescript\n\u002F\u002F src\u002Flib\u002Fcomponents\u002FComponentName.test.ts\nimport { render, screen } from \"@testing-library\u002Fsvelte\";\nimport { expect, test, describe } from \"vitest\";\nimport userEvent from \"@testing-library\u002Fuser-event\";\nimport ComponentName from \".\u002FComponentName.svelte\";\n\ndescribe(\"ComponentName\", () => {\n  test(\"renders with required props\", () => {\n    render(ComponentName, { props: { requiredProp: \"test\" } });\n    expect(screen.getByText(\"test\")).toBeInTheDocument();\n  });\n\n  test(\"handles user interaction\", async () => {\n    const user = userEvent.setup();\n    const handler = vi.fn();\n    render(ComponentName, {\n      props: { requiredProp: \"test\", onAction: handler },\n    });\n\n    await user.click(screen.getByRole(\"button\"));\n    expect(handler).toHaveBeenCalledOnce();\n  });\n\n  test(\"handles empty state\", () => {\n    render(ComponentName, { props: { requiredProp: \"\" } });\n    expect(screen.getByText(\"No data\")).toBeInTheDocument();\n  });\n});\n```\n\n## Step 5: Style with Design Tokens\n\nThis project uses custom CSS design tokens (defined in `src\u002Fstyles\u002Fglobal.css`). Use semantic variables:\n\n```svelte\n\u003Cstyle>\n  .component-name {\n    background: var(--ui-surface-primary);\n    color: var(--ui-text-primary);\n    border: 1px solid var(--ui-border-subtle);\n    border-radius: var(--radius-md);\n  }\n\n  .component-name:hover {\n    background: var(--ui-surface-secondary);\n  }\n\u003C\u002Fstyle>\n```\n\nCommon token prefixes: `--ui-surface-*`, `--ui-text-*`, `--ui-border-*`, `--ui-interactive-*`, `--status-*`, `--radius-*`.\n\n## Verification Checklist\n\n- [ ] Props interface defined with TypeScript\n- [ ] Default values for optional props\n- [ ] `$derived` used for computed values (not `$state` + `$effect`)\n- [ ] `$effect` only for true side effects (with cleanup if needed)\n- [ ] Events use `onclick` pattern (Svelte 5)\n- [ ] Template uses semantic HTML\n- [ ] `{#each}` blocks have `(key)` expressions\n- [ ] Tests cover: rendering, interaction, empty\u002Ferror states\n- [ ] No `any` types\n- [ ] Accessibility: ARIA labels on non-semantic interactive elements\n\n## File Naming\n\n| Type        | Pattern                     | Example                   |\n| ----------- | --------------------------- | ------------------------- |\n| Component   | `PascalCase.svelte`         | `FlowNode.svelte`         |\n| Test        | `PascalCase.test.ts`        | `FlowNode.test.ts`        |\n| Attack test | `PascalCase.attack.test.ts` | `FlowNode.attack.test.ts` |\n","# New Component Checklist\n\n## What component are you adding?\n\n$ARGUMENTS\n\n## Step 1: Define the Props Interface\n\n```typescript\n\u002F\u002F src\u002Flib\u002Fcomponents\u002FComponentName.svelte\n\u003Cscript lang=\"ts\">\n  interface Props {\n    requiredProp: string;\n    optionalProp?: number;\n    onAction?: (value: string) => void;\n  }\n\n  let { requiredProp, optionalProp = 0, onAction }: Props = $props();\n\u003C\u002Fscript>\n```\n\nKey rules:\n\n- Use `interface Props` (not `type`)\n- Default values for optional props\n- Event handlers as callback props (`onAction`, not `createEventDispatcher`)\n- Use `$bindable()` only when parent needs two-way binding\n\n## Step 2: Add Reactive State\n\n```svelte\n\u003Cscript lang=\"ts\">\n  \u002F\u002F Local UI state\n  let isOpen = $state(false);\n\n  \u002F\u002F Computed values — ALWAYS use $derived, never $state + $effect\n  let displayValue = $derived(formatValue(requiredProp));\n\n  \u002F\u002F Complex computation\n  let filtered = $derived.by(() => {\n    \u002F\u002F multi-line logic here\n    return items.filter(i => i.active);\n  });\n\u003C\u002Fscript>\n```\n\nDecision guide:\n\n- `$state` — mutable local UI state (open\u002Fclosed, selected, input value)\n- `$derived` — anything computed from props or other state\n- `$effect` — side effects only (DOM manipulation, fetch, logging). Last resort.\n\n## Step 3: Write the Template\n\n```svelte\n\u003C!-- Use semantic HTML -->\n\u003Csection class=\"component-name\">\n  \u003Ch3>{displayValue}\u003C\u002Fh3>\n\n  \u003C!-- Events: use onclick, not on:click -->\n  \u003Cbutton onclick={() => isOpen = !isOpen}>\n    Toggle\n  \u003C\u002Fbutton>\n\n  \u003C!-- Conditional rendering -->\n  {#if isOpen}\n    \u003Cdiv class=\"content\">\n      {#each items as item (item.id)}\n        \u003Cp>{item.name}\u003C\u002Fp>\n      {\u002Feach}\n    \u003C\u002Fdiv>\n  {\u002Fif}\n\u003C\u002Fsection>\n```\n\nKey rules:\n\n- Always use `(item.id)` key in `{#each}` blocks\n- Use `onclick` not `on:click` (Svelte 5)\n- Semantic HTML elements over generic `\u003Cdiv>`\n- Add `data-testid` attributes for testing\n\n## Step 4: Write Tests First\n\n```typescript\n\u002F\u002F src\u002Flib\u002Fcomponents\u002FComponentName.test.ts\nimport { render, screen } from \"@testing-library\u002Fsvelte\";\nimport { expect, test, describe } from \"vitest\";\nimport userEvent from \"@testing-library\u002Fuser-event\";\nimport ComponentName from \".\u002FComponentName.svelte\";\n\ndescribe(\"ComponentName\", () => {\n  test(\"renders with required props\", () => {\n    render(ComponentName, { props: { requiredProp: \"test\" } });\n    expect(screen.getByText(\"test\")).toBeInTheDocument();\n  });\n\n  test(\"handles user interaction\", async () => {\n    const user = userEvent.setup();\n    const handler = vi.fn();\n    render(ComponentName, {\n      props: { requiredProp: \"test\", onAction: handler },\n    });\n\n    await user.click(screen.getByRole(\"button\"));\n    expect(handler).toHaveBeenCalledOnce();\n  });\n\n  test(\"handles empty state\", () => {\n    render(ComponentName, { props: { requiredProp: \"\" } });\n    expect(screen.getByText(\"No data\")).toBeInTheDocument();\n  });\n});\n```\n\n## Step 5: Style with Design Tokens\n\nThis project uses custom CSS design tokens (defined in `src\u002Fstyles\u002Fglobal.css`). Use semantic variables:\n\n```svelte\n\u003Cstyle>\n  .component-name {\n    background: var(--ui-surface-primary);\n    color: var(--ui-text-primary);\n    border: 1px solid var(--ui-border-subtle);\n    border-radius: var(--radius-md);\n  }\n\n  .component-name:hover {\n    background: var(--ui-surface-secondary);\n  }\n\u003C\u002Fstyle>\n```\n\nCommon token prefixes: `--ui-surface-*`, `--ui-text-*`, `--ui-border-*`, `--ui-interactive-*`, `--status-*`, `--radius-*`.\n\n## Verification Checklist\n\n- [ ] Props interface defined with TypeScript\n- [ ] Default values for optional props\n- [ ] `$derived` used for computed values (not `$state` + `$effect`)\n- [ ] `$effect` only for true side effects (with cleanup if needed)\n- [ ] Events use `onclick` pattern (Svelte 5)\n- [ ] Template uses semantic HTML\n- [ ] `{#each}` blocks have `(key)` expressions\n- [ ] Tests cover: rendering, interaction, empty\u002Ferror states\n- [ ] No `any` types\n- [ ] Accessibility: ARIA labels on non-semantic interactive elements\n\n## File Naming\n\n| Type        | Pattern                     | Example                   |\n| ----------- | --------------------------- | ------------------------- |\n| Component   | `PascalCase.svelte`         | `FlowNode.svelte`         |\n| Test        | `PascalCase.test.ts`        | `FlowNode.test.ts`        |\n| Attack test | `PascalCase.attack.test.ts` | `FlowNode.attack.test.ts` |\n",{"name":5,"description":7,"argument-hint":41},[42],"ComponentName","main","9b1ec2f24adbbc9121f3d9322f9d414fdc16e016","ui\u002F.claude\u002Fskills\u002Fnew-component","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams","https:\u002F\u002Fc360studio.github.io","https:\u002F\u002Fgithub.com\u002FC360Studio","2026-11-11 01:13:46",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add C360Studio\u002Fsemteams --skill new-component",{"tool":56,"command":57},"bunx","bunx skills add C360Studio\u002Fsemteams --skill new-component",{"tool":59,"command":60},"pnpm","pnpm dlx skills add C360Studio\u002Fsemteams --skill new-component","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002Fui\u002F.claude\u002Fskills\u002Fnew-component\u002FSKILL.md",true,[],[65,86,110,121,137,144],{"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":36},"01M6NQEE3V8S4HEVMFVFW7SEQ4","store-pattern","Choose the right state management approach for a use case. Decide between component-local state, derived state, runes-based stores, SvelteKit load, or URL state.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002Fui\u002F.claude\u002Fskills\u002Fstore-pattern\u002FSKILL.md",[],[72,73,74,20,75,76,77,78,79,80,33,81,82,83,84,24,85],"store pattern","pattern","store","state management","state","sveltekit","choose","decide","management","local","case","URL","load","managed",{"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":36},"01M6NQDYRKF89279J9A2D9Q892","backend-integration","Connect the UI to semstreams backend APIs. Covers proxy routing, fetch patterns, SSR considerations, and real-time data. Use when adding new backend integrations or debugging API issues.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002Fui\u002F.claude\u002Fskills\u002Fbackend-integration\u002FSKILL.md",[],[93,94,95,33,96,30,97,98,99,23,100,101,102,19,103,104,105,106,107,108,34,109],"backend integration","backend","integration","api endpoint","fetch","time","backend integrations","integrations","proxy","api","real-time","ssr","debugging","connect","routing","issues","data",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":36},"01M6NQDW39CHJMCCQZA696N1Y7","review-pr","Adapter for review-pr.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-pr\u002FSKILL.md",[],[117,118,119,120,24,112],"review","review pr","pr","adapter",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":36},"01M6NQD8CX3BCRHN8BRFTVJJ01","query-pattern","Choose the right query access pattern (GraphQL, MCP, NATS Direct) for a use case. Use when designing query APIs, adding new access points, or choosing between gateway types.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fquery-pattern\u002FSKILL.md",[],[128,73,129,26,130,131,132,133,134,78,33,135,136,82,24,23,19],"query pattern","query","MCP","gateway","GraphQL","access","direct","nats","scenario",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":36},"01M6NQD73AJADQC2G9005KPNPN","preflight","Adapter for preflight.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpreflight\u002FSKILL.md",[],[139,120,24],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":36},"01M6NQD3GNDS4XGY991BWD9NP4","ponytail","Adapter for ponytail.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemteams\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fponytail\u002FSKILL.md",[],[146,120,24]]