go-linting
Skill8 starsChanged 6 months agoApache-2.0View on GitHub
Lint and format Go code using golangci-lint, gofmt, and go vet according to standard conventions. Use when asked to lint, format, or check style issues in Go files.
- Installs packages
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run this skill when asked to lint, format, or check style for Go code.
- Very specific: line 17
If golangci-lint is not installed, inform the user and ask before installing:
- Very specific: line 68
Only run auto-fix commands after showing the user what will change and getting explicit confirmation.
- Very specific: line 78
No unused imports or variables (enforced by the compiler itself, but golangci-lint catches shadowed/ignored errors too).
- Very specific: line 82
NEVER install golangci-lint without asking the user first.
- Very specific: line 83
Always run in check mode first — only apply --fix/-w after the user confirms.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Go Linting Skill
Run this skill when asked to lint, format, or check style for Go code.
Step 1 — Detect available tooling
which golangci-lint go 2>/dev/null
ls .golangci.yml .golangci.yaml 2>/dev/nullIf golangci-lint is not installed, inform the user and ask before installing:
brew install golangci-lintgofmt and go vet ship with the Go toolchain, so no separate install is needed for those.
Step 2 — Run formatting check
gofmt -l .This lists files that are not correctly formatted (empty output means everything is formatted). Show the diff for any listed file:
gofmt -d <file>Step 3 — Run vet (correctness checks)
go vet ./...Step 4 — Run the linter
golangci-lint run ./...Respect the project's .golangci.yml/.golangci.yaml if present — do not pass extra flags that override its enabled/disabled linters.
Report all findings grouped by file, with line numbers and linter names.
Step 5 — Apply fixes (only with user confirmation)
gofmt -w <file>
golangci-lint run --fix ./...Only run auto-fix commands after showing the user what will change and getting explicit confirmation. go vet findings and most golangci-lint findings require manual code changes — present each with a suggested fix.
Standard conventions enforced
- Formatting is always
gofmt-compliant — this is non-negotiable in Go and never a matter of style preference. - Package names: short, lowercase, no underscores.
- Exported identifiers (
PascalCase) must have a doc comment starting with the identifier's name. - Errors are returned, not panicked, except at true program-fatal boundaries; always check
if err != nil. - No unused imports or variables (enforced by the compiler itself, but
golangci-lintcatches shadowed/ignored errors too).
Rules
- NEVER install
golangci-lintwithout asking the user first. - Always run in check mode first — only apply
--fix/-wafter the user confirms. - Respect the project's existing
.golangci.yml— do not suggest a different linter set without asking. - Report the exact command run and its full output — do not summarize away findings.
- Flag any ignored error (
_ = someFunc()where the error matters) or unchecked type assertion as a correctness finding, even if the linter configuration does not flag it.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- h0rn3t/golang-skills★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- packer-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

