scenario-writer

Selecciona un nuevo escenario para crear basado en la descripción del usuario, delega la escritura al subagente ai-scenario-writer y verifica la corrección.

npx skills add https://github.com/sveltejs/ai --skill scenario-writer

Implement the scenario proposed by the user if that has not been implemented yet. Then invoke the ai-scenario-writer subagent to actually write the test in a separate context. When it finishes please validate its work and launch a new subagent with a new task if the user proposed multiple scenarios (or to correct the work of the last one).

Test Structure

Each test in the tests/ directory should have:

tests/
  {test-name}/
    Reference.svelte  - Reference implementation (known-good solution)
    test.ts          - Vitest test file (imports "./Component.svelte")
    prompt.md        - Prompt for the AI agent
    validator.ts     - Extra validation to verify with static analysis that the code written adhere to Svelte best practices

The benchmark:

  1. Reads the prompt from prompt.md
  2. Asks the agent to generate a component
  3. Writes the generated component to a temporary location
  4. Runs the tests against the generated component
  5. Reports pass/fail status

Verifying Reference Implementations

To verify that all reference implementations pass their tests:

bun run verify-tests

This copies each Reference.svelte to Component.svelte temporarily and runs the tests.

Más skills de sveltejs

performance-investigation
sveltejs
Investigar regresiones de rendimiento y encontrar oportunidades de optimización
official
svelte-code-writer
sveltejs
Herramientas CLI para consulta de documentación de Svelte 5 y análisis de código con autofijador integrado. Tres comandos principales: list-sections para explorar documentos disponibles, get-documentation para obtener documentación completa sobre temas específicos, y svelte-autofixer para analizar código y sugerir correcciones. El autofijador admite versiones de Svelte 4 y 5 mediante el indicador --svelte-version y modo asíncrono con la opción --async. Acepta tanto código en línea (con caracteres $ escapados) como rutas de archivo para análisis. Diseñado para uso dentro del...
official
svelte-core-bestpractices
sveltejs
Orientación para escribir código Svelte moderno, rápido y robusto. Activa esta habilidad siempre que estés en un proyecto Svelte y te pidan escribir, editar o analizar un componente de Svelte o…
official
svelte-code-writer
sveltejs
Herramientas CLI para la consulta de documentación de Svelte 5 y análisis de código. DEBEN utilizarse siempre que se cree, edite o analice cualquier componente de Svelte (.svelte) o de Svelte...
official
svelte-core-bestpractices
sveltejs
Guidance on writing fast, robust, modern Svelte code. Load this skill whenever in a Svelte project and asked to write/edit or analyze a Svelte component or…
official
scenario-writer
sveltejs
Selecciona un nuevo escenario para crear basado en la descripción del usuario, delega la redacción del mismo al subagente ai-scenario-writer y verifica la corrección.
official
performance-investigation
sveltejs
Investigar regresiones de rendimiento y encontrar oportunidades de optimización
official
writing-opencode-plugins
sveltejs
Plugins de OpenCode, @opencode-ai/plugin, @opencode-ai/plugin/tui, hooks de plugin, herramientas personalizadas, rutas TUI, slots, keymaps y empaquetado. Úselo al crear,…
official