add-module

Scaffold core infrastructure modules with standard API and lazy init.

3|1|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/Ariedam64/Gemini --skill add-module-ariedam64
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-module
Source: https://github.com/Ariedam64/Gemini/tree/main/.claude/skills/add-module
Command: npx skills add https://github.com/Ariedam64/Gemini --skill add-module-ariedam64

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a reusable scaffolding workflow to generate a new core infrastructure module with a standardized API, lazy initialization, and a clean file structure, reducing boilerplate and onboarding time.

Core Features & Use Cases

  • Generates a complete module layout under src/modules/<moduleName>/ with index.ts, types.ts, state.ts (if needed), and logic/core.ts following project conventions
  • Provides a ready-to-use MG<Name> façade and an idempotent initialization lifecycle
  • Includes templates and guidance to design new infrastructure modules quickly and consistently

Quick Start

Run /add-module <ModuleName> to generate a complete core infrastructure module skeleton.

Frequently Asked Questions about add-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new TypeScript module with a standard API surface?

To scaffold a TypeScript module with a standard API, automation generates a complete directory under src/modules containing index.ts, types.ts, state.ts, and logic/core.ts. This enforces a consistent file layout and provides a ready-to-use façade with lazy initialization.

What is module scaffolding and why use it for infrastructure projects?

Module scaffolding automates the creation of a core infrastructure module skeleton with a standardized API and idempotent initialization lifecycle. It reduces manual boilerplate and onboarding time by enforcing a fixed project structure across the repository.

Does this module scaffolding approach work with lazy initialization patterns?

Yes, the scaffolding approach works with lazy initialization by generating an idempotent initialization lifecycle within the module core. It guarantees the module initializes safely only once when invoked, aligning with standard bootstrap patterns.

How do I generate a consistent module structure without manual boilerplate?

You can generate a consistent module structure by running a scaffolding command that creates the index, types, state, and logic files automatically. This eliminates manual boilerplate by applying fixed project conventions directly to the new module directory.

Can I use this scaffolding tool to create a façade for module registration?

Yes, you can use this scaffolding tool to create a module façade for registration. It generates an MG<Name> façade that aligns with the project's module registration and bootstrap patterns, ensuring the new infrastructure module integrates seamlessly.

What is the best way to ensure idempotent init across multiple infrastructure modules?

The best way to ensure idempotent init across infrastructure modules is to use a standardized scaffolding template that enforces a fixed initialization lifecycle. This guarantees consistent bootstrap behavior and prevents duplicate initialization across the repository.