Agent skill

svelte-ui-integration

Implement or extend user-facing workflows in SvelteKit applications with full-stack capabilities. Specialized in SvelteKit's load functions, form actions, and progressive enhancement. Use when the feature is primarily a UI/UX change backed by existing APIs, affects only the web frontend, and requires following SvelteKit conventions.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/ajianaz/skills-collection/tree/main/skills/svelte-ui-integration

SKILL.md

SvelteKit UI Integration

Purpose

Implement or extend user-facing workflows in SvelteKit applications, leveraging SvelteKit's full-stack capabilities including load functions, form actions, and API routes. Follow SvelteKit conventions for routing, state management, and progressive enhancement.

When to use this skill

  • The feature is primarily a UI/UX change leveraging SvelteKit's architecture.
  • Building progressive enhancement with server-side rendering and client-side interactivity.
  • The backend contracts, auth model, and core business rules already exist or will be implemented as SvelteKit API routes.
  • The change affects only the SvelteKit application (no external service changes).

Inputs

  • Feature description: short narrative of the user flow and outcomes.
  • Relevant APIs: endpoints, request/response types, and links to source definitions.
  • Target routes/components: paths, component names, or feature modules.
  • Design references: Figma links or existing screens to mirror.
  • Guardrails: performance limits, accessibility requirements, and any security constraints.

Out of scope

  • Creating new backend services or changing persistent data models.
  • Modifying authentication/authorization flows.
  • Introducing new frontend frameworks or design systems.

Conventions

  • Framework: SvelteKit with TypeScript.
  • Routing: use SvelteKit's file-based routing with +layout.svelte, +page.svelte, and +page.server.ts.
  • Styling: Use shadcn-svelte, Skeleton UI, or Melt UI components (via shadcn-svelte-management skill) or the in-house design system components.

When using UI components, invoke the shadcn-svelte-management skill to:

  • Discover available Svelte components
  • Get component installation commands
  • Choose appropriate component library (shadcn-svelte, Skeleton UI, Melt UI)
  • State management: prefer Svelte stores, reactive statements, and SvelteKit's form actions.
  • Data fetching: use SvelteKit load functions for server-side data and progressive enhancement.

Required behavior

  1. Implement the UI changes with strong typing for all props, load function data, and form actions.
  2. Handle loading, empty, error, and success states using SvelteKit's $page.form and reactive statements.
  3. Ensure the UI is keyboard accessible and screen-reader friendly with proper ARIA attributes.
  4. Leverage SvelteKit's progressive enhancement - works without JavaScript, enhanced with it.
  5. Respect feature flags and rollout mechanisms where applicable.

Required artifacts

  • Updated components and actions in the appropriate feature module (src/lib/components/).
  • Load functions in +page.server.ts or +layout.server.ts for server-side data.
  • Form actions for handling form submissions with progressive enhancement.
  • Unit tests for core presentation logic and Svelte stores.
  • Integration or component tests for the new flow (e.g., Svelte Testing Library, Cypress, Playwright) where the repo already uses them.
  • Minimal CHANGELOG or PR description text summarizing the behavior change (to be placed in the PR, not this file).

Implementation checklist

  1. Locate the relevant feature module and existing components in src/lib/components/.
  2. Confirm the backend APIs and types, updating shared TypeScript types if needed.
  3. Implement the UI with SvelteKit patterns:
    • Use +page.server.ts for server-side data loading
    • Use form actions for POST/PUT/DELETE operations
    • Leverage +layout.svelte for shared UI elements
    • Implement progressive enhancement
  4. Add or update tests to cover the new behavior and edge cases.
  5. Run the required validation commands (see below).

Verification

Run the following (adjust commands to match the project):

  • pnpm lint
  • pnpm test -- --runInBand --watch=false
  • pnpm check (SvelteKit type checking)
  • pnpm build (to verify production build)
  • pnpm preview (test production build locally)

The skill is complete when:

  • All tests, linters, and type checks pass.
  • The new UI behaves as specified across normal, error, and boundary cases.
  • Progressive enhancement works (functional without JavaScript).
  • Form submissions work with and without JavaScript.
  • No unrelated files or modules are modified.

Safety and escalation

  • If the requested change requires external backend contract changes, stop and request a backend-focused task instead.
  • If design references conflict with existing accessibility standards, favor accessibility and highlight the discrepancy in the PR description.
  • Always implement with progressive enhancement in mind - ensure functionality works without JavaScript.

Expand your agent's capabilities with these related and highly-rated skills.

ajianaz/skills-collection

task-planner

Generate structured task lists from specs or requirements. IMPORTANT: After completing ANY spec via ExitSpecMode, ALWAYS ask the user: "Would you like me to generate a task list for this spec?" Use when user confirms or explicitly requests task generation from a plan/spec/PRD.

1 0
Explore
ajianaz/skills-collection

security-auth

Comprehensive security and authentication workflow that orchestrates security architecture, identity management, access control, and compliance implementation. Handles everything from authentication system design and authorization frameworks to security auditing and threat protection.

1 0
Explore
ajianaz/skills-collection

shadcn-svelte-management

Manage UI components using MCP tools with primary focus on Svelte ecosystem. Specialized in Svelte component libraries including shadcn-svelte, Skeleton UI, and Melt UI. Use when user needs to: (1) Add new Svelte UI components to a project (2) Build complex UI features requiring multiple components (3) Research component implementations and examples (4) Get component installation commands (5) Choose appropriate Svelte component library Triggers: "add components", "UI components", "build UI", "install component", "create form", "create dialog", "svelte components", "shadcn-svelte", "skeleton ui"

1 0
Explore
ajianaz/skills-collection

svelte-ui-animator

Analyze and implement purposeful UI animations for Svelte/SvelteKit + Tailwind projects. Specialized in Svelte transitions, actions, and animation patterns. Use when user asks to add animations, enhance UI motion, animate pages/components, or improve visual feedback. Triggers on "add animations", "animate UI", "motion design", "hover effects", "scroll animations", "page transitions", "micro-interactions".

1 0
Explore
ajianaz/skills-collection

mobile-devops

Comprehensive mobile DevOps workflow that orchestrates mobile application development, CI/CD for mobile, app store deployment, and mobile device testing. Handles everything from mobile app build automation and testing to app store submission, monitoring, and mobile-specific DevOps practices.

1 0
Explore
ajianaz/skills-collection

svelte-design

Create distinctive, production-grade frontend interfaces with high design quality. Specialized in Svelte/SvelteKit applications with full-stack capabilities. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

1 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results