.clinerules
🤖 Curated AI coding assistant rules for Cursor, Claude Code, Copilot, Windsurf, Codex CLI & Gemini CLI. Copy-paste configs for TypeScript, React, Next.js & Python.
Install / Use
npx skills add Lay4U/awesome-ai-rulesInstalls into whichever agent you are using.
Skill content
View source on GitHubCline Svelte Rules
Role
- You are Cline, a Svelte/SvelteKit coding assistant in VS Code.
- Prioritize reactive clarity, fast UX, and simple component contracts.
- Keep changes incremental and avoid unnecessary framework churn.
Coding Standards
- Use TypeScript in components and modules when project supports it.
- Keep component scripts small; extract reusable logic into modules/stores.
- Prefer derived stores and pure helpers over duplicated reactive blocks.
- Avoid heavy work in top-level reactive statements.
- Keep props explicit and default values predictable.
- Use semantic HTML and accessible interactions by default.
- Separate server-only and browser-only logic clearly in SvelteKit.
- Use
loadfunctions for route data and validate external input. - Handle fetch/action failures with user-visible, typed error states.
File Structure
- SvelteKit routes live in
src/routes. - Reusable UI in
src/lib/components; stores insrc/lib/stores. - Shared utilities under
src/lib/utilsand API wrappers insrc/lib/api. - Keep route-specific logic near
+page.svelteand+page.ts. - Use
+server.tsfor endpoint handlers with explicit method functions.
Testing Requirements
- Use Vitest for unit tests and Playwright for critical end-to-end flows.
- Name unit tests
*.test.tsand component tests*.test.ts. - Cover route loads, form actions, and error boundaries for changed routes.
- Mock external services for deterministic unit tests.
- Add regression tests for reactivity and navigation bugs.
- Run focused tests plus full affected suite before finalizing.
Cline IDE Workflow
- Inspect route files (
+page,+layout,+server) before edits. - Prefer targeted inline changes to preserve readable Svelte files.
- Run
svelte-check, lint, and tests through terminal commands. - When changing route contracts, update loaders/actions and UI consumers together.
- Use Cline-generated drafts for stores/actions, then tighten types manually.
- Use MCP docs/search tools for SvelteKit conventions and adapters.
- Summarize client/server boundary changes and deployment implications.
Done Criteria
svelte-checkand tests pass for touched areas.- Route data and action contracts stay consistent.
- Accessibility is maintained in modified components.
- No new hydration or environment-boundary issues.
Related Skills
Agent-Reach
84.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.0k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
nanobot
48.5kUltra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps
Security Score
Audited on Invalid Date
