scenario-writer

Picks a new scenario to create based on the description of the user, delegates the writing of it to the ai-scenario-writer subagent and verify the correctness.

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.

Lebih banyak skill dari sveltejs

performance-investigation
sveltejs
Menyelidiki regresi performa dan menemukan peluang untuk optimasi
official
svelte-code-writer
sveltejs
We need to translate the given text from English to Bahasa Indonesia. The text describes a CLI tool for Svelte 5 documentation lookup and code analysis with autofixer. We must preserve the name "svelte-code-writer" but it's not in the text, so we don't include it. Also preserve technical terms like "CLI", "Svelte 5", "autofixer", "list-sections", "get-documentation", "svelte-autofixer", "--svelte-version", "--async", "Svelte 4", etc. No extra commentary. Just translate the text inside <text>. The text ends with "within the..." so we keep that. Translation: "Alat CLI untuk pencarian dokumentasi Svelte 5 dan analisis kode dengan perbaikan otomatis bawaan. Tiga perintah inti: list-sections untuk menjelajahi dokumen yang tersedia, get-documentation untuk mengambil dokumentasi lengkap untuk topik tertentu, dan svelte-autofixer
official
svelte-core-bestpractices
sveltejs
Panduan untuk menulis kode Svelte yang cepat, kokoh, dan modern. Muat keterampilan ini setiap kali berada dalam proyek Svelte dan diminta untuk menulis/mengedit atau menganalisis komponen Svelte atau…
official
svelte-code-writer
sveltejs
Perkakas CLI untuk pencarian dokumentasi Svelte 5 dan analisis kode. WAJIB digunakan setiap kali membuat, mengedit, atau menganalisis komponen Svelte (.svelte) atau 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
performance-investigation
sveltejs
Menyelidiki regresi performa dan menemukan peluang untuk optimasi
official
writing-opencode-plugins
sveltejs
Plugin OpenCode, @opencode-ai/plugin, @opencode-ai/plugin/tui, kait plugin, alat kustom, rute TUI, slot, keymap, dan pengemasan. Gunakan saat membuat,…
official
scenario-writer
sveltejs
Memilih skenario baru untuk dibuat berdasarkan deskripsi pengguna, mendelegasikan penulisannya ke subagen ai-scenario-writer dan memverifikasi kebenarannya.
official