biome-developer

Guide Biome codebase development with AST manipulation and Rust best practices.

25.5k|1.2k|Updated Jul 27, 2023
One-click install
npx skills add https://github.com/biomejs/biome --skill biome-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: biome-developer
Source: https://github.com/biomejs/biome/tree/main/.claude/skills/biome-developer
Command: npx skills add https://github.com/biomejs/biome --skill biome-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides essential guidance for developers working on the Biome codebase, helping them avoid common pitfalls and understand Biome-specific development patterns.

Core Features & Use Cases

  • AST Navigation: Learn how to correctly inspect and work with Biome's Abstract Syntax Tree (AST).
  • String Extraction: Understand the nuances of extracting text from various string and expression types.
  • Embedded Languages: Get tips on handling syntax for embedded languages like Vue and Svelte.
  • Rust Best Practices: Follow guidelines on borrow checking, Clippy, and code style specific to the Biome project.
  • Use Case: A new contributor to Biome encounters an unfamiliar AST node and needs to understand how to extract its value correctly without running into borrow checker errors. They consult this Skill for guidance on string extraction methods and AST inspection.

Quick Start

Consult this skill for advice on working with Biome's AST and avoiding common development mistakes.

Frequently Asked Questions about biome-developer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I correctly extract text from string and expression nodes in the Biome AST?

To extract text from Biome AST nodes, you must understand the specific string extraction methods for various string and expression types, as incorrect handling often leads to borrow checker errors and common developer pitfalls.

What are the common borrow checker errors when working with the Biome AST in Rust?

Common borrow checker errors in the Biome AST usually occur during node inspection and string extraction. Following Biome-specific Rust coding standards and development patterns helps you avoid these frequent borrow checking mistakes.

How do I handle embedded languages like Vue and Svelte within the Biome codebase?

Handling embedded languages like Vue and Svelte in the Biome codebase requires understanding specific syntax patterns and AST navigation rules. You must apply Biome-specific development practices to process these embedded language structures correctly.

What Rust coding standards and Clippy rules should I follow when contributing to Biome?

Contributing to Biome requires following specific Rust coding standards, including strict Clippy compliance and code style guidelines. Adhering to these project-specific patterns ensures your contributions meet the codebase quality and design expectations.

How do I navigate and inspect unfamiliar nodes in the Biome Abstract Syntax Tree?

Navigating the Biome Abstract Syntax Tree requires learning the correct AST inspection patterns. By consulting Biome development guides, you can identify node types accurately and extract their values without triggering common structural or borrow errors.