Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

add-eslint-rule

Skill by sveltejs

Walks an AI assistant through adding a new ESLint rule to eslint-plugin-svelte. It is for contributors to that repository who need to scaffold, implement, test and document a rule.

  • Score 77
  • 410 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-eslint-rule

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sveltejs/eslint-plugin-svelte /tmp/eslint-plugin-svelte && mkdir -p ~/.claude/skills && cp -r /tmp/eslint-plugin-svelte/.claude/skills/add-eslint-rule ~/.claude/skills/add-eslint-rule

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-eslint-rule in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill describes the end-to-end workflow for adding a new rule to eslint-plugin-svelte. It tells the assistant to pin down the Svelte pattern and version first, then scaffold the rule with the repository's `pnpm run new` script instead of writing the files by hand. The steps cover implementing the rule, adding valid and invalid fixtures, running the scoped mocha tests, and running `pnpm run update` to refresh the generated registry, rule sets and docs.

The skill also covers linting, adding a changeset with the right semver bump, and the files to stage on commit. It includes a quick checklist, common pitfalls and a minimal rule template. It is written for contributors working inside the eslint-plugin-svelte monorepo, and it is not meant for modifying existing rules.

Written from the project's SKILL.md and checked against it.

What it can do

  • Scaffold a ruleCreates the rule file, test runner, docs skeleton and fixture folders with `pnpm run new <rule-id>`.
  • Implement the ruleGuides filling in rule metadata, Svelte version conditions, message IDs and visitors.
  • Write fixture testsExplains valid and invalid fixtures, per-fixture config and requirements files, and fixture regeneration.
  • Run scoped testsGives mocha commands to run tests for one rule, with an option to regenerate fixtures.
  • Run generatorsCovers `pnpm run update`, which refreshes the rule registry, presets, docs, README and types.
  • Lint the ruleShows how to lint the new rule file with `pnpm run lint:es` and auto-fix style issues.
  • Add a changesetExplains how to add a changeset and which bump to use for new rules, fixes and breaking changes.
  • Choose fix or suggestionExplains when to use autofix versus suggestions, with existing rules as examples.
  • Check commit contentsLists the files to stage and the unrelated drift to revert before committing.

What you need

  • Node.js
  • pnpm
  • A checkout of the eslint-plugin-svelte monorepo with dependencies installed

Try asking

  • Add a new ESLint rule that flags unused each block keys in Svelte 5
  • Scaffold a new svelte rule named prefer-snippet-over-slot
  • Walk me through adding a changeset for my new eslint-plugin-svelte rule

Good to know

  • Not for fixing or changing an existing rule; edit that rule file directly.
  • Not for general refactors of plugin internals.
  • Commands are written for the eslint-plugin-svelte monorepo and assume it is set up locally.
  • Some generator steps may fail on unrelated docs, so the skill suggests running them one at a time.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/add-eslint-rule/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to add-eslint-rule

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

add-eslint-rule: common questions

When should I use the add-eslint-rule skill?

Use it when you need to add, implement or create a new lint rule in the eslint-plugin-svelte repository, or port a rule from another plugin. The source says not to use it for changes to existing rules.

Why must I run pnpm run new instead of writing files by hand?

The skill says the scaffolding script creates the rule, test, docs and fixture files in the layout the repository expects. It says to always go through the script.

What does pnpm run update do?

It runs eight generators that refresh the rule registry in src/utils/rules.ts, rule presets, rule docs, the README table, docs/rules.md, node types, metadata and rule types.

How do I install add-eslint-rule?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is add-eslint-rule free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is add-eslint-rule safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to add-eslint-rule?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

add-eslint-rule Install

Add to stack

Loading.