30-svelte
legal ai contextual chat
Install / Use
npx skills add semaj90/deeds_web_appInstalls into whichever agent you are using.
Skill content
View source on GitHubpaths:
- "sveltekit-frontend/src/routes/**"
- "sveltekit-frontend/src/lib/components/**"
- "sveltekit-frontend/src/lib/stores/**"
- "sveltekit-frontend/src/lib/machines/**"
Svelte 5 / SvelteKit rules
Required patterns (Svelte 5 runes only)
<!-- Props -->
let { value, onChange }: Props = $props();
<!-- State -->
let count = $state(0);
let items = $state<Item[]>([]);
<!-- Derived (simple) -->
let doubled = $derived(count * 2);
<!-- Derived (complex) -->
let filtered = $derived.by(() => items.filter(x => x.active));
<!-- Effects -->
$effect(() => { console.log(count); });
<!-- Events -->
<button onclick={fn}>click</button>
<!-- Snippets (not slots) -->
{#snippet children()}{/snippet}
{@render children()}
Forbidden (Svelte 4)
export let x→ uselet { x } = $props()$: derived→ use$derived$: { sideEffect() }→ use$effecton:click={fn}→ useonclick={fn}<slot>→ use{#snippet}+{@render}writable()stores in.sveltefiles → use$state()
Imports
- Bits UI:
import { Dialog, Select, Accordion } from 'bits-ui' - Button:
import Button from '$lib/components/ui/Button.svelte' - Icons:
import Icon from '$lib/components/ui/Icon.svelte'+<Icon name="kebab-name" /> - Forms:
import { superValidate } from 'sveltekit-superforms'+import { zod } from 'sveltekit-superforms/adapters'
SSR classification
- SSR-safe: components using only
load()data, no browser globals - Client-only: Canvas/WebGL/WebGPU,
window.*,localStorage→export const ssr = false - Mixed: guard browser code with
onMount()ortypeof window !== 'undefined'
Related Skills
OpenMetadata
15.3kThe Open Context Layer for Data and AI , OpenMetadata is the open platform for building trusted data context and business semantics for humans, AI assistants, and agents.
tradememory-protocol
1.4kDecision audit trail + persistent memory for AI trading agents. Outcome-weighted recall, tamper-evident SHA-256 chain with RFC 3161 anchoring, 20 MCP tools.
arc-kit
2.2kThe Enterprise Architecture Governance Harness — strategy, architecture, delivery, and assurance using AI coding assistants
indonesia-civic-stack
10🇮🇩 Production-ready Python SDK + MCP server for 14 Indonesian government data sources — halal certs, company registry, procurement, budget, legal docs & more. 46 AI-agent tools.
Security Score
Audited on Invalid Date
