prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub

Model UI

Model UI is a lightweight, reliable AI chat interface where users type English prompts and interact with connected AI models through a clean, fast, and customizable UI.

p
@mirm14354
about 6 hours agoNovember 29, 2026 at 12:27 PM
Vibe Coding•UIAI Agent
1

Content

PROJECT: Model UI

ROLE:
Act as a senior software architect, full-stack developer, UI/UX designer, AI integration engineer, QA engineer, DevOps engineer, and security engineer.

GOAL:
Build a complete, production-ready AI chat and model-interface application called Model UI.

TARGET USERS:
Developers, AI enthusiasts, teams, and businesses that want a simple, stable, and customizable interface to chat with AI models through API-connected providers without relying on a complex or buggy alternative.

BUSINESS CONTEXT:
Model UI provides a clean web interface for interacting with AI models. Users type English prompts, select a connected model, send messages, receive responses, manage conversations, and configure AI providers securely. The platform focuses on reliability, performance, simplicity, and extensibility.

CORE FEATURES:
1. User registration, login, logout, password reset, profile management, and multi-device session management.
2. Create, rename, search, pin, archive, delete, and restore chat conversations.
3. Send English prompts to connected AI models and receive streaming responses.
4. Select AI model, provider, temperature, max tokens, top_p, system prompt, and response format before sending a message.
5. Support multiple AI providers through a provider-agnostic API integration layer, including OpenAI, Anthropic, Google Gemini, Azure OpenAI, Ollama, LM Studio, vLLM, and custom OpenAI-compatible endpoints.
6. Store and manage API keys securely with encryption, masking, expiration, usage limits, and provider health checks.
7. Create and manage reusable prompt templates with variables, categories, tags, and favorites.
8. Conversation history with message editing, regeneration, copy, export, branching, and deletion.
9. Attach files to chats, including images, PDFs, text files, Markdown files, and code files, where the selected model supports them.
10. Code block rendering with syntax highlighting, copy button, language label, and download option.
11. Markdown rendering for headings, lists, tables, links, images, blockquotes, and inline code.
12. Real-time streaming responses with stop generation, retry, regenerate, and error recovery.
13. Token usage, cost estimation, response latency, and model information displayed for each response.
14. Offline draft saving so users do not lose typed prompts if the connection is interrupted.
15. Keyboard shortcuts for new chat, search, send message, stop generation, and switch models.
16. Dark mode, light mode, system theme, custom accent color, and font-size accessibility settings.
17. Import and export conversations as JSON, Markdown, or plain text.
18. Admin dashboard for user management, provider management, usage analytics, model availability, and abuse monitoring.
19. Audit logs for login events, provider configuration changes, API key access, model calls, and administrative actions.

USER STORIES:
- As a user, I want to type an English prompt and receive an AI response so that I can complete my task quickly.
- As a user, I want to choose between different AI models so that I can use the best model for my needs.
- As a developer, I want to connect my own AI provider API so that I can use my preferred model.
- As a user, I want to save prompt templates so that I can reuse common instructions.
- As a user, I want to view conversation history so that I can continue previous discussions.
- As a user, I want to export a conversation so that I can save or share important results.
- As an admin, I want to manage providers and API keys so that I can maintain secure and reliable AI access.

TECH STACK:
- Frontend: Next.js + TypeScript + Tailwind CSS
- Backend: Node.js + NestJS + TypeScript
- Database: PostgreSQL with Prisma ORM
- Cache and rate limiting: Redis
- Authentication: JWT authentication with refresh tokens
- AI provider integration: OpenAI-compatible API client with provider abstraction
- Streaming: Server-Sent Events or WebSockets
- File storage: AWS S3, Cloudflare R2, or MinIO
- Validation: Zod
- Testing: Vitest, Supertest, and Playwright
- Deployment: Docker, docker-compose, GitHub Actions, and a cloud platform such as Vercel, Railway, Render, or AWS

ARCHITECTURE:
- Use a clean, modular, scalable architecture.
- Separate UI, chat service, provider integration layer, model registry, prompt-template service, file service, usage tracking, and administration.
- Use a provider-agnostic adapter pattern so new AI providers can be added without changing the core chat engine.
- Use streaming responses to display AI output progressively.
- Store conversations, messages, model settings, and usage metadata in a relational database.
- Use Redis for session caching, rate limiting, and temporary streaming state.
- Use centralized error handling, structured logs, distributed tracing, and correlation IDs.
- Make the application maintainable, testable, and production-ready.

USER INTERFACE:
- Build a modern, clean, fast, responsive, and accessible UI.
- Create a sidebar with conversation list, search, pinned chats, archived chats, and new-chat button.
- Create a main chat area with message bubbles, streaming indicator, model selector, settings panel, and input box.
- Build a prompt input with multiline support, file attachment, prompt-template insertion, token counter, and send/stop buttons.
- Build a message actions menu with copy, regenerate, edit, delete, branch, and export.
- Build a settings page for AI providers, API keys, default model, appearance, shortcuts, privacy, and data export.
- Build an admin dashboard with users, providers, models, usage, errors, and audit logs.
- Include empty states, loading states, error states, offline indicators, and retry actions.
- Support dark mode, light mode, and system theme.
- Ensure keyboard navigation, screen-reader support, and accessible color contrast.

SECURITY & PRIVACY:
- Never hardcode API keys, provider tokens, passwords, or secrets.
- Store AI provider API keys encrypted at rest using a secure key-management approach.
- Use environment variables for infrastructure configuration and provide a .env.example file.
- Mask API keys, tokens, authorization headers, and sensitive fields in UI, logs, API responses, and audit logs.
- Validate and sanitize all user input on both client and server.
- Sanitize rendered Markdown and HTML to prevent XSS attacks.
- Protect against SQL injection, CSRF, clickjacking, prompt injection abuse, and insecure file uploads.
- Hash passwords using bcrypt or Argon2.
- Implement role-based access control and server-side authorization for conversations, providers, API keys, and administrative actions.
- Require explicit confirmation before deleting conversations, API keys, providers, or account data.
- Do not expose sensitive data, stack traces, tokens, internal provider errors, or internal system details in logs or API responses.
- Apply rate limiting to authentication, chat requests, file uploads, and provider API calls.
- Use secure cookies, token expiration, refresh-token rotation, and device-session revocation.
- Allow users to control whether their conversations are stored, used for analytics, or shared with administrators.

DATA MODEL:
- User: id, name, email, passwordHash, avatarUrl, role, organizationId, emailVerified, createdAt, updatedAt.
- Organization: id, name, ownerId, plan, createdAt, updatedAt.
- OrganizationMember: id, organizationId, userId, role, joinedAt.
- AiProvider: id, organizationId, name, providerType, baseUrl, apiVersion, status, isDefault, createdAt, updatedAt.
- AiCredential: id, organizationId, aiProviderId, name, encryptedApiKey, keyVersion, usageLimit, lastUsedAt, status, createdBy, createdAt, updatedAt.
- AiModel: id, aiProviderId, modelId, displayName, contextWindow, supportsStreaming, supportsFiles, supportsTools, isActive, createdAt, updatedAt.
- Conversation: id, userId, organizationId, title, modelId, systemPrompt, temperature, maxTokens, topP, isPinned, isArchived, createdAt, updatedAt, deletedAt.
- Message: id, conversationId, role, content, modelId, providerId, tokenUsage, latencyMs, status, createdAt, updatedAt.
- MessageAttachment: id, messageId, uploaderId, fileUrl, fileName, fileSize, mimeType, checksum, createdAt.
- PromptTemplate: id, userId, organizationId, title, content, variablesJson, category, tags, isFavorite, createdAt, updatedAt.
- UsageRecord: id, userId, organizationId, providerId, modelId, conversationId, promptTokens, completionTokens, totalTokens, estimatedCost, createdAt.
- AuditLog: id, organizationId, userId, action, resourceType, resourceId, metadata, ipAddress, createdAt.

BUSINESS RULES:
- Users must be able to type and send prompts in English.
- The interface must clearly display the selected model, provider, temperature, max tokens, and response status.
- A message must not be sent if no active provider or model is selected.
- Streaming must be cancellable at any time.
- If a provider request fails, the user must see a clear error and be able to retry or regenerate.
- API keys must never be returned in plain text after creation.
- Deleted conversations must use soft delete with recovery support.
- Only authorized users can access their own conversations and provider configurations.

TESTING & QUALITY:
- Write unit tests for provider adapters, prompt validation, token usage calculation, streaming state, markdown sanitization, and settings validation.
- Write integration tests for authentication, conversation CRUD, message sending, streaming, provider selection, file upload, and usage tracking.
- Write end-to-end tests for registration, login, creating a chat, sending an English prompt, receiving a streamed response, regenerating a response, exporting a chat, and deleting a conversation.
- Include tests for invalid input, unauthorized access, expired API keys, provider failures, streaming interruption, XSS attempts, and destructive actions.
- Ensure the project passes linting, type checking, build, and all tests.

DELIVERABLES:
- Complete source code with no placeholders or unfinished features.
- Frontend source code for the chat interface.
- Backend source code for authentication, conversations, AI provider integration, streaming, usage tracking, and administration.
- README with project overview, setup, environment variables, database setup, run commands, and deployment instructions.
- Configuration files for development, testing, and production.
- Database migrations and optional seed data.
- API documentation or endpoint reference.
- Docker and docker-compose configuration.
- CI/CD pipeline or deployment instructions.
- Test suite and instructions to run tests.

IMPLEMENTATION RULES:
- Build real working features, not mockups or placeholder code.
- Implement every required feature completely.
- Handle errors gracefully with meaningful user-facing messages.
- Use clean, modular, maintainable, and well-organized code.
- Avoid deprecated libraries, insecure patterns, and unnecessary dependencies.
- If information is missing, state assumptions clearly before implementing.
- Do not claim that a feature works unless it is implemented and verified through tests or a runnable flow.
- If the task is too large for one response, create a phased implementation plan first, then implement phase by phase.

OUTPUT:
1. Start with a short architecture plan, technology decisions, and project structure.
2. Then implement the application phase by phase.
3. After each phase, summarize what was completed and what remains.
4. At the end, provide:
   - Completed features
   - Files created
   - Database schema
   - API endpoints
   - AI provider integration design
   - Tests run

Comments (0)

Related Skills

ExpertLens-Lite

Skill

ExpertLens-Lite turns any AI into a genuine expert thinking partner. It diagnoses the real problem, adapts reasoning to the domain, self-audits before answering, gives real recommendations instead of hedged lists, and can consult other AI models for tougher calls. Platform-agnostic — any LLM.

A@ashutosh02mpro
1

MCP Builder

Skill

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

F@f
2

Web Application Testing Skill (Imported)

Skill

Toolkit for interacting with and testing local web applications using Playwright.

M@daiyigr
0

Skill Maintenance Audit

Skill

A read-only maintenance audit workflow for Agent Skills. Reviews existing skills for stale or version-sensitive guidance, trigger conflicts, overlap, broken references, unsafe helper behavior, specification drift, context bloat, and outdated technology assumptions. Verifies material freshness claims against authoritative sources and reports only evidence-backed maintenance findings without modifying the audited skills.

s@songolge-lab
2