hai-create-module

Generate a canonical module scaffold with directory structure and starter files in hai-framework.

3|7|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/hai-series/hai-framework --skill hai-create-module
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hai-create-module
Source: https://github.com/hai-series/hai-framework/tree/main/.github/skills/hai-create-module
Command: npx skills add https://github.com/hai-series/hai-framework --skill hai-create-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

hai-framework requires standardized scaffolding for new modules; this skill provides a canonical blueprint to create a new module with directory structure, config, i18n, and starter code.

Core Features & Use Cases

  • Generates a canonical module layout (packages/xx, src/, providers/, etc.) with consistent naming and starter files.
  • Supports both module-wide and sub-feature organization, plus optional multi-backend provider scaffolding guidance.
  • Use case: when adding a new module to hai-framework, AI creates the skeleton including NotInitializedKit pattern, error codes, and client scaffolding.

Quick Start

Follow the standardized prompts in this skill to scaffold a new module in hai-framework, generating the folder layout and baseline files.

Frequently Asked Questions about hai-create-module

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

FAQPage Schema
How do I scaffold a new module in a TypeScript framework?▼

Scaffolding a new TypeScript module involves generating a canonical directory structure with starter files, configuration schemas, i18n setup, and provider patterns. This ensures consistent architecture and naming conventions across the hai-framework.

What is the standard directory structure for a hai-framework module?▼

The standard module structure includes packages, src, and providers directories. This skill generates this layout along with baseline files to maintain consistent architecture and workflows for module-wide and sub-feature organization.

How do I add multi-backend provider scaffolding to an existing module?▼

Multi-backend provider scaffolding is supported through generated provider patterns and client scaffolding. This skill provides the guidance and starter code to integrate multiple backends within a new module architecture.

Can I generate i18n setup and configuration schemas for a new package?▼

Yes, generating i18n setup and configuration schemas for a new package is supported. This skill creates the complete module scaffold, ensuring internationalization configuration and service entry points are baseline ready.

What is the best way to ensure consistent naming and architecture when adding a sub-feature?▼

Using a canonical blueprint is the best way to ensure consistent naming and architecture when adding a sub-feature. This skill generates standardized starter code and directory layouts to prevent structural drift in hai-framework.

Why does my new module need the NotInitializedKit pattern and error codes?▼

The NotInitializedKit pattern and error codes are needed to properly handle initialization states and failures. This skill includes these specific starter code patterns in the generated module skeleton.