The Multi-Agent Engineering Framework (MAEF) is a production-hardened infrastructure designed to transform AI assistants into a high-functioning Engineering Agency. This framework enforces Principal Engineer Standards (2026) through a system of recursive laws, specialized skills, and immutable workflows.
Designed for complex, multi-repository full-stack projects, MAEF ensures that every line of code is type-safe, modular, and architecturally sound, regardless of which agent executes the task.
The foundational "Constitution" of your project.
- Implementation Laws: Strict 6-step integration flows for Frontend and Backend.
- Intent Clarification Law: A mandatory protocol to resolve ambiguous requests (e.g., "optimize", "refactor") by classifying them into dedicated Optimization Vectors.
- Unified Response Structure: A global directive enforcing a strict
ApiResponse<T>shape across all system boundaries.
Personas with granular expertise and mandatory audit checklists.
- Architect: Owns modularity, decoupling, and domain boundaries.
- Software Engineer: Owns execution, type-safety, and SOLID principles.
- QA Expert: Owns boundary defense, error boundaries, and stability.
- Integration Architect: Owns vendor-agnostic 3rd party integrations (Stripe, Twilio, WhatsApp).
- Project Manager: Owns sequencing, implementation planning, and requirement translation.
Immutable "Runbooks" for lifecycle management.
- Full-Stack Coordination: A directory-agnostic bridge to choreographer frontend and backend repo changes.
- Feature Sculpting: End-to-end guides for carving new features into existing modules.
The "API for Humans." A library of 20+ pre-filled prompts that summon specific roles and workflows.
To use this framework in any project, scafold the following directory structure:
rules/project_laws.md: Define React-specific architectural rules.skills/: Persona files for UX, QA, and Frontend Engineering.templates/: Feature implementation and bug-fix prompts.
rules/project_laws.md: Define NestJS/Server-specific architectural rules.skills/: Persona files for DB Design, Security, and Backend Engineering.templates/: Schema migration and module implementation prompts.
MAEF leverages @Role and @Workflow mentions to guide the agent perfectly.
Instead of saying "Add billing," use the new-module.md template:
### 🚀 Request: New Feature Implementation
**As a**: @[server/.agent/skills/project_manager.md]
**Action**: Analyze requirements and produce a 6-step implementation plan.
**Execution**: Implement as @[server/.agent/skills/software_engineer.md] following @[server/.agent/workflows/create-new-backend-feature.md].
**Feature Name**: Stripe Subscription Engine
**Integrations**: Prisma (Models), BullMQ (Webhooks), Stripe-SDK.Every agent execution includes a Mandatory Audit Checklist:
- Zod/Class-Validator schemas enforced.
- Unified response structure applied.
- Zero-Waste UI principles followed.
- Transactionality and circuit breakers implemented.
- Repo Agnostic: Laws and workflows are written to be resilient to folder name changes (
servervsbackend). - Framework Native: Optimized for React/Vite (Frontend) and NestJS/Prisma (Backend).
- Standardized Communication: Uses the same schema for internal and external error reporting.
"Consistency beats cleverness. Logic drives state. Laws define reality." — MAEF Principle