/syncfusion-aspnet-core:syncfusion-aspnetcore-diagramfrom Syncfusion ASP.NET Core UI Controls
Implement Syncfusion ASP.NET Core Diagram component (EJ2 Tag Helper `ejs-diagram`) for building interactive diagrams in Razor Pages or MVC applications. Use this skill when working with org charts, flowcharts, BPMN process diagrams, UML diagrams, or swimlane charts. This skill covers node and connector configuration, layout options, shape styling, data binding, drawing tools, export/print functionality, and other diagram features.
Ships in Syncfusion ASP.NET Core UI Controls. 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.
These rules are non-negotiable and must be followed for every code generation request.
references/getting-started.md for every requestIf a feature, property, API, or behavior is not explicitly documented in the reference files:
You must NOT:
Instead, respond with:
⚠️ NOT DOCUMENTED: [feature name] is not covered in the reference files.
Skipping this feature to avoid generating incorrect code.
Before generating code for these features, always include the corresponding injection:
| Feature | Required Injection |
|---|---|
| BPMN diagrams | ej.diagrams.Diagram.Inject(ej.diagrams.BpmnDiagrams) |
| Export / Print | ej.diagrams.Diagram.Inject(ej.diagrams.PrintAndExport) |
| Mind Map layout | ej.diagrams.Diagram.Inject(ej.diagrams.MindMap) |
| Complex Hierarchical layout | ej.diagrams.Diagram.Inject(ej.diagrams.ComplexHierarchicalTree) |
Do NOT assume any other injections exist unless confirmed in reference files.
Use this table to identify which reference file to read (Rule A).
Always read references/getting-started.md first, then read only files relevant to the request.
| Reference File | Read When the Query Involves |
|---|---|
| 📄 getting-started.md | Every request — NuGet setup, tag helper registration, CDN, first diagram |
| 📄 nodes.md | Creating/styling nodes, offsetX/Y, width/height, gradients, shadow, expand/collapse, getNodeDefaults |
| 📄 connectors.md | Lines (Straight/Orthogonal/Bezier), arrows, routing, sourceID/targetID, segments, getConnectorDefaults |
| 📄 labels-and-annotations.md | Text labels, font, alignment, hyperlinks |
| 📄 ports.md | Connection points, port positioning, constraints |
| 📄 shapes-and-styles.md | Flow/Basic/Path/Image/HTML/Native shapes, fill, stroke, gradient, opacity |
| 📄 bpmn-diagrams.md | BPMN events, gateways, activities, data objects |
| 📄 uml-diagrams.md | UML class/sequence/activity diagrams, classifiers, relationships |
| 📄 layouts.md | Hierarchical, org chart, mind map, radial, symmetric layouts, getLayoutInfo |
| 📄 swimlanes.md | Swimlane structure, lanes, phases, palette integration |
| 📄 groups-and-containers.md | Grouping nodes, Canvas/Stack containers |
| 📄 symbol-palette.md | ejs-symbolpalette, palettes, drag-and-drop, tooltips |
| 📄 data-binding.md | DataManager, dataSourceSettings, id/parentId mapping, setNodeTemplate, CRUD |
| 📄 interaction-and-tools.md | Selection, drag/resize/rotate, drawing tools, constraints, undo/redo |
| 📄 serialization-and-export.md | saveDiagram/loadDiagram, export, print |
| 📄 diagram-settings.md | Layers, virtualization, grid, ruler, scroll, page settings, tooltip |
Install-Package Syncfusion.EJ2.AspNet.Core
~/Pages/_ViewImports.cshtml)@addTagHelper *, Syncfusion.EJ2
~/Pages/Shared/_Layout.cshtml)<head>
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/{{ site.ej2version }}/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/{{ site.ej2version }}/dist/ej2.min.js"></script>
</head>
<body>
...
<ejs-scripts></ejs-scripts>
</body>
~/Pages/Index.cshtml)<ejs-diagram id="diagram" width="100%" height="550px"
nodes="@ViewBag.nodes"
connectors="@ViewBag.connectors"
getNodeDefaults="@ViewBag.getNodeDefaults"
getConnectorDefaults="@ViewBag.getConnectorDefaults">
</ejs-diagram>
public IActionResult OnGet()
{
List<DiagramNode> nodes = new List<DiagramNode>
{
new DiagramNode { Id = "node1", OffsetX = 100, OffsetY = 100, Width = 100, Height = 60,
Annotations = new List<DiagramNodeAnnotation> {
new DiagramNodeAnnotation { Content = "Start" }
},
Shape = new { type = "Flow", shape = "Terminator" }
},
new DiagramNode { Id = "node2", OffsetX = 300, OffsetY = 100, Width = 100, Height = 60,
Annotations = new List<DiagramNodeAnnotation> {
new DiagramNodeAnnotation { Content = "Process" }
},
Shape = new { type = "Flow", shape = "Process" }
}
};
List<DiagramConnector> connectors = new List<DiagramConnector>
{
new DiagramConnector { Id = "conn1", SourceID = "node1", TargetID = "node2" }
};
ViewBag.nodes = nodes;
ViewBag.connectors = connectors;
ViewBag.getNodeDefaults = "getNodeDefaults";
ViewBag.getConnectorDefaults = "getConnectorDefaults";
return Page();
}
function getNodeDefaults(node) {
node.height = 60;
node.width = 120;
return node;
}
function getConnectorDefaults(connector) {
connector.type = 'Orthogonal';
return connector;
}
| Class | Purpose |
|---|---|
DiagramNode | Node/shape element |
DiagramConnector | Connection line between nodes |
DiagramNodeAnnotation | Text label on a node |
DiagramConnectorAnnotation | Text label on a connector |
DiagramPort | Connection point on a node |
DiagramLayer | Layer for organizing elements |
DiagramPageSettings | Page size, orientation, background |
BpmnShapes | BPMN shape configuration |
UmlClassifierShapeModel | UML class diagram shape |
Terminator, Process, Decision, Document, DirectData, MultiDocument, PreDefinedProcess, Delay, Annotation, ManualOperation, ManualInput, Card, Or, SummingJunction, Extract, Merge, Sort, OffPageReference
Usage:
Shape = new { type = "Flow", shape = "Process" }
Rectangle, Ellipse, Triangle, Pentagon, Hexagon, Heptagon, Octagon, Star, Cross, Diamond, CylindricalShape, Trapezoid, Parallelogram, Rhombus
Usage:
Shape = new { type = "Basic", shape = "Rectangle" }
✅ Creating any diagram in ASP.NET Core (Razor Pages / MVC)
✅ Building flowcharts, org charts, network diagrams
✅ Implementing BPMN or UML diagrams
✅ Configuring node/connector shapes, styles, annotations
✅ Setting up automatic layouts
✅ Adding symbol palette for drag-and-drop
✅ Binding diagram data from database
✅ Exporting diagrams or printing
✅ Enabling drawing tools, undo/redo, layers
references/bpmn-diagrams.md (opens in a new tab)references/connectors.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/diagram-settings.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/groups-and-containers.md (opens in a new tab)references/interaction-and-tools.md (opens in a new tab)references/labels-and-annotations.md (opens in a new tab)references/layouts.md (opens in a new tab)references/nodes.md (opens in a new tab)references/ports.md (opens in a new tab)references/serialization-and-export.md (opens in a new tab)references/shapes-and-styles.md (opens in a new tab)references/swimlanes.md (opens in a new tab)references/symbol-palette.md (opens in a new tab)references/uml-diagrams.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-aspnet-core66 skills in this plugin
/syncfusion-aspnetcore-3d-chartGuide for implementing Syncfusion 3D Chart in ASP.NET Core. Always use this skill when user needs 3D chart functionality, data visualization, series configuration, axes setup, or interactive chart features like tooltips and selection. Covers setup, data binding, chart types, styling, and user interactions./syncfusion-aspnetcore-accordionImplement Syncfusion Accordion component for organizing expandable navigation and content sections with single or multiple pane expansion support./syncfusion-aspnetcore-Other plugins' skills for the same job