crud-di

Official

Enforce consistent DI for clean, testable services

AuthorArtisanCloud
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill codifies PowerX CRUD dependency injection conventions to prevent ad-hoc resource creation in handlers and services, reduce coupling, and ensure consistent initialization and lifecycle management across HTTP, gRPC, and background transports.

Core Features & Use Cases

  • Architectural Enforcement: Verifies Deps struct and NewDeps factory, constructor-based service and repo wiring, and transport decoupling rules.
  • Static CI Checks: Detects forbidden imports and direct external client instantiation in handlers and provides warning-level guidance for gRPC implementations.
  • Templates and Wiring: Supplies example templates for deps, service, repo, and handler registration to standardize implementations across modules.
  • Use Case: Integrate into repository onboarding or CI pipelines to automatically validate that newly added CRUD modules follow PowerX DI patterns and avoid runtime resource mismanagement.

Quick Start

Run a code scan applying the di.yaml rules to confirm internal/app/shared/deps.go defines Deps and NewDeps and that services, repos, and handlers are constructed via dependency injection.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: crud-di
Download link: https://github.com/ArtisanCloud/PowerX/archive/main.zip#crud-di

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.