lint-check

Run pre-commit hooks and golangci-lint on modified Go files.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/TrollHeap/dotfiles --skill lint-check-trollheap
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lint-check
Source: https://github.com/TrollHeap/dotfiles/tree/main/ai-config/.claude/templates/bubbletea/.claude/skills/lint-check
Command: npx skills add https://github.com/TrollHeap/dotfiles --skill lint-check-trollheap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run pre-commit hooks and golangci-lint to verify code quality before finishing work.

Core Features & Use Cases

  • Pre-commit checks: Run hooks on all modified files to catch formatting, lint, and safety issues.
  • Golangci-lint: Execute the project's lint suite to catch code quality and style problems.
  • Use Case: After completing a feature or fix, ensure all checks pass before committing or opening a PR.

Quick Start

Use lint-check after finishing a task to run pre-commit on modified files, then run golangci-lint and report any issues.

Frequently Asked Questions about lint-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run pre-commit hooks and golangci-lint on modified Go files before finishing work?▼

To run pre-commit hooks and golangci-lint on modified Go files before finishing work, use this Skill to execute checks on changed files, enforce formatting and lint rules, and re-run checks after applying fixes.

What is the best way to verify Go code quality before opening a pull request?▼

The best way to verify Go code quality before opening a pull request is to run pre-commit hooks and golangci-lint on modified files, ensuring all formatting and lint checks pass according to your project's configuration.

Does this lint check process work with existing Go modules and project configurations?▼

Yes, this lint check process works with existing Go modules and project configurations by running golangci-lint and pre-commit hooks that report results based on the rules already defined in your repository.

When do I need to run golangci-lint and pre-commit checks during my workflow?▼

You need to run golangci-lint and pre-commit checks during your workflow when preparing commits, pull requests, or releases after code changes, ensuring formatting and safety issues are caught before completion.

Can I fix code quality issues automatically and re-run the lint checks?▼

Yes, you can fix code quality issues automatically because the Skill identifies issues, allows you to apply fixes, and then re-runs the pre-commit and golangci-lint checks to verify that the modified files now pass.

Why does my golangci-lint check fail on modified files before a commit?▼

Your golangci-lint check fails on modified files before a commit because the code contains formatting, style, or safety issues that violate the project's lint configuration, requiring fixes before the checks can pass.