SvelteKitを使ったWebアプリ開発を効率化し、TypeScript、Tailwind、UIコンポーネント、テスト、Vercelデプロイまで自動で設定、PRD作成から承認フローを経て開発を進め、高品質なPWAを構築するSkill。
SvelteKitを用いたPWA(プログレッシブウェブアプリ)を、TypeScript、Tailwind、UIコンポーネント、テスト、デプロイなどの設定を含めて、本番環境に対応した形で構築するためのSkill。
📜 元の英語説明(参考)
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.
🇯🇵 日本人クリエイター向け解説
SvelteKitを用いたPWA(プログレッシブウェブアプリ)を、TypeScript、Tailwind、UIコンポーネント、テスト、デプロイなどの設定を含めて、本番環境に対応した形で構築するためのSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o sveltekit-webapp.zip https://jpskill.com/download/5450.zip && unzip -o sveltekit-webapp.zip && rm sveltekit-webapp.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5450.zip -OutFile "$d\sveltekit-webapp.zip"; Expand-Archive "$d\sveltekit-webapp.zip" -DestinationPath $d -Force; ri "$d\sveltekit-webapp.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
sveltekit-webapp.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
sveltekit-webappフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 7
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] sveltekit-webapp
SvelteKit Webapp スキル
意見のあるデフォルト設定とガイド付き実行で、本番環境に対応した SvelteKit PWA を構築します。
クイックスタート
- アプリを説明する — 構築したいものを教えてください
- PRD をレビューする — ユーザー ストーリーを含む計画を生成します
- 承認する — あなたの監視のもと、構築、テスト、デプロイを行います
- 完了 — ライブ URL と管理者ドキュメントを入手します
「期日と優先度ラベル付きのタスク トラッカーを構築してください」
これだけで開始できます。必要に応じて、追加の質問をします。
前提条件
これらの CLI が利用可能である必要があります(スキルはプレフライト中に検証します)。
| CLI | 目的 | インストール |
|---|---|---|
sv |
SvelteKit スキャフォールディング | npm i -g sv (または pnpx 経由で使用) |
pnpm |
パッケージ マネージャー | npm i -g pnpm |
gh |
GitHub リポジトリ作成 | cli.github.com |
vercel |
デプロイ | npm i -g vercel |
オプション(機能が必要な場合):
turso— Turso データベース CLI
意見のあるデフォルト設定
このスキルには、連携してうまく機能する合理的なデフォルト設定が付属しています。すべてのデフォルト設定は SKILL-CONFIG.json を介して上書きできます。
- コンポーネント ライブラリ: Skeleton (Svelte 5 ネイティブ) + Bits UI フォールバック
- パッケージ マネージャー: pnpm
- デプロイ: Vercel
- アドオン: ESLint, Prettier, Vitest, Playwright, mdsvex, MCP
- 状態: Svelte 5 ルーン ($state, $derived, $effect)
上書きの詳細については、「ユーザー設定」を参照してください。
ユーザー設定
スキル デフォルトを使用する前に、ユーザー固有のデフォルト設定については ~/.openclaw/workspace/SKILL-CONFIG.json を確認してください。ユーザー設定は、以下のスキル デフォルトを上書きします。
- デプロイ プロバイダー (例: vercel, cloudflare, netlify)
- パッケージ マネージャー (pnpm, npm, yarn)
- 常に含めるアドオン
- MCP IDE 設定
- コンポーネント ライブラリの好み
ワークフローの概要
- 収集: 自由形式の説明 + デザイン参照 + ターゲットを絞ったフォローアップ
- 計画: 完全な PRD を生成 (スキャフォールディング、設定、機能、ストーリーとしてのテスト)
- 反復: 確認されるまでユーザーと PRD を調整
- プレフライト: 必要なすべての認証と資格情報を検証
- 実行: ユーザー チェックポイントを含むガイド付きビルド-デプロイ-検証サイクル (開発 → ステージング → 本番)
フェーズ 1: プロジェクトの説明を収集する
ユーザーが何を求めているかを理解するための、会話的で反復的なアプローチです。
1a. 自由形式の開始
オープンな質問から始めます。
- 「何を構築したいですか?」
- 「考えている Web アプリについて説明してください」
ユーザーに、彼らにとって重要なことを主導させます。
1b. デザイン参照
インスピレーションを求めます。
このサイトに似た雰囲気 (デザイン、機能、またはその両方) のサイトを 1~3 つ共有してください。
例:
- 「Notion のように、でももっとシンプルに」
- 「Fieldwire のモバイル ファースト アプローチ」
- 「Linear のクリーンな美学」
「好きなものを見せてください」は、何段落もの説明よりも多くを伝えます。
1c. 視覚的アイデンティティ (オプション)
デザイン参照がカスタム ブランドを提案している場合は、次のように尋ねます。
使用したい特定のカラー、フォント、またはロゴはありますか?
(Tailwind テーマを事前に設定できます)
1d. ターゲットを絞ったフォローアップ
説明のギャップに基づいて、具体的に尋ねます。
| ギャップ | 質問 |
|---|---|
| ユーザーが不明確 | 「主なユーザーは誰ですか? (役割、コンテキスト)」 |
| コア アクションが不明確 | 「彼らが実行できる必要がある唯一のことは何ですか?」 |
| コンテンツが不明 | 「組み込む既存のコンテンツ/アセットはありますか?」 |
| スケールが不明 | 「何人のユーザーを期待していますか? (概算)」 |
| タイムライン | 「これを推進する締め切りはありますか?」 |
不足しているものだけを尋ねてください。尋問しないでください。
1e. 構造化された要約
続行する前に、理解を確認します。
📝 プロジェクト概要: [名前]
目的: [一文]
主なユーザー: [誰]
コア アクション: [何をするか]
デザインのインスピレーション: [参照]
視覚的アイデンティティ: [指定された場合の色/フォント]
主な機能:
• [機能 1]
• [機能 2]
• [機能 3]
検出された技術的シグナル:
• データベース: [はい/いいえ] — [理由]
• 認証: [はい/いいえ] — [理由]
• 国際化: [はい/いいえ] — [理由]
これで合っていますか? [はい / 調整]
ユーザーが確認するまで繰り返します。
フェーズ 2: 計画 (PRD の生成)
技術スタック、ユーザー ストーリー、モック データ戦略を含む完全な PRD を生成します。
技術スタック
常に含まれるもの:
CLI: pnpx sv (フォールバック: npx sv)
テンプレート: minimal
TypeScript: yes
パッケージ マネージャー: pnpm (フォールバック: npm)
コア アドオン (sv add 経由):
✓ eslint
✓ prettier
✓ mcp (claude-code)
✓ mdsvex
✓ tailwindcss (+ typography, forms プラグイン)
✓ vitest
✓ playwright
スキャフォールディング後:
✓ Skeleton (主要コンポーネント ライブラリ — Svelte 5 ネイティブ、アクセシブル)
✓ Bits UI (ヘッドレス プリミティブ — ギャップ/複雑なカスタム UI のフォールバック)
✓ vite-plugin-pwa (PWA サポート)
✓ Svelte 5 ルーン モード
✓ adapter-auto (デプロイ ターゲットを自動検出)
なぜ Skeleton + Bits UI なのか?
- Skeleton: Svelte 5 用に構築されたフル機能のコンポーネント ライブラリで、デフォルトでアクセシブル
- Bits UI: より多くの制御やカスタム スタイリングが必要な場合のヘッドレス プリミティブ
- 両方ともうまく連携します — Skeleton は速度、Bits は柔軟性
説明から推測されるもの:
drizzle → データベースが必要な場合 (質問: postgres/sqlite/turso)
lucia → 認証が必要な場合
paraglide → i18n が必要な場合 (質問: どの言語)
状態管理
Svelte 5 のベスト プラクティスに従います (https://svelte.dev/docs/kit/state-management を参照)。
- リアクティブな状態には
$state()ルーンを使用します - 算出値には
$derived()を使用します - コンポーネント間の状態には Svelte のコンテキスト API (
setContext/getContext) を使用します - サーバーの状態は
load関数 →dataプロパティを介して流れます - 決してユーザー固有の状態をモジュールレベルの変数に保存しないでください (リクエスト間で共有されます)
コード スタイルの好み
ユーザーの好みについては SKILL-CONFIG.json を確認してください。一般的なパターン:
- コールバックよりも
bind:を優先 — 子から親へのデータ フローには、onchangeコールバック プロパティの代わりにbind:valueを使用します。より宣言的で、ボイラープレートが少なくなります。 onMountを避ける — 副作用には$effect()を使用します。これはリアクティブで、SSR で動作します。- どこでもルーン — レガシーよりも
$state(),$derived(),$effect()
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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:
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.
1c. Visual Identity (Optional)
If design references suggest custom branding, ask:
Any specific colors, fonts, or logos you want to use?
(I can pre-configure the Tailwind theme)
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:
📝 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.
Phase 2: Plan (Generate PRD)
Generate a complete PRD with technical stack, user stories, and mock data strategy.
Technical Stack
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?
- 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:
drizzle → if needs database (ask: postgres/sqlite/turso)
lucia → if needs auth
paraglide → if needs i18n (ask: which languages)
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, usebind: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:
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
User Stories (prd.json)
Story structure:
{
"project": "ProjectName",
"branchName": "dev",
"description": "Brief description",
"userStories": [
{
"id": "US-001",
"title": "Scaffold project",
"description": "Set up the base SvelteKit project.",
"acceptanceCriteria": [...],
"priority": 1,
"passes": false,
"blocked": false,
"notes": ""
}
]
}
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.
Mock data approach:
- Generate mock data per-story as needed
- Store in src/lib/server/mocks/ or use MSW for API mocking
- E2E tests run against mock data locally
- Stage 2+ switches to 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
📋 PRD: [Project Name]
TECHNICAL STACK:
✅ Always: TypeScript, Tailwind, Skeleton + Bits UI, ESLint,
Prettier, Vitest, Playwright, PWA
🔍 Inferred:
[✓/✗] Database (drizzle) - [reason]
[✓/✗] Authentication (lucia) - [reason]
[✓/✗] Internationalization (paraglide) - [reason]
USER STORIES: [N] stories
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
US-001: Scaffold project (Setup)
US-002: Configure Skeleton + Bits UI (Setup)
US-003: Set up mock data (Setup)
US-004: Create root layout (Foundation)
[... feature stories ...]
US-XXX: Configure PWA manifest (Polish)
US-XXX: Add E2E tests (Tests)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔐 External dependencies:
• GitHub CLI (required now)
• Vercel CLI (required now)
• DATABASE_URL (required for staging)
• [others for staging]
[Approve / See full stories / Edit stories / Change stack]
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:
✅ PRD CONFIRMED
[N] user stories ready for execution.
Proceeding to preflight checks...
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
┌─────────────────────────────────────────────┐
│ 🔐 PREFLIGHT CHECK │
├─────────────────────────────────────────────┤
│ For development (Stage 1): │
│ ✓ GitHub CLI authenticated │
│ ✓ pnpm installed │
│ ✓ Write access verified │
│ │
│ For staging (Stage 2): │
│ ✓ Vercel CLI authenticated │
│ ✗ DATABASE_URL not set │
│ │
│ ─────────────────────────────────────────── │
│ Development can start now. │
│ DATABASE_URL needed before Stage 2. │
│ │
│ [Start development / Resolve all first] │
└─────────────────────────────────────────────┘
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.
EXECUTE
├── Stage 1: Development (local, dev branch, mock data)
│ └── Build all features, tests pass locally
│
├── Stage 2: Staging (main branch, preview URL, real data)
│ └── Deploy, fix environment issues, tests pass on preview
│
└── Stage 3: Production (permanent URL)
└── Connect domain, final verification, handoff
Live progress updates: Report each completed story:
✅ US-001: Scaffold project
✅ US-002: Configure Skeleton + Bits UI
✅ US-003: Set up mock data
⏳ US-004: Create root layout (in progress)
Stage 1: Development
Build everything locally with mock data.
Setup
Initialize a git repository on a dev branch and create a progress.txt tracking file. See references/cli-commands.md for commands.
Execute Stories via Sub-Agents
Use sessions_spawn to execute stories in parallel where dependencies allow.
Wave structure:
- Wave 1: Scaffold (must complete first)
- Wave 2: Configure (shadcn, PWA, directories) — parallel
- Wave 3: Mock data setup
- Wave 4+: Feature stories — parallel where independent
- Final wave: E2E test stories
Sub-agent task template:
Implement user story [US-XXX] for SvelteKit project at [project_path].
Story: [title]
Description: [description]
Acceptance Criteria:
- [criterion 1]
- [criterion 2]
- Typecheck passes
Instructions:
1. Read progress.txt for codebase patterns
2. Implement with minimal, focused changes
3. Use Svelte 5 runes for state ($state, $derived, $effect)
4. Use context API for cross-component state
5. Follow Conventional Commits: "feat: [US-XXX] - [title]"
6. Run `pnpm check` to verify
7. Update prd.json: passes: true
8. Append learnings to progress.txt
Handling Blocked Stories
If a story cannot be completed:
- Mark as
blocked: truein prd.json - Add explanation to
notesfield - Continue with other parallelizable stories
- Report blocked stories in final summary
Stage 1 Exit Criteria
All checks must pass before proceeding: TypeScript verification, unit tests, and E2E tests against the local dev server with mocks. See references/cli-commands.md for commands.
Stage 2: Staging
Push to main, deploy to preview, switch from mocks to real data.
Verify Staging Credentials
Before proceeding, ensure all staging credentials are set:
- DATABASE_URL (if using database)
- OAuth client ID/secret (if using auth)
- Other API keys
If missing, pause and request from user.
Deploy via GitHub-Vercel Integration
One-time setup (recommended over CLI deploys):
Create a private GitHub repository, link to a Vercel project, and connect GitHub in the Vercel dashboard (Settings → Git → Connect Git Repository). Set the production branch to main. See references/cli-commands.md for commands.
Benefits of GitHub integration:
- Push to deploy (no CLI needed after setup)
- Automatic preview URLs for all branches
- Persistent branch URLs:
[project]-git-dev-[team].vercel.app - Better CI/CD visibility in both dashboards
Deploy to staging:
Merge the dev branch into main and push. The push triggers Vercel to build and deploy automatically. See references/cli-commands.md for commands.
Dev branch preview URL:
After connecting GitHub, the dev branch gets a persistent preview URL:
https://[project]-git-dev-[team].vercel.app
This URL stays the same across commits—great for sharing with stakeholders.
Fix Environment Issues
Common issues in deployed environments:
- OAuth callback URLs (must match deployed domain)
- CORS configuration
- Environment variables not set in Vercel
- Database connection strings
- API endpoints using localhost
Smart retry logic:
- Diagnose error type from stdout/stderr
- Attempt fix based on error:
- Dependency error →
pnpm install - Type error → analyze
pnpm checkoutput - Test failure → re-run with verbose logging
- Network/timeout → wait 30s, retry
- Dependency error →
- Escalate after 3 failed attempts
Stage 2 Exit Criteria
E2E tests must pass against the Vercel preview URL. See references/cli-commands.md for commands.
Stage 3: Production
Deploy to production URL and hand off to user.
Deploy Production
With GitHub-Vercel integration, production deploys automatically when you push to main. Custom domains can be configured via the Vercel dashboard (Settings → Domains) or CLI. See references/cli-commands.md for commands.
Final Verification
Run E2E tests against the production URL to confirm everything works. See references/cli-commands.md for commands.
Completion Report
🚀 DEPLOYED
Repository: github.com/[user]/[project-name]
Live URL: https://[production-url]
Build Summary:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Stories completed: [N]/[N]
Blocked stories: [list if any]
Tests passing: [X] unit, [Y] E2E
Deployment: Vercel production
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The app is live and ready for users.
Phase 6: Handoff
Provide lifecycle management documentation.
Generate Admin Manual
Create ADMIN.md in project root:
# [Project Name] — Administration Guide
## Running Locally
\`\`\`bash
pnpm install
pnpm dev # Start dev server at localhost:5173
\`\`\`
## Environment Variables
Copy `.env.example` to `.env` and configure:
- DATABASE_URL: [description]
- [other vars]
Set these in Vercel dashboard for production.
## Project Structure
\`\`\`
src/
├── routes/ # Pages and API routes
├── lib/components/ # UI components (Skeleton + Bits UI)
├── lib/server/ # Server-only code
└── lib/stores/ # State management
\`\`\`
## Adding New Pages
1. Create `src/routes/[page-name]/+page.svelte`
2. Add server data loading in `+page.server.ts`
3. Run `pnpm check` to verify types
## Database Migrations
\`\`\`bash
pnpm drizzle-kit generate # Generate migration
pnpm drizzle-kit push # Apply to database
\`\`\`
## Deployment
Push to `main` branch → auto-deploys to Vercel.
## Troubleshooting
- **Type errors**: Run `pnpm check`
- **Test failures**: Run `pnpm test:e2e --debug`
- **Build issues**: Check Vercel deployment logs
Report Handoff
📖 HANDOFF COMPLETE
Admin manual: ADMIN.md
- How to run locally
- Environment variable setup
- Project structure overview
- Adding new pages
- Database migrations
- Deployment workflow
- Troubleshooting guide
The project is ready for ongoing development.
Error Handling
If any stage fails and cannot be automatically resolved:
- Diagnose: Analyze error output
- Categorize:
- Dependency →
pnpm install - Type error → show specific errors
- Test failure → show failing tests
- Network → retry with backoff
- Dependency →
- Retry: Up to 3 attempts with appropriate fix
- Escalate: Report to user with:
- What failed
- What was tried
- Specific error messages
- Suggested manual resolution
Never leave the project broken. If Stage 2/3 fails, dev branch still works.
Quick Reference
For all CLI commands and auth checks, see references/cli-commands.md.
Default Adapter
Use adapter-auto — automatically detects:
- Vercel → adapter-vercel
- Cloudflare → adapter-cloudflare
- Netlify → adapter-netlify
- Otherwise → adapter-node
Database Options (drizzle)
postgresql+postgres.jsorneonsqlite+better-sqlite3orlibsqlturso+@libsql/client
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (21,753 bytes)
- 📎 references/cli-commands.md (2,685 bytes)
- 📎 references/deployment.md (5,198 bytes)
- 📎 references/pwa-config.md (4,170 bytes)
- 📎 references/ralph-plan-template.md (7,002 bytes)
- 📎 references/ralph-prompt.md (3,549 bytes)
- 📎 references/scaffold-stories.md (9,081 bytes)