ai-chat
Skill36 starsChanged 6 months agoMITView on GitHub
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 heuristics, memoized rendering, token limit UI, regeneration controls, thumbs up/down feedback, and AI error states.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- AceDataCloud/Skillstheir own version, first seen Oct 5, 2026
- rezkam/boring-but-goodtheir own version, first seen Aug 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- AceDataCloud/Skills★ 17same name
- rezkam/boring-but-good★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository157 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a2ui-angularSkill
- accessibility-auditSkill
- adk-deploy-guideSkill
- adk-dev-guideSkill
- adk-eval-guideSkill
- adk-observability-guideSkill
- agentic-ai-coding-standardSkill
- agentic-ai-devSkill
- ai-auditSkill
- ai-decision-recordSkill
- ai-incident-responseSkill
- ai-launch-checkSkill
- ai-playbookSkill
- angular-best-practicesSkill
- angularSkill
- angular-spaSkill
- angular-ui-patternsSkill
- api-design-principlesSkill
- app-store-optimizationSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-designSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-release-flowSkill
- asc-signing-setupSkill
- asc-submission-healthSkill
- asc-testflight-orchestrationSkill
- browser-testingSkill
- changelog-generatorSkill
- claude-actions-auditorSkill
- clean-codeSkill
- codebase-onboardingSkill
- code-explainerSkill
- code-reviewerSkill
- code-simplifierSkill
- comment-analyzerSkill
- database-schema-designerSkill
- ddd-architectSkill
- decision-frameworksSkill
- dedup-code-agentSkill
- deployment-ci-cdSkill
- design-systemSkill
- dockerSkill
- documentation-generationSkill
- domain-finderSkill
- error-detectiveSkill
- eval-guideSkill
- feature-forgeSkill
- firebase-basicsSkill
- firebase-hosting-basicsSkill
- fixing-accessibilitySkill
- fixing-motion-performanceSkill
- flutter-animationsSkill
- flutter-genuiSkill
- flutter-mobileSkill
- flutter-security-expertSkill
- frontend-designSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 4 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Before writing any component:
- Very specific: line 37
Angular: Read angular-spa skill — verify signal/OnPush/daisyUI baseline
- Very specific: line 38
Flutter: Read flutter-mobile skill — verify Riverpod/AppSpacing/colorScheme baseline
- Very specific: line 39
Docs: Use Context7 MCP for any library not confirmed in this session (e.g., marked, flutter_markdown)
- Very specific: line 60
Use AbortController to cancel in-flight SSE streams
- Very specific: line 68
Check MediaQuery.of(context).disableAnimations before scroll animations
- Distinctive: line 73
Always display "~N messages remaining" not raw token numbers
- Very specific: line 76
Every AI error type has a distinct UI state — see reference/ai-error-handling.md
- Distinctive: line 77
NEVER swallow AI errors silently — always show user-visible feedback with an action
- Very specific: line 105
NEVER: use constructor DI in Angular — use inject()
- Very specific: line 106
NEVER: use @Input()/@Output() decorators — use input(), output(), model() signals
- Very specific: line 107
NEVER: use raw EdgeInsets numeric literals in Flutter — use AppSpacing tokens
- Very specific: line 108
NEVER: use Color(0x...) literals in Flutter — use Theme.of(context).colorScheme
- Distinctive: line 112
After implementation, dispatch these reviewer agents:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
- Streaming LLM response rendering (SSE / chunked HTTP)
- Chat message list with assistant/user bubbles
- Token context window indicators
- Regenerate / stop generation controls
- Thumbs up/down feedback collection
- Multi-modal input (file/image attachment in a chat box)
- AI-specific error states (refusal, rate limit, context exceeded)
- Tool call visualization in the message thread
Pre-Code Checklist
Before writing any component:
- Angular: Read
angular-spaskill — verify signal/OnPush/daisyUI baseline - Flutter: Read
flutter-mobileskill — verify Riverpod/AppSpacing/colorScheme baseline - Docs: Use
Context7MCP 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)
- Use
AbortControllerto cancel in-flight SSE streams - Auto-scroll: scroll only when user is within 100px of bottom
computed()signal to derive rendered markdown — prevents re-parsing on every chunkaria-live="polite"wraps the message list
Streaming (Flutter)
AsyncNotifierwithStream.listenupdatesstateincrementallyScrollController+addPostFrameCallbackfor auto-scroll after frame- Check
MediaQuery.of(context).disableAnimationsbefore scroll animations
Token Context
- Angular:
TokenIndicatorComponentuses daisyUIprogress+text-warning/text-errorclasses at 80%/100% thresholds - Flutter:
LinearProgressIndicatorwithcolorScheme.error/colorScheme.tertiary - Always display "~N messages remaining" not raw token numbers
AI Errors
- Every AI error type has a distinct UI state — see
reference/ai-error-handling.md - NEVER swallow AI errors silently — always show user-visible feedback with an action
Feedback
- Angular:
signal<'up'|'down'|null>tracks selected thumb; regenerate re-emits prompt - Flutter:
HapticFeedback.lightImpact()on thumb press;colorScheme.primaryfor active state
Multi-Modal Input
- Angular: Angular CDK drag-drop for file zone;
Entersends,Shift+Enternewlines - Flutter:
image_pickerfor attachments;maxLines: nullfor auto-expanding TextField
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
- NEVER re-parse markdown on every streaming chunk — memoize with
computed()/ derived state - NEVER auto-scroll unconditionally — it steals user scroll position mid-read
- NEVER display raw token counts to end users — use human-readable approximations
- NEVER silently ignore AI error responses — every error must log + show user feedback
- NEVER hardcode colors for error/warning states — use daisyUI tokens or
colorScheme - NEVER use constructor DI in Angular — use
inject() - NEVER use
@Input()/@Output()decorators — useinput(),output(),model()signals - NEVER use raw
EdgeInsetsnumeric literals in Flutter — useAppSpacingtokens - NEVER use
Color(0x...)literals in Flutter — useTheme.of(context).colorScheme
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 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

