Back to list
kexin94yyds

fix-lint

by kexin94yyds

0🍴 0📅 Jan 24, 2026

SKILL.md


name: fix-lint description: 代码格式修复流程。触发词:lint、格式化、eslint。

/fix-lint

自动修复代码 lint 和格式错误的内部循环命令。

使用场景

  • 提交前修复格式问题
  • CI 失败后快速修复
  • 批量格式化代码

执行步骤

  1. 检测项目类型:识别 package.json / pyproject.toml 等
  2. 运行 lint 检查
    • JS/TS: eslint . --fixbiome check --fix
    • Python: ruff check --fix
    • Go: gofmt -w .
  3. 运行格式化
    • JS/TS: prettier --write .
    • Python: ruff format
  4. 显示修复结果
  5. 调用 zhi 确认是否提交

支持的工具

语言LintFormat
TypeScript/JavaScriptESLint, BiomePrettier, Biome
PythonRuff, Flake8Ruff, Black
Gogolangci-lintgofmt
Rustclippyrustfmt

参数

参数说明默认值
--check只检查不修复false
--staged只处理暂存文件false

示例输出

✓ Detected: TypeScript project (biome)
✓ Fixed 5 lint errors
✓ Formatted 12 files
? Commit these fixes? [y/n]

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon