specx-diwire-composition

Community

Simplify Python service wiring with diwire in Specx.

Authormaksimzayats
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies dependency injection for Specx Python services using diwire, providing explicit and organized configuration of service components and test overrides.

Core Features & Use Cases

  • Dependency Wiring: Wire dependencies with diwire for Specx services, handling dependencies like ioc/container.py, UoW managers, clients, settings, or factories.
  • DI Rules: Apply specific rules for injecting dependencies, including handling logging, transaction ownership, and avoiding manual object graph assembly.
  • FastAPI Integration: Facilitate explicit composition in FastAPI applications by managing container lifespans and service lifecycle.
  • Test Configuration: Configure tests with explicit container fixtures and diwire overrides for targeted resolution and testing scenarios.
  • Use Case: Suppose you're creating a FastAPI application that interacts with databases. This Skill would guide you through setting up a test environment with appropriate dependencies for integration testing without mocking internal logic.

Quick Start

Utilize the specx-diwire-composition skill to define your dependency wiring and composition in your Specx service.

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: specx-diwire-composition
Download link: https://github.com/maksimzayats/specx/archive/main.zip#specx-diwire-composition

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