安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint 配置时;优先使用项目锁定的包管理器与版本,先预检再修改,不自动下载最新版或批量改写无关源码。

MITAuto-check passedDevelopment

Install Eslint Fix

skills CLI
$ npx skills add laolaoshiren/claude-code-skills-zh --skill eslint-fix -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install laolaoshiren/claude-code-skills-zh eslint-fix --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/laolaoshiren/claude-code-skills-zh.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/eslint-fix .claude/skills/eslint-fix && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
eslint-fix
GitHub stars
880
Token cost
~436 tokens
SKILL.md length
110 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint 配置时;优先使用项目锁定的包管理器与版本,先预检再修改,不自动下载最新版或批量改写无关源码。

  • Works in 5 steps: 识别项目工具链 → 建立只读基线 → 预览可修复范围 → …
  • Tasks that involve Linting and formatting
  • SKILL.md covers 工作流程, 安全边界 and 输出
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Eslint Fix is an agent skill from laolaoshiren/claude-code-skills-zh. 安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint 配置时;优先使用项目锁定的包管理器与版本,先预检再修改,不自动下载最新版或批量改写无关源码。

Its SKILL.md is about 440 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Linting and formatting. It works with ESLint, Git and Prettier. The repository describes itself as: 面向中文开发者的 Claude Code Skills / Agents / Plugins 精选与原创技能库|按场景分类|复制即装|持续更新. The licence is MIT.

When your agent uses it

  • Tasks that involve Linting and formatting

Example prompts

  • “/eslint-fix”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 识别项目工具链
  2. 建立只读基线
  3. 预览可修复范围
  4. 限定范围修复
  5. 复验

What it can do on your machine

Read from SKILL.md and the folder at commit 633f21c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Eslint Fix loads about 436 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 110 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~436

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from laolaoshiren/claude-code-skills-zh at commit 633f21c, republished under its MIT licence (© laolaoshiren). 110 words, ~436 tokens.

Download SKILL.mdSave it as .claude/skills/eslint-fix/SKILL.md (or your agent's skills folder).
name
eslint-fix
description
安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint 配置时;优先使用项目锁定的包管理器与版本,先预检再修改,不自动下载最新版或批量改写无关源码。

ESLint 修复助手

工作流程

1. 识别项目工具链

读取:

  • package.json 中的 scripts、devDependencies 和 packageManager。
  • npm、pnpm、Yarn 或 Bun 的 lockfile。
  • eslint.config.*、.eslintrc.*、.eslintignore、Prettier 和 TypeScript 配置。
  • 适用的仓库规则、Git 状态和用户指定的文件范围。

优先运行仓库已有的 lint script。只有确认 ESLint 已被当前项目锁定并安装时,才使用对应包管理器的本地执行方式。若缺失依赖,先报告;安装包、更新 lockfile 或迁移配置需要单独授权。

2. 建立只读基线

先对用户指定或本轮相关范围运行不修改文件的检查,记录:

  • 实际命令、ESLint 版本和退出状态。
  • error / warning 数量、涉及文件和规则。
  • 基线中已有的问题与本轮引入的问题。

不要默认扫描整个大型仓库,也不要用未锁定依赖、可能联网下载新版本的 npx 调用。

3. 预览可修复范围
  • 使用项目现有命令支持的 --fix-dry-run、JSON 输出或等价能力判断预计改动。
  • 检查当前 Git diff,确认目标文件没有与用户修改重叠。
  • 区分可自动修复、需要理解代码语义、需要配置决策三类问题。
  • 展示预计修改范围;可能产生大面积格式 diff 或改变逻辑时先取得确认。
4. 限定范围修复
  • 只对已确认的文件执行 --fix,不自动扩大到整个仓库。
  • 对 no-explicit-any、未处理 Promise、React Hooks 依赖等语义规则,结合类型、调用方和运行路径修改,不能机械替换。
  • 不为消除报错而默认禁用规则、加入全局 ignore、修改 formatter 顺序或降低严重级别。
  • Prettier 与 ESLint 的执行顺序以项目现有 scripts 和集成配置为准。

常见可自动修复规则包括 semi、quotes、indent、no-trailing-spaces、comma-dangle、arrow-parens 和 prefer-const;dry-run 和 diff 只能预览改动,最终仍需按风险运行类型检查、测试或构建。

5. 复验

实际修改后:

  1. 重新运行目标范围 lint。
  2. 按改动风险运行类型检查、相关测试或构建。
  3. 查看 Git diff,确认没有 lockfile、生成物或无关格式变化。
  4. 记录未解决规则、原因和建议下一步。

安全边界

  • 未经明确授权,不安装或升级依赖,不修改 lockfile、ESLint 配置、Prettier 配置或项目脚本。
  • 不覆盖工作树中已有修改;目标文件存在重叠时先报告。
  • 不声称“已修复”或“可编译”,除非对应命令真实运行并成功。
  • Windows 与 Linux 都优先使用项目已有 scripts 和路径,不硬编码 shell 专属命令。

输出

markdown
## ESLint 检查结果

- 范围:
- ESLint / 包管理器版本:
- 基线:X error,Y warning
- 实际命令与退出状态:

## 修改

| 文件 | 规则 | 处理方式 |
|------|------|----------|

## 复验

- lint:
- 类型检查 / 测试 / 构建:
- 未解决问题与原因:

© laolaoshiren, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/eslint-fix of laolaoshiren/claude-code-skills-zh.

Open the folder on GitHubat commit 633f21c

Compare with similar skills

Eslint Fix next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Eslint Fix compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Eslint Fix this skilllaolaoshiren/claude-code-skills-zh880—~436Automated safety check: PassMIT
Ultracitesecondsky/claude-skills227—~6.5kAutomated safety check: PassMIT
Code Qualityredis/RedisInsight8.9k—~1.2kAutomated safety check: PassCustom licence
Antfuoyjt/uniapp-vue3-template627—~1.3kAutomated safety check: PassMIT
Pre-Commit Check GateZeroDeng01/sublinkPro1.7k—~2.9kAutomated safety check: NotesMIT
Typescript Tooling MigrationArize-ai/phoenix12k—~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • Ultracite

    secondsky/claude-skills

    Ultracite multi-provider linting/formatting (Biome, ESLint, Oxlint).

    227 GitHub stars~6.5k tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Code Quality

    redis/RedisInsight

    Official

    Code-quality standards for RedisInsight: TypeScript strictness, naming conventions (camelCase, PascalCase, UPPERSNAKECASE), linting rules, no any without reason, no !important in styles, and…

    8.9k GitHub stars~1.2k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Antfu

    oyjt/uniapp-vue3-template

    Anthony Fu's {Opinionated} preferences and best practices for web development

    627 GitHub stars~1.3k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Pre-Commit Check Gate

    ZeroDeng01/sublinkPro

    Blocking checklist that runs formatting, lint and test commands for changed Go and frontend files before any git add, commit or pull request.

    1.7k GitHub stars~2.9k tokensUpdated 2 days ago
    DevelopmentAuto-check: notes
  • Migrate or upgrade TypeScript tooling in the Phoenix monorepo.

    12k GitHub stars~2.8k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git PR Workflow

    andymai/brepjs

    This skill should be used when committing, pushing, branching, or merging in the brepjs repository — when a task involves "pre-commit hook failed" (which tier ran, how to bypass), "commit rejected…

    115 GitHub stars~2.9k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from laolaoshiren/claude-code-skills-zh

All 19 skills in this repo
  • API Tester

    laolaoshiren/claude-code-skills-zh

    依据真实 OpenAPI、路由实现和现有测试生成并验证 API 测试。用于用户要求测试接口、补集成测试、验证 API 契约、生成回归用例或排查接口兼容性时;区分“生成测试”和“执行请求”的授权,不猜测状态码、响应结构或 SLA,不在未确认环境中发送写请求。

    880 GitHub stars~614 tokensUpdated 6 days ago
    Auto-check passed
  • Dep Auditor

    laolaoshiren/claude-code-skills-zh

    审计 Node.js、Python、Go、Rust、JVM、Ruby 项目的依赖漏洞、版本健康度与许可证事实;当用户要求检查 package.json、lockfile、requirements、go.mod、Cargo.toml、pom.xml、Gemfile.lock,或生成不改依赖的中文审计报告时使用

    880 GitHub stars~895 tokensUpdated 6 days ago
    Auto-check passed
  • Git Workflow

    laolaoshiren/claude-code-skills-zh

    安全处理 Git 状态检查、提交信息、commit、分支、push、PR 和 rebase。用于用户要求检查改动、生成或创建提交、管理分支、推送、发起 PR 或整理历史时;严格区分每个动作的授权,并保护工作树中已有和无关的修改。

    880 GitHub stars~513 tokensUpdated 6 days ago
    Auto-check passed
  • GitHub Actions Gen

    laolaoshiren/claude-code-skills-zh

    分析真实项目并生成或修订安全、可验证的 GitHub Actions workflow;当用户要求创建 CI、测试矩阵、构建、Release、部署、缓存、Secrets、OIDC、PR 自动化或排查 workflow 配置时使用

    880 GitHub stars~1.1k tokensUpdated 6 days ago
    Auto-check: notes
  • Skill Curator

    laolaoshiren/claude-code-skills-zh

    中文 Skill 收录评估器。用于核验 GitHub 上的 Claude Code、Codex、Agent Skills、Plugin、MCP、CLI 或 Agent 工作流是否值得加入精选列表;检查真实资产、安装方式、活跃度、重复项和安全边界,并生成分类、中文描述与可追溯证据。

    880 GitHub stars~756 tokensUpdated 6 days ago
    Auto-check passed
  • Zh Readme

    laolaoshiren/claude-code-skills-zh

    中文 README 生成器 - 先分析项目,再生成面向中文开发者的高质量 README. An agent skill from laolaoshiren/claude-code-skills-zh.

    880 GitHub stars~477 tokensUpdated 6 days ago
    Auto-check passed

Categories

Questions about Eslint Fix

What does Eslint Fix do?

安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint 配置时;优先使用项目锁定的包管理器与版本,先预检再修改,不自动下载最新版或批量改写无关源码。. Eslint Fix is an agent skill from laolaoshiren/claude-code-skills-zh.

When should I use Eslint Fix?

Eslint Fix fits situations like: tasks that involve Linting and formatting.

How do I install Eslint Fix in Claude Code?

Run `npx skills add laolaoshiren/claude-code-skills-zh --skill eslint-fix -a claude-code`. Or copy the skill folder (skills/eslint-fix in laolaoshiren/claude-code-skills-zh) into .claude/skills/eslint-fix in your project. Claude Code loads it when a task matches its description.

How do I install Eslint Fix in Codex?

Run `npx skills add laolaoshiren/claude-code-skills-zh --skill eslint-fix -a codex`. Or copy the skill folder (skills/eslint-fix in laolaoshiren/claude-code-skills-zh) into .agents/skills/eslint-fix in your project. Codex loads it when a task matches its description.

Can I use Eslint Fix in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add laolaoshiren/claude-code-skills-zh --skill eslint-fix -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/eslint-fix, .gemini/skills/eslint-fix, .github/skills/eslint-fix and .opencode/skills/eslint-fix in your project.

What does Eslint Fix need to run?

SKILL.md names no scripts, command-line tools or credentials: Eslint Fix is instructions for the agent only.

Does Eslint Fix access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Eslint Fix safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Eslint Fix use?

Eslint Fix is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Eslint Fix use?

About 436 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Eslint Fix?

Skills that share tags, products or a category with Eslint Fix: Ultracite (secondsky/claude-skills, 227 stars), Code Quality (redis/RedisInsight, 8.9k stars), Antfu (oyjt/uniapp-vue3-template, 627 stars) and Pre-Commit Check Gate (ZeroDeng01/sublinkPro, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Eslint Fix?

laolaoshiren (a GitHub user) maintains it in laolaoshiren/claude-code-skills-zh, which has 880 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 5, 2026.

Source: laolaoshiren/claude-code-skills-zh on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.