AgentSkillsCN

lint

当用户请求“运行代码风格检查”、“/lint”、“检查代码风格”、“修复代码风格错误”或要求对代码进行风格检查与格式化时,应使用此技能。

SKILL.md
--- frontmatter
name: lint
description: This skill should be used when the user asks to "run linter", "/lint", "check linting", "fix lint errors", or requests code linting/formatting.
version: 1.0.0

Linting

Standard Command

npm run lint - runs tsc --noEmit && eslint

Workflow

  1. Run npm run lint
  2. For fixes: npm run lint-fix
  3. Report file:line references

Rules

  • Use project's package.json scripts
  • Never use npx directly
  • Don't auto-fix unless requested