ERP Architecture Core

Design modular ERP modules with service layers and state management.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Derakons/ERP --skill erp-architecture-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ERP Architecture Core
Source: https://github.com/Derakons/ERP/tree/main/.agent/skills/erp-architecture
Command: npx skills add https://github.com/Derakons/ERP --skill erp-architecture-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Architects and developers need a robust modular ERP architecture to scale.

Core Features & Use Cases

  • Módulo Autocontenido: Cada funcionalidad principal (Facturación, RRHH, Biblioteca) debe ser un módulo autocontenido con frontera clara y estructura de carpetas.
  • Capas de Servicio: La UI NUNCA debe hablar directamente con Supabase; utiliza servicios (por ejemplo, services/facturacionService.js) para encapsular consultas, manejo de errores y transformación de datos.
  • Manejo de Estado: Local con useState, global con useContext y estrategias de servidor (React Query) cuando corresponda.
  • Patrones de UI (High-End): Skeleton loading, UI optimista y feedback claro al usuario.
  • Rendimiento y robustez: Code splitting con React.lazy, memoización y virtualización si aplica a listas grandes.
  • Manejo de Errores: Envuelve llamadas críticas en try/catch y registra errores; muestra mensajes amistosos.

Quick Start

Scaffold a new ERP module using autocontenido architecture with a service layer and proper UI patterns.

Frequently Asked Questions about ERP Architecture Core

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

FAQPage Schema
How do I structure modular ERP modules with clear boundaries?

Structure modular ERP modules as self-contained units with clear folder boundaries and a dedicated service layer separating UI from data access, ensuring scalable state management and robust error handling.

Why should my React UI avoid direct Supabase calls in an ERP architecture?

Your React UI should avoid direct Supabase calls to enforce modular boundaries; use a dedicated service layer like facturacionService.js to encapsulate queries, handle errors, and transform data cleanly.

What is the best way to manage state across large ERP modules?

The best way to manage state across ERP modules is combining local useState for UI, useContext for global state, and React Query for server state, maintaining clear module boundaries and performance.

How do I handle errors and loading states in a scalable ERP architecture?

Handle errors and loading states by wrapping critical service calls in try/catch blocks, logging errors, showing friendly messages, and using high-end UI patterns like skeleton loading and optimistic UI.

Can I use React.lazy and code splitting for large ERP module lists?

Yes, you can use React.lazy and code splitting for large ERP modules to improve performance, alongside memoization and virtualization techniques when rendering large data lists.