Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

tapforce-sveltekittapforce SvelteKit 搜索

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

519

周安装

21

GitHub Stars

公开资料未说明

下载量

163
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tapforce-sveltekit(tapforce SvelteKit 搜索)
来源仓库:https://github.com/tapforce/agents-skills
仓库路径:skills/tapforce-sveltekit
安装命令:
npx skills add https://github.com/tapforce/agents-skills --skill tapforce-sveltekit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tapforce/agents-skills --skill tapforce-sveltekit

简介

tapforce-sveltekit 用于辅助前端页面和组件开发。

  • 适合生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码。
  • 结合项目现有设计系统和路由方式生成组件,避免孤立片段输出。
  • 涉及页面改动时应配合本地预览和构建检查确认视觉效果。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Tapforce SvelteKit Skill

This skill provides best practices for setting up and developing Svelte projects using SvelteKit ^2.0.0.

When to Use

Use this skill when:

  • Setting up a new SvelteKit project
  • Developing applications based on SvelteKit framework
  • Migrating existing Svelte projects to SvelteKit ^2.0.0
  • Configuring SvelteKit project structure and routing

Requirements

  • Project based on Node.js ^20.0.0
  • Project needs Svelte ^5.0.0
  • Project needs SvelteKit ^2.0.0
  • Prefer using pnpm ^10.0.0 as default package manager

CLI Commands

sv create

Sets up a new SvelteKit project with options for templates and add-ons.

Usage:

npx sv create [options] [path]

Key Options:

  • --template <name>: Project template (minimal, demo, library)
  • --types <option>: Type checking (ts, jsdoc)
  • --no-types: Skip type checking (not recommended)
  • --add [add-ons...]: Add specific add-ons during creation
  • --no-add-ons: Skip interactive add-ons prompt
  • --install <package-manager>: Specify package manager (npm, pnpm, yarn, bun, deno)
  • --no-install: Skip dependency installation
  • --from-playground <url>: Create from playground URL

Examples:

# Basic setup with pnpm
pnpm dlx sv create . --install pnpm

# With TypeScript and Tailwind CSS
pnpm dlx sv create . --types ts --add tailwindcss --install pnpm

# From template with add-ons
pnpm dlx sv create . --template demo --add eslint prettier --install pnpm

sv add

Updates existing projects with new functionality and add-ons.

Usage:

npx sv add [add-ons]

Key Options:

  • -C, --cwd <path>: Path to project root
  • --no-git-check: Skip git dirty files check
  • --no-download-check: Skip download confirmations
  • --install <package-manager>: Specify package manager
  • --no-install: Skip dependency installation

Official Add-ons:

  • tailwindcss: Tailwind CSS v4 integration
  • eslint: Code linting setup
  • prettier: Code formatting setup
  • playwright: End-to-end testing
  • vitest: Unit testing framework
  • mdsvex: Markdown support
  • And more...

Examples:

# Add Tailwind CSS
pnpm dlx sv add tailwindcss

# Add multiple tools
pnpm dlx sv add eslint prettier playwright

# Add with specific package manager
pnpm dlx sv add vitest --install pnpm

sv check

Finds errors and warnings in SvelteKit projects.

Usage:

npx sv check [options]

Key Options:

  • --workspace <path>: Path to workspace directory
  • --output <format>: Output format (human, human-verbose, machine, machine-verbose)
  • --watch: Keep process alive and watch for changes
  • --tsconfig <path>: Path to TypeScript config
  • --no-tsconfig: Check only Svelte files
  • --ignore <paths>: Files/folders to ignore
  • --fail-on-warnings: Exit with error on warnings
  • --compiler-warnings <warnings>: Configure warning behavior
  • --diagnostic-sources <sources>: Specify diagnostic sources (js, svelte, css)
  • --threshold <level>: Filter diagnostics (warning, error)

Examples:

# Basic check
pnpm dlx sv check

# Watch mode
pnpm dlx sv check --watch

# With specific output
pnpm dlx sv check --output machine-verbose

# Ignore specific directories
pnpm dlx sv check --ignore "dist,build"

sv migrate

Migrates SvelteKit codebases between versions.

Usage:

npx sv migrate [migration]

Available Migrations:

  • svelte-5: Upgrade Svelte 4 to Svelte 5 with runes
  • sveltekit-2: Upgrade SvelteKit 1 to SvelteKit 2
  • app-state: Migrate $app/stores to $app/state
  • self-closing-tags: Update self-closing element syntax
  • svelte-4: Upgrade Svelte 3 to Svelte 4
  • package: Upgrade @sveltejs/package v1 to v2
  • routes: Upgrade pre-release to v1 routing

Examples:

# Interactive migration
pnpm dlx sv migrate

# Specific migration
pnpm dlx sv migrate svelte-5
pnpm dlx sv migrate sveltekit-2

Project Setup

Creating New Project

For new projects, use the SvelteKit CLI command to initialize the backbone codebase. NEVER create core files manually like package.json, tsconfig.json, etc., as SvelteKit CLI will create them for you.

Official documentation: https://svelte.dev/docs/kit/creating-a-project/llms.txt

Quick Setup Commands:

# Basic setup with pnpm (recommended)
pnpm dlx sv create . --install pnpm
pnpm run dev

# With TypeScript and Tailwind CSS
pnpm dlx sv create . --types ts --add tailwindcss --install pnpm
pnpm run dev

# With common development tools
pnpm dlx sv create . --add eslint prettier vitest --install pnpm
pnpm run dev

# Minimal setup with common addons (no-install approach)
pnpm dlx sv create . --template minimal --add tailwindcss prettier adapter-auto --no-install
echo 'packages:
    - .' > pnpm-workspace.yaml
pnpm install
pnpm run dev

# Using npm
npm dlx sv create . --install npm
npm run dev

Troubleshooting pnpm Setup: If you encounter ERR_PNPM_INVALID_WORKSPACE_CONFIGURATION error during installation, see the Package Management rule for solutions.

Template Options:

  • minimal: Barebones scaffolding
  • demo: Showcase app with word guessing game
  • library: Template for Svelte library with svelte-package

Package Manager Support:

  • pnpm (recommended)
  • npm
  • yarn
  • bun
  • deno

Recommended Packages

Consider using these helpful libraries for SvelteKit development:

Style Framework/UXUI Framework:

Testing Frameworks:

  • vitest: Unit testing with SvelteKit support
  • playwright: End-to-end testing
  • @sveltejs/adapter-test: Testing adapter for SvelteKit

Development Tools:

  • eslint: Code linting with Svelte plugin
  • prettier: Code formatting with Svelte plugin
  • mdsvex: Markdown support in Svelte
  • paraglide: Internationalization

Project Configuration

Update Package JSON

After project creation, update package.json to match project information like name, version, description, etc.

SvelteKit Features

Respect Svelte ^5 and SvelteKit ^2 Features

Ensure all Svelte code (including Svelte and SvelteKit) uses the latest features and coding style from Svelte ^5 and SvelteKit ^2.

Available features from Svelte ^5: $state, $effect, $inspect, etc.

AVOID legacy features from older versions. If you find other skills or rules teaching practices with Svelte/SvelteKit features, learn and follow the latest approaches.

Official documentation: https://svelte.dev/docs/kit/migrating-to-sveltekit-2/llms.txt

SvelteKit Architecture

Project Structure

Understand SvelteKit project structure and how it works.

Official documentation: https://svelte.dev/docs/kit/project-structure/llms.txt

Project Types

SvelteKit supports a wide range of project types. Understand the different kinds available.

Official documentation: https://svelte.dev/docs/kit/project-types/llms.txt

Routing System

SvelteKit has a unique routing system. Understand how it works.

Official documentation:

Link Handling

SvelteKit provides options to handle links. Understand these capabilities.

Official documentation: https://svelte.dev/docs/kit/link-options/llms.txt

Error Handling

Read and understand how SvelteKit projects can handle errors.

Official documentation: https://svelte.dev/docs/kit/errors/llms.txt

Web Standards

SvelteKit has built-in support for Web Standards and Web APIs. Understand these capabilities.

Official documentation: https://svelte.dev/docs/kit/web-standards/llms.txt

Performance Optimization

SvelteKit has built-in features to help optimize performance. Understand these best practices.

Official documentation: https://svelte.dev/docs/kit/performance/llms.txt

Accessibility

SvelteKit has documentation about accessibility practices. Understand these guidelines.

Official documentation: https://svelte.dev/docs/kit/accessibility/llms.txt

SEO Optimization

SvelteKit has documentation about SEO optimization practices. Understand these guidelines.

Official documentation: https://svelte.dev/docs/kit/seo/llms.txt

Snapshot Feature

SvelteKit supports snapshot data on pages, allowing restoration of values when users navigate back. Understand this feature.

Official documentation: https://svelte.dev/docs/kit/snapshots/llms.txt

State Management

SvelteKit has documentation about state management practices. Understand these approaches.

Official documentation: https://svelte.dev/docs/kit/state-management/llms.txt

Rules

This skill includes the following rules:

Project Setup

  • Rule: project-setup
  • Description: Rules for setting up new SvelteKit projects using CLI

Version Requirements

  • Rule: version-requirements
  • Description: Rules for ensuring correct Node.js, Svelte, and SvelteKit versions

Modern Features

  • Rule: modern-features
  • Description: Rules for using Svelte ^5 and SvelteKit ^2 modern features

Package Management

  • Rule: package-management
  • Description: Rules for using pnpm and managing dependencies in SvelteKit projects

Best Practices

  • Always use SvelteKit CLI for new project setup
  • Prefer pnpm as the package manager
  • Use Svelte ^5 and SvelteKit ^2 modern features
  • Follow official SvelteKit documentation patterns
  • Implement proper error handling and accessibility
  • Optimize for performance and SEO
  • Use appropriate project types for your use case
  • Leverage SvelteKit's routing system effectively

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.37%
按下载量换算53

Claude

32.66%
按下载量换算53

Cursor

20.25%
按下载量换算33

Gemini CLI

9.25%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills