AgentSkillsCN

golangci-lint-scan

扫描仓库中的golangci-lint工具,及时更新过时的版本。

SKILL.md
--- frontmatter
name: golangci-lint-scan
description: Scan repositories for outdated golangci-lint versions
argument-hint: "[--create-issues]"
allowed-tools:
  - Bash(./scripts/golangci-lint-checker.sh:*)
  - Read

golangci-lint Version Scanner

Scan GitHub organizations for repositories using outdated versions of golangci-lint.

Arguments: "$ARGUMENTS"

Why This Matters

golangci-lint is frequently updated with:

  • New Go version support
  • Bug fixes for false positives
  • New linters and checks
  • Performance improvements

Keeping golangci-lint updated ensures you have the latest checks and compatibility with newer Go versions.

Workflow

Run the golangci-lint checker with any provided options:

bash
./scripts/golangci-lint-checker.sh $ARGUMENTS

Options

OptionDescription
--create-issuesCreate tracking issues in affected repos
--help, -hShow detailed help

Usage Examples

code
/golangci-lint-scan                  # Scan only
/golangci-lint-scan --create-issues  # Scan and create issues
/golangci-lint-scan --help           # Show help

Output

  • Real-time progress for each repository
  • Current vs latest version comparison
  • Markdown report with outdated repos
  • Updates tracking issue in telco-bot repo