scenario-writer

Wählt ein neues Szenario basierend auf der Beschreibung des Benutzers aus, delegiert das Schreiben an den ai-scenario-writer-Subagenten und überprüft die Korrektheit.

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.

Mehr Skills von sveltejs

performance-investigation
sveltejs
Untersuchen Sie Leistungsrückgänge und finden Sie Optimierungsmöglichkeiten
official
svelte-code-writer
sveltejs
We need to translate the given English text into German, preserving the name "svelte-code-writer" if it appears, but it does not appear in the source text. The source text describes CLI tools for Svelte 5 documentation lookup and code analysis with autofixer. We must not add any extra commentary, labels, or formatting. Just the translation. Let's translate: "CLI tools for Svelte 5 documentation lookup and code analysis with built-in autofixer." -> "CLI-Tools für die Svelte 5 Dokumentationssuche und Code-Analyse mit integriertem Autofixer." "Three core commands: list-sections to browse available docs, get-documentation to fetch full documentation for specific topics, and svelte-autofixer to analyze code and suggest fixes" -> "Drei Kernbefehle: list-sections zum Durchsuchen verfügbarer Dokumente, get-documentation zum Abrufen der vollständigen Dokumentation für bestimmte Themen und svelte-autofixer zum
official
svelte-core-bestpractices
sveltejs
Anleitung zum Schreiben von schnellem, robustem, modernem Svelte-Code. Lade diese Fähigkeit, wenn du in einem Svelte-Projekt bist und gebeten wirst, eine Svelte-Komponente zu schreiben, zu bearbeiten oder zu analysieren oder…
official
svelte-code-writer
sveltejs
CLI-Tools für Svelte 5 Dokumentationssuche und Code-Analyse. MÜSSEN verwendet werden, wann immer Svelte-Komponenten (.svelte) erstellt, bearbeitet oder analysiert werden oder 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
Wählt basierend auf der Beschreibung des Benutzers ein neues Szenario zur Erstellung aus, delegiert das Schreiben an den ai-scenario-writer-Subagenten und überprüft die Korrektheit.
official
performance-investigation
sveltejs
Leistungsregressionen untersuchen und Optimierungsmöglichkeiten finden
official
writing-opencode-plugins
sveltejs
OpenCode-Plugins, @opencode-ai/plugin, @opencode-ai/plugin/tui, Plugin-Hooks, benutzerdefinierte Tools, TUI-Routen, Slots, Keymaps und Paketierung. Verwenden beim Erstellen,…
official