update-arch-tests

Generate and update Go architecture tests with goarchtest for hexagonal architecture and DDD constraints.

2|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/solrac97gr/marketplace-plugins --skill update-arch-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-arch-tests
Source: https://github.com/solrac97gr/marketplace-plugins/tree/main/plugins/go-dev/skills/update-arch-tests
Command: npx skills add https://github.com/solrac97gr/marketplace-plugins --skill update-arch-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation and updating of architecture tests, ensuring your Go project adheres to hexagonal architecture and Domain-Driven Design (DDD) principles, preventing architectural drift.

Core Features & Use Cases

  • Automated Test Generation: Creates or updates test/architecture/architecture_test.go with comprehensive tests.
  • Architecture Enforcement: Enforces rules like domain isolation, layer dependencies, and naming conventions.
  • Use Case: After adding a new domain or refactoring existing layers, run this skill to automatically generate or update tests that verify your architectural integrity.

Quick Start

Use the update-arch-tests skill to create or update architecture tests for the current project.

Frequently Asked Questions about update-arch-tests

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

FAQPage Schema
How do I enforce hexagonal architecture in Go?

To enforce hexagonal architecture in Go, you can use automated architecture tests to verify domain isolation and layer dependencies. This skill generates those tests using goarchtest to prevent architectural drift in DDD projects.

What are Go architecture tests for DDD projects?

Go architecture tests for DDD projects are automated checks that verify your codebase adheres to hexagonal architecture principles. They ensure domain isolation and proper layer dependencies by analyzing project structure and asserting naming conventions.

How do I automatically generate tests for Go project structure?

You can automatically generate tests for Go project structure by running a skill that analyzes your directories and creates an architecture_test.go file. This file contains comprehensive checks for domain isolation and layer dependencies using goarchtest.

Can I test domain isolation and layer dependencies in Go?

Yes, you can test domain isolation and layer dependencies in Go by generating architecture tests. These tests use goarchtest to verify that your domain layers remain isolated and that dependencies flow correctly according to hexagonal architecture rules.

Does goarchtest work with hexagonal architecture constraints?

Yes, goarchtest works with hexagonal architecture constraints by allowing you to write tests that enforce domain isolation and layer dependencies. This skill specifically leverages goarchtest to generate and update these structural tests automatically.

Why do I need architecture tests after refactoring Go layers?

You need architecture tests after refactoring Go layers to prevent architectural drift. Updating these tests verifies that your structural changes still adhere to hexagonal architecture and DDD constraints, catching violations in domain isolation or naming conventions early.