🧹
QualityPython

ESLint Fix

by laolaoshiren

ESLint Fix is a Quality skill for Claude Code, published by laolaoshiren in claude-code-skills-zh.

786 stars84 forkson laolaoshiren/claude-code-skills-zhAdded 2026/08/23+1% in starsRepository updated 2026/08/23
ai-agentawesome-listclaude-codeclaude-skillsdeveloper-toolsprompt-engineeringskills
Install in seconds
Install ESLint Fix
Copy ESLint Fix into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/laolaoshiren/claude-code-skills-zh/tree/main/skills/eslint-fix ~/.claude/skills/eslint-fix

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/laolaoshiren/claude-code-skills-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/eslint-fix/SKILL.md in laolaoshiren/claude-code-skills-zh
Installs to
~/.claude/skills/eslint-fix
Collection
One of 20 skills cataloged from this repository
Category
Quality — 1897 skills

What ESLint Fix does

ESLint Fix 安全诊断并修复 ESLint error、warning 和配置兼容问题。用于运行 lint、解释报错、限定范围自动修复或迁移配置时,优先使用项目锁定的包管理器与版本。

ESLint Fix is cataloged under Quality on DirSkills. ESLint Fix comes from a repository tagged ai-agent, awesome-list, claude-code, claude-skills and developer-tools.

Documentation

README

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. 限定范围修复

This is the opening of the README. Read the full README on GitHub.

Frequently asked about ESLint Fix

  • What else does laolaoshiren publish alongside ESLint Fix?

    ESLint Fix is one of 20 skills that DirSkills catalogs from laolaoshiren/claude-code-skills-zh, the repository it ships in. Its siblings there include API Tester, Changelog Generator and Chinese Code Reviewer. Each one is a separate skill with its own page in this directory, installs the same way ESLint Fix does, and is maintained by laolaoshiren in that same repository. The rest of the collection is listed on the laolaoshiren/claude-code-skills-zh page.

  • How does ESLint Fix compare to other Quality skills?

    ESLint Fix ranks #986 by stars among the 1897 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of ESLint Fix against them. Open each page to compare what they document and how they install.

More from laolaoshiren/claude-code-skills-zh

ESLint Fix is one of 20 skills cataloged on DirSkills from laolaoshiren/claude-code-skills-zh.

See all 20 skills →
🧪
2026/08/23

API Tester

API Tester generates and verifies API tests from OpenAPI, routes, types, and existing tests. Use it to add interface tests, validate contracts, create regressions, or investigate compatibility without guessing responses or sending writes without approval.
Quality
78684
📝
2026/08/23

Changelog Generator

Changelog Generator creates changelogs and release notes from Git history. Use it when you need to summarize commits into versioned change logs.
Writing
78684
🔍
2026/08/23

Chinese Code Reviewer

Chinese Code Reviewer generates structured code review reports in Chinese. Use it when you need to check code quality, bugs, performance, security, and design issues.
Quality
78684
📚
2026/08/23

Chinese Documentation Generator

Chinese Documentation Generator creates Chinese technical documentation from a codebase, including project overviews, quick start guides, API references, examples, and FAQs. Use it when you need Markdown docs for a project or API.
Writing
78684
🗄️
2026/08/23

Database Migrator

Database Migrator compares schemas, identifies table and column changes, and generates migration scripts with rollback steps. Use it when you need database upgrades, schema changes, or framework-specific migrations.
DevOps
78684
🔍
2026/08/23

Dependency Auditor

Dependency Auditor 审计 Node.js、Python、Go、Rust、JVM 和 Ruby 项目的依赖漏洞、版本健康度与许可证事实。适合在检查 lockfile、manifest 或生成不改依赖的中文审计报告时使用。
Quality
78684