ワンクリックで
new-component
Scaffold a new Svelte component for Sworm. Use when creating reusable UI or terminal/project-specific frontend components.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Scaffold a new Svelte component for Sworm. Use when creating reusable UI or terminal/project-specific frontend components.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Sworm's authoritative design system. Tokens, surfaces, type scale, shadows, motion, iconography, voice, and component recipes. Use this skill whenever you touch UI in Sworm — building new components, refactoring styling, updating primitives, reviewing design choices, or designing a new surface (dialog, panel, row, menu). Trigger on any edit to src/app.css, src/lib/components/ui/**, or Svelte files under src/lib. Also use when questions arise about Sworm's palette, typography, surface hierarchy, focus states, shadows, radii, or iconography. Supersedes extensions/handoff/ and extensions/Sworm Design System/.
Evidence-first debugging loop for bugs that resist a first fix. Use when a bug has already survived one attempted patch, when the user says "still broken", "you keep guessing", "stop making assumptions", "shotgun", or explicitly asks to debug/root-cause an issue. Also trigger on UI/focus/rendering/lifecycle bugs, Svelte `$effect` misbehavior, Tauri command wiring failures, and anything where the failure mode is not directly visible in the diff. Do NOT use for trivial typos, compile errors, or bugs where the cause is already stated in the stack trace.
Review Sworm changes with strict, skeptical, codebase-aware scrutiny. Use when the user wants a critical review of code, a PR, or staged changes and wants realistic issues surfaced around Svelte 5, Tauri, Rust boundaries, UI primitive reuse, architecture, design consistency, and comment style.
Lightweight i18n workflow guidance. Use only if Sworm adopts an i18n system and you are adding or changing user-facing strings across locales.
| name | new-component |
| description | Scaffold a new Svelte component for Sworm. Use when creating reusable UI or terminal/project-specific frontend components. |
| disable-model-invocation | true |
| argument-hint | [component-name] [components|terminal|project|settings] |
Create a new Svelte component: $0 in src/lib/$1/.
src/lib/components/ for an existing reusable component first.src/lib/terminal/ if this is terminal-specific UI.If an existing component covers most of the need, extend it instead of creating a new one.
src/lib/components/ for reusable UIsrc/lib/terminal/ for terminal-related UI/helperssrc/routes/... only when the code is route-specific and not reusable$state, $derived, $effect, $props, $bindable)src/app.css<style> unless Tailwind cannot express the rule<!-- @component --> doc comment at the topsrc/lib/components/ before adding a new abstraction.src/lib/stores/*.svelte.ts and src/lib/api/backend.ts before inventing new state or backend access patterns.<!--
@component
ComponentName -- brief description of what it does
@param propName - what this prop controls
-->
<script lang="ts">
// PROPS //
let { propName = $bindable() }: { propName: string } = $props()
// STATE //
let internalState = $state(false)
</script>
<div class="...">
<!-- component markup -->
</div>