Agent skill

Module Component Generator

by ArabelaTso in ArabelaTso/Skills-4-SE

Generates complete modules and components from interface contracts and specifications.

Apache-2.0Auto-check passedDevelopment

Install Module Component Generator

skills CLI
$ npx skills add ArabelaTso/Skills-4-SE --skill module-component-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ArabelaTso/Skills-4-SE module-component-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/module-component-generator .claude/skills/module-component-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
module-component-generator
GitHub stars
253
Token cost
~2.3k tokens
SKILL.md length
941 words
Files
4 (incl. references)
Skills in repo
150
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generates complete modules and components from interface contracts and specifications.

  • Works in 5 steps: Analyze the Contract → Determine Structure → Generate Implementation → …
  • Claude needs to build larger software components
  • SKILL.md covers Quick Start, What This Skill Generates, Generation Scope and Language-Specific Guidance, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Module Component Generator is an agent skill from ArabelaTso/Skills-4-SE. 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…

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/documentation-patterns.md`, `references/java-patterns.md` and `references/python-patterns.md`).

It sits in Development, covering Type safety and Design patterns. It works with Python and Java. The repository describes itself as: A curated list of 180+ useful Claude Skills for Software Engineering and resources for customizing AI for SE workflows. The licence is Apache-2.0.

When your agent uses it

  • Claude needs to build larger software components
  • Implement interfaces
  • Create service layers
  • Generate complete modules with multiple related classes

Example prompts

  • “implement this interface”
  • “generate a module for”
  • “create a service layer”
  • “/module-component-generator”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Analyze the Contract
  2. Determine Structure
  3. Generate Implementation
  4. Add Documentation
  5. Provide Usage Examples

What it can do on your machine

Read from SKILL.md and the folder at commit 4f38503. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Module Component Generator loads about 2.3k tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 144 tokens; SKILL.md has 941 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~144
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~10k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ArabelaTso/Skills-4-SE at commit 4f38503, republished under its Apache-2.0 licence (© ArabelaTso). 941 words, ~2,260 tokens.

Download SKILL.mdSave it as .claude/skills/module-component-generator/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
module-component-generator
description
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.

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

Show full SKILL.md (391 more words)Show less
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

© ArabelaTso, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in skills/module-component-generator of ArabelaTso/Skills-4-SE.

  • SKILL.md
  • references/documentation-patterns.md
  • references/java-patterns.md
  • references/python-patterns.md

Open the folder on GitHubat commit 4f38503

Compare with similar skills

Module Component Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Module Component Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Module Component Generator this skillArabelaTso/Skills-4-SE253—~2.3kAutomated safety check: PassApache-2.0
Mastering Python SkillSpillwaveSolutions/agent-brain119—~1.4kAutomated safety check: NotesMIT
Python Patternsaffaan-m/ECC275k—~2.3kAutomated safety check: PassMIT
Pydantic AIdavila7/claude-code-templates32k4 repos~2.9kAutomated safety check: PassMIT
Pydantic AIdiegosouzapw/awesome-omni-skills159—~3.2kAutomated safety check: PassMIT
Pydanticaimagnus919/agent-skills113—~4kAutomated safety check: PassMIT

Similar skills

  • Mastering Python Skill

    SpillwaveSolutions/agent-brain

    Modern Python coaching covering language foundations through advanced production patterns.

    119 GitHub stars~1.4k tokensUpdated 18 days ago
    DevelopmentAuto-check: notes
  • Python Patterns

    affaan-m/ECC

    Python-specific design patterns and best practices including protocols, dataclasses, context managers, decorators, async/await, type hints, and package organization.

    275k GitHub stars~2.3k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Pydantic AI

    davila7/claude-code-templates

    Build production-ready AI agents with PydanticAI — type-safe tool use, structured outputs, dependency injection, and multi-model support.

    32k GitHub starsUsed in 4 repos~2.9k tokens
    AI & LLM EngineeringAuto-check passed
  • Pydantic AI

    diegosouzapw/awesome-omni-skills

    PydanticAI — Typed AI Agents in Python workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.

    159 GitHub stars~3.2k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • Pydanticai

    magnus919/agent-skills

    Build type-safe AI agents and graph-based workflows with PydanticAI and PydanticGraph.

    113 GitHub stars~4k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Official

    A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…

    50k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed

More from ArabelaTso/Skills-4-SE

All 150 skills in this repo
  • Framework Migration Assistant

    ArabelaTso/Skills-4-SE

    Automatically migrate Python web applications between frameworks (Flask → FastAPI, Django → FastAPI).

    253 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Metamorphic Test Generator

    ArabelaTso/Skills-4-SE

    Generate test cases using metamorphic testing by applying transformations based on metamorphic properties.

    253 GitHub stars~798 tokensUpdated 1 mo ago
    Auto-check passed
  • Reproduction Trace Instrumenter

    ArabelaTso/Skills-4-SE

    Instruments programs to capture execution traces specifically for reproducing reported bugs, enabling consistent replay and diagnosis of failures.

    253 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Spring Mvc To Boot Migrator

    ArabelaTso/Skills-4-SE

    Automatically migrate Spring MVC applications to Spring Boot.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • State Snapshot Instrumenter

    ArabelaTso/Skills-4-SE

    Instrument programs (Python, C/C++, Java) to capture snapshots of key program states at runtime, including variables, memory, and call stacks.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Module Component Generator

What does Module Component Generator do?

Generates complete modules and components from interface contracts and specifications. Module Component Generator is an agent skill from ArabelaTso/Skills-4-SE. Generates complete modules and components from interface contracts and specifications.

When should I use Module Component Generator?

Module Component Generator fits situations like: Claude needs to build larger software components; implement interfaces; create service layers; generate complete modules with multiple related classes.

How do I install Module Component Generator in Claude Code?

Run `npx skills add ArabelaTso/Skills-4-SE --skill module-component-generator -a claude-code`. Or copy the skill folder (skills/module-component-generator in ArabelaTso/Skills-4-SE) into .claude/skills/module-component-generator in your project. Claude Code loads it when a task matches its description.

How do I install Module Component Generator in Codex?

Run `npx skills add ArabelaTso/Skills-4-SE --skill module-component-generator -a codex`. Or copy the skill folder (skills/module-component-generator in ArabelaTso/Skills-4-SE) into .agents/skills/module-component-generator in your project. Codex loads it when a task matches its description.

Can I use Module Component Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ArabelaTso/Skills-4-SE --skill module-component-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/module-component-generator, .gemini/skills/module-component-generator, .github/skills/module-component-generator and .opencode/skills/module-component-generator in your project.

What does Module Component Generator need to run?

SKILL.md names no scripts, command-line tools or credentials: Module Component Generator is instructions for the agent only. Our summary lists: Python 3.

Does Module Component Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Module Component Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Module Component Generator use?

Module Component Generator is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Module Component Generator use?

About 2.3k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.1k tokens, read only when the agent opens those files.

What are the alternatives to Module Component Generator?

Skills that share tags, products or a category with Module Component Generator: Mastering Python Skill (SpillwaveSolutions/agent-brain, 119 stars), Python Patterns (affaan-m/ECC, 275k stars), Pydantic AI (davila7/claude-code-templates, 32k stars) and Pydantic AI (diegosouzapw/awesome-omni-skills, 159 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Module Component Generator?

ArabelaTso (a GitHub user) maintains it in ArabelaTso/Skills-4-SE, which has 253 GitHub stars. The repository holds 150 skills in this directory. The repository was last updated on August 21, 2026.

Source: ArabelaTso/Skills-4-SE on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.