shadcn-svelte-skill Svelte Themes

Shadcn Svelte Skill

Skill to enable the use of shadcn-svelte by LLM Agents

shadcn-svelte Skill

A Claude Code skill for shadcn-svelte - a Svelte 5 port of shadcn/ui with beautifully designed, accessible components.

Installation

Install the latest release using curl:

curl -fsSL https://github.com/antstanley/shadcn-svelte-skill/releases/latest/download/install.sh | bash

This installs the skill to ~/.claude/skills/shadcn-svelte.

Install a Specific Version

# Download and run the install script for a specific version
curl -fsSL https://github.com/antstanley/shadcn-svelte-skill/releases/download/v1.0.0/install.sh | bash

From Source

  1. Clone this repository
  2. Package the skill:
    python scripts/package_skill.py shadcn-svelte dist
    
  3. Extract to your skills directory:
    mkdir -p ~/.claude/skills/shadcn-svelte
    unzip dist/shadcn-svelte.skill -d ~/.claude/skills/shadcn-svelte
    

Usage

Once installed, the skill activates when you ask Claude about:

  • shadcn-svelte components
  • Bits UI integration
  • SvelteKit UI component setup
  • Forms with Superforms/Formsnap
  • Dark mode with mode-watcher
  • Tailwind CSS v4 theming

Example Prompts

"Add a dialog component to my SvelteKit app"
"How do I create a form with validation using shadcn-svelte?"
"Set up dark mode in my Svelte project"
"Create a data table with sorting and pagination"

What's Included

  • Quick start guide for installation and basic usage
  • 54 component references - Button, Dialog, Form, Data Table, and more
  • Installation guides for SvelteKit, Astro, and Vite
  • Dark mode setup with mode-watcher
  • Migration guides for Svelte 5 and Tailwind v4
  • Registry documentation for creating custom component registries

Development

Repository Structure

.
├── shadcn-svelte/           # The skill source
│   ├── SKILL.md             # Main instructions
│   └── references/          # Component & guide docs
├── source/                  # Downloaded upstream docs
│   ├── llms.txt             # Doc index with local paths
│   └── docs/                # Raw documentation
├── scripts/                 # Build & maintenance scripts
├── prompts/                 # LLM prompts for maintenance
└── .github/workflows/       # CI/CD automation

Validate the Skill

python scripts/validate_skill.py shadcn-svelte

Package the Skill

python scripts/package_skill.py shadcn-svelte dist

Creates dist/shadcn-svelte.skill.

Release

Releases are automated via GitHub Actions when a version tag is pushed to the main branch.

Steps to Release

  1. Update CHANGELOG.md with the new version section:

    ## [1.1.0] - 2025-01-25
    
    ### Added
    - New feature description
    
    ### Changed
    - Change description
    
  2. Commit the changelog:

    git add CHANGELOG.md
    git commit -m "docs: update changelog for v1.1.0"
    
  3. Create and push a version tag:

    git tag v1.1.0
    git push origin main
    git push origin v1.1.0
    
  4. The workflow will automatically:

    • Verify the tag is on the main branch
    • Validate and package the skill
    • Extract the changelog section for this version
    • Create a GitHub Release with the .skill file attached

Version Format

Tags must follow semantic versioning: v{major}.{minor}.{patch}

  • v1.0.0 - Initial release
  • v1.1.0 - New features (backward compatible)
  • v1.0.1 - Bug fixes

Updating Documentation

The skill's documentation comes from shadcn-svelte.com. To update:

1. Download Latest Docs

python scripts/download_docs.py

This downloads:

  • All .md files referenced in llms.txt
  • Saves to source/docs/
  • Updates source/llms.txt with local paths

2. Update the Skill

Use the provided prompt with Claude Code to update the skill:

cat prompts/UPDATE_SKILL.md

Or run Claude Code in this directory and ask:

Read prompts/UPDATE_SKILL.md and follow the instructions to update the skill
based on any changes in source/docs/

The prompt guides Claude to:

  1. Compare source docs with current skill references
  2. Update shadcn-svelte/references/ with new content
  3. Update SKILL.md if needed
  4. Validate the updated skill

3. Validate and Package

python scripts/validate_skill.py shadcn-svelte
python scripts/package_skill.py shadcn-svelte dist

Automated Updates

A GitHub workflow runs daily at 4am UTC to:

  1. Download latest documentation
  2. Create a Draft PR if changes are detected

Review and merge these PRs to keep the skill up to date.

License

MIT

Top categories

Loading Svelte Themes