
Ultimate Full-Stack Development Workflow: BMAD + Claude Code + Spec Kit + MCP + Shadcn
Overview: The Perfect AI Development Stack
This comprehensive guide combines five powerful frameworks to create the ultimate AI-driven development experience:
- BMAD Method: Specialized AI agents working as a development team
- Spec Kit: Specification-driven development methodology
- Claude Code: AI-powered IDE with agent orchestration
- MCP Memory: Persistent context management across sessions
- Shadcn UI: Modern component library with AI integration
π Complete Setup Process
Step 1: Core Framework Installation
Install BMAD Method
# In your project directory
npx bmad-method install
Install Spec Kit
# Initialize with Claude Code support
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME> --ai claude
Configure Claude Code with Kimi K2 API
Set up Claude Code with your Kimi K2 API configuration in the settings.
Step 2: MCP Memory Integration
Install Memory Keeper MCP
# Clone and setup memory persistence
git clone https://github.com/mkreyman/mcp-memory-keeper.git
cd mcp-memory-keeper
npm install && npm run build
# Add to Claude Code
claude mcp add memory-keeper npx mcp-memory-keeper
Install OpenMemory MCP (Alternative)
# For shared memory across tools
git clone https://github.com/doobidoo/mcp-memory-service.git
cd mcp-memory-service
python install.py
uv run memory server
Step 3: Shadcn UI MCP Setup
Install Shadcn MCP Server
# Add to Claude Code for automated component installation
claude mcp add shadcn-ui npx @shadcn/ui-mcp-server
Initialize Shadcn in Your Project
npx shadcn@latest init
π§ Integrated Workflow Process
Phase 1: Specification-Driven Planning
Start with Spec Kit Requirements
# In Claude Code, use Spec Kit commands
/specify Build a full-stack e-commerce platform with product management,
user authentication, shopping cart, and payment integration. Focus on
modern UX with beautiful components and responsive design.
Create Technical Plan
/plan Use React with TypeScript frontend, Node.js/Express backend,
PostgreSQL database, JWT authentication, Stripe payments, and
shadcn/ui components for beautiful UI design.
Break Down into Tasks
/tasks Create actionable development tasks with proper sequencing
Phase 2: BMAD Agent Orchestration
Analyst Phase - Deep Requirements Analysis
# Switch to BMAD workflow
*analyst
Analyze the Spec Kit requirements and create comprehensive project brief
for e-commerce platform with focus on beautiful UI and solid architecture.
Project Manager Phase - Strategic Planning
*pm
Create detailed PRD from analyst brief, incorporating Spec Kit specifications
and ensuring feature prioritization aligns with technical constraints.
Architect Phase - System Design
*architect
Design scalable full-stack architecture using React/TypeScript, Node.js,
PostgreSQL, and shadcn/ui components. Include API design, database schema,
and deployment strategy.
Phase 3: Context-Engineered Development
Document Sharding for Focused Development
*po
Shard PRD and Architecture documents into focused, actionable pieces
for efficient agent consumption and context management.
Memory-Enhanced Story Creation
# Use Memory MCP to maintain context
*sm
Create detailed story for user authentication system. Remember our
architecture decisions about JWT tokens and PostgreSQL schema design.
# Memory automatically preserves:
# - Previous architectural decisions
# - Database schema choices
# - Component library selections
# - API design patterns
Shadcn-Enhanced Development
*dev
Implement authentication UI using shadcn components. Use the MCP server
to automatically install and configure needed components like forms,
buttons, and input fields.
# Shadcn MCP automatically:
# - Installs required components
# - Provides TypeScript props
# - Ensures design consistency
# - Handles component dependencies
π― Advanced Integration Features
Multi-Agent Collaboration with Memory
Cross-Session Context Preservation
# Before hitting context limits
context_prepare_compaction
# Get checkpoint key: "auth_system_v1_2024"
# In new session
context_restore_from_checkpoint auth_system_v1_2024
# Full context restored including architectural decisions
Git-Aware Memory Channels
# Automatically organize context by git branch
git checkout feature/payment-system
# Memory MCP creates separate context channel
# No mixing of feature contexts
Automated Component Integration
Shadcn Component Discovery
# Claude Code with Shadcn MCP can now:
- Query component registry directly
- Install components with proper configurations
- Access up-to-date component documentation
- Handle component dependencies automatically
Beautiful UI Development
*dev
Create a product catalog page using shadcn components. Include:
- Card components for product display
- Skeleton loaders for better UX
- Responsive grid layouts
- Modern typography and spacing
# MCP server handles:
# - Component installation
# - TypeScript integration
# - Design system consistency
# - Accessibility features
Self-Correcting Code Architecture
QA Agent with Memory Context
*qa
Review the authentication implementation against our architectural standards.
Check for security best practices, TypeScript compliance, and shadcn
component usage patterns.
# QA agent remembers:
# - Previous code review feedback
# - Established coding standards
# - Security requirements
# - Component usage patterns
Iterative Refinement with Context
# Memory preserves lessons learned
context_add_insight "Authentication forms should always use zod validation
with shadcn form components for consistent error handling"
# Future development automatically applies insights
*dev
Create user registration form using established patterns
# Automatically applies zod validation + shadcn forms
π§ Project Structure for Integrated Workflow
your-project/
βββ .bmad/ # BMAD Method configuration
β βββ agents/ # Specialized agent configs
β βββ workflows/ # Development workflows
βββ specs/ # Spec Kit specifications
β βββ 001-auth-system/ # Feature specifications
β βββ 002-product-catalog/ # More features
βββ memory/ # MCP Memory storage
β βββ context.db # SQLite memory database
β βββ checkpoints/ # Context checkpoints
βββ docs/ # BMAD planning documents
β βββ prd/ # Product requirements (sharded)
β βββ architecture/ # Architecture docs (sharded)
β βββ briefs/ # Analysis briefs
βββ stories/ # BMAD development stories
β βββ epic-1-auth/ # Authentication epic
β βββ epic-2-products/ # Product management epic
β βββ epic-3-payments/ # Payment processing epic
βββ src/ # Application source code
β βββ components/ # Shadcn UI components
β β βββ ui/ # Base shadcn components
β β βββ custom/ # Custom components
β βββ pages/ # Application pages
β βββ api/ # Backend API routes
β βββ lib/ # Utilities and configurations
βββ package.json # Dependencies including shadcn
π Key Integration Benefits
Context Preservation Across All Tools
- Memory MCP: Maintains decisions, patterns, and progress across sessions
- BMAD Stories: Self-contained context files with complete implementation details
- Spec Kit: Persistent specifications that evolve with project needs
Beautiful UI Development
- Shadcn MCP: Automated component installation and configuration
- Design Consistency: AI agents understand and apply design system patterns
- Modern Components: Access to latest UI components with proper TypeScript support
Self-Correcting Architecture
- QA Agent: Reviews code against established patterns and standards
- Memory Insights: Preserves lessons learned for future development
- Iterative Improvement: Each cycle improves code quality and consistency
Scalable Development Process
- Feature Division: Large features broken into focused stories
- Agent Specialization: Each agent focuses on their expertise area
- Context Management: Optimal context size for each development task
π Getting Started Today
Quick Start Checklist
β Install Core Frameworks
npx bmad-method install uvx specify init project-name --ai claude
β Setup Memory Management
claude mcp add memory-keeper npx mcp-memory-keeper
β Configure Shadcn Integration
claude mcp add shadcn-ui npx @shadcn/ui-mcp-server npx shadcn@latest init
β Start Integrated Workflow
# Begin with Spec Kit /specify [Your project description] # Move to BMAD planning *analyst [Analyze specifications] # Develop with context preservation *sm [Create memory-aware stories] *dev [Build with shadcn components]
Pro Tips for Maximum Efficiency
Memory Management Best Practices
- Create checkpoints before major feature development
- Use descriptive memory keys for easy retrieval
- Regularly save architectural decisions and patterns
- Set up git-aware context channels for feature branches
Component Development Strategy
- Start with shadcn base components
- Build custom components following shadcn patterns
- Let MCP server handle component installations
- Maintain design system consistency through AI agents
Agent Orchestration Tips
- Use Analyst for deep requirement understanding
- Let Architect make technology stack decisions
- Use SM for context-rich story creation
- Let Dev focus on implementation with full context
- Use QA for maintaining code quality and standards
π― Advanced Workflows
Feature Development Cycle
# 1. Specification Phase
/specify Create user profile management with avatar upload,
personal information editing, and account settings
# 2. Planning Phase
*analyst --> *pm --> *architect --> *po
# 3. Context Preparation
context_create_checkpoint "profile_system_start"
*po shard documents for profile management feature
# 4. Development Phase
*sm Create profile management stories with shadcn form components
*dev Implement with memory of authentication patterns
*qa Review against established standards
# 5. Memory Preservation
context_add_insight "Profile forms use shadcn form + react-hook-form pattern"
context_save_progress "Profile management MVP completed"
Multi-Feature Coordination
# Feature branch development with isolated context
git checkout -b feature/shopping-cart
context_create_channel "shopping_cart"
# Develop with feature-specific context
*sm Create cart management stories
*dev Implement cart functionality
context_save_progress "Cart system completed"
# Switch features without context mixing
git checkout feature/payment-system
context_switch_channel "payment_system"
# Clean context for payment development
This integrated workflow combines the best of all five frameworks, creating a development experience thatβs both powerful and maintainable. You get the strategic planning of Spec Kit, the agent specialization of BMAD, the persistent memory of MCP, and the beautiful components of Shadcn - all orchestrated through Claude Codeβs powerful AI assistance.
*οΏ½ The result: Production-ready applications built faster, with better architecture, beautiful UI, and self-correcting code quality - exactly what you need for modern full-stack development!