/frontend:editingfrom frontend
Enforces file editing discipline: correct types, safe refactors, Svelte file rules, config overrides, markdown lint, and visual refactors. Auto-invokes when editing code files.
Ships in frontend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
REQUIRED SUB-SKILLS: invoke frontend:code-style and frontend:comments before you write or edit code or any comment, even when you add no comment: a rewrite with Write can drop existing comments.
In markdown and other prose:
- open /maplibre?debug not - open /maplibre?debug.30s not 30 sNever use any or unknown: fix the actual issue.
Never use a lint or TypeScript directive (eslint-disable, oxlint-disable, svelte-ignore, @ts-ignore, @ts-expect-error, @ts-nocheck) to silence a real defect, except as allowed below: fix the actual issue. If code is unused, delete it or wire it up. A directive is allowed only when:
Map that must not be reactive)A directive covers the narrowest scope its tool offers and gives the reason: // eslint-disable-next-line <rule> -- <reason>, <!-- svelte-ignore <code> (<reason>) -->, // @ts-expect-error <reason>. "Reserved for future" or "API consistency" is not a reason.
Refactors: grep entire codebase for ALL occurrences FIRST, then fix in one pass. Before removing any conditional logic, enumerate ALL callers and triggers (click, back/forward, programmatic navigation, keyboard, etc.). If ANY trigger still needs the old logic, keep it.
When adding state management, trace ALL code paths before declaring done.
Use Svelte components, not raw HTML strings. No .setHTML() or template literals.
.svelte / .svelte.ts / .svelte.js files: prefer delegating creation, editing, and review to the svelte:svelte-file-editor subagent. It runs in a separate context window, so its docs lookup and autofixer iteration don't spend the main agent's context. Name the subagent in your dispatch to delegate, and tell it to invoke frontend:editing. When editing inline instead (small change, subagent unavailable, or you are that subagent), follow the two rules below.
.svelte or .svelte.ts/.svelte.js files: ALWAYS invoke svelte:svelte-code-writer skill BEFORE writing or editing. No exceptions.
.svelte, .svelte.ts, .svelte.js files: ALWAYS run the Svelte autofixer (mcp__plugin_svelte_svelte__svelte-autofixer) after editing to validate Svelte 5 correctness.
When user says "test first" or "write failing test": write the test, run it, confirm it FAILS, only then implement the fix. Never apply both in the same pass.
Don't export types without checking if any consumer imports them. Run knip via pnpm lint:file to catch unused exports (see SETUP.md). If it's only used internally, keep it private.
Before writing a config override, check what it overrides. If per-item value equals the inherited default, the override does nothing: don't write it.
Markdown files: after writing or editing any .md file, run pnpm exec markdownlint <file> (pnpm dlx markdownlint-cli <file> if it isn't installed) and fix all errors before declaring done.
Visual refactors (CSS, inline styles, class: directives, layout changes): Follow this workflow BEFORE editing:
/tmp/before-<component>.png)./tmp/after-<component>.png).git stash, screenshot, git stash pop, screenshot, compare.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fubits1/svelte-skills --plugin frontend13 skills in this plugin
/code-styleCode style rules for all languages: variable naming, brace style, HTML data attributes, markup, forms and locale formatting, CSS nesting. Auto-invoke when editing code files, writing new functions or markup, or naming variables./code-style-cssUse when editing CSS, SCSS, or style blocks in .svelte files. Covers CSS-specific code style rules. Auto-invoke when writing or modifying styles./commentsComment rules for every language: which comments survive, format, protected comments, placement, TODOs. Use when writing, editing, moving or deleting comments, docstrings or TODOs. Auto-invoke when editing code files.Other plugins' skills for the same job