AgentSkillsCN

linter-runner

运行仓库级别的代码检查工具,以最小化、有针对性的修复措施,迅速定位最高优先级的问题。

SKILL.md
--- frontmatter
name: linter-runner
description: Execute repository linters and surface highest-priority issues with minimal, targeted fixes.
license: MIT
metadata:
  mode: verify
  purpose: lint

Linter Runner

When to Use

  • After formatting and before/after tests or PR creation to ensure linter parity with CI.

Rules

  • Use the repository's configured linter commands (see AGENTS.md).
  • Prioritize actionable issues: security/correctness > concurrency > API misuse > style.
  • Provide minimal code-change suggestions; avoid large refactors unless explicitly requested.

Commands

  • Primary: golangci-lint run --timeout 5m --verbose ./... (CI uses golangci-lint v2.8.0)
  • Secondary: revive ./...

Output

  • Top findings (5-15) grouped by file and rule.
  • One-line fix suggestion per finding.
  • Verification steps (re-run lint, run focused tests).

Related Skills

  • code-formatter, static-analysis, test-runner