2.2 KiB
2.2 KiB
Project Configuration
- Language: TypeScript
- Package Manager: npm
- Add-ons: none
AGENTS.md
Svelte Plugin Guardrails
This project uses the @sveltejs/opencode plugin. Always incorporate it when working on Svelte code.
MCP Tools (always available)
svelte_list-sections: Call FIRST for any Svelte/SvelteKit question to discover relevant documentation sectionssvelte_get-documentation: Fetch full docs for the sections found above — fetch ALL relevant sections, not just onesvelte_svelte-autofixer: MUST be called on every.sveltecomponent or module before delivering code. Call repeatedly until zero issues remainsvelte_playground-link: Offer a playground link after completing Svelte code (only if code was NOT written to the project)
Required Workflow for Svelte Code
- Before writing any Svelte code, call
svelte_list-sectionsthensvelte_get-documentationfor relevant topics - After writing Svelte code, run
svelte_svelte-autofixeruntil it reports no issues - Offer a playground link via
svelte_playground-linkwhen appropriate
OpenSpec Integration
When working through OpenSpec artifacts (/opsx-* commands), apply the same Svelte plugin workflow during:
- Design phase: Research Svelte docs for architecture decisions
- Specs phase: Reference Svelte documentation for capability specifications
- Tasks phase: Use autofixer to validate all generated code
Skills
Load svelte-core-bestpractices skill when writing or reviewing Svelte components. Load svelte-code-writer skill for CLI-based documentation lookups and code analysis.
Git Commit Convention
All git commits must follow Google's conventional commit message format:
- Subject line: Maximum 50 characters, imperative mood, no period at the end
- Format:
<type>[optional scope]: <description> - Allowed types:
feat,fix,docs,style,refactor,test,build,ci,chore,perf - Body (if needed): Blank line after subject, then detailed explanation wrapped at 72 characters
- Footer (if needed): Use for breaking changes (
BREAKING CHANGE: ...) and issue references