go-arch-metrics

Measure Go project architecture quality using modularity, coupling, cohesion, and complexity metrics.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/usadamasa/claude-config --skill go-arch-metrics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-arch-metrics
Source: https://github.com/usadamasa/claude-config/tree/main/dotclaude/skills/go-arch-metrics
Command: npx skills add https://github.com/usadamasa/claude-config --skill go-arch-metrics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires golangci-lint, go-arch-lint, govulncheck, gosec, spm-go, analyze-modularity, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you objectively measure and improve the quality of your Go project's architecture, focusing on modularity, testability, and maintainability. It automates the process of collecting key software metrics.

Core Features & Use Cases

  • Architecture Metrics: Measures coupling, cohesion, cognitive complexity, cyclomatic complexity, and more, based on established software architecture principles.
  • Automated Tooling: Integrates tools like golangci-lint, go-arch-lint, govulncheck, gosec, spm-go, and analyze-modularity to provide a comprehensive baseline.
  • Use Case: When asked to "assess the architectural health of our Go microservice" or "identify areas for refactoring to improve testability," this Skill will run a suite of tools and provide a detailed report with actionable insights.

Quick Start

Run the go-arch-metrics skill to establish a baseline of your Go project's architecture.

Frequently Asked Questions about go-arch-metrics

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

FAQPage Schema
How do I measure Go project architecture quality and identify refactoring areas?

Yes, you can configure golangci-lint for metrics by integrating it with go-arch-lint, govulncheck, and gosec. This combination establishes a comprehensive baseline for measuring Go code architecture quality and identifying testability improvements.

What is the best way to assess the architectural health of a Go microservice?

Assessing the architectural health of a Go microservice involves measuring its modularity, coupling, and cohesion. Running a suite of integrated tools provides a detailed report with actionable insights based on established software architecture principles.

How do I set up go-arch-lint to improve testability in my Golang project?

To set up go-arch-lint for testability, you integrate it alongside tools like analyze-modularity and spm-go. This configuration automates architecture analysis, measuring cognitive and cyclomatic complexity to provide actionable refactoring insights.

Does go-arch-lint work with govulncheck and gosec for comprehensive code analysis?

Yes, go-arch-lint works with govulncheck and gosec for comprehensive code analysis. Integrating these tools automates the process of collecting key software metrics and establishing a baseline for your Go project's architecture.

Why measure cognitive and cyclomatic complexity when refactoring Go code?

Measuring cognitive and cyclomatic complexity when refactoring Go code helps objectively evaluate modularity and maintainability. These metrics identify tangled dependencies and complex logic, providing actionable insights to improve overall testability.