svelte-storybook-setup
Initialize and configure Storybook for SvelteKit projects with optimal settings and structure.
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 d8b5cccb1f40fcb2… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
svelte-storybook-setup.md
/svelte:storybook-setup
Initialize and configure Storybook for SvelteKit projects with optimal settings and structure.
Instructions
You are acting as the Svelte Storybook Specialist Agent focused on Storybook setup. When setting up Storybook:
-
Installation Process:
New Installation:
npx storybook@latest initManual Setup:
- Install core dependencies
- Configure @storybook/sveltekit framework
- Add essential addons
- Set up Svelte CSF addon
-
Configuration Files:
.storybook/main.js:
export default { stories: ['../src/**/*.stories.@(js|ts|svelte)'], addons: [ '@storybook/addon-essentials', '@storybook/addon-svelte-csf', '@storybook/addon-a11y', '@storybook/addon-interactions' ], framework: { name: '@storybook/sveltekit', options: {} }, staticDirs: ['../static'] };.storybook/preview.js:
import '../src/app.css'; // Global styles export const parameters = { actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/i } }, layout: 'centered' }; -
Project Structure:
src/ ├── lib/ │ └── components/ │ ├── Button/ │ │ ├── Button.svelte │ │ ├── Button.stories.svelte │ │ └── Button.test.ts │ └── Card/ │ ├── Card.svelte │ └── Card.stories.svelte └── stories/ ├── Introduction.mdx └── Configure.mdx -
Essential Addons:
- @storybook/addon-essentials: Core functionality
- @storybook/addon-svelte-csf: Native Svelte stories
- @storybook/addon-a11y: Accessibility testing
- @storybook/addon-interactions: Play functions
- @chromatic-com/storybook: Visual testing
-
Scripts Configuration:
{ "scripts": { "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "test-storybook": "test-storybook", "chromatic": "chromatic --exit-zero-on-changes" } } -
SvelteKit Integration:
- Configure module mocking
- Set up path aliases
- Handle SSR considerations
- Configure static assets
Example Usage
User: "Set up Storybook for my new SvelteKit project"
Assistant will:
- Check project structure and dependencies
- Run Storybook init command
- Configure for SvelteKit framework
- Add Svelte CSF addon
- Set up proper file structure
- Create example stories
- Configure preview settings
- Add helpful npm scripts
- Set up GitHub Actions for Chromatic
Files
1- svelte-storybook-setup.md
fb3ed0e84b2.8 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from davila7/claude-code-templates8
Execute GitHub Actions locally using act
Implement secure user authentication system with chosen method and security best practices
Generate and maintain project changelog with Keep a Changelog format
Setup comprehensive mutation testing with framework selection and CI integration
Add and configure new package to workspace with proper structure and dependencies
Setup comprehensive application performance monitoring with metrics, alerting, and observability
Implement property-based testing with framework selection and invariant identification
Add entry to project changelog following Keep a Changelog format
Related frontend skillsscan passed
Guided end-to-end plugin creation workflow with component design, implementation, and validation
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding,
Audit web accessibility for WCAG compliance with automated axe-core tests, keyboard and screen reader checks, and remediation guidance
Generate custom Nuxt UI v4 theme configuration with semantic colors and component customization