Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

go-lint

БесплатноБез исполняемых скриптовНе проверен

Run golangci-lint to check Go code quality. Use when the user asks to lint, check for lint issues, or verify code quality in a Go project, or when linting is…

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

Go Lint

Run golangci-lint to check Go code quality and report issues.

Discovery

Find how to run the linter using this cascade — stop at the first match:

  1. CLAUDE.md / AGENTS.md: Check for instructions about linting. If a lint command is documented, use it.
  2. Makefile targets: Check for lint or verify-lint targets (grep -E "^(lint|verify-lint):" Makefile). If found, run make lint or make verify-lint.
  3. Direct invocation: Run golangci-lint run ./...

If golangci-lint Is Not Found

Report that golangci-lint is not available and direct the user to the installation docs. Do not auto-install.

Output

Use this format when issues are found:

Found 15 issues:
- goconst: 5 issues
- staticcheck: 4 issues
- gocyclo: 3 issues
- revive: 3 issues

Example issues:
- pkg/api/handler.go:42: string "application/json" has 3 occurrences (goconst)
- pkg/utils/helper.go:87: cyclomatic complexity 15 of function ProcessData (gocyclo)

When clean:

Code passes all linter checks (0 issues found)

Constraint

This skill is read-only. Never modify files or attempt fixes. Use the golang:lint-fix skill for that.

If the user passes additional flags, chain them to the golangci-lint invocation (e.g., --tests, --concurrency 4).

Установить go-lint в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(golangci-lint *)
Bash(grep *)
Bash(make lint)
Bash(make verify-lint)
Read

FAQ

Что делает скилл go-lint?

Run golangci-lint to check Go code quality. Use when the user asks to lint, check for lint issues, or verify code quality in a Go project, or when linting is appropriate before committing Go code changes.

Как установить скилл go-lint?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл go-lint запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить go-lint с