Intent modelers integration

From IntentArchitect/Intent.Modules.NET · View interactive version

Intent modelers integration is an AI agent skill from the GitHub repository IntentArchitect/Intent.Modules.NET. Look up install identity, entry points, element/association/stereotype references, and the complete member-level API of every model type (e.g. what ClassModel, DTOModel, CommandModel or ComponentModel expose) for Intent's built-in Domain, Services, Eventing, or User Interface designer and their sepa

How to use this skill

Skill file

Intent Modelers Integration

[!TIP]

Read more if you want to know about the exact three-file wiring recipe and the shared SDK types every model returns, or a specific designer's elements/associations/stereotypes and the full public API of every model type (§9 of each file), or its extension modules' install identities and model API (the *-extensions.md files) in full:

* Integration Recipe | Domain | Services | Eventing | User Interface

* Extension modules, installed separately from their designer: Domain extensions (Domain Events, Repositories, Domain Services, Stored Procedures, Value Objects) | Services extensions (CQRS Commands/Queries, Domain Interactions, Event Interactions, GraphQL, Proxy Interactions) | User Interface extensions (Core widgets such as Button/Form/Table/Dialog, Service Proxies) (Eventing has none)

(To conserve tokens, only read the resource file(s) for the designer(s) your module actually touches.)

Musts

  1. Four identities, never interchangeable. For any designer module X: NuGet PackageId = Intent.Modules.Modelers.X (.csproj PackageReference); Intent module id = Intent.Modelers.X — no Modules. — (.imodspec <dependency>, modules.config); API namespace = Intent.Modelers.X.Api (using); assembly = Intent.Modules.Modelers.X.dll. Rule of thumb: NuGet package = Intent.Modules. + module id minus its leading Intent.. The split is a deliberate RootNamespace/PackageId mismatch baked into the designer's own .csproj, not an accident — see resources/integration-recipe.md for the worked, verbatim example.
  2. The dependency must land in three places at the same version, but you only author two of them. Hand-write the .csproj PackageReference (compile-time) and the .imodspec <dependency> (install-time). modules.config is never hand-edited — it records what is actually installed, and a bad edit corrupts the application's module state. Its entry comes from installing the designer module into the module-building application, metadata-only (Must #7).
  3. Reach elements through the generated extension chain — _metadataManager.<Designer>(app).Get<X>Models(), never raw GetElementsOfType with a hand-typed GUID.
  4. Bind template registrations to the typed model — FilePerModelTemplateRegistration<ClassModel> (or the designer's own equivalent model type).
  5. To attach your own stereotypes to a foreign designer, model them in your own Module Builder package and ship <install target="Domain;Module Builder" …> (substituting the target designer name(s)).
  6. Check every extension module's identity independently — never infer one extension module's NuGet id / module id / namespace pattern from a sibling. The four designers' extension modules are inconsistent with each other on this (see each designer's *-extensions.md resource file, §1 "Install identities"); the only safe move is reading that module's own .csproj/.imodspec, every time.
  7. Install a designer module metadata-only. In the Installation Settings dialog tick Install Designer Metadata and leave the rest clear. A module-building application references a designer so its element types become visible to model against — it is not running that designer's generation. Ticking Enable Factory Extensions, Install Application Settings or Install Template Outputs pulls the referenced module's factory extensions, settings and generated output into an application whose only job is to define a module — which is how a module-builder starts emitting code nobody asked for. Install Designers is the one rare addition: use it only when the element types you need still do not appear with metadata alone.

Must Nots

  1. Never write Intent.Modules.Modelers.Domain as an .imodspec dependency id, or Intent.Modelers.Domain as a PackageReference — both fail, and confusingly late.
  2. Never add a PackageReference to Intent.Modules.<X>.Api — no such package exists. (A .Api suffix on a module id like Intent.Entities.Repositories.Api is a different thing entirely: a role/contract module.)
  3. Never let the three versions drift — published modules do (e.g. Services.DomainInteractions' .csproj reference trails its own .imodspec dependency floor); don't copy a stale number from a resource file without checking the current one. A resource's "source at" version can also be newer than your feed offers: take the version from run_solution_query → searchAvailableModules("<module id>"), and when you raise a designer package, raise Intent.Modules.Common and Intent.SoftwareFactory.SDK to what it depends on (see resources/integration-recipe.md §1, NU1605).
  4. Never hand-edit a file under Api/ carrying [assembly: IntentTemplate(...)] — it is generated.
  5. Never assume an extension module's namespace mirrors its parent designer, or that its module id keeps (or drops) the Modules. segment the way another extension module did — each one is independently inconsistent (e.g. Domain.StoredProcedures keeps Modules. in both its module id and namespace where its four siblings drop it, and Services.EventInteractions' namespace has no .Api segment at all).
  6. Never hand-edit modules.config to add, change or "fix" a dependency — including typing includeAssets="none" yourself. That attribute is the result of a metadata-only install, not an input; if it is missing, the install was done with the wrong boxes ticked, so redo the install rather than patching the file.
  7. Reflecting over or decompiling a designer, SDK or Common assembly (Assembly.LoadFrom, GetProperties(), a decompiler, a throwaway console app) to discover what a model exposes is discouraged for anything the resources in this skill already cover. §9 "Model API reference" in each designer file lists every public type and member of the base designer, §2 of its *-extensions.md file does the same for its extension modules, and resources/integration-recipe.md §6 covers the SDK types they return (IElement, ITypeReference, IStereotype, mappings). Check those first. Fall back to the package's XML docs or source only when a member you need is not listed, for example because you are pinned to a different version.
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.