/xaf-logic-explainer:xaf-application-knowledgefrom xaf-logic-explainer
Answers questions about a DevExpress XAF application using facts extracted from its own source code. Provides inventories of entities, controllers, actions, properties, validation rules, calculated expressions, navigation structure, and Model Editor customizations. Use before writing code against the application to confirm what exists.
Ships in xaf-logic-explainer. 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.
None: SKILL.md is the whole skill.
You have MCP tools that read this application's source code. Use them instead of guessing, and instead of answering from general XAF knowledge.
There are three different kinds of knowledge involved in working on an XAF codebase, and confusing them is what produces confident wrong answers:
| Question | Where the answer is |
|---|---|
| "How do XAF controllers work?" | The DevExpress agent skills (dx-xaf) |
"What does the documentation say about PopupWindowShowAction?" | The DevExpress documentation MCP server |
"What does ApproveInvoiceController do in this app?" | These tools |
These tools know nothing about XAF in general. They know everything about the application in front
of you. Install dx-xaf alongside this for the framework half.
Call xaf_overview before answering anything about the application as a whole. It returns what
the application is, plus the complete list of entities, controllers, actions and navigation groups.
One call usually establishes enough to answer, or to know which detail tool to call next.
| Tool | Use it when |
|---|---|
xaf_overview | Any question about the application as a whole; always a safe first call |
xaf_search | You know roughly what you are looking for but not where it lives |
xaf_entity | Before writing or changing code that touches an entity |
xaf_controller | Asked what a button, command or action actually does — returns the real handler code |
xaf_rules | Asked what the system requires, forbids or computes |
xaf_model | Asked how a screen or list is configured |
xaf_walkthrough | Asked how something works, not what exists — traces one process end to end, and names the calls it could not follow |
xaf_refresh | Only if you believe the cached view is stale; changes are detected automatically |
This is the most important thing to understand about these tools, and the easiest to misuse.
Extraction reads the whole source tree. It does not sample, and it does not stop early. So when
xaf_overview lists nineteen entities, that is every entity the application has, and when
xaf_entity reports that something does not exist, it genuinely does not exist.
Do not treat a negative result as "I must have looked in the wrong place" and then write code against an invented type. Say plainly that it does not exist, and offer to create it. An agent that invents a plausible-sounding entity is the specific failure these tools exist to prevent.
Match the ORM. xaf_overview reports whether this application uses XPO or EF Core. They are
both legitimate XAF and their base classes share names — BaseObject exists in both, in different
namespaces — so mixing them produces code that looks right and does not compile. If the application
uses XPO, never suggest DbContext, DbSet<T>, OnModelCreating or EF migrations. If it uses EF
Core, never suggest Session, XPCollection<T> or UnitOfWork.
Criteria strings are not SQL and not C#. XAF filters, validates and styles with its own
expression dialect. xaf_entity and xaf_rules return the real expressions this codebase uses;
follow their form rather than inventing a syntax.
Some behavior exists only in XML. Captions, list columns, filters and view settings can be set
in the Model Editor, and those override what the C# implies. If a question is about how a screen
behaves, check xaf_model before concluding anything from the business classes alone.
Prefer the pattern already in the codebase. XAF usually offers several ways to express one
idea. xaf_entity shows whether this team names associations explicitly, whether calculated
properties use PersistentAlias, and whether validation is attributes or controller code. Match
what is there; the goal is a change that survives review, not one that merely compiles.
The MCP server runs through the xaflogic CLI:
dotnet tool install -g XafLogicExplainer.Cli
xaflogic config --project "C:\MySolution\MyApp.Module"
The server finds the module automatically when started from a solution directory, so the config
step is only needed for an unusual layout or several projects at once.
The same knowledge can be written to files instead:
xaflogic agents --project "C:\MySolution\MyApp.Module"
That produces AGENTS.md with the ground rules and inventories, plus detail files in .xaflogic/.
Useful for agents without MCP support, and for committing the context so a team shares it. The MCP
tools are better where available: they read live source and cannot go stale.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub peopleworks/xaflogicexplainer --plugin xaf-logic-explainer