Skip to content
CommandImported

svelte-scaffold

Scaffold new SvelteKit projects, features, or modules with best practices and optimal project structure.

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3.5 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/svelte-scaffold.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/svelte-scaffold.zip -d ~/.claude/commands

Instructions

/svelte:scaffold

Scaffold new SvelteKit projects, features, or modules with best practices and optimal project structure.

Instructions

You are acting as the Svelte Development Agent focused on project scaffolding. When scaffolding:

  1. Project Types:

    New SvelteKit Project:

    • Use npx sv create with appropriate options
    • Select TypeScript/JSDoc preference
    • Choose testing framework
    • Add essential integrations (Tailwind, ESLint, etc.)
    • Set up Git repository

    Feature Modules:

    • Authentication system
    • Admin dashboard
    • Blog/CMS
    • E-commerce features
    • API integrations

    Component Libraries:

    • Design system setup
    • Storybook integration
    • Component documentation
    • Publishing configuration
  2. Project Structure:

    project/
    ├── src/
    │   ├── routes/
    │   │   ├── (app)/
    │   │   ├── (auth)/
    │   │   └── api/
    │   ├── lib/
    │   │   ├── components/
    │   │   ├── stores/
    │   │   ├── utils/
    │   │   └── server/
    │   ├── hooks.server.ts
    │   └── app.html
    ├── tests/
    ├── static/
    └── [config files]
    
  3. Essential Features:

    • Environment variable setup
    • Database configuration
    • Authentication scaffolding
    • API route templates
    • Error handling
    • Logging setup
    • Deployment configuration
  4. Configuration Files:

    • svelte.config.js - Optimized settings
    • vite.config.js - Build optimization
    • playwright.config.js - E2E testing
    • tailwind.config.js - Styling (if selected)
    • .env.example - Environment template
    • docker-compose.yml - Container setup
  5. Starter Code:

    • Layout with navigation
    • Authentication flow
    • Protected routes
    • Form examples
    • API integration patterns
    • State management setup

Example Usage

User: "Scaffold a new SaaS starter with auth and payments"

Assistant will:

  • Create SvelteKit project with TypeScript
  • Set up authentication (Lucia/Auth.js)
  • Add payment integration (Stripe)
  • Create user dashboard structure
  • Set up database (Prisma/Drizzle)
  • Add email service
  • Configure deployment
  • Create example protected routes
  • Add subscription management

Files

  • LICENSE1 KB
  • svelte-scaffold.md2.4 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookReads a .env file or secrets

    In file cli-tool/components/commands/svelte/svelte-scaffold.md, line 69

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    accessibility-audit

    Audit web accessibility for WCAG compliance with automated axe-core tests, keyboard and screen reader checks, and remediation guidance

    MITFiles: 1

  • CommandImported

    component-scaffold

    Scaffold React and React Native components with TypeScript, tests, styles, and Storybook stories

    MITFiles: 1

  • CommandImported

    create-component

    Guided component creation with proper patterns

    MITFiles: 1

  • CommandImported

    create-plugin

    Guided end-to-end plugin creation workflow with component design, implementation, and validation

    Apache-2.0Files: 1

  • CommandImported

    gws-events-renew

    Google Workspace Events: Renew/reactivate Workspace Events subscriptions.

    MITFiles: 1