devexpress-winforms-ai-chat

devexpress-winforms-ai-chat is a skill for Claude Code from DevExpress/agent-skills. It costs 85 tokens per session (3,267 once invoked), scanned A, original, MIT.

A setup guide for adding DevExpress’s AI chat control to a Windows desktop application built with WinForms. It covers .NET 8 or newer projects and connections to OpenAI, Azure OpenAI, or Ollama.

In plain words
What is it for?
Use it to add an assistant, copilot, or support chat to a WinForms app. It covers streaming replies, Markdown display, custom message handling, and saving or restoring chat history.
Why use it?
It removes the need to build the chat interface and its basic message handling from scratch. It explains the project setup and connection steps needed for the control to work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the dx-winforms plugin — 14 skills shipped together

Good fit Use it to add an assistant, copilot, or support chat to a WinForms app. It covers streaming replies, Markdown display, custom message handling, and saving or restoring chat history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/devexpress/agent-skills/devexpress-winforms-ai-chat
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DevExpress/agent-skills --skill devexpress-winforms-ai-chat
Clone the repo
git clone --depth 1 https://github.com/DevExpress/agent-skills

Made for: Claude Code.

Or install dx-winforms, the plugin that ships this one along with the rest of its 14 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for devexpress-winforms-ai-chat

README.md
[![agentmods](https://agentmods.dev/badge/skills/devexpress/agent-skills/devexpress-winforms-ai-chat/github.svg)](https://agentmods.dev/skills/devexpress/agent-skills/devexpress-winforms-ai-chat)
Your own site
<a href="https://agentmods.dev/skills/devexpress/agent-skills/devexpress-winforms-ai-chat"><img src="https://agentmods.dev/badge/skills/devexpress/agent-skills/devexpress-winforms-ai-chat/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for devexpress-winforms-ai-chat

Your own site · 80×15
<a href="https://agentmods.dev/skills/devexpress/agent-skills/devexpress-winforms-ai-chat"><img src="https://agentmods.dev/badge/skills/devexpress/agent-skills/devexpress-winforms-ai-chat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.03267
Opus 5 $0.00043 $0.01633
Sonnet 5 $0.00017 $0.00653
Haiku 4.5 $0.00009 $0.00327

Measured 11d ago against content hash 8496c78d2262, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

devexpress-winforms-ai-chat scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dx-winforms/skills/devexpress-winforms-ai-chat/SKILL.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DevExpress WinForms AI Chat Control

AIChatControl (namespace DevExpress.AIIntegration.WinForms.Chat) embeds a ready-made chat UI in a WinForms app. It is a Blazor/WebView2-hosted control: you register an IChatClient (OpenAI, Azure OpenAI, Ollama) once at startup, add the control to a form, and it handles the message list, streaming, Markdown rendering, and history. It is .NET 8+ only (the project must use the Microsoft.NET.Sdk.Razor SDK).

When to Use This Skill

  • Add a conversational AI chat panel to a WinForms app (assistant, copilot, support bot).
  • Register an AI provider client (OpenAI / Azure OpenAI / Ollama) for the chat control.
  • Stream responses, render Markdown safely, show a header, or add prompt suggestions.
  • Intercept user messages before they are sent (MessageSending) to inject instructions or answer yourself.
  • Save and restore chat history (SaveMessages / LoadMessages).

Before You Start — Ask the Developer

If the host agent has a structured question-asking tool available, use it to ask these questions one at a time with clear options — for example, Claude Code's AskUserQuestion tool or GitHub Copilot's askQuestions tool. If no such tool is available, ask the questions directly in the chat response before generating code.

  1. Target framework? AIChatControl requires .NET 8+ with the Microsoft.NET.Sdk.Razor SDK. On .NET Framework it is unsupported — see references/getting-started-dotnet-fw.md.
  2. Which AI provider? OpenAI, Azure OpenAI, or a local model via Ollama? This decides the provider NuGet package and the IChatClient registration.
  3. One provider or several? A single RegisterChatClient, or multiple keyed providers selected via ChatResponseProviderServiceKey?
  4. How are credentials supplied? Environment variables, a secrets store, or configuration — never hardcode API keys.
  5. Markdown output? If the model returns Markdown, enable ContentFormat = Markdown and sanitize the HTML (MarkdownConvert + HtmlSanitizer).
  6. Deployment target? Windows 10 / Server needs the WebView2 runtime distributed; it is built into Windows 11.

Read the full file on GitHub · 243 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 243 lines · 85 tokens per session scan A 8496c78d2262

Subscribe to this mod's changes

devexpress-winforms-ai-chat is a skill published in the GitHub repository DevExpress/agent-skills (52 stars, last pushed 24d ago), licensed MIT. It adds 85 tokens to every session and 3,267 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

avalonia-viewmodels-zafiro

Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI.

sickn33/agentic-awesome-skills · 26 tokens

avalonia-zafiro-development

Mandatory skills, conventions, and behavioral rules for Avalonia UI development using the Zafiro toolkit.

sickn33/agentic-awesome-skills · 27 tokens

convert-blazor-server-to-webapp

Guides conversion of a pre-.NET 8 Blazor Server app into a .NET 8+ Blazor Web App. USE FOR: migrating apps that use AddServerSideBlazor and MapBlazorHub to the AddRazorComponents/MapRazorComponents model, converting Host.cshtml to an App.razor root component, replacing blazor.server.js with blazor.web.js, migrating…

dotnet/skills · 176 tokens

create-blazor-project

Create a new ASP.NET Core web application or web site using Blazor. USE FOR: creating a new Blazor web app, scaffolding a new web project, starting a new web site, choosing render modes (Static SSR, Interactive Server, Interactive WebAssembly, Auto), running dotnet new blazor with the right options, setting up initial…

dotnet/skills · 104 tokens

use-js-interop

Add, review, or fix JavaScript interop in Blazor components. USE FOR: calling JavaScript from Blazor, calling .NET from JavaScript, collocated .razor.js modules, IJSRuntime, IJSObjectReference lifecycle, DotNetObjectReference, ElementReference, timing rules for when JS is available, IAsyncDisposable disposal of JS…

dotnet/skills · 114 tokens

coordinate-components

Share state between components that don't have a direct parent-child parameter relationship, using cascading values, scoped services with change events, or CascadingValueSource via DI. USE WHEN the user needs a CascadingParameter or CascadingValue that works across render mode boundaries, a shopping cart or…

dotnet/skills · 182 tokens