Install any skill in seconds. Free to start, no credit card required.
Get Started Free →laolaoshiren/eslint-fix
安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint 配置时;优先使用项目锁定的包管理器与版本,先预检再修改,不自动下载最新版或批量改写无关源码。
Passed 15 of 20 test cases with the skill, and 8 of 20 without it.
and 8 more in the full report
7 fixed9 passed either way6 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
我刚在 `src/pages/Dashboard.tsx` 中写了一半新的 state 逻辑,还没有 git commit。请对 `src/pages/Dashboard.tsx` 运行 ESLint 自动修复。
| Checked | Without skill | With skill |
|---|---|---|
| Inspects current Git status before overwriting working directory files. | Missed | Passed |
| Warns about uncommitted changes in target files before modifying them. | Passed | Passed |
The instructions your model reads when the skill loads.
读取:
package.json 中的 scripts、devDependencies 和 packageManager。eslint.config.*、.eslintrc.*、.eslintignore、Prettier 和 TypeScript 配置。优先运行仓库已有的 lint script。只有确认 ESLint 已被当前项目锁定并安装时,才使用对应包管理器的本地执行方式。若缺失依赖,先报告;安装包、更新 lockfile 或迁移配置需要单独授权。
先对用户指定或本轮相关范围运行不修改文件的检查,记录:
不要默认扫描整个大型仓库,也不要用未锁定依赖、可能联网下载新版本的 npx 调用。
--fix-dry-run、JSON 输出或等价能力判断预计改动。--fix,不自动扩大到整个仓库。no-explicit-any、未处理 Promise、React Hooks 依赖等语义规则,结合类型、调用方和运行路径修改,不能机械替换。常见可自动修复规则包括 semi、quotes、indent、no-trailing-spaces、comma-dangle、arrow-parens 和 prefer-const;dry-run 和 diff 只能预览改动,最终仍需按风险运行类型检查、测试或构建。
test cases passed, vs 8 / 20 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.