implementation-lokstra-create-service

Community

Auto-generate Lokstra services with DI.

Authorprimadi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the creation of infrastructure services annotated with @Service, generating repository implementations, data access objects, and service factory functions with dependency injection after the domain models and database schema are defined.

Core Features & Use Cases

  • Scaffolding: Generate @Service implementations and their DI-ready constructors.
  • Swappable Implementations: Define multiple service implementations (e.g., PostgreSQL repository and in-memory) with config-driven selection.
  • Generated Wiring: Produce zz_generated.lokstra.go wrappers to register services and their dependencies.
  • Use Case: When expanding a domain module, quickly scaffold repository implementations and service factories to accelerate bootstrapping.

Quick Start

To get started, run the Lokstra code generation command for the new service, then integrate the generated files into your module and update your service definitions in config.yaml.

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: implementation-lokstra-create-service
Download link: https://github.com/primadi/lokstra/archive/main.zip#implementation-lokstra-create-service

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