Ai chat

From kumaran-is/claude-code-onboarding · View interactive version

Ai chat is an AI agent skill from the GitHub repository kumaran-is/claude-code-onboarding. AI chat interface patterns for Angular 21.x and Flutter 3.41.x. Use when building streaming chat UI, conversational AI assistants, copilots, token context indicators, feedback loops, multi-modal inputs, tool visualization, or AI-specific error handling. Covers streaming markdown, auto-scroll heurist

How to use this skill

Skill file

Iron Law: Load this skill before building any chat interface; never hardcode streaming or message formats without verifying against the skill's patterns.

AI Chat Interface Skill

Tech Stack: Angular 21.x (signals, daisyUI, TailwindCSS) | Flutter 3.41.x (Riverpod, Dart 3.10.9)

When to Activate

Load this skill when the task involves any of:

Pre-Code Checklist

Before writing any component:

  1. Angular: Read angular-spa skill — verify signal/OnPush/daisyUI baseline
  2. Flutter: Read flutter-mobile skill — verify Riverpod/AppSpacing/colorScheme baseline
  3. Docs: Use Context7 MCP for any library not confirmed in this session (e.g., marked, flutter_markdown)

Core Component Overview

| Component | Angular | Flutter |

|-----------|---------|---------|

| Message bubble list | ChatMessageListComponent | ChatMessageList widget |

| Streaming message display | StreamingMessageComponent | StreamedMessageWidget |

| Token context indicator | TokenIndicatorComponent | TokenIndicatorWidget |

| Chat input (multi-modal) | ChatInputComponent | ChatInputWidget |

| Feedback bar | FeedbackComponent | FeedbackBar widget |

| AI error display | AiErrorComponent | AiErrorWidget |

| Tool call visualization | ToolCallCardComponent | ToolCallCard widget |

Quick Start

See reference/quick-start.md for entry-point wiring (Angular ChatComponent + Flutter ChatScreen).

Key Patterns (brief — details in reference files)

Streaming (Angular)

Streaming (Flutter)

Token Context

AI Errors

Feedback

Multi-Modal Input

Reference Files

| File | Contents |

|------|----------|

| reference/quick-start.md | Entry-point wiring for Angular ChatComponent and Flutter ChatScreen |

| reference/streaming-patterns.md | Streaming UX, auto-scroll, memoization, stop controls |

| reference/context-management.md | Token indicator, threshold logic, summarization trigger |

| reference/ai-error-handling.md | Refusal, rate limit, context exceeded, timeout, hallucination flag |

| reference/feedback-loops.md | Thumbs up/down, copy, regenerate — Angular & Flutter |

| reference/multimodal-input.md | File attach, preview chips, auto-expand textarea/field |

Anti-Patterns — Hard Prohibitions

Post-Code Review

After implementation, dispatch these reviewer agents:

| Concern | Agent |

|---------|-------|

| Angular code quality | code-reviewer |

| Accessibility (ARIA, keyboard nav) | accessibility-auditor |

| Flutter/Riverpod patterns | riverpod-reviewer |

| Security (file uploads, content rendering) | security-reviewer |

| UI/UX consistency | ui-standards-expert |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.