Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By xdgv0.3.1Apache-2.0In 1 marketplace
Stops Claude from ending a turn with failing golangci-lint results on changed Go files and blocks commits that fail lint. Also blocks //nolint-style bypass comments and edits to .golangci.yml; needs golangci-lint on PATH.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Enforce golangci-lint discipline in Claude Code sessions on Go projects.
Three hooks:
go-lint.sh. When Claude finishes a turn, find every changed Go file (staged, unstaged, or untracked), group them by their nearest ancestor go.mod, and run golangci-lint run --new-from-rev=HEAD ./... once per module directory. Only issues introduced since HEAD count; existing lint debt in a touched module does not. On failure, block with the per-module lint output so Claude must fix issues before stopping. Works for root-level Go, single-subdir layouts (e.g. backend/), and multi-module monorepos with no configuration.
Bash → pre-commit-lint.sh. Intercept any command that runs git commit, including git add -A && git commit ... and git -C dir commit ..., and run the same lint check. Failures deny the command.Edit|Write|MultiEdit → no-nolint.sh. Block two evasions:
.golangci.yml / .golangci.yaml / .golangci.toml.//nolint, // #nosec, //lint:ignore, //revive:disable, //exhaustive:ignore, //exhaustruct:ignore, //nosemgrep, //noinspection, //nolintlint.Both blocks tell Claude to explain the problem to the user and end its turn rather than work around the failure.
golangci-lint on PATH (the Stop / pre-commit hook skips linting and shows a notice if missing).jq on PATH.Install per-project, not globally. The hooks fire on every Stop, Bash, and Edit/Write call — running golangci-lint and applying Go-specific bypass-directive rules in a Python or JS repo is at best wasted work and at worst confusing failures.
From the project root:
claude plugin marketplace add xdg/xdg-claude --scope project
claude plugin install enforce-lint-go@xdg-claude --scope project
Both commands write to the repo's .claude/settings.json. Commit it so the whole team picks the plugin up automatically.
Equivalent in-session: /plugin marketplace add xdg/xdg-claude then /plugin install enforce-lint-go@xdg-claude -- but the interactive /plugin install defaults to user scope (machine-wide), which you do not want for a language-specific enforcement plugin. Stick to the CLI with --scope project, or edit .claude/settings.json directly:
{
"enabledPlugins": {
"enforce-lint-go@xdg-claude": true
}
}
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub xdg/xdg-claude --plugin enforce-lint-goPlugins from other owners that cover similar ground