motherduck-build-cfa-app

Design a secure 3-tier customer-facing analytics application on MotherDuck with per-tenant isolation.

53|3|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/motherduckdb/agent-skills --skill motherduck-build-cfa-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motherduck-build-cfa-app
Source: https://github.com/motherduckdb/agent-skills/tree/main/plugins/motherduck-skills-claude/skills/motherduck-build-cfa-app
Command: npx skills add https://github.com/motherduckdb/agent-skills --skill motherduck-build-cfa-app

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This skill helps you design a production-ready customer-facing analytics application on MotherDuck with strong per-customer isolation, safe serving patterns, and a clear implementation plan.

Core Features & Use Cases

  • Customer-facing analytics architecture: produces a recommended serving architecture (defaulting to a 3-tier CFA pattern) for embedding analytics into an external product.
  • Isolation model and routing strategy: defines how to isolate tenants (e.g., per-customer database namespaces or service-account boundaries) and how backend routing should select the correct connection.
  • Query serving requirements: ensures serving queries are validated and aligned with read scaling and consistency expectations, rather than relying on unsafe shared-database shortcuts.
  • Implementation orchestration: ties together operational steps across discovery, modeling, ingestion, querying, and connection selection by leveraging other MotherDuck skills.

Quick Start

Use motherduck-build-cfa-app to design your 3-tier embedded analytics backend by first inspecting your live MotherDuck workspace and then producing an isolation model, API contract outline, and rollout plan.

Frequently Asked Questions about motherduck-build-cfa-app

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

FAQPage Schema
How do I design a secure customer-facing analytics app with multi-tenant isolation?

Designing a secure customer-facing analytics app requires a 3-tier serving architecture with per-tenant isolation. This approach validates connection and query strategies, using database namespaces or service-account boundaries to safely route backend queries for external users.

What is the best way to isolate tenants in a DuckDB SQL embedded BI architecture?

The best way to isolate tenants in a DuckDB SQL embedded BI architecture is through per-customer database namespaces or service-account boundaries. This enforces safe serving patterns and read scaling posture rather than relying on unsafe shared-database shortcuts.

How do I set up API routing for external users in a MotherDuck production architecture?

Setting up API routing for external users in a MotherDuck production architecture involves defining a backend routing strategy that selects the correct connection per tenant. This ensures queries are validated and aligned with read scaling and consistency expectations.

Can I use a shared database for multi-tenant customer analytics instead of a 3-tier pattern?

Using a shared database for multi-tenant customer analytics is not recommended. A 3-tier pattern provides the necessary per-tenant isolation and validates query serving requirements, avoiding the safety risks and read scaling limitations of shared-database shortcuts.

What steps are needed to build a production-ready embedded analytics backend?

Building a production-ready embedded analytics backend involves inspecting your live workspace, producing an isolation model, drafting an API contract outline, and creating a rollout plan. This orchestrates discovery, modeling, ingestion, querying, and connection selection.