{"enrichment":{"faq":[{"a":"Lint-rule-development guides you through scaffolding and implementing new rules for Biome's analyzer. Start by using Biome's code generation tools to create rule boilerplate, then implement your rule logic following the three-pillar diagnostic pattern: message clarity, code action setup, and semantic analysis where needed. The skill covers rule structure across multiple languages and walks you through adding features like configurable options and automatic fixes.","q":"How do I create a lint rule in Biome?"},{"a":"Lint-rule-development emphasizes writing high-quality diagnostics using Biome's three-pillar framework. This pattern ensures each diagnostic includes clear messaging, proper code actions (assist actions or fixes), and correct semantic context. Following this pattern is mandatory for all lint rules in Biome and helps maintain consistency across the analyzer's rule set.","q":"What is the three-pillar pattern for Biome diagnostics?"},{"a":"Lint-rule-development covers adding code actions to lint rules through assist actions and automatic fixes. You'll learn to configure fix kinds (safe vs. unsafe), implement the fix logic that transforms code, and integrate them into your diagnostic. The skill shows how to structure these actions so they appear in Biome's IDE integrations and CLI output.","q":"How do I add code actions and automatic fixes to Biome rules?"},{"a":"Lint-rule-development teaches semantic analysis rules using binding references to track variable declarations and usage. This approach lets you build rules like noVar or useConst that understand code scope and relationships. The skill explains how to query bindings, traverse semantic trees, and write rules that go beyond syntax-only pattern matching.","q":"What are binding references in Biome semantic analysis?"},{"a":"Lint-rule-development covers testing lint rules using snapshot tests and magic comments. You'll learn to mark expected diagnostics with comments, run quick test harnesses to validate rule behavior, and verify that fixes produce correct output. The skill includes patterns for testing both the diagnostics themselves and the code actions they provide.","q":"How do I test Biome lint rules with snapshot tests?"},{"a":"Lint-rule-development shows how to build configurable lint rules with custom options. You'll define rule parameters, validate user input, and adjust rule behavior based on configuration. The skill covers naming conventions (like noVar and useConst examples), rule state management, and integration with Biome's configuration system.","q":"Can I make Biome lint rules configurable with options?"}],"shadow_tags":["rule-scaffolding","semantic-analysis","code-actions","diagnostic-pillars","test-automation","configurable-rules","ast-traversal","performance-patterns","fix-generation","nursery-group"],"summary_rewrite":"This skill guides you through building new lint rules and assist actions for Biome. It covers rule scaffolding across multiple languages, implementation patterns with semantic analysis, code action setup, and the three-pillar diagnostic framework required for all rules. Use it when adding custom rules like noVar or useConst to Biome's codebase."},"files":[{"bytes":14363,"path":".claude/skills/lint-rule-development/SKILL.md","sha256":"d773499c76e775533677ffd690fb3f235d10bcfc6276cbd6b4e2f186e73d8e40","url":"https://skillfed.io/files/biomejs/biome/lint-rule-development/37b9aa4c/SKILL.md"}],"id":"biomejs/biome/lint-rule-development","links":{"html":"https://skillfed.io/biomejs/biome/lint-rule-development","md":"https://skillfed.io/biomejs/biome/lint-rule-development.md","repo":"https://github.com/biomejs/biome"},"meta":{"agents_supported":["claude-code"],"first_seen":"2026-07-28","forks":1157,"language":"Rust","last_updated":"2026-07-27","license":"Apache-2.0","name":"lint-rule-development","publisher":"biomejs","stars":25418},"relations":{"similar":[{"id":"biomejs/biome/diagnostics-development"},{"id":"biomejs/biome/testing-codegen"},{"id":"biomejs/biome/type-inference"},{"id":"dadbodgeoff/drift/anomaly-detection"},{"id":"biomejs/biome/eslint-migrate-options"},{"id":"biomejs/biome/parser-development"},{"id":"biomejs/biome/biome-developer"},{"id":"gitbutlerapp/gitbutler/cli-commands"},{"id":"oakoss/agent-skills/seo-optimizer"},{"id":"xberg-io/xberg/wasm-constraints"}]},"slug":{"owner":"biomejs","repo":"biome","skill":"lint-rule-development"},"version":"37b9aa4c"}
