copilotkit-pitch-deck
БесплатноБез исполняемых скриптовНе проверенProduction-ready CopilotKit pitch deck wizard in main application. Use when enhancing AI conversation features, optimizing Edge Function integration…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
CopilotKit Pitch Deck Wizard - Production
Purpose
Maintain and enhance the production-ready CopilotKit pitch deck wizard in the main Medellin Spark application. Uses CopilotKit Cloud API + Supabase Edge Functions (NOT LangGraph three-tier architecture).
Architecture Overview
Current Production Setup:
Frontend (:8080) --> Supabase Edge Functions --> OpenAI API
React 19 + Vite Deno Runtime (cloud) GPT-4o-mini
Key Components:
- Frontend:
src/pages/PitchDeckWizard.tsx- CopilotKit v1.10.6 with chat interface - Edge Functions:
supabase/functions/- pitch-deck-assistant, generate-pitch-deck, chat - Database: Supabase PostgreSQL with RLS enabled
- Status: 🟢 PRODUCTION READY (98/100)
Production Status
Tracker: /home/sk/template-copilot-kit-py/mvp-plan/progress/00-PRODUCTION-READINESS-TRACKER.md
Latest Validation: /home/sk/template-copilot-kit-py/mvp-plan/progress/01-FINAL-PRODUCTION-VALIDATION.md
Current Implementation ✅
CopilotKit Integration (src/pages/PitchDeckWizard.tsx:189-192):
<CopilotKit
publicApiKey={import.meta.env.VITE_COPILOT_CLOUD_PUBLIC_API_KEY}
showDevConsole={import.meta.env.DEV}
>
{/* Chat interface and wizard content */}
</CopilotKit>
Edge Functions (All ACTIVE):
- chat (v16) - OpenAI proxy for secure API calls
- pitch-deck-assistant (v26) - Conversation handler with progress tracking
- generate-pitch-deck (v28) - Full deck generation (10 slides)
- agent-example (v8) - Agent SDK demonstration
Features Working ✅:
- AI-powered chat interface
- Progress tracking (0-100%)
- Data collection via conversation
- Generate deck button at 80%+ completion
- Presentation viewer/editor
- Real-time updates
Performance Metrics
Build Performance:
Build Time: 4.71s ✅ (Target: <5s)
Bundle Size: 554KB ✅ (50% reduction from 1,109KB)
Gzip: 151KB ✅ (73% compression)
Warnings: 0 ✅
Production Quality:
TypeScript Errors: 0 ✅
Linter Warnings: 0 ✅
Routes Working: 24/24 ✅
Security Score: 100% ✅
Overall Score: 98/100 ✅
Common Issues & Solutions
Issue 1: Chat Interface Not Responding
Cause: Edge Function connection issue Check:
# Verify Edge Functions deployed
supabase functions list
# Check function logs
supabase functions logs pitch-deck-assistant --tail
Fix: Ensure all Edge Functions deployed and ACTIVE
Issue 2: API Key Errors
Cause: Missing or invalid OpenAI API key in Edge Function Check: Edge Function secrets
# View secrets (won't show values)
supabase secrets list
# Set OpenAI key if missing
supabase secrets set OPENAI_API_KEY=sk-...
Fix: Ensure OPENAI_API_KEY set as Supabase secret
Issue 3: Progress Bar Not Updating
Cause: Edge Function not returning completeness data Check: Browser console for response data Debug:
// In PitchDeckWizard.tsx - check response structure
console.log('Response from Edge Function:', response);
// Should include: { completeness: number, ... }
Issue 4: Build Errors
Cause: TypeScript errors or missing dependencies Check:
# Type check
pnpm tsc --noEmit
# Check for missing dependencies
pnpm install
Fix: Resolve TypeScript errors before building
Issue 5: Local Development Server Issues
Cause: Port conflicts or build cache Fix:
# Kill any processes on port 8080
lsof -ti :8080 | xargs kill -9
# Clear Vite cache
rm -rf node_modules/.vite
# Restart dev server
pnpm dev
Testing Workflow
1. Start Development Server
cd /home/sk/template-copilot-kit-py
pnpm dev
Expected:
VITE v7.x ready in 234 ms
➜ Local: http://localhost:8080/
2. Navigate to Pitch Deck Wizard
URL: http://localhost:8080/pitch-deck-wizard
Check:
- ✅ Page loads without errors
- ✅ CopilotKit chat interface visible
- ✅ No console errors
- ✅ Dev console badge visible (in DEV mode)
3. Test Chat Flow
- Send: "I want to create a pitch deck for TestCorp"
- Verify: AI responds with questions
- Send: "We're in AI software industry"
- Verify: Conversation continues
- Continue: Answer 4-5 more questions
- Verify: Progress tracking works (if implemented)
- Verify: "Generate Deck" appears at completion
4. Test Deck Generation
- Click: "Generate Deck" button
- Verify: Loading state shows
- Wait: 5-10 seconds for generation
- Verify: Redirect to
/presentations/{id}/outline - Verify: All 10 slides render correctly
5. Production Build Test
# Build for production
pnpm build
# Should complete in <5s with 0 warnings
# Check output for bundle sizes
Key Files Reference
Frontend Files (Main Application)
src/pages/PitchDeckWizard.tsx- CopilotKit integration and chat interfacesrc/lib/apiClient.ts- Edge Function API callspackage.json- Dependencies a
Установить copilotkit-pitch-deck в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл copilotkit-pitch-deck?
Production-ready CopilotKit pitch deck wizard in main application. Use when enhancing AI conversation features, optimizing Edge Function integration, debugging chat interface, or improving pitch deck generation flow. System is PRODUCTION READY (98/100).
Как установить скилл copilotkit-pitch-deck?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл copilotkit-pitch-deck запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic