ng-diagram-edge-relinking
Skill by synergycodes
Guides Angular developers in letting users reconnect existing ng-diagram edges by dragging their ends. Covers relink rules, validation with reason 'relink', events, custom templates and handle styling.
Install ng-diagram-edge-relinking
Built from the published package, never by AI.
git clone --depth 1 https://github.com/synergycodes/ng-diagram /tmp/ng-diagram && mkdir -p ~/.claude/skills && cp -r /tmp/ng-diagram/skills/ng-diagram-edge-relinking ~/.claude/skills/ng-diagram-edge-relinkingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install ng-diagram-edge-relinking in Claude Code
git clone --depth 1 https://github.com/synergycodes/ng-diagram /tmp/ng-diagram && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ng-diagram/skills/ng-diagram-edge-relinking ~/.gemini/antigravity-cli/skills/ng-diagram-edge-relinkingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install ng-diagram-edge-relinking in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill covers edge relinking in ng-diagram, where users reconnect existing edges by dragging their ends. It explains enabling relinking with linking.defaultRelinkable or a per-edge relinkable value, and which ends can move for each setting. Relinking was added in version 1.4.0.
The skill describes drop outcomes, validation through linking.validateConnection with context.reason set to 'relink', and the edgeRelinkStarted and edgeRelinkEnded events. It also covers custom edge templates, the isEdgeEndRelinkable and attachEdge helpers, and CSS variables for relink handles. It is aimed at developers building ng-diagram editors in Angular.
Written from the project's SKILL.md and checked against it.
What it can do
- Relink rulesExplains the effective relinkable value per end and the default of off.
- Relink validationShows how validateConnection receives reason 'relink' and the drop outcomes.
- Relink eventsCovers edgeRelinkStarted and edgeRelinkEnded, including success and reason fields.
- Custom edge templatesExplains that ng-diagram-base-edge draws relink handles in custom templates.
- Programmatic relinkDescribes attachEdge on NgDiagramModelService, validated like a drop.
- Handle stylingLists theme and per-edge CSS variables for relink handle size and colors.
What you need
- Angular
- ng-diagram 1.4.0 or later
Try asking
- Make the ends of my ng-diagram edges draggable to reconnect them
- Lock some edges in ng-diagram so their ends cannot be relinked
- Log the result of each ng-diagram edge relink with edgeRelinkEnded
Good to know
- Handles appear only on selected edges with a routed path, drawn by ng-diagram-base-edge.
- There is no public directive for building custom relink handles.
- The relink preview does not copy routingMode and points.
- A validator cannot stop a drag, so use relinkable to lock edges.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/ng-diagram-edge-relinking/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ng-diagram-edge-relinking
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ng-diagram-edge-relinking: common questions
Is edge relinking on by default in ng-diagram?
No. Relinking is off by default, and linking.defaultRelinkable sets the default for all edges. An edge's own relinkable value overrides it.
Can I change defaultRelinkable at runtime?
Yes, call NgDiagramService.updateConfig with linking.defaultRelinkable. The [config] binding is read only when the diagram engine is created.
Why do my relink handles not show?
Handles appear only on a selected edge with a routed path that is drawn by ng-diagram-base-edge, and its effective relinkable value must not be false.
How do I install ng-diagram-edge-relinking?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ng-diagram-edge-relinking free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is ng-diagram-edge-relinking safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ng-diagram-edge-relinking?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
