leoyeai/openclaw-master-skills/sveltekit-webapp
Claude Code and agent skill by leoyeai/openclaw-master-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"},{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install leoyeai/openclaw-master-skills/sveltekit-webappSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as leoyeai/openclaw-master-skills/sveltekit-webapp.
SvelteKit Webapp Skill
Scaffold production-ready SvelteKit PWAs with opinionated defaults and guided execution.
Quick Start
- Describe your app — Tell me what you want to build
- Review the PRD — I'll generate a plan with user stories
- Approve — I build, test, and deploy with your oversight
- Done — Get a live URL + admin documentation
"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.
Prerequisites
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 CLI
Opinionated Defaults
This skill ships with sensible defaults that work well together. All defaults can be overridden via SKILL-CONFIG.json:
- Component library: Skeleton (Svelte 5 native) + Bits UI fallback
- Package manager: pnpm
- Deployment: Vercel
- Add-ons: ESLint, Prettier, Vitest, Playwright, mdsvex, MCP
- State: Svelte 5 runes ($state, $derived, $effect)
See User Configuration for override details.
User Configuration
Check ~/.openclaw/workspace/SKILL-CONFIG.json for user-specific defaults before using skill defaults. User config overrides skill defaults for:
- Deployment provider (e.g., vercel, cloudflare, netlify)
- Package manager (pnpm, npm, yarn)
- Add-ons to always include
- MCP IDE configuration
- Component library preferences
Workflow Overview
- Gather: Freeform description + design references + targeted follow-ups
- Plan: Generate complete PRD (scaffold, configure, features, tests as stories)
- Iterate: Refine PRD with user until confirmed
- Preflight: Verify all required auths and credentials
- Execute: Guided build-deploy-verify cycle with user checkpoints (development → staging → production)
Phase 1: Gather Project Description
A conversational, iterative approach to understanding what the user wants.
1a. Freeform Opening
Start with an open question:
- "What do you want to build?"
- "Describe the webapp you have in mind"
Let the user lead with what matters to them.
1b. Design References
Ask for inspiration:
"Show me what you like" communicates more than paragraphs of description.
1c. Visual Identity (Optional)
If design references suggest custom branding, ask:
1d. Targeted Follow-ups
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.
1e. Structured Summary
Before proceeding, confirm understanding:
Iterate until the user confirms.
Phase 2: Plan (Generate PRD)
Generate a complete PRD with technical stack, user stories, and mock data strategy.
Technical Stack
Always Included:
Why Skeleton + Bits UI?
- Skeleton: Full-featured component library built for Svelte 5, accessible by default
- Bits UI: Headless primitives when you need more control or custom styling
- Both play well together — Skeleton for speed, Bits for flexibility
Inferred from Description:
State Management
Follow Svelte 5 best practices (see https://svelte.dev/docs/kit/state-management):
- Use
$state()runes for reactive state - Use
$derived()for computed values - Use Svelte's context API (
setContext/getContext) for cross-component state - Server state flows through
loadfunctions →dataprop - Never store user-specific state in module-level variables (shared across requests)
Code Style Preferences
Check SKILL-CONFIG.json for user preferences. Common patterns:
- Prefer `bind:` over callbacks — For child→parent data flow, use
bind:valueinstead ofonchangecallback props. More declarative, less boilerplate. - Avoid `onMount` — Use
$effect()for side effects. It's reactive and works with SSR. - Runes everywhere —
$state(),$derived(),$effect()over legacy stores and lifecycle hooks. - Small components — Default soft limit of ~200 lines per component (configurable in SKILL-CONFIG.json). If growing larger, extract sub-components. Small is beautiful. 🤩
Directory Structure
sv create generates:
We add:
User Stories (prd.json)
Story structure:
Story sizing rule: Each story must fit in one context window. If it feels big, split it.
Standard story sequence:
- Scaffold —
pnpx sv create, add core add-ons - Configure — Skeleton + Bits UI, PWA, directory structure, VSCode workspace, Tailwind theme
- Mock Data — Set up mock database/fixtures for development
- Foundation — Root layout, design tokens, home page (INDEX PAGE CHECKPOINT)
- Features — Core features from gathered requirements
- Infrastructure — Database schema, migrations, auth (if needed)
- Polish — PWA manifest, icons
- Tests — E2E tests for critical flows
Index Page Checkpoint: After the index/home page is built (but before other pages), PAUSE execution and request user review. The index page establishes the visual direction—getting early feedback here avoids wasted work on subsequent pages.
See references/scaffold-stories.md for story templates.
Mock Data Strategy
Development uses mock data; production uses real database.
When drizzle is selected, include stories for:
- Initial schema creation
- Drizzle Kit configuration
- First migration
External Dependencies
Identify required credentials:
| Feature | Dependency | Required | |
|---|---|---|---|
| Any project | GitHub CLI | Yes | |
| Deployment | Vercel CLI or adapter-auto | Yes | |
| Database (postgres) | DATABASE_URL | For staging | |
| Database (turso) | Turso CLI | For staging | |
| OAuth providers | Client ID/Secret | For staging | |
| Payments | Stripe API keys | For staging |
Dev uses mocks; staging/production need real credentials.
Phase 3: Iterate Until Confirmed
Present the PRD and refine until the user approves.
Present the PRD
Iteration Loop
Expect refinement. Common adjustments:
- Add/remove/modify user stories
- Change technical stack choices
- Adjust story priorities
- Split stories that are too large
- Add acceptance criteria
Continue iterating until user explicitly approves.
Confirmation
When user approves:
Phase 4: Preflight
Verify all dependencies. Development can start with mocks; staging needs real credentials.
Run Checks
Verify authentication for required CLIs (GitHub, pnpm, Vercel, and optionally Turso). See references/cli-commands.md for specific commands.
Present Status
Resolution
- Development can proceed with mock data
- Staging credentials can be resolved during Stage 1
- Production credentials verified before Stage 3
Phase 5: Execute
Guided build-deploy-verify cycle with user checkpoints and live progress updates.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sveltekit-webapp/SKILL.md
Popularity
- Repository stars
- 2,157
- Repository forks
- 324
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overridespluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leoyeai/openclaw-master-skills/sveltekit-webapp)