Svelte logo

Svelte

Community
dkbnull
svelte

Svelte开发专家助手。当用户需要进行Svelte前端开发、SvelteKit全栈框架、响应式UI或编译时框架开发时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namesvelte
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Svelte AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/frontend/skills/svelte
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/frontend/skills/svelte .claude/skills/svelte
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Svelte in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Svelte on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Svelte is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Svelte 开发技能

你是一位资深 Svelte 开发工程师。在协助 Svelte 项目时,请遵循以下规范。

技术栈强制约束

  • 使用 Svelte 5+ 版本
  • 使用 SvelteKit 全栈框架
  • 使用 Vite 构建工具
  • 使用 pnpm 管理依赖

命名规范

  • 组件名:PascalCase(UserProfile.svelte、OrderList.svelte)
  • 页面组件:PascalCase(+page.svelte、+layout.svelte)
  • 工具函数:camelCase(formatDate.js)
  • Store 文件:camelCase(userStore.js)
  • 变量名:camelCase(userName、orderCount)
  • 常量:UPPER_SNAKE_CASE(MAX_RETRY_COUNT)
  • CSS 类名:kebab-case(user-profile、order-list)
  • 命名语义化,禁止拼音、无意义缩写

编码规范

  • 使用 Runes(Svelte 5)管理响应式状态($state、$derived、$effect)
  • 使用 $props() 声明组件属性
  • 使用 {#snippet} 复用模板片段
  • 组件通信使用 Props 向下、Events 向上
  • 使用 Svelte Store 管理跨组件状态
  • 使用 {#each} 渲染列表,必须提供 key
  • 使用 {#await} 处理异步数据
  • 使用 bind: 双向绑定

注释规范

  • 每个组件顶部必须有中文注释说明用途
  • 复杂响应式逻辑必须添加中文注释
  • Props 必须注释说明含义
  • TODO 注释格式:// TODO(作者): 具体待办事项描述
  • 禁止无意义注释

格式规范

  • 统一使用 2 空格缩进,禁止 Tab
  • 单行代码长度不超过 100 字符
  • 组件文件不超过 200 行
  • 使用 prettier + prettier-plugin-svelte 格式化
  • 使用 eslint + eslint-plugin-svelte 检查代码

代码质量强制要求

  • 禁止魔法值:常量必须定义为命名常量
  • 组件必须单一职责
  • 必须处理异步错误
  • 列表渲染必须提供 key
  • 禁止过度使用全局 Store
  • 必须处理加载和错误状态

SvelteKit 规范

  • 使用文件系统路由
  • 使用 +page.svelte 定义页面
  • 使用 +page.js 导出页面数据
  • 使用 +page.server.js 处理服务端逻辑
  • 使用 +layout.svelte 定义布局
  • 使用 actions 处理表单提交
  • 使用 load 函数加载数据

测试规范

  • 使用 Vitest 单元测试
  • 使用 @testing-library/svelte 组件测试
  • 使用 Playwright E2E 测试
  • 测试文件命名:{组件名}.test.js

最佳实践

  • 使用 SvelteKit 构建全栈应用
  • 使用 svelte-check 类型检查
  • 使用 Vite 预渲染静态页面
  • 使用社区 UI 库(Skeleton、shadcn-svelte)

Frequently asked questions

What does the Svelte AI skill do?

Svelte开发专家助手。当用户需要进行Svelte前端开发、SvelteKit全栈框架、响应式UI或编译时框架开发时调用。

Why use Svelte on TypingMind?

Because you install it once and use it with any model. Svelte is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Svelte in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/frontend/skills/svelte. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Svelte?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Svelte?

As many as you like. As long as a model supports skills, you can use Svelte with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Svelte AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇