eslint-fix SKILL.md skillA
eslint-fix from laolaoshiren/claude-code-skills-zh is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add laolaoshiren/claude-code-skills-zh/eslint-fix@git:20260715.81812dcPins git:20260715.81812dc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- laolaoshiren/claude-code-skills-zh
- Path
skills/eslint-fix/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260715.81812dc, committed Jul 15, 2026
- First version recorded
- Apr 16, 2026
- Size
- 3,430 bytes
- Repository stars
- 869
- License
- MIT
安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint 配置时;优先使用项目锁定的包管理器与版本,先预检再修改,不自动下载最新版或批量改写无关源码。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 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. 记录未解决规则、原因和建议下一步。 ## 安全边界 …
Read the whole file at its exact version.
How to install
mdr add laolaoshiren/claude-code-skills-zh/eslint-fix@sha256:1d24d36682088f7fThe line at the top of this page pins the label git:20260715.81812dc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_jwsjrgquiwtlcjwt)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Apr 16, 2026 and Jul 15, 2026, about one every 90 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260715.81812dc latest | 2026-07-15 | 81812dc | 3,430 B | A | view · diff |
| git:20260416.7573efe | 2026-04-16 | 7573efe | 2,291 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3430 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
laolaoshiren/claude-code-skills-zh · 869 stars · license MIT · pushed 2026-09-22 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_jwsjrgquiwtlcjwt GET https://markdownregistry.com/api/v1/resolve?ref=laolaoshiren/claude-code-skills-zh/eslint-fix GET https://markdownregistry.com/api/v1/blob/1d24d36682088f7f3a2d184cb3fef064e1390965258eceb30f2e9b259a90d007
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.