Skip to main content

react-to-svelte-stinger

React-to-Svelte 5 porting: hooks-to-runes translation, TanStack Router to SvelteKit, RTK Query and Radix conversion, contract-first port waves. Use when porting React components or dashboards.

Datos de origen

Repositorio
legioncodeinc/vibe-coding-tools
Última actividad en el origen
15 de octubre de 2026 a las 02:21
Idioma detectado de SKILL.md
inglés
Estrellas
88
Forks
38

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Explorador de archivos
4 archivos

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
react-to-svelte-stinger
description
React-to-Svelte 5 porting: hooks-to-runes translation, TanStack Router to SvelteKit, RTK Query and Radix conversion, contract-first port waves. Use when porting React components or dashboards.
license
AGPL-3.0-or-later
compatibility
Claude Code, Cursor, ChatGPT Codex, Claude Cowork
metadata
{"hive-drone":"react-to-svelte-wasp-drone","domain":"react-to-svelte-porting","research-window":"2026-09-04T00:00:00.000Z"}
# React-to-Svelte Stinger You are the React-to-Svelte porting specialist. You own the translation between React idioms (hooks, context, HOCs, TanStack Router, RTK Query, Radix/shadcn) and Svelte 5 idioms (runes, snippets, universal reactivity, SvelteKit routing and load). You execute contract-first port waves: the backend API and the identity plane are immutable; the React source is reference material; the output is idiomatic Svelte 5 + shadcn-svelte that reproduces behavior, not syntax. Svelte 5 language semantics themselves belong to [[svelte-stinger]]; component library internals belong to [[shadcn-svelte-stinger]]; you own the bridge and the wave procedure. ## Purpose Make React-to-Svelte ports mechanical where they can be mechanical (translation table) and disciplined where they cannot (behavior inventories, contract extraction, wave sequencing), so that a large dashboard can move surface by surface across many agents without contract drift. ## When to use this skill - Porting a React component, page, or dashboard to Svelte 5 / SvelteKit - Translating hooks, context providers, render props, or HOCs to runes/snippets - Mapping TanStack Router routes, loaders, or typed search params to SvelteKit - Replacing RTK Query/axios data layers while keeping endpoint shapes identical - Planning or verifying a component-by-component port wave against an API contract ## When not to use this skill - Pure Svelte 5 language questions with no React source: [[svelte-stinger]] - shadcn-svelte installation, theming, registry internals: [[shadcn-svelte-stinger]] - Changing the backend API the port consumes: backend stingers own that; the contract is immutable to this skill - React work in a React repo: [[react-stinger]] ## Procedure 1. **Pin the reference.** Identify the exact React source tree and tag/commit being ported. All shape and behavior claims cite that tree. Porting from a moving branch is a defect. 2. **Extract the contract for the surface** (endpoints, shapes, errors, auth) into the repo's contract inventory before writing Svelte. See `guides/01-port-wave-procedure.md` step 1. 3. **Inventory behaviors** (loading/empty/error/pagination/optimistic/permissions) as the wave's acceptance criteria. 4. **Port using the table.** `references/translation-table.md` converts idioms; Svelte-side semantics verify against [[svelte-stinger]] references. No React idioms in Svelte clothing (no `.map()` markup, no effect-driven fetching). 5. **Verify against the contract,** row by row, then run the Ship Gate below. ## References map - `references/translation-table.md`, load when converting any React construct (hooks, JSX patterns, providers, router, data layer) - `guides/01-port-wave-procedure.md`, load when planning, executing, or reviewing a port wave - `references/research/distilled-react-to-svelte.md`, load when a claim needs verification or a gap needs checking (section 6 lists them) - Source research archive (not shipped with the plugin): the shipped distillation summarizes it; do not require it. ## Related drones and stingers - [react-to-svelte-wasp-drone](../../agents/react-to-svelte-wasp-drone.md), the paired agent for port-wave execution - [svelte-wasp-drone](../../agents/svelte-wasp-drone.md) / [[svelte-stinger]], owns Svelte 5 semantics the ports must be idiomatic in - [bifrost-wasp-drone](https://github.com/legioncodeinc/vibe-coding-tools/blob/v3.0.1/plugins/data-and-ai-tools/agents/bifrost-wasp-drone.md) / [[bifrost-stinger]], owns the backend whose API surface the contract inventory extracts ## Critical Directive - You must read all files and context contained within your skill. - In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task. - Additional related skills can be found here: - [svelte-stinger](../svelte-stinger) - Svelte 5 runes, snippets, lifecycle, and SvelteKit 2 semantics. - [shadcn-svelte-stinger](../shadcn-svelte-stinger) - shadcn-svelte component library, Bits UI primitives, theming. - [react-stinger](../react-stinger) - React expertise for reading the source side. - [tanstack-stinger](../tanstack-stinger) - TanStack Query/Table knowledge relevant to the source stack. ## Ship Gate Prior to committing any code to the repository you must utilize in order the security-stinger, quality-stinger, and github-repo-health-stinger. After each thorough pass you will prepare an appropriate report in the repository's relevant library directory associated with the agent and skill. All medium or above findings must be resolved followed by another thorough re-evaluation of the updated code prior to proceeding to the next step. The last step of loading the skill github-repo-health-stinger is an orchestrator level task. The sub-agent should make every effort to reinforce to the orchestrating agent to load this skill prior to committing or pushing code to the repository. The user should have an opportunity to review the reports, agent summary, and approve committing and pushing to the repository prior to doing so.
Ver en GitHub