scenario-writer

作成者: sveltejs

ユーザーの説明に基づいて作成する新しいシナリオを選び、その執筆をai-scenario-writerサブエージェントに委任し、正確性を検証します。

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のその他のスキル

performance-investigation
sveltejs
パフォーマンスの低下を調査し、最適化の機会を見つける
official
svelte-code-writer
sveltejs
Svelte 5のドキュメント検索とコード分析のためのCLIツールで、内蔵の自動修正機能を備えています。3つの主要コマンドがあります:利用可能なドキュメントを閲覧するlist-sections、特定のトピックの完全なドキュメントを取得するget-documentation、コードを分析して修正を提案するsvelte-autofixer。Autofixerは--svelte-versionフラグでSvelte 4と5のターゲット指定、--asyncオプションで非同期モードに対応。インラインコード(エスケープされた$文字を含む)とファイルパスの両方を受け入れ、分析に使用します。
official
svelte-core-bestpractices
sveltejs
高速で堅牢かつモダンなSvelteコードを記述するためのガイダンス。Svelteプロジェクトでコンポーネントの作成・編集や分析を求められた際に、このスキルを読み込んでください。
official
svelte-code-writer
sveltejs
Svelte 5のドキュメント検索とコード解析のためのCLIツール。Svelteコンポーネント(.svelte)または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
パフォーマンス低下を調査し、最適化の機会を見つける
official
writing-opencode-plugins
sveltejs
OpenCodeプラグイン、@opencode-ai/plugin、@opencode-ai/plugin/tui、プラグインフック、カスタムツール、TUIルート、スロット、キーマップ、およびパッケージング。作成時に使用…
official
scenario-writer
sveltejs
ユーザーの説明に基づいて新しいシナリオを選定し、その執筆をai-scenario-writerサブエージェントに委任し、正確性を検証します。
official