Index of every page on this site: llms.txt
All skills
antropos17 avatar

/svelte-patterns

@68463dc
by Escape Studioantropos17/aegis162 stars
30
Run it yourself

AEGIS Svelte component conventions and lifecycle guidance. Use when creating or modifying the renderer's Svelte components.

  • 1 file
  • 2.1 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/antropos17/aegis/svelte-patterns

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈35 tokens for metadata: the name and description. ≈493 when used: this file.

Description uses 1.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈141 characters, or 1.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

AEGIS Svelte patterns

Read the actual renderer entrypoint and neighboring components. Use Svelte runes and TypeScript for new renderer components, with typed props and callback events.

interface Props {
  selected?: boolean;
  onselect: () => void;
}
let { selected = false, onselect }: Props = $props();

Use $state for local reactive state and $derived for computed values. Reserve $effect for work that tracks reactive dependencies; use onMount for one-time client setup and return cleanup for timers/listeners. Use $bindable only for an intentional two-way prop contract. Prefer snippets and render tags for new composition and callback props for events.

Key dynamic lists with stable domain identities; monitoring process rows require the stamped identity rather than a reusable PID. Preserve user selection, focus and local drafts when telemetry updates.

Follow design-system for the selected implementation's tokens, styles and motion. Svelte slide transitions animate layout properties; they are not compositor-only. Prefer opacity/transform for frequent motion and honor reduced-motion settings.

A 300-line target guides new components; extract cohesive responsibilities when adding to oversized files, rather than splitting solely to meet a count. Check API details against the installed Svelte source/types or official documentation; use a documentation MCP only when available.

When the Svelte MCP is connected, follow its documentation lookup workflow and run its autofixer on changed components before completion. After fixing reported issues, check again. If it is unavailable, use local/official documentation and repository checks and state the missing MCP evidence; do not install another integration just to complete an ordinary edit.

Run the checkout's relevant typecheck and typecheck:svelte scripts and inspect the affected rendered states. Tests should exercise meaningful behavior rather than reproduce template markup.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 68463dc. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated last month

README badge

README badge for antropos17/aegis/svelte-patterns