new-admin-module

Scaffolds standardized six-layer CRUD modules for Go APIs with multi-tenancy and soft-delete compliance.

4|Updated Jul 20, 2026
One-click install
npx skills add https://github.com/highflame-ai/ai-factory --skill new-admin-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-admin-module
Source: https://github.com/highflame-ai/ai-factory/tree/main/skills/new-admin-module
Command: npx skills add https://github.com/highflame-ai/ai-factory --skill new-admin-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the manual overhead and architectural drift associated with creating new service modules by enforcing a standardized, 6-layer CRUD pattern that ensures consistency, security, and maintainability across your codebase.

Core Features & Use Cases

  • Standardized Scaffolding: Automatically generates the schema, migration, repository, service, handler, and module wiring files.
  • Security & Multi-tenancy: Enforces mandatory tenancy scoping and soft-delete invariants to prevent data leaks and ensure auditability.
  • Use Case: When adding a new feature like a billing or quota management system, this skill ensures the new module integrates perfectly with existing middleware, database patterns, and shared resolver layers.

Quick Start

Use the new-admin-module skill to scaffold a new CRUD module named user-preferences in the internal service directory.

Frequently Asked Questions about new-admin-module

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

FAQPage Schema
How do I scaffold a CRUD module in Go with multi-tenancy and soft-delete support?

To scaffold a CRUD module in Go with multi-tenancy and soft-delete support, generate a standardized 6-layer pattern including schema, migration, repository, service, handler, and registration logic to enforce strict data scoping and auditability.

What is the best way to enforce multi-tenancy and soft-delete invariants in new Go API modules?

Enforcing multi-tenancy and soft-delete invariants in Go API modules requires applying context-based tenancy scoping and mandatory soft-delete checks at the repository and service layers to prevent data leaks and ensure auditability.

How do I generate idempotent database migrations for a new feature area in a modular Go backend?

Generating idempotent database migrations for a modular Go backend involves scaffolding standardized migration files alongside schema and repository layers, ensuring safe repeated executions without duplicating schema modifications.

Does this scaffolding approach support cross-module communication via shared resolvers?

Yes, this scaffolding approach supports cross-module communication via shared resolvers by generating registration logic that seamlessly integrates new CRUD modules with existing middleware and shared resolver layers.

Can I scaffold a new billing or quota management feature without manual module wiring?

Yes, you can scaffold new features like billing or quota management without manual module wiring by automatically generating the handler, service, repository, and module wiring files to ensure immediate integration with existing database patterns.

What layers are included when scaffolding a standardized CRUD module for a Go service?

Scaffolding a standardized CRUD module for a Go service includes generating six distinct layers: schema definitions, database migrations, repository interfaces, service logic, HTTP handlers, and module registration wiring.