Lint

From PeterBooker/veloria · View interactive version

Lint is an AI agent skill from the GitHub repository PeterBooker/veloria. Run golangci-lint and static analysis on Go code. Use before pushing or to check code quality.

How to use this skill

Skill file

Go Linting

Run golangci-lint to check code quality and catch issues before CI.

Usage

Steps

  1. Run golangci-lint

```bash

golangci-lint run $ARGUMENTS 2>&1

```

If no arguments provided, run on all packages:

```bash

golangci-lint run ./... 2>&1

```

  1. If golangci-lint is not installed, install it:

```bash

go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

```

Then re-run step 2.

  1. Parse and report findings

Group issues by severity and file:

```

## Lint Results

### Errors

### Warnings

### Summary

```

  1. Offer to fix auto-fixable issues

If issues are auto-fixable, offer to run:

```bash

golangci-lint run --fix $ARGUMENTS 2>&1

```

Configuration

The project uses .golangci.yml in the repo root. Read this file to understand which linters are enabled/disabled before interpreting results.

Current exclusions:

CI Alignment

The CI pipeline runs golangci-lint, go vet ./..., and gosec (see /security-scan skill).

Running /lint locally before pushing catches most CI failures.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.