/dx-wpf:devexpress-wpf-dependency-injectionfrom dx-wpf
Adds Microsoft.Extensions.DependencyInjection (optionally .NET Generic Host) to a DevExpress WPF app, wiring view models and services onto the container with composition root, registrations, lifetimes, and XAML markup extensions.
Ships in dx-wpf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Read this file to the end before acting: the order of the steps is what makes the migration safe, and skipped steps are the ones that break the app at startup.
In a git working tree, first record which files already have uncommitted changes: run the check script with -Baseline (see "Running the scripts"). Line endings are later restored only in the files you change.
Count the project's .cs and .xaml files (Glob, excluding bin/obj).
inspect (see Subagent protocol) and afterwards open only the files you are going to change. Without a sub-agent dispatch tool, inspect yourself per detection.md whatever the size: search with the patterns it lists first, then read only the files the hits point to.Either way the result is the same list: DevExpress version and package, target framework, any existing container or host, and every place a view model, view or service is created, classified per detection.md.
Apply references/wiring.md to the inspection facts. It decides:
IocServiceProvider + {dxmvvm:Ioc} or a custom markup extension (by DevExpress version and package);ServiceCollection.State the choice and the fact behind each part in one or two lines.
List every creation site from Step 1 with what it becomes, and every registration with its lifetime from references/lifetimes.md. Show the list and continue with Step 4 in the same turn, unless the user asked to review the plan before any change. The host's own approval of file edits and commands still applies. Stop only for a question the code cannot answer, one at a time, with a structured question tool if available. If nobody can answer (unattended run), take the default from lifetimes.md, say so, and continue.
The DevExpress API facts in wiring.md → "Verified API facts" need no lookup, and Microsoft.Extensions APIs are standard. Spawn docs-lookup (or, without a dispatch tool, follow agents/docs-lookup.md yourself) only when the plan needs a DevExpress API that is not in that table — typically the pre-26.1 custom markup extension, AttachServiceBehavior from references/dx-services.md, or a pattern in references/view-patterns.md you have not used before — with urls = the links those files pin for it. Every DevExpress API name you write comes from that table, a docs-lookup report, or project code already read.
If the report lists Gaps, spawn docs-lookup once more (or search yourself, once) with gaps = the whole list. Never once per gap. If it is still missing afterwards, say so in the report instead of guessing.
Before the first edit, read references/pitfalls.md in full. Its traps compile and fail only at run time — skipping it is how migrations of scaffolded view models break. Then apply, in this order:
wiring.md: the provider exists and DevExpress is given it before any XAML that resolves from it loads; the provider or host is disposed on exit.view-patterns.md and dx-services.md. Replace every new of a registered type outside the composition root with constructor injection or {dxmvvm:Ioc}; delete static singletons and service-locator helpers once nothing uses them.Change existing files with targeted edits; do not rewrite a whole existing file — it costs output and can change its line endings.
Do not rewrite view models to another style (POCO to compile-time, base classes, commands) unless pitfalls.md requires it for resolution to work; that is the devexpress-wpf-mvvm skill's job.
dotnet build and fix what it reports.scripts/check-di.ps1 (see "Running the scripts"; on AMBIGUOUS rerun it with -Project <name> of the app you migrate — it checks that project and the projects it references). It lists every type a view resolves from the container without a registration (such a type resolves to null silently — the window opens empty), every registered type still created with new outside the composition root, every static source the container now provides that is still called directly (UnitOfWorkSource.GetUnitOfWorkFactory() left in a view model or helper), every view that still creates a migrated view model itself with dxmvvm:ViewModelSource (the screen stays empty), every runtime-generated POCO view model registered as its plain class (it loses property notifications), registrations the container cannot construct (a class with no public constructor — use its own Create(...)), ViewModelSource.Create with anything but new, and startup wiring that throws ({dxmvvm:Ioc} without IocServiceProvider.Default.ConfigureServices, StartupUri = null). It also puts CRLF line endings back into the files you changed that were CRLF in git (EOL-RESTORED; nothing to do); without the Step 1 baseline it only lists them (EOL-CHANGED) — restore the ones you edited. Fix each finding and run it again until it prints OK. If PowerShell is missing or running the script is refused, do not retry in other forms — do the same checks by hand.scripts/smoke-run.ps1 (see "Running the scripts"). It starts the built app, waits 20 seconds and closes it.
RUNNING — done.CRASHED, ERROR-DIALOG, NO-WINDOW — the printed exception names the cause; find it in pitfalls.md, fix, rebuild, and run steps 2 and 3 again.EXTERNAL — the app talks to a server or a remote database, so starting it may have side effects. Ask the user (structured question tool if available) whether to start it; on yes, rerun with -AllowExternal. If nobody can answer, do not start it.AMBIGUOUS — the folder has several WPF app projects; rerun with -Project <name> naming the app you migrated.EXTERNAL all the same.{dxmvvm:Ioc Type=X} has a registration for exactly X.IServiceProvider or calls GetService/GetRequiredService on it.pitfalls.md).CreateModules()) reads a field the derived constructor sets.Done means: the build succeeds, check-di.ps1 prints OK, and the app start printed RUNNING (or was skipped for a reason above). Until then the migration is not finished: keep fixing. If you cannot get there, say so at the top of the report — "the migration is incomplete; the app may not work" — with the remaining findings, instead of reporting success.
The last output of check-di.ps1 and of the app start, quoted. What changed (composition root, registrations with lifetimes, each creation site), what was left alone and why, what could not be confirmed from documentation, and the limitations of the chosen wiring.
Run them from the project or solution folder, so no project path goes into the command: with a shell (Bash) tool, pwsh -NoProfile -File "<this-skill-dir>/scripts/<script>.ps1"; with only a PowerShell terminal, & "<this-skill-dir>/scripts/<script>.ps1" — never through a nested pwsh. <this-skill-dir> is this skill's installed directory, as is; add only the switches named in the steps (-Baseline, -AllowExternal, -Project).
Wherever a step says "spawn <name>", call the sub-agent dispatch tool in the foreground — with the host's small, fast model when the tool lets you choose one (for example haiku in Claude Code), otherwise with its default — and exactly this prompt, substituting this skill's installed directory and the inputs the step names:
Your full instructions are in
<this-skill-dir>/agents/<name>.md. Read that file first, then follow it exactly. Inputs:for_task= <the user's task>, .
Pass nothing else; never restate a sub-agent's instructions yourself.
Ioc.Default.wiring.md → "Verified API facts", docs-lookup reports, or code already in the project.docs-lookup when a dispatch tool exists — it keeps the pages out of your context. Without one, call devexpress_docs_get_content / devexpress_docs_search yourself under the same limits as agents/docs-lookup.md (pinned links first, at most 4 fetches, one search round). Without the documentation server, mark every DevExpress name you could not confirm in the report.ImplicitUsings and DevExpress packages, write System.Windows.Application and System.Windows.Controls.UserControl in full (a WinForms global using makes the short names ambiguous).agents/docs-lookup.md (opens in a new tab)agents/inspect.md (opens in a new tab)references/detection.md (opens in a new tab)references/dx-services.md (opens in a new tab)references/lifetimes.md (opens in a new tab)references/pitfalls.md (opens in a new tab)references/view-patterns.md (opens in a new tab)references/wiring.md (opens in a new tab)scripts/check-di.ps1 (opens in a new tab)scripts/smoke-run.ps1 (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub devexpress/agent-skills --plugin dx-wpf18 skills in this plugin
/devexpress-wpf-accordionBuild WPF applications with the DevExpress Accordion Control (AccordionControl) — a hierarchical navigation control for compact app sidebars and category-based UIs. Use when adding AccordionControl to a WPF project; defining static items in XAML (AccordionItem with Header, Glyph, Items); binding to a data source with ChildrenPath, ChildrenSelector, or HierarchicalDataTemplate; switching between Default and NavigationPane view modes; configuring expand modes (Single/Multiple/None); enabling the search field; integrating with OfficeNavigationBar; customizing items (header, glyph, content) and the collapsed/expanded UI. Also use when someone asks about "AccordionControl vs NavBarControl", "AccordionControl vs HamburgerMenu", "AccordionItem", "ChildrenPath", "AccordionViewMode", "dxa:", or "DevExpress.Xpf.Accordion". Covers .NET 8+ and .NET Framework 4.6.2+./devexpress-wpf-ai-chat-controlEmbed a Copilot-inspired AI chat interface in WPF apps with DevExpress AIChatControl — install DevExpress.AIIntegration.Wpf.Chat, change the project SDK to Microsoft.NET.Sdk.Razor, register an IChatClient (Azure OpenAI / OpenAI / Ollama / Semantic Kernel) with AIExtensionsContainerDesktop.Default, drop the control inside a ThemedWindow, and enable features like response streaming, Markdown rendering, file attachments, prompt suggestions, and chat history persistence. Use when building chat assistants, document Q&A, RAG dashboards, or any in-app conversational UI in WPF. Also use when someone mentions "AIChatControl", "DevExpress.AIIntegration.Wpf.Chat", "AIExtensionsContainerDesktop", "RegisterChatClient", "IChatClient", "dxaichat:", "UseStreaming", "MarkdownConvert", "FileUploadEnabled", "PromptSuggestions", "MessageSending", "MessageSent", "SaveMessages / LoadMessages", "ChatClientServiceKey", or building a "RAG" / "chat with your data" feature. Requires .NET 8+ and the WebView2 runtime.Other plugins' skills for the same job