mb-be-dev

Implement backend migrations, APIs, edge functions, and RLS policies with test-driven code.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Yanick-mj/mb-framework --skill mb-be-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mb-be-dev
Source: https://github.com/Yanick-mj/mb-framework/tree/main/agents/be-dev
Command: npx skills add https://github.com/Yanick-mj/mb-framework --skill mb-be-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates the manual, error‑prone process of creating database migrations, RLS policies, edge functions, and API endpoints by providing a structured, test‑driven workflow for backend development tasks.

Core Features & Use Cases

  • TDD‑Driven Implementation: Enforces red‑green‑refactor cycles for migrations, RPCs, and edge functions, ensuring reliable code quality.
  • Secure RLS Management: Automates policy generation and verification, guaranteeing data access controls are consistently applied.
  • Integrated Planning: Consumes plans from the architect agent and produces concrete backend artifacts ready for downstream agents.
  • Use Case Example: When a new feature requires a database schema change and a corresponding API endpoint, this skill creates reversible migrations, adds appropriate RLS policies, and scaffolds the edge function with accompanying tests.

Quick Start

Ask the backend specialist to implement the new feature after providing the task description, plan, and context.

Frequently Asked Questions about mb-be-dev

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

FAQPage Schema
How do I generate reversible database migrations with RLS policies?

To generate reversible database migrations with RLS policies, provide a feature task description and plan to the backend specialist. It reads existing schemas and produces secure, reversible migrations with automated policy verification.

How do edge functions fit into test-driven backend development?

Edge functions fit into test-driven backend development by enforcing red-green-refactor cycles. The backend specialist scaffolds edge functions alongside database migrations to ensure reliable API endpoints with accompanying tests.

Can I automate Row Level Security policy generation for new API endpoints?

Yes, you can automate Row Level Security policy generation for new API endpoints. The backend specialist automates policy creation and verification to guarantee consistent data access controls across database changes.

What's the best way to structure backend feature implementation for schema changes?

The best way to structure backend feature implementation is using an integrated planning workflow. Consuming plans from an architect agent, it creates concrete artifacts including reversible migrations, RLS policies, and tested edge functions.

When do I need to apply test-driven development to backend migrations?

You need to apply test-driven development to backend migrations when tasks are classified as backend-feature or full-stack-feature requiring database changes, RPCs, or edge functions, ensuring reliable code quality through red-green-refactor cycles.

Why are reversible migrations important for full-stack feature development?

Reversible migrations are important for full-stack feature development because they eliminate the error-prone manual process of schema changes, allowing safe rollbacks while creating secure RLS policies and API endpoints.