Scaffold and configure a production-ready SvelteKit PWA with opinionated defaults. Use when: creating a new web application, setting up a SvelteKit project,...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install sveltekit-webapp或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install sveltekit-webapp⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/sveltekit-webapp/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: sveltekit-webapp version: 1.1.1 description: | Scaffold and configure a production-ready SvelteKit PWA with opinionated defaults. Use when: creating a new web application, setting up a SvelteKit project, building a PWA, or when a user asks to "build me an app/site/webapp". Handles full setup including TypeScript, Tailwind, Skeleton + Bits UI components, testing, linting, and Vercel deployment. Generates a PRD with user stories for review, then upon user approval, builds through development, staging, and production with user approval at each stage. requires_tools: [exec, Write, Edit, browser] safety_notes: | This skill executes shell commands to scaffold and deploy web applications. All commands require user approval via the agent's safety framework. No commands are executed without user confirmation of the PRD. ---
Scaffold production-ready SvelteKit PWAs with opinionated defaults and guided execution.
> "Build me a task tracker with due dates and priority labels"
That's all I need to start. I'll ask follow-up questions if needed.
These CLIs must be available (the skill will verify during preflight):
| CLI | Purpose | Install | |-----|---------|---------| | sv | SvelteKit scaffolding | npm i -g sv (or use via pnpx) | | pnpm | Package manager | npm i -g pnpm | | gh | GitHub repo creation | cli.github.com | | vercel | Deployment | npm i -g vercel |
Optional (if features require):
turso — Turso database CLIThis skill ships with sensible defaults that work well together. All defaults can be overridden via SKILL-CONFIG.json:
See User Configuration for override details.
---
Check ~/.openclaw/workspace/SKILL-CONFIG.json for user-specific defaults before using skill defaults. User config overrides skill defaults for:
---
A conversational, iterative approach to understanding what the user wants.
Start with an open question:
Let the user lead with what matters to them.
Ask for inspiration:
Share 1-3 sites you'd like this to feel like
(design, functionality, or both).
Examples:
- "Like Notion but simpler"
- "Fieldwire's mobile-first approach"
- "Linear's clean aesthetic"
"Show me what you like" communicates more than paragraphs of description.
If design references suggest custom branding, ask:
Any specific colors, fonts, or logos you want to use?
(I can pre-configure the Tailwind theme)
Based on gaps in the description, ask specifically:
| Gap | Question | |-----|----------| | Users unclear | "Who's the primary user? (role, context)" | | Core action unclear | "What's the ONE thing they must be able to do?" | | Content unknown | "Any existing content/assets to incorporate?" | | Scale unknown | "How many users do you expect? (ballpark)" | | Timeline | "Any deadline driving this?" |
Only ask what's missing—don't interrogate.
Before proceeding, confirm understanding:
📝 PROJECT SUMMARY: [Name]
Purpose: [one sentence]
Primary user: [who]
Core action: [what they do]
Design inspiration: [references]
Visual identity: [colors/fonts if specified]
Key features:
• [feature 1]
• [feature 2]
• [feature 3]
Technical signals detected:
• Database: [yes/no] — [reason]
• Authentication: [yes/no] — [reason]
• Internationalization: [yes/no] — [reason]
Does this capture it? [Yes / Adjust]
Iterate until the user confirms.
---
Generate a complete PRD with technical stack, user stories, and mock data strategy.
Always Included:
CLI: pnpx sv (fallback: npx sv)
Template: minimal
TypeScript: yes
Package manager: pnpm (fallback: npm)
Core add-ons (via sv add):
✓ eslint
✓ prettier
✓ mcp (claude-code)
✓ mdsvex
✓ tailwindcss (+ typography, forms plugins)
✓ vitest
✓ playwright
Post-scaffold:
✓ Skeleton (primary component library — Svelte 5 native, accessible)
✓ Bits UI (headless primitives — fallback for gaps/complex custom UI)
✓ vite-plugin-pwa (PWA support)
✓ Svelte 5 runes mode
✓ adapter-auto (auto-detects deployment target)
Why Skeleton + Bits UI?
Inferred from Description:
drizzle → if needs database (ask: postgres/sqlite/turso)
lucia → if needs auth
paraglide → if needs i18n (ask: which languages)
Follow Svelte 5 best practices (see https://svelte.dev/docs/kit/state-management):
$state() runes for reactive state$derived() for computed valuessetContext/getContext) for cross-component stateload functions → data propCheck SKILL-CONFIG.json for user preferences. Common patterns:
bind: over callbacks — For child→parent data flow, use bind:value instead of onchange callback props. More declarative, less boilerplate.onMount — Use $effect() for side effects. It's reactive and works with SSR.$state(), $derived(), $effect() over legacy stores and lifecycle hooks.sv create generates:
src/
├── routes/ # SvelteKit routes
├── app.html # HTML template
├── app.d.ts # Type declarations
└── app.css # Global styles
static/ # Static assets
We add:
src/
├── lib/
│ ├── components/ # Reusable components (Skeleton + Bits UI)
│ ├── server/ # Server-only code (db client, auth)
│ ├── stores/ # Svelte stores (.svelte.ts for runes)
│ ├── utils/ # Helper functions
│ └── types/ # TypeScript types
static/
└── icons/ # PWA icons
...
安装 SvelteKit WebApp 后,可以对 AI 说这些话来触发它
Help me get started with SvelteKit WebApp
Explains what SvelteKit WebApp does, walks through the setup, and runs a quick demo based on your current project
Use SvelteKit WebApp to scaffold and configure a production-ready SvelteKit PWA with opinio...
Invokes SvelteKit WebApp with the right parameters and returns the result directly in the conversation
What can I do with SvelteKit WebApp in my product manager workflow?
Lists the top use cases for SvelteKit WebApp, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/sveltekit-webapp/ 目录(个人级,所有项目可用),或 .claude/skills/sveltekit-webapp/(项目级)。重启 AI 客户端后,用 /sveltekit-webapp 主动调用,或让 AI 根据上下文自动发现并使用。
SvelteKit WebApp 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
SvelteKit WebApp 可免费安装使用。请查阅仓库了解许可证信息。
Scaffold and configure a production-ready SvelteKit PWA with opinionated defaults. Use when: creating a new web application, setting up a SvelteKit project,...
SvelteKit WebApp 属于「Product Manager」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my product manager tasks using SvelteKit WebApp
Identifies repetitive steps in your workflow and sets up SvelteKit WebApp to handle them automatically