/svelte-scaffold · Comandos slash para Claude Code | Prompt Studio
    1. Claude Code
    2. Comandos slash
    3. /svelte-scaffold
    Claude Code · Comandos slashSetup

    /svelte-scaffold

    Crea la estructura de un proyecto SvelteKit.

    por davila7/claude-code-templates

    svelte

    Licencia: MITVer original

    Instalación

    npx claude-code-templates@latest --command svelte/svelte-scaffold

    Contenido

    Dónde va: .claude/commands/svelte-scaffold.md

    ---
    description: "Scaffold new SvelteKit projects, features, or modules with best practices and optimal project structure."
    ---
    
    # /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

    Más en Comandos slash

    • /commit

      Redacta un commit con Conventional Commits a partir de los cambios en stage.

    • /review

      Revisa el diff actual buscando bugs, casos borde y problemas de seguridad.

    • /tests

      Escribe tests para el archivo o función que indiques.

    • /changelog

      Genera las notas de versión desde el último tag.

    • /explain

      Explica cómo funciona un archivo o módulo, con un diagrama del flujo.

    • /cleanup

      Elimina imports, variables y código muerto sin cambiar el comportamiento.

    Ver todo en Comandos slash (717) →

    Tu colección definitiva de prompts de IA. Inspírate, explora ejemplos y crea con IA.

    Hubs principales

    • Prompts
    • Imágenes
    • Videos
    • Generar Videos
    • Plantillas
    • Animaciones
    • Precios
    • Conoce
    • Afiliado

    Explorar por tipo

    • Kits de componentes
    • Etiquetas de imagen
    • Etiquetas de video
    • Webs

    Temas populares

    • Música
    • Portafolio
    • Gaming
    • Viajes
    • Nano Banana Pro

    Legal

    • Términos de uso
    • Política de privacidad
    • Política de cookies
    • Política de licencias
    • Política de reembolsos
    • Términos del programa de afiliados
    • Términos de Crowdfunding

    Magzin LLC, 800 Third Avenue Associates, New York, NY, 10022, United States

    © 2026 Prompt Studio by Magzin. Todos los derechos reservados.