phenobarbital/antigravity-config/svelte5-structural
Claude Code and agent skill by phenobarbital/antigravity-config
- community
Checking that the SKILL.md file is still in the repository.
Svelte 5 + SvelteKit development with structural composition patterns. Use when building dashboards, widget systems, or component libraries where structural consistency matters. Emphasizes base components with behavior composition (strategies), OOP for state machines, and Svelte 5 runes. Triggers on Svelte/SvelteKit work requesting widgets, dashboards, reusable component systems, or when user prefers OOP patterns over pure functional composition.
Install
npx vskill@latest install phenobarbital/antigravity-config/svelte5-structuralSKILL.md
Svelte 5 Structural Composition
Core Philosophy
Structural Composition: Base components encapsulate common structure (header, content, footer). Variations come through configuration and snippets, not component nesting.
Behavior Composition: Apply Strategy Pattern for what varies: data sources, renderers, validators. Not for structural elements.
OOP Where It Fits: Use classes for state machines, managers, and complex reactive state. Svelte 5 supports $state in classes.
Svelte 5 Syntax Requirements
Always use Svelte 5 syntax:
$state(),$derived(),$effect()— never$:reactive statements$props()with destructuring — neverexport letonclicknoton:click(no colon in event handlers){#snippet}+{@render}— never<slot>$app/statenot$app/stores
File Naming
Base Component Pattern
Create structural base components that accept snippets for variable content:
Usage with Behavior Composition
State Machines with Classes
Use .svelte.ts files for reactive classes:
Strategy Interfaces
Define clear interfaces for behavior composition:
When to Use Each Pattern
| Scenario | Pattern | Example | |
|---|---|---|---|
| Common structure | Base component | Widget shell, Card, Modal | |
| Variable content | Snippet | Chart area, form fields | |
| Data fetching | Strategy | REST, GraphQL, WebSocket | |
| Rendering logic | Strategy | ECharts, Vega, D3 | |
| App-wide state | Class singleton | WidgetManager, AuthState | |
| Component state | $state in component | collapsed, loading | |
| Derived values | $derived | filteredList, total |
Performance for Dashboards
For 30+ widgets:
Reference Files
- [references/patterns.md](references/patterns.md): Detailed structural patterns, snippet composition, action patterns
- [references/state-machines.md](references/state-machines.md): Complex class patterns, stores integration, context usage
- [references/widgets.md](references/widgets.md): Complete widget system implementation for dashboards
Path Aliases
Use project aliases:
@components→./src/components@state→./src/lib/state@types→./src/types$lib→./src/lib(SvelteKit default)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbackend/.agent/skills/svelte5-structural/SKILL.md
Popularity
- Repository stars
- 13
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 10 Oct 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/phenobarbital/antigravity-config/svelte5-structural)