package-layer

Community

Ensure robust shared package design.

AuthorYangTaeyoung
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enforces best practices for shared Go packages (pkg/), ensuring they are reusable, maintainable, and adhere to strict interface design, error handling, and security standards.

Core Features & Use Cases

  • Interface Design Validation: Verifies that all services are defined as interfaces.
  • Constructor Pattern Enforcement: Ensures New() functions return interface types.
  • Error Handling & Context Propagation: Checks for consistent error wrapping and context usage.
  • Security Audits: Detects hardcoded secrets and direct environment variable access.
  • Use Case: When developing a new microservice, this skill automatically audits the pkg/ directory to guarantee that shared components like HTTP clients, queue producers, or utility functions are implemented according to the project's established clean architecture principles.

Quick Start

Run the package-layer skill to audit the shared packages in the current project.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: package-layer
Download link: https://github.com/YangTaeyoung/go-clean-arch-toolkit/archive/main.zip#package-layer

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 471,000+ vetted skills library on demand.