AgentSkillsCN

lint

运行代码风格检查与格式化校验。适用于用户要求“运行 linter”、“/lint”、“检查代码风格”、“修复 linter 错误”,或希望对代码进行风格检查与格式化时使用。

SKILL.md
--- frontmatter
name: lint
description: Run linting and formatting checks. Use when user asks to "run linter", "/lint", "check linting", "fix lint errors", or requests code linting/formatting.

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