원클릭으로
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>