Skip to main content
temp_preferences_customTHE FUTURE OF PROMPT ENGINEERING

Frontend Micro-Frontend Architecture Designer

Designs micro-frontend architectures using Module Federation, single-spa, or iframe strategies with routing, shared dependency management, and inter-app communication patterns.

terminalclaude-opus-4-6trending_upRisingcontent_copyUsed 143 timesby Community
micro-frontendsmodule-federationarchitecturescalabilityfrontend
claude-opus-4-6
0 words
System Message
You are a Micro-Frontend Architecture Specialist with hands-on experience implementing large-scale micro-frontend systems using Module Federation, single-spa, and web components for multi-team organizations. Your task is to design a production-grade micro-frontend architecture. You must design and deliver: 1. **Architecture Pattern Selection** — Evaluate and select: Module Federation (build-time + runtime), single-spa (framework-agnostic runtime), Web Components (native isolation), iframes (maximum isolation). Selection based on: team framework diversity, deployment independence requirements, shared state needs, SEO requirements 2. **Module Federation Configuration** — For Webpack 5 Module Federation: host app configuration (remotes definition, shared modules), remote app configuration (exposes, shared), SharedDependencies strategy (singleton: true for React, Angular), versioning strategy for shared modules 3. **Runtime Integration** — Dynamic remote loading with fallbacks, error boundaries around each remote, timeout handling for slow network remote loads, skeleton screens during remote loading 4. **Routing Strategy** — Host-level routing for micro-frontend activation (single-spa registerApplication), deep linking into remotes, browser history synchronization between remotes, active-when conditions 5. **Shared Services Layer** — Cross-MFE event bus using CustomEvents or RxJS Subject, shared authentication token store (accessible but not duplicated), shared design system/component library strategy 6. **CSS Isolation** — Shadow DOM for Web Components, CSS Modules scoping, CSS custom properties for theming across MFEs, style reset boundaries 7. **Independent Deployment** — CI/CD pipeline per MFE, manifest-based remote URL resolution (not hardcoded), canary deployment strategy for individual MFEs, versioned remote URLs 8. **Performance Budget** — Max bundle size per remote (150KB compressed), shared dependency contribution to host, lazy loading strategy for below-fold remotes For each architectural decision: - Explain organizational driver (Conway's Law application) - Provide configuration code - Describe failure mode and mitigation When given {&{ORG_STRUCTURE}}, {&{TECH_STACKS}}, and {&{DEPLOYMENT_REQUIREMENTS}}, produce the complete architecture.
User Message
Org Structure: {&{ORG_STRUCTURE}} Tech Stacks: {&{TECH_STACKS}} Deployment Requirements: {&{DEPLOYMENT_REQUIREMENTS}} Scale: {&{SCALE}} Design a complete micro-frontend architecture.

About this prompt

Micro-frontends are the answer to large-scale frontend organizational scaling, but their implementation complexity is often underestimated. This prompt designs a complete micro-frontend architecture for an organization with multiple teams and business domains. It evaluates Module Federation (Webpack 5), single-spa framework, and iframe-based approaches against the specific organizational constraints, then produces the complete architecture with host/remote configuration, shared dependency strategy to prevent duplicate React/Angular instances, inter-app event bus communication, shared authentication and user session management, independent deployment pipeline design, and CSS isolation strategy. The output includes a team topology map, deployment sequence, fallback strategy for failed remote loads, and a performance budget per micro-frontend.
signal_cellular_altexpertfolderMore Frontend Dev prompts

Latest Insights

Stay ahead with the latest in prompt engineering.

View blogchevron_right
Getting Started with PromptShip: From Zero to Your First Prompt in 5 MinutesArticle
person Adminschedule 5 min read

Getting Started with PromptShip: From Zero to Your First Prompt in 5 Minutes

A quick-start guide to PromptShip. Create your account, write your first prompt, test it across AI models, and organize your work. All in under 5 minutes.

AI Prompt Security: What Your Team Needs to Know Before Sharing PromptsArticle
person Adminschedule 5 min read

AI Prompt Security: What Your Team Needs to Know Before Sharing Prompts

Your prompts might contain more sensitive information than you realize. Here is how to keep your AI workflows secure without slowing your team down.

Prompt Engineering for Non-Technical Teams: A No-Jargon GuideArticle
person Adminschedule 5 min read

Prompt Engineering for Non-Technical Teams: A No-Jargon Guide

You do not need to know how to code to write great AI prompts. This guide is for marketers, writers, PMs, and anyone who uses AI but does not consider themselves technical.

How to Build a Shared Prompt Library Your Whole Team Will Actually UseArticle
person Adminschedule 5 min read

How to Build a Shared Prompt Library Your Whole Team Will Actually Use

Most team prompt libraries fail within a month. Here is how to build one that sticks, based on what we have seen work across hundreds of teams.

GPT vs Claude vs Gemini: Which AI Model Is Best for Your Prompts?Article
person Adminschedule 5 min read

GPT vs Claude vs Gemini: Which AI Model Is Best for Your Prompts?

We tested the same prompts across GPT-4o, Claude 4, and Gemini 2.5 Pro. The results surprised us. Here is what we found.

The Complete Guide to Prompt Variables (With 10 Real Examples)Article
person Adminschedule 5 min read

The Complete Guide to Prompt Variables (With 10 Real Examples)

Stop rewriting the same prompt over and over. Learn how to use variables to create reusable AI prompt templates that save hours every week.

pin_invoke

Token Counter

Real-time tokenizer for GPT & Claude.

monitoring

Cost Tracking

Analytics for model expenditure.

api

API Endpoints

Deploy prompts as managed endpoints.

rule

Auto-Eval

Quality scoring using similarity benchmarks.