Token导航 LogoToken导航

Agent Skill · 研究检索

biome(Biome 代码规范)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

biome 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 66,424。

总安装 264周安装 11GitHub Stars 6下载 88核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:biome(Biome 代码规范)
来源仓库:https://github.com/ghosttypes/ff-5mp-api-ts
仓库路径:skills/biome
安装命令:
npx skills add https://github.com/ghosttypes/ff-5mp-api-ts --skill biome
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ghosttypes/ff-5mp-api-ts --skill biome

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

Biome 代码规范技能辅助 API 设计和接口文档生成,支持字段命名检查。适用于服务集成说明和联调支持等前后端协作场景。通过 GitHub 仓库安装,使用 npx skills add 命令启用技能模块。使用时需确认真实业务语义,避免生成与实际不符的接口定义。

biome 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/biome

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ghosttypes/ff-5mp-api-ts --skill biome;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

biome 怎么安装?

在终端执行 npx skills add https://github.com/ghosttypes/ff-5mp-api-ts --skill biome。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

biome 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

biome 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

biome 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

biome 用的人多吗?

公开数据是累计安装 264 次,近一周安装 11 次,下载 88 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

biome 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
biome

Biome 代码规范 · 本页

2646接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Biome - Professional TypeScript/JavaScript Tooling

Biome is a fast, modern toolchain for JavaScript, TypeScript, JSX, JSON, CSS, GraphQL, and HTML. It provides formatting, linting, and code analysis with a single tool and zero configuration required.

When to Use This Skill

Use this skill when:

  • Setting up Biome in a new or existing project
  • Configuring biome.json for specific requirements
  • Migrating from ESLint and/or Prettier to Biome
  • Implementing linter rules or formatter options
  • Integrating Biome with editors (VS Code, Zed, IntelliJ)
  • Setting up CI/CD pipelines with Biome
  • Configuring monorepos or large projects
  • Debugging Biome configuration or performance issues
  • Understanding specific lint rules or code actions
  • Upgrading from Biome v1 to v2

Quick Start

Installation

# npm
npm i -D -E @biomejs/biome

# pnpm
pnpm add -D -E @biomejs/biome

# yarn
yarn add -D -E @biomejs/biome

Initialize Configuration

npx @biomejs/biome init

This creates a biome.json with recommended defaults.

Basic Commands

# Format and lint
npx @biomejs/biome check --write ./src

# Format only
npx @biomejs/biome format --write ./src

# Lint only
npx @biomejs/biome lint ./src

# CI mode (no writes, exit on errors)
npx @biomejs/biome ci ./src

Core Workflows

1. Project Setup

For new projects:

  1. Install Biome as dev dependency
  2. Run npx @biomejs/biome init
  3. Configure biome.json for project needs
  4. Add scripts to package.json
  5. Set up editor integration
  6. Configure CI/CD

See references/docs/guides/getting-started.md for details.

2. Configuration

Biome configuration lives in biome.json or biome.jsonc. Key sections:

  • $schema - JSON schema for IDE autocomplete
  • files - File inclusion/exclusion patterns
  • formatter - Formatting options (indentation, line width, etc.)
  • linter - Linting rules and their configuration
  • javascript, json, css - Language-specific options
  • overrides - Per-file or per-directory overrides

For complete configuration reference, see references/docs/reference/configuration.md.

3. Migration from ESLint/Prettier

Biome can replace both ESLint and Prettier in most projects:

  1. Audit existing ESLint/Prettier config
  2. Map rules to Biome equivalents
  3. Configure Biome to match existing style
  4. Run side-by-side comparison
  5. Remove ESLint/Prettier dependencies
  6. Update scripts and CI/CD

See references/docs/guides/migrate-eslint-prettier.md for detailed migration guide.

4. Monorepo/Large Projects

For monorepos or projects with multiple packages:

  1. Create root biome.json with shared config
  2. Use extends in package-specific configs
  3. Configure file patterns for each package
  4. Set up workspace-aware linting
  5. Optimize for performance

See references/docs/guides/big-projects.md for monorepo patterns.

5. Editor Integration

Biome has official extensions for:

  • VS Code - Full LSP support, format on save, quick fixes
  • Zed - Native integration, inline diagnostics
  • IntelliJ - Plugin available

Install the extension for your editor and configure workspace settings. See references/docs/guides/editors_first-party-extensions.md.

Reference Documentation

This skill includes complete Biome v2.x documentation:

Essential References

Documentation Categories

Guides (11 files)

  • Getting started, configuration, migration, editor setup, monorepos

Formatter (3 files)

  • Formatting engine, Prettier differences, design philosophy

Linter (13 files)

  • Linting rules for JavaScript/TypeScript, CSS, JSON, GraphQL, HTML
  • Rule sources and framework-specific domains (React, Next.js, etc.)

Assist (9 files)

  • Code actions and refactoring capabilities for all languages

Reference (8 files)

  • CLI, configuration, diagnostics, environment variables, reporters, editor extensions

Recipes (4 files)

  • CI/CD integration, git hooks, Renovate setup, badges

Internals (7 files)

  • Architecture, philosophy, language support, versioning, changelogs

Use references/INDEX.md for quick navigation to specific topics.

Common Patterns

Typical biome.json

{
  "$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
  "vcs": {
    "enabled": true,
    "clientKind": "git",
    "useIgnoreFile": true
  },
  "files": {
    "ignoreUnknown": false,
    "includes": ["src/**/*"]
  },
  "formatter": {
    "enabled": true,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100
  },
  "linter": {
    "enabled": true,
    "rules": {
      "recommended": true
    }
  },
  "javascript": {
    "formatter": {
      "quoteStyle": "single",
      "trailingCommas": "es5",
      "semicolons": "always"
    }
  }
}

Package.json Scripts

{
  "scripts": {
    "format": "biome format --write .",
    "lint": "biome lint .",
    "check": "biome check --write .",
    "ci": "biome ci ."
  }
}

CI/CD Integration

# GitHub Actions
- name: Run Biome
  run: npx @biomejs/biome ci .

See references/docs/recipes/continuous-integration.md for complete CI/CD examples.

Updating Documentation

To update this skill's documentation with the latest from biomejs.dev:

python scripts/scrape_biome_docs.py --update-all --output references/docs

This scrapes all current documentation and updates the reference files.

Key Concepts

Formatting Philosophy

  • Opinionated defaults with minimal configuration
  • Focuses on consistency over personal preference
  • Significantly faster than Prettier (10-20x)
  • Format-preserving when possible

Linting Approach

  • Rules organized by category (correctness, performance, style, etc.)
  • Framework-aware domains (React, Next.js, etc.)
  • Recommended rules enabled by default
  • Fast incremental linting

Tool Integration

  • Single tool replaces ESLint + Prettier + more
  • Zero-config defaults work for most projects
  • Native TypeScript support, no type-checking required
  • Incremental adoption possible

Best Practices

  1. Start with recommended rules - Enable "recommended": true then customize
  2. Use VCS integration - Let Biome respect.gitignore
  3. Pin Biome version - Use exact versions in package.json
  4. Configure per-language - Override general settings for specific languages
  5. Use overrides sparingly - Prefer consistent configuration across the project
  6. Test before committing - Run biome ci in CI/CD
  7. Enable editor integration - Format on save for best experience
  8. Read diagnostics carefully - Biome provides detailed error explanations

Troubleshooting

Common issues and solutions:

Biome not finding files

  • Check files.includes in biome.json
  • Verify VCS integration settings
  • Review.gitignore patterns

Performance issues

Rule conflicts with existing code

Migration issues

  • Compare Biome output with ESLint/Prettier
  • Use configuration overrides for edge cases
  • See migration guide for common patterns

For detailed troubleshooting, consult the relevant reference documentation.

Resources

scripts/

Contains the Biome documentation scraper for keeping this skill up to date:

  • scrape_biome_docs.py - Scrapes and cleans Biome documentation from biomejs.dev

references/

Complete Biome v2.x documentation (56 files, 896 KB):

  • INDEX.md - Navigation index for all documentation
  • docs/ - All scraped and cleaned documentation files organized by category

The documentation is comprehensive and production-ready, covering all aspects of Biome from installation to advanced usage patterns.

平台分布

Codex

33.98%
按下载量换算30

Claude

29.42%
按下载量换算26

Cursor

18.62%
按下载量换算16

Gemini CLI

9.35%
按下载量换算8

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills