Logo vun Module Component Generator

Module Component Generator

Communautéit
ArabelaTso
module-component-generator

Generates complete modules and components from interface contracts and specifications. Use when Claude needs to build larger software components, implement interfaces, create service layers, or generate complete modules with multiple related classes. Supports Python (with type hints and protocols) and Java (with interfaces and abstract classes). Trigger when users request "implement this interface", "generate a module for", "create a service layer", "build a component that implements", or provide interface definitions that need implementation.

Iwwersiicht

EditeurArabelaTso
RepositorySkills-4-SE
Skill-Nummmodule-component-generator
Stären
258
Forks
25
Matgeliwwert Fichieren
3
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum ArabelaTso op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Module Component Generator an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/module-component-generator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git /tmp/Skills-4-SE
mkdir -p .claude/skills
cp -r /tmp/Skills-4-SE/skills/module-component-generator .claude/skills/module-component-generator
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Module Component Generator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Module Component Generator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Module Component Generator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Module/Component Generator

Generate complete, production-ready modules and components from interface contracts and specifications.

Quick Start

When a user provides an interface contract or requests a module:

  1. Understand the contract: Analyze the interface, abstract class, or specification
  2. Determine scope: Clarify if generating single implementation or full module
  3. Select patterns: Choose appropriate design patterns and structure
  4. Generate code: Create implementation with proper structure and documentation
  5. Add documentation: Include comprehensive docstrings and usage examples

What This Skill Generates

Interface Implementations

Generate concrete implementations from:

  • Python Protocols and Abstract Base Classes
  • Java interfaces and abstract classes
  • Complete with validation, error handling, and documentation

Complete Modules

Generate multi-file modules with:

  • Domain models
  • Repository/data access layer
  • Service/business logic layer
  • Custom exceptions
  • Comprehensive documentation

Documentation

Generate for all code:

  • Module-level documentation
  • Class and method docstrings
  • Usage examples
  • API reference documentation

Generation Scope

Single Interface Implementation

When to use:

  • User provides a single interface/protocol/abstract class
  • Need one concrete implementation
  • Simple, focused functionality

What to generate:

  • Implementation class with all required methods
  • Input validation
  • Error handling
  • Docstrings with examples
  • Basic usage example

Full Module Generation

When to use:

  • Building a complete feature or service
  • Need multiple related classes
  • Require layered architecture (model, repository, service)

What to generate:

  • Domain models with validation
  • Repository layer for data access
  • Service layer for business logic
  • Custom exception hierarchy
  • Module-level documentation
  • Complete usage examples

Language-Specific Guidance

Python

Patterns and conventions:

  • Use type hints for all parameters and returns
  • Use Protocol for structural typing
  • Use ABC for inheritance-based contracts
  • Follow PEP 8 style guidelines
  • Use dataclasses or Pydantic for models

See: python-patterns.md for detailed examples

Common structures:

  • Protocol implementation
  • ABC implementation
  • Service layer module (model + repository + service)
  • Adapter pattern module
  • Factory pattern module

Java

Patterns and conventions:

  • Implement interfaces explicitly
  • Use Objects.requireNonNull() for validation
  • Use Optional<T> for nullable returns
  • Follow Java naming conventions
  • Use proper exception hierarchy

See: java-patterns.md for detailed examples

Common structures:

  • Interface implementation
  • Abstract class extension
  • Service layer module (model + repository + service)
  • Strategy pattern module
  • Builder pattern module

Workflow

1. Analyze the Contract

For interfaces/protocols:

  • Identify all methods that need implementation
  • Note parameter types and return types
  • Check for any constraints or requirements
  • Understand the intended behavior

For module requests:

  • Identify core entities/models
  • Determine required operations (CRUD, business logic)
  • Understand relationships between components
  • Clarify persistence requirements

2. Determine Structure

Single implementation:

  • One class implementing the interface
  • Helper methods if needed
  • Validation and error handling

Full module:

  • Domain models (data structures)
  • Repository layer (data access)
  • Service layer (business logic)
  • Exception classes (error handling)
  • Module initialization

3. Generate Implementation

For each class:

  1. Write class declaration with proper inheritance
  2. Implement constructor with dependency injection
  3. Implement all required methods
  4. Add validation and error handling
  5. Add helper methods if needed
  6. Write comprehensive docstrings

Code quality standards:

  • Validate all inputs
  • Handle edge cases
  • Use meaningful variable names
  • Follow language conventions
  • Keep methods focused and small

4. Add Documentation

Module level:

Class level:

  • Purpose and responsibility
  • Constructor parameters
  • Key methods overview
  • Usage examples

Method level:

  • What the method does
  • Parameters and types
  • Return value and type
  • Exceptions that can be raised
  • Usage example for complex methods

5. Provide Usage Examples

Include:

  • Basic usage example
  • Common use cases
  • Error handling examples
  • Integration examples for modules

Design Patterns

Repository Pattern

Separate data access from business logic.

Structure:

  • Model: Domain entity
  • Repository: Data access interface and implementation
  • Service: Business logic using repository

Use when: Need to abstract data persistence

Service Layer Pattern

Encapsulate business logic in service classes.

Structure:

  • Models: Domain entities
  • Services: Business operations
  • Exceptions: Domain-specific errors

Use when: Building business logic layer

Adapter Pattern

Provide unified interface to different implementations.

Structure:

  • Interface: Common contract
  • Adapters: Implementation for each variant
  • Factory: Create appropriate adapter

Use when: Need to support multiple backends/providers

Strategy Pattern

Encapsulate algorithms/behaviors as interchangeable strategies.

Structure:

  • Strategy interface: Common contract
  • Concrete strategies: Different implementations
  • Context: Uses strategy

Use when: Need runtime algorithm selection

Best Practices

Code Quality

Validation:

  • Validate all inputs at public API boundaries
  • Use type hints/annotations
  • Fail fast with clear error messages
  • Check for null/None values

Error Handling:

  • Create custom exception hierarchy
  • Use specific exception types
  • Provide meaningful error messages
  • Document exceptions in docstrings

Dependency Injection:

  • Accept dependencies through constructor
  • Use interfaces/protocols for dependencies
  • Make dependencies explicit
  • Facilitate testing with mocks

Documentation

Completeness:

  • Document all public classes and methods
  • Include parameter descriptions
  • Document return values
  • List possible exceptions

Examples:

  • Provide usage examples in docstrings
  • Show common use cases
  • Include error handling examples
  • Demonstrate integration patterns

Clarity:

  • Use clear, concise language
  • Explain the "why" not just the "what"
  • Include type information
  • Cross-reference related components

Structure

Organization:

  • Group related classes in modules/packages
  • Separate concerns (model, repository, service)
  • Use clear naming conventions
  • Keep files focused and cohesive

Modularity:

  • Keep classes focused on single responsibility
  • Use composition over inheritance
  • Minimize coupling between components
  • Design for testability

Example Usage Patterns

User: "Implement this DataRepository interface" → Generate single implementation class with all methods

User: "Create a user service module with CRUD operations" → Generate full module: User model, UserRepository, UserService, exceptions

User: "Build a notification system that supports email and SMS" → Generate adapter pattern: NotificationAdapter interface, EmailAdapter, SMSAdapter, factory

User: "Implement this PaymentProcessor abstract class for Stripe" → Generate StripePaymentProcessor extending abstract class

User: "Generate a complete order management module" → Generate full module: Order model, OrderRepository, OrderService, custom exceptions, documentation

User: "Create implementations for these three interfaces" → Generate three implementation classes, each with proper structure

Quality Checklist

Before delivering generated code, verify:

  • All interface methods implemented
  • Input validation present
  • Error handling included
  • Type hints/annotations added
  • Docstrings complete
  • Usage examples provided
  • Follows language conventions
  • Dependencies properly injected
  • Custom exceptions defined
  • Module documentation included

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Module Component Generator?

Generates complete modules and components from interface contracts and specifications. Use when Claude needs to build larger software components, implement interfaces, create service layers, or generate complete modules with multiple related classes. Supports Python (with type hints and protocols) and Java (with interfaces and abstract classes). Trigger when users request "implement this interface", "generate a module for", "create a service layer", "build a component that implements", or provide interface definitions that need implementation.

Firwat Module Component Generator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Module Component Generator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Module Component Generator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/module-component-generator an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Module Component Generator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Module Component Generator benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Module Component Generator domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Module Component Generator gratis?

Jo. De Skill gëtt vum ArabelaTso ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇