Token导航 LogoToken导航TokenDH.com
AI 工具执行命令github未标认证来源可访问clear审计通过

fix-eslint修复 eslint

Agent Skill

fix-eslint 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

523

周安装

22

GitHub Stars

3

下载量

183
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/otrebu/agents --skill fix-eslint

简介

fix-eslint 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在开发流程中围绕仓库状态和代码变更进行整理。
  • 通过 npx skills add 命令从 otrebu/agents 仓库安装。
  • 需确认是否会触发网络请求或修改项目文件。
  • 建议查看原始 SKILL.md 了解具体集成方式。

SKILL.md

Fix ESLint Errors

Automatically fix ESLint errors by modifying code to comply with configured linting rules.

Priorities:

  1. Never bypass rules - No eslint-disable comments, no rule modifications
  2. Fix code to comply - Modify implementation to meet linting standards
  3. Preserve functionality - Ensure fixes don't break existing behavior
  4. Follow coding standards - Apply fixes aligned with project style (FP-first, explicit naming)

Workflow

Step 1: Analyze ESLint Errors

Run the analysis script to understand error distribution:

bash ./.claude/skills/fix-eslint/scripts/analyze_errors.sh

Or with file pattern:

bash ./.claude/skills/fix-eslint/scripts/analyze_errors.sh "src/**/*.ts"

This outputs:

  • Total error count
  • Files grouped by directory
  • Directory-level breakdown

Step 2: Choose Strategy

If ≤20 errors: Proceed to Step 3 (Direct Fix) If >20 errors: Proceed to Step 4 (Parallel Fix)


Step 3: Direct Fix (≤20 errors)

For small error counts, fix directly without spawning agents.

Process

  1. Run ESLint to get errors: pnpm lint [file-or-directory]
  2. For each file with errors:

- Read the file - Identify each ESLint error (rule name, line number, message) - Fix by modifying code to comply with the rule - NEVER add eslint-disable comments or modify ESLint config - See ./guidelines.md for detailed fixing guidelines

  1. Verify each fix: pnpm lint <file-path>
  2. Repeat until all errors fixed

Report

At the end, provide:

  • List of files processed
  • Total errors fixed
  • Brief summary (e.g., "8 unused imports removed, 3 return types added, 2 const conversions")
  • Any remaining errors (if unable to fix automatically)

Step 4: Parallel Fix (>20 errors)

For large error counts, orchestrate parallel fix-eslint agents by directory.

⚠️ CRITICAL: Follow steps IN ORDER. DO NOT skip ahead.

4.1: Group Files by Directory and Create Todos (BLOCKING)

⚠️ MUST complete before Step 4.2

Use the output from Step 1 (the analyze_errors.sh script) to create directory-to-files mapping:

  • src/auth/ → [login.ts, register.ts, session.ts]
  • src/api/ → [users.ts, posts.ts]
  • src/components/ → [Button.tsx, Header.tsx, Footer.tsx]

Grouping rules:

  • Group files by immediate parent directory
  • If directory has 10+ files, consider splitting into sub-directories or smaller batches
  • If all errors in 1 file, skip parallelization and use Step 3 instead

Use TodoWrite to create one todo per directory:

TodoWrite: [
  {content: "Fix ESLint errors in src/auth/", activeForm: "Fixing ESLint errors in src/auth/", status: "pending"},
  {content: "Fix ESLint errors in src/api/", activeForm: "Fixing ESLint errors in src/api/", status: "pending"},
  {content: "Fix ESLint errors in src/components/", activeForm: "Fixing ESLint errors in src/components/", status: "pending"}
]

CHECKPOINT: Verify all todos created before Step 4.2

4.2: Spawn Parallel Agents (ONLY AFTER Step 4.1 Complete)

⚠️ DO NOT START until Step 4.1 fully complete

Update all todos to in_progress:

TodoWrite: [
  {content: "Fix ESLint errors in src/auth/", activeForm: "Fixing ESLint errors in src/auth/", status: "in_progress"},
  {content: "Fix ESLint errors in src/api/", activeForm: "Fixing ESLint errors in src/api/", status: "in_progress"},
  {content: "Fix ESLint errors in src/components/", activeForm: "Fixing ESLint errors in src/components/", status: "in_progress"}
]

IMPORTANT: Spawn ALL agents in SINGLE message using multiple Task tool calls.

Example Task invocations:

Task 1 (src/auth/):
prompt: "Fix all ESLint errors in the src/auth/ directory.

Files with errors:
- src/auth/login.ts
- src/auth/register.ts
- src/auth/session.ts

See ./.claude/skills/fix-eslint/guidelines.md for detailed guidelines.

Process:
1. For each file, run: pnpm lint <file-path>
2. Read the file with errors
3. Fix each error by modifying code to comply with rule
4. NEVER add eslint-disable comments or modify eslint config
5. Verify: run pnpm lint <file-path> again to confirm fix

Report back:
- List of files processed
- Total errors fixed
- Brief summary (e.g., '8 unused imports removed, 3 return types added')
- Any remaining errors (if unable to fix)"

subagent_type: "general-purpose"
description: "Fix auth directory ESLint errors"
Task 2 (src/api/):
prompt: "Fix all ESLint errors in the src/api/ directory.

Files with errors:
- src/api/users.ts
- src/api/posts.ts

See ./.claude/skills/fix-eslint/guidelines.md for detailed guidelines.

Process:
1. For each file, run: pnpm lint <file-path>
2. Read the file with errors
3. Fix each error by modifying code to comply with rule
4. NEVER add eslint-disable comments or modify eslint config
5. Verify: run pnpm lint <file-path> again to confirm fix

Report back:
- List of files processed
- Total errors fixed
- Brief summary of main fixes
- Any remaining errors"

subagent_type: "general-purpose"
description: "Fix API directory ESLint errors"

Continue pattern for all directory batches...

Claude Code manages parallelism (up to 10 tasks concurrently).

4.3: Track Agent Completion and Update Todos

As each agent completes:

  1. Parse agent's report (files processed, errors fixed)
  2. Update corresponding todo to completed:
TodoWrite: [
  {content: "Fix ESLint errors in src/auth/", activeForm: "Fixing ESLint errors in src/auth/", status: "completed"},
  {content: "Fix ESLint errors in src/api/", activeForm: "Fixing ESLint errors in src/api/", status: "in_progress"},
  {content: "Fix ESLint errors in src/components/", activeForm: "Fixing ESLint errors in src/components/", status: "in_progress"}
]
  1. Repeat for each agent as they complete

4.4: Final Verification and Summary

After ALL agents complete:

  1. Run final verification: pnpm lint 2>&1
  2. Aggregate results from all agent reports: Summary: - Total directories processed: X - Total files modified: Y - Total errors fixed: Z - Breakdown by directory: • src/auth/: 12 errors fixed in 3 files • src/api/: 8 errors fixed in 2 files • src/components/: 15 errors fixed in 3 files - Remaining errors: N (if any)
  3. If remaining errors exist, report which files/directories still have issues

Edge Cases

Only 1 file with errors:

  • Skip parallelization
  • Fix directly using Step 3
  • No TodoWrite needed

Errors spread across many directories (15+):

  • Group by top-level directory only (e.g., src/, tests/, lib/)
  • Don't over-split - let Claude Code manage parallelism

Large directory (20+ files):

  • Split by subdirectory if they exist
  • Or batch into groups of ~5 files each with separate Task calls

Agent reports remaining errors:

  • Include in final summary
  • Note specific files/rules that couldn't be auto-fixed
  • Suggest manual review

Conflict Prevention

  • Each directory/file assigned to EXACTLY ONE agent
  • Verify no overlap before spawning
  • All Task calls in ONE message for parallel execution
  • Never let two agents modify same file

Guidelines Reference

For detailed fixing guidelines, constraints, and patterns, see:

  • ./guidelines.md - Complete fixing rules and process

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

windsurf

27.07%
按下载量换算50

Claude Code

26.59%
按下载量换算49

trae

18.32%
按下载量换算34

OpenCode

12.44%
按下载量换算23

Codex

8.79%
按下载量换算16

Antigravity

3.85%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/otrebu/agents --skill fix-eslint;npx skills add otrebu/agents --skill "fix-eslint" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills