Token导航 LogoToken导航

Agent Skill · 开发

svelte(Svelte 开发)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

svelte 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 20,201。

总安装 235周安装 10GitHub Stars 公开资料未说明下载 82核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:svelte(Svelte 开发)
来源仓库:https://github.com/sjunepark/custom-skills
仓库路径:skills/svelte
安装命令:
npx skills add https://github.com/sjunepark/custom-skills --skill svelte
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sjunepark/custom-skills --skill svelte

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

svelte 用于辅助前端页面、组件、样式和交互逻辑的开发与维护,适合生成或审查相关代码。它支持 React、Next.js、Vue、Tailwind、CSS 等技术的组件结构整理和布局问题定位。使用时需结合项目现有设计系统、路由和构建方式,避免生成孤立片段;涉及页面改动时应配合本地预览和构建检查。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。该技能适用于前端开发场景,但需人工核验其实际行为与项目需求是否匹配。

来源仓库内路径:skills/svelte

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sjunepark/custom-skills --skill svelte;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

svelte 怎么安装?

在终端执行 npx skills add https://github.com/sjunepark/custom-skills --skill svelte。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

svelte 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

svelte 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

svelte 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

svelte 用的人多吗?

公开数据是累计安装 235 次,近一周安装 10 次,下载 82 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

svelte 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
svelte

Svelte 开发 · 本页

235—操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Svelte

Work from current Svelte 5 idioms. Optimize for components and reactive state that stay easy to reason about as they grow.

Do not spend time explaining basic syntax unless the user asks. Focus on best practices, sharp edges, and the shortest correct implementation.

Scope

Use this skill when the problem is mostly inside components or shared reactive view logic.

  • Reach for this skill for runes, props, snippets, component APIs, context, styling, local state, shared client-side reactive objects, and reactivity debugging.
  • If the hard part is route boundaries, load, form actions, auth, cookies, SSR navigation behavior, or invalidation, switch to the sveltekit skill.

Workflow

  1. Establish the local style before changing code.
  • Inspect nearby components, shared UI primitives, and package.json.
  • Prefer the repo's current conventions in touched files unless the task is an explicit migration.
  • For new code, default to runes mode and current event syntax.
  1. Choose the ownership boundary before writing code.
  • Decide whether truth should live in props, component state, context, or a shared reactive module.
  • Keep leaf components presentational when possible.
  • Move persistence, networking, and app orchestration out of leaf UI components.
  1. Model data flow before polishing markup.
  • Prefer deriving state over synchronizing copies of state.
  • Treat props as live inputs, not initialization values.
  • Add effects only for real side effects outside Svelte.
  1. Keep SSR compatibility in mind even at component level.
  • Components in SvelteKit may render on the server first.
  • Avoid browser-only assumptions during render.
  • Prefer stable markup that can hydrate without surprises.

Core Svelte Patterns

  • Use runes-first patterns in new code: $state, $derived, $props, snippets, and current event attributes such as onclick={...}.
  • Use $state only for values that truly need reactivity. Keep plain variables plain.
  • Prefer $state.raw for large objects or arrays that are usually replaced wholesale rather than mutated in place.
  • Prefer $derived for computed values. Use $derived.by(...) when the derivation needs multiple statements.
  • Remember that objects or arrays returned from $derived are not made deeply reactive.
  • Treat $effect as an escape hatch for DOM APIs, timers, analytics, imperative libraries, or external subscriptions.
  • Do not use $effect to keep one piece of state in sync with another when a clearer source of truth exists.
  • Prefer event handlers, function bindings, {@attach...}, or createSubscriber(...) before reaching for an effect.
  • Use $inspect and $inspect.trace(...) to debug reactive churn instead of leaving logging effects in place.
  • Treat props as live values. Derive from them instead of snapshotting them into local variables that silently drift.
  • Avoid copying props into mutable local state unless the component intentionally forks from the parent value.
  • Prefer snippets and explicit children rendering over legacy slot patterns in new code.
  • Top-level snippets can also be referenced from <script> when that is clearer than creating a tiny helper component.
  • Use <svelte:window> and <svelte:document> for global listeners instead of wiring them up manually in onMount or $effect.
  • Prefer keyed {#each} blocks for stable identity. Do not use array index as the key.
  • Avoid destructuring each-block items when the template mutates them.
  • Prefer CSS custom properties and style:--token={value} for JS-to-CSS handoff and parent-controlled styling.
  • Reach for :global(...) only when styling third-party output or a boundary you do not control.
  • Prefer createContext over ad hoc setContext/getContext pairs when context is the right tool.
  • Do not default to stores for local sharing. In Svelte 5, a reactive object or class with $state fields is often simpler.
  • Keep stores for cases where the store contract matters: async streams, external subscriptions, or ecosystem integrations.

Component Design Best Practices

  • Keep presentational components narrow: props in, callbacks out, minimal ownership of app state.
  • Prefer explicit props and callback props over "smart" components with many optional behaviors.
  • In new Svelte 5-style code, prefer callback props over createEventDispatcher.
  • Prefer a few well-named props over catch-all config objects unless the object is a real domain shape.
  • When a component exposes many booleans or variant combinations, split it or redesign the API around clearer modes.
  • Keep render helpers close when they are tiny; extract components only when they create a real boundary.
  • Put async loading, auth checks, and persistence in higher-level modules rather than leaf UI components.

Common Gotchas

  • Component setup runs once. If a value should update when props or state change, make it reactive with $derived instead of computing it once in plain script.
  • Do not use $effect to mirror state. If you write x from y in an effect, you probably want a derived value or a different source of truth.
  • Passing a primitive from $state(...) to a function passes the current value, not a live reference. Pass an updater or a container object when mutation must flow back.
  • Reactive churn often comes from depending on a whole object when only one stable field matters. Extract the stable field into its own $derived before building downstream derived state.
  • Deeply reactive $state is convenient, but proxying large graphs has a cost. Prefer smaller state shapes or $state.raw when mutation granularity is not needed.
  • Mutating a property on an object returned from $derived affects the original object only if that original object is already reactive upstream. Do not assume $derived deepens reactivity.
  • Browser-only APIs such as window, document, storage, observers, and media APIs must be guarded behind onMount or an explicit browser check when SSR is in play.

Review Heuristics

  • Remove unnecessary effects before trying micro-optimizations.
  • Prefer derived values close to their source over wide mutable state that forces synchronization.
  • Watch for components that both orchestrate data flow and render complex UI; split responsibilities before the file turns into a control tower.
  • Watch for props copied into state, boolean-heavy APIs, and styling approaches that force parent components to reach through implementation details.
  • When debugging reruns, ask what the smallest real dependency is rather than subscribing to a whole object graph.

Debugging Checklist

  • If UI is stale, verify the value is $state or $derived rather than a one-time plain variable.
  • If updates are looping or hard to follow, remove syncing effects and re-establish one source of truth.
  • If something reruns more often than expected, add $inspect.trace(...) to the relevant $derived.by(...) or $effect.
  • If child state drifts from parent props, stop snapshotting props into local mutable variables.
  • If shared reactive state resets or recreates too often, check whether downstream logic depends on an unstable object instead of a stable field.
  • If hydration fails, compare SSR markup with browser-only branches, time/randomness, and locale-sensitive formatting.

Migration and Compatibility

  • For existing pre-runes code, do not churn files into modern syntax unless the task is migration or the touched code becomes materially clearer.
  • When touching legacy code, prefer local consistency plus small targeted improvements over mixing paradigms inside one file.
  • Prefer modern replacements in new code: runes over $: and export let, snippets over slots, current event attributes over on:click, direct component references over <svelte:component>, and reactive classes or objects over stores when sharing local reactive state.
  • Use promise-in-template features such as await expressions only when the project is on a compatible Svelte version and has the relevant experimental option enabled.

Official References

Consult the current Svelte docs when behavior matters or seems version-sensitive:

  • https://svelte.dev/docs/svelte/best-practices
  • https://svelte.dev/docs/svelte/$state
  • https://svelte.dev/docs/svelte/$derived
  • https://svelte.dev/docs/svelte/$effect
  • https://svelte.dev/docs/svelte/$props

平台分布

Codex

36.54%
按下载量换算30

Claude

27.7%
按下载量换算23

Cursor

18.06%
按下载量换算15

Gemini CLI

8.53%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills