om-module-scaffold

Generate complete Open Mercato module scaffolds under src/modules with entities, API routes, and wiring.

6|2|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/SHGrowth/om-superpowers --skill om-module-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: om-module-scaffold
Source: https://github.com/SHGrowth/om-superpowers/tree/main/skills/om-module-scaffold
Command: npx skills add https://github.com/SHGrowth/om-superpowers --skill om-module-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates end-to-end module scaffolding for Open Mercato projects, ensuring consistent structure and conventions across modules.

Core Features & Use Cases

  • Scaffold Structure: Generates the full module layout under src/modules/<module_id>/ including entities, API routes, backend pages, ACL, events, DI, and module metadata.
  • Create Entity scaffolding: Generates the entity class, validators, and a sample data layer that follows project conventions.
  • Wiring & Generators: Integrates the new module into the registry and triggers code generators for migrations and UI wiring.
  • Use Case: Quickly bootstrap a new feature area (e.g., inventory or orders) with consistent patterns and easier maintainability.

Quick Start

Create a new module scaffold by running the scaffold tool with your module identifier to generate a complete, ready-to-edit module skeleton.

Frequently Asked Questions about om-module-scaffold

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

FAQPage Schema
How do I scaffold a new backend module with TypeScript and ORM?

Module scaffolding with TypeScript and ORM generates the full directory layout under src/modules/<module_id>/, including entities, API routes, backend pages, and DI. It automates boilerplate creation to ensure consistent structure across Open Mercato projects.

How does dependency injection wiring work when generating a new module?

Dependency injection wiring during module generation integrates the new module into the existing registry using Awilix. The scaffolding tool automatically configures DI containers and triggers code generators for migrations and UI wiring.

Can I use the scaffolding tool to bootstrap CRUD operations for new features?

Yes, the scaffolding tool bootstraps CRUD operations by generating entity classes, validators, and a sample data layer following project conventions. This allows new feature areas like inventory or orders to be quickly bootstrapped with consistent patterns.

Does the module generation process support updating database migrations automatically?

Yes, module generation triggers code generators for migrations automatically. The scaffolding process integrates the new module into the registry and triggers code generators specifically for database migrations and UI wiring.

What is the best way to ensure consistent structure across multiple backend modules?

The best way to ensure consistent structure across backend modules is using an end-to-end scaffolding tool. It enforces standardized boilerplate, conventions, and metadata generation for every new feature area added to the project.

Do I need an existing Open Mercato project to generate a module skeleton?

Yes, you need an existing Open Mercato project. The scaffolding tool generates the module layout under src/modules/ and integrates with existing registries, migrations, and UI wiring to maintain project consistency.