Setup Arch Unit

Sets up architecture rules for a Go project with the depguard and forbidigo linters of golangci-lint v2. Detects the package layout, proposes a default rule set derived from the Nexa Go conventions (no database access outside sqlc in feature code, no HTTP or templ in services, only internal/config reads the environment, shared packages never import features), asks the user to confirm or extend it, writes the rules into .golangci.yml, and installs a git pre-commit hook that runs them before every commit. Use when the user asks to "set up arch-unit", "add architecture tests", "enforce module boundaries", "enforce package boundaries", "add an architecture lint", or mentions ArchUnit, depguard, import rules, dependency rules between packages, or layered / hexagonal architecture enforcement in Go.

nexadevapp Updated

File contents

nexadevapp/nexa-claude-skills-marketplace/tree/main/nexa-claude-go/skills/setup-arch-unit commit 1cdce8fe12

Frequently asked questions

npx skillmds@latest add nexadevapp/setup-arch-unit