scenario-writer

tarafından sveltejs

Kullanıcının açıklamasına dayanarak oluşturulacak yeni bir senaryo seçer, yazma işlemini ai-scenario-writer alt ajanına devreder ve doğruluğunu kontrol eder.

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.

sveltejs tarafından daha fazla skill

performance-investigation
sveltejs
Performans gerilemelerini araştırın ve optimizasyon fırsatlarını bulun
official
svelte-code-writer
sveltejs
Svelte 5 dokümantasyon araması ve yerleşik otomatik düzeltici ile kod analizi için CLI araçları. Üç temel komut: mevcut dokümanlara göz atmak için list-sections, belirli konular için tam dokümantasyon almak için get-documentation ve kodu analiz edip düzeltmeler önermek için svelte-autofixer. Autofixer, --svelte-version bayrağı ile Svelte 4 ve 5 hedeflemeyi ve --async seçeneği ile asenkron modu destekler. Analiz için hem satır içi kodu (kaçışlı $ karakterleri ile) hem de dosya yollarını kabul eder. ... içinde kullanılmak üzere tasarlanmıştır.
official
svelte-core-bestpractices
sveltejs
Hızlı, sağlam ve modern Svelte kodu yazma rehberi. Bir Svelte projesinde bir Svelte bileşenini yazmanız/düzenlemeniz veya analiz etmeniz istendiğinde bu beceriyi yükleyin ve…
official
svelte-code-writer
sveltejs
Svelte 5 dokümantasyonu arama ve kod analizi için CLI araçları. Herhangi bir Svelte bileşeni (.svelte) veya Svelte… oluştururken, düzenlerken veya analiz ederken KULLANILMALIDIR.
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
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.
official
performance-investigation
sveltejs
Performans gerilemelerini araştırın ve optimizasyon fırsatları bulun
official
writing-opencode-plugins
sveltejs
OpenCode eklentileri, @opencode-ai/plugin, @opencode-ai/plugin/tui, eklenti kancaları, özel araçlar, TUI yolları, yuvalar, tuş haritaları ve paketleme. Oluştururken kullanın,…
official