infrastructure-layer

Validate Go infrastructure layers using Echo, GORM, and Uber fx.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/YangTaeyoung/go-clean-arch-toolkit --skill infrastructure-layer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infrastructure-layer
Source: https://github.com/YangTaeyoung/go-clean-arch-toolkit/tree/main/skills/infrastructure-layer
Command: npx skills add https://github.com/YangTaeyoung/go-clean-arch-toolkit --skill infrastructure-layer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures your application's infrastructure layer is robust, secure, and correctly configured, preventing common issues like DI misconfigurations, insecure secrets, and unmanaged database migrations.

Core Features & Use Cases

  • DI Registration Validation: Verifies that all necessary components (Config, Repositories, Runners, Deliveries) are correctly registered with the dependency injection framework (Uber fx).
  • Configuration Management: Audits environment variable usage, ensuring proper prefixing, default values, and preventing hardcoded secrets.
  • Database Migration Integrity: Checks that migrations have proper Up/Down pairs, include necessary indexes, and support soft deletes.
  • Security Audits: Detects hardcoded secrets and potential exposure of sensitive information through environment variables.
  • Use Case: Before deploying a new microservice, use this Skill to automatically audit its DI setup, configuration, and migration scripts to catch critical errors and security vulnerabilities.

Quick Start

Run the infrastructure-layer skill to audit the DI registration and configuration files for the current project.

Frequently Asked Questions about infrastructure-layer

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

FAQPage Schema
How do I validate dependency injection registration in a Go application using Uber fx?

To validate dependency injection registration, this skill audits your Go application to verify that all necessary components like Config, Repositories, Runners, and Deliveries are correctly registered with Uber fx, ensuring proper clean architecture setup.

What is the best way to check for hardcoded secrets in environment variable configuration?

Checking for hardcoded secrets involves auditing environment variable usage to ensure proper prefixing, validate default values, and detect potential exposure of sensitive information, preventing insecure secrets from entering your configuration management.

How do I ensure database migration scripts have proper Up and Down pairs in GORM?

To ensure database migration integrity, this skill checks that your GORM migration files include proper Up and Down pairs, incorporate necessary indexes, and correctly support soft deletes for robust schema management.

Can I audit my infrastructure layer setup before deploying a new microservice?

Yes, you can audit your infrastructure layer setup before deploying a new microservice to automatically catch DI misconfigurations, insecure secrets, and unmanaged database migrations, ensuring robust and secure configuration.

Why does my clean architecture implementation fail component registration checks?

Clean architecture implementation fails component registration checks when necessary components are not correctly registered with the dependency injection framework, which this skill detects by auditing your Uber fx setup for missing or incorrect registrations.

Does this skill work with Go applications using Echo and GORM?

Yes, this skill works with Go applications using Echo, GORM, and Uber fx, specifically guiding and validating the infrastructure layer implementation to ensure adherence to clean architecture principles.