bb-service-layer

Organize business logic into a dedicated service layer with strict async/await control flow.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/valentinmathey/Skills-Back-Automation --skill bb-service-layer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bb-service-layer
Source: https://github.com/valentinmathey/Skills-Back-Automation/tree/main/skills/bb-service-layer
Command: npx skills add https://github.com/valentinmathey/Skills-Back-Automation --skill bb-service-layer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reglas de organización de lógica de negocio en Servicios y procesamiento de control de flujo asíncrono. Trigger: Use cuando agregue lógica de negocio, manipule arrays/datos masivos, o implemente validaciones principales.

Core Features & Use Cases

  • Asegura que la lógica de negocio viva en una capa de servicios aislada de la capa de transporte (GraphQL/REST).
  • Requiere uso estricto de async/await para todas las operaciones y evita el encadenamiento con .then/.catch.
  • Soporta el procesamiento por lotes y la orquestación entre distintos modelos de información.

Quick Start

Configure your codebase to route business logic through a dedicated service layer and enforce async/await for all operations.

Frequently Asked Questions about bb-service-layer

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

FAQPage Schema
How do I separate business logic from my REST or GraphQL transport layer?

You separate business logic by routing all complex rules and data manipulation into a dedicated service layer. This isolates core operations from REST or GraphQL endpoints, ensuring your business logic remains cleanly decoupled from the transport layer.

Why should I use async/await instead of Promise chaining for batch processing?

You should use async/await instead of Promise chaining because it enforces strict asynchronous control flow and guards against loose error handling. This approach ensures reliable execution during batch processing and complex orchestration across models.

What is a service layer pattern in software architecture?

A service layer pattern is an architectural approach that isolates business logic from the transport layer. It centralizes complex business rules, batch processing, and data orchestration into dedicated services, enforcing strict coding standards for all operations.

How do I handle complex business rules and orchestration across multiple models?

To handle complex business rules and orchestration across multiple models, implement a pure service layer that enforces strict async/await control flow. This structure supports reliable batch processing and coordinates data manipulation without loose error handling.

Does this service layer approach work for large scale array and data manipulation?

Yes, this service layer approach works for large scale data manipulation by supporting batch processing and orchestration across models. It requires exclusive async/await usage to maintain strict control flow during massive array operations and data handling.