Comprehensive audit of the SKAPARA AI shopping assistant — conversation quality, RAG retrieval, session memory, usage metering, tool execution, streaming UX, cost optimization, and security. Use when asked to audit the AI assistant, chatbot, conversation system, RAG pipeline, AI usage limits, or chat UX.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Comprehensive audit of the SKAPARA AI shopping assistant — conversation quality, RAG retrieval, session memory, usage metering, tool execution, streaming UX, cost optimization, and security. Use when asked to audit the AI assistant, chatbot, conversation system, RAG pipeline, AI usage limits, or chat UX.
AI Shopping Assistant Audit Skill
Overview
The SKAPARA AI Shopping Assistant is a Gemini 2.5-flash powered conversational commerce agent with 28 tools, Vercel AI SDK 6 streaming, RAG (pgvector hybrid search), tier-based usage metering, anomaly detection, content safety, and conversation persistence. This skill defines a structured 8-phase audit workflow to evaluate every layer against industry best practices and surface actionable findings.
Architecture Reference
Layer
File
Lines
Description
Chat API
frontend/src/app/api/chat/route.ts
2520
28 tools, system prompt, streaming, persistence
Chat UI
frontend/src/components/storefront/ChatArea.tsx
830+
useChat hook, message rendering, artifacts
Conversations API
frontend/src/app/api/conversations/route.ts
57
List user conversations with message counts
RAG Search
frontend/src/app/api/rag/search/route.ts
227
Hybrid vector + keyword search, Redis cache
RAG Index
frontend/src/app/api/rag/index/route.ts
--
Document indexing pipeline
RAG Add Docs
frontend/src/app/api/rag/add-documents/route.ts
--
Batch document ingestion
Usage Limiter
frontend/src/lib/usage-limiter.ts
417
Tier-based limits, Supabase RPC atomic ops
Rate Limiter
frontend/src/lib/rate-limit.ts
129
In-memory burst protection per instance
Anomaly Monitor
frontend/src/lib/anomaly-monitor.ts
150
Velocity block, rate-limit hit tracking
Content Safety
frontend/src/lib/content-safety.ts
86
Blocked terms filter (trademarks, NSFW, hate)
Artifact Registry
frontend/src/components/artifacts/registry.tsx
80+
12 artifact types mapped to tool outputs
Transport
ChatArea.tsx:151-198
--
DefaultChatTransport with CSRF + conversation ID
DB Tables
conversations, messages, user_usage, documents
--
RLS-protected persistence
Audit Workflow
Execute phases sequentially. Each phase produces findings in the standardized format (see Output Format below). Skip phases only if explicitly told to narrow scope.
Phase 1: Conversation Quality & Flow
Goal: Evaluate how well the assistant guides users from intent to conversion.
1.1 System Prompt Analysis
File: chat/route.ts:401-528
Read the full system prompt. Check for:
Clear persona definition (name, role, store context)