go-precommit

Community

Enforce Go code quality before commits.

Authormway
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go projects frequently suffer from inconsistent formatting, flaky tests, or lint errors that slip through manual checks. This skill automates a full pre-commit workflow to catch formatting, linting, and test failures before changes enter the codebase.

Core Features & Use Cases

  • Automated formatting and linting: runs golangci-lint with the --fix option across all packages.
  • Comprehensive testing: executes go test with race detection and coverage to validate correctness.
  • End-to-end validation: performs a final lint pass to ensure no issues are introduced during fixes.
  • Use Case: Run this workflow before pushing commits or opening a PR to guarantee code quality.

Quick Start

Run the full pre-commit workflow in your Go project to ensure code quality before commits.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-precommit
Download link: https://github.com/mway/dotfiles/archive/main.zip#go-precommit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.