add-association-type

Creates a new Association Settings type with configured source and target ends in the Module Builder designer.

23|10|Updated Aug 31, 2017
One-click install
npx skills add https://github.com/IntentArchitect/Intent.Modules --skill add-association-type-intentarchitect
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: add-association-type
Source: https://github.com/IntentArchitect/Intent.Modules/tree/main/Tests/ModuleBuilderSkills/.opencode/skills/add-association-type
Command: npx skills add https://github.com/IntentArchitect/Intent.Modules --skill add-association-type-intentarchitect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? When building Intent Architect modules, you sometimes need a brand-new kind of association that users can draw between two element types, and no existing association type covers it. This Skill guides the full creation of an Association Settings definition so the new association is drawable, navigable, and correctly wired into the designer. ## Core Features & Use Cases - Association Type Definition: Creates an Association Settings element under the correct Designer Settings node with source and target end configuration, including target type GUIDs, navigability, and C# API property names. - Traits and Mapping Options: Applies Processing Action or Processing Handler traits and adds Mapping Options on the target end so mapping dialogs work correctly. - Creation Option Wiring: Connects the association to an element or package extension context menu so users can actually draw it, then runs the Software Factory to verify generated C# models compile. - Use Case: You need a "Publish Integration Event" association drawable from Command elements to Integration Event elements in the Services designer, with a mapping dialog on the target end. ## Quick Start Ask the assistant to create a new association type named Publish Integration Event from Command elements to Integration Event elements in the Services designer.

Frequently Asked Questions about add-association-type

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new association type in the Intent Architect Module Builder?▼

Create an Association Settings element under the Designer Settings node linked to the target designer GUID, then configure its source and target ends with the Settings stereotype, target type GUIDs, and API property names. Finally wire an Association Creation Option into an element extension context menu.

What do I need before adding an association type in Module Builder?▼

You need the typeId GUIDs of every element type both ends can connect to, found via designer element lookup or the SpecializationTypeId in generated model classes. You also need the target designer GUID, such as Domain or Services.

Why does my new association not appear on any element's context menu?▼

Defining Association Settings alone adds nothing to the UI. You must add an Association Creation Option to the source element's extension context menu, referencing the target end of the association.

Should the mapping option go on the source or target end of an association?▼

Mapping options belong on the target end, since that is the action end representing what is published, sent, or invoked. Placing them on the source end is a common mistake that breaks mapping behavior.

When should I not use this association type skill?▼

Do not use it to add a context-menu extension to an existing foreign element or association; that scenario belongs to the designer extension workflow. It is only for defining a genuinely new drawable association kind.