by antvis ★ 506

AntV X6 Editor Skill.

Build a node-and-edge diagram editor with AntV X6, including connections, editing behavior and required plugins.

Diagram EditorsNode InterfacesAntV
Upstream Source File
https://github.com/antvis/chart-visualization-skills/blob/a105fa12a9fa41fccccc2eba7f4b34973628f5d3/skills/antv-x6-editor/SKILL.md
Task
Diagram Editors
License
Repository Stars
506Repository-wide, not skill installs
Source Reviewed
2026-10-07
01 What It Does

AntV X6 Editor: Build a Diagram Canvas

An X6 v3 diagram-editor guide covering imperative node-edge construction, explicit plugin setup, gesture separation, and specialized reference retrieval.

AntV X6 Editor is aimed at interactive diagram tools such as flowchart, DAG, entity-relationship, lineage, and organization-chart editors. The captured entry targets X6 v3 and describes an imperative approach: create the graph, add nodes and edges, then register the editor plugins required for the intended operations.

Its distinguishing work is editor behavior. Selection, history, clipboard, keyboard, stencil, drag-and-drop, transforms, and export need explicit setup; canvas panning and connection behavior belong to a different configuration layer. The source also routes serialization and port-specific tasks to detailed references. It does not turn a drawn workflow into an executable business process.

Expected Deliverables

  • X6 diagram-editor JavaScript with styled nodes and edges
  • A deliberate set of editor plugins and canvas interactions
  • Connection, framing, and optional serialization behavior appropriate to the editor

From Brief to Review

  • Define the Editing Task
    List the diagram objects people can create, move, select, connect, and remove. Decide which editor operations are actually necessary before enabling plugins.
  • Build the Node-Edge Model
    Create the graph and add the required shapes and connections. Retrieve dedicated guidance for ports, custom HTML nodes, or nested structures when those features are in scope.
  • Register Editor Capabilities
    Import and register the plugins used by the implementation. Keep constructor options such as panning and connecting separate from plugin classes.
  • Check the Editing Session
    Test selection, pan, zoom, and drag gestures for conflicts, frame the content, and verify any promised save/load or export path rather than assuming it exists.
02 When to Use It

When to Use It

Use the documented @antv/x6 v3 API with a browser canvas and the required plugins. Fetching additional references needs network access. Check examples against your installed version.

A Good Fit

  • Workflow Authoring Interfaces
    Useful when users need to construct or modify a node-edge diagram rather than only inspect an existing graph.
  • Domain Diagram Editors
    The source includes routes for ER, lineage, DAG, UML, and organization-chart requirements.
  • Editor Interaction Debugging
    Its plugin-registration and input-modifier rules help isolate missing operations and competing gestures.

Limits to Check

  • Not a Workflow Execution Engine
    The documented scope is diagram editing. Business execution, server persistence, and domain validation require separate implementation.
  • Not G6 or G2
    G6 network exploration and G2 statistical charts have different purposes and APIs; their rendering patterns should not be mixed into this editor.
  • Source-Specific Runtime Assumptions
    The entry prescribes v3 conventions, JavaScript output, and container handling for its workflow. Validate those assumptions in the installed package and hosting environment rather than presenting them as universal library constraints.

Bring These Inputs

  • Diagram Schema
    Provide node types, permitted relationships, port requirements, and initial diagram data.
  • Editing Operations
    State whether users need selection, undo, clipboard, a stencil, resizing, keyboard actions, or export.
  • Application Environment
    Supply the installed X6 version, canvas container, surrounding page interactions, and persistence requirements.
03 Decisions That Matter

Decisions That Matter

Capabilities Are Explicit

Registering only the required plugins makes the difference between a displayed diagram and an operational editor visible.

Gestures Have Separate Jobs

The source uses modifiers to prevent panning, zooming, and rubber-band selection from competing for the same input.

Authoring and Persistence Differ

A visible diagram is not evidence that editing state can be saved and restored. Serialization is a separate reference and verification task.

04 Try a Focused Brief

Try a Focused Brief

The example brief below has not been tested. Check the skill’s setup before using it.

1

Review the Setup

Use the complete antv-x6-editor Skill source as guidance and install the project runtime separately. No universal Skill installer command has been verified from this entry.

Use the documented @antv/x6 v3 API with a browser canvas and the required plugins. Fetching additional references needs network access. Check examples against your installed version.
2

Start With One Deliverable

Adapt the scope, source material and constraints in this brief before running the skill.

3

Inspect the Result

Check the actual output against these observable criteria.

Example Brief
Use antv-x6-editor to prototype an approval-flow editor with the supplied node types and allowed connections. Inspect our X6 version first. Implement selection and undo with explicit plugin registration, separate pan and zoom gestures, and keep business execution out of scope. If JSON save/load is included, follow the serialization reference and demonstrate a round trip; do not claim backend persistence.

Review Checklist

  • Every used editor operation has the required imported and registered capability.
  • Panning, zooming, selection, and node manipulation do not fight for the same gesture.
  • Any promised serialization or export operation is demonstrated in the actual project.

OpenDesign provides a local design workspace for coding agents. This listing does not mean the skill is bundled or that its external tools, credentials and software dependencies are included.

05 Source and License

Source and License

This page describes the pinned source revision linked below. Upstream behavior and requirements can change.

Source Owner antvis
Repository antvis/chart-visualization-skills
Skill File skills/antv-x6-editor/SKILL.md
License MIT
Reviewed Snapshot 2026-10-07 · a105fa12a9fa

Original summary by OpenDesign, based on the linked source. Repository stars are a dated popularity signal, not skill usage or a quality score.

06 Questions Before You Start

Questions Before You Start

Why not use G6 for the same diagram?
The source distinguishes X6's editable canvas and imperative authoring API from G6's graph-visualization workflow. Choose by the interaction users need, not only by how the picture looks.
Are panning and selection configured the same way?
No. The entry separates constructor-level interaction options from plugins such as Selection, which must be registered before their methods are used.
Does adding nodes require a separate graph.render call?
The captured X6 v3 guidance says node and edge additions render automatically and warns against borrowing graph.render from G6. Check the installed API when integrating.
OpenDesign

Make Room for the Next Design Iteration.

Keep your brief, source material and design work together in a local workspace. Check the skill’s own setup before adding it to your workflow.

AntV X6 Editor on OpenDesign