Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

ng-diagram-palette

Skill by synergycodes

Explains how to build a drag-and-drop palette for ng-diagram in Angular and how dropped nodes behave. It is for developers adding stencils or toolbars to an ng-diagram editor, or fixing drop problems.

  • Score 73
  • 590 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ng-diagram-palette

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-palette ~/.claude/skills/ng-diagram-palette

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install ng-diagram-palette in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a guide for building a drag-and-drop palette, stencil or toolbox that creates ng-diagram nodes. It covers the ng-diagram-palette-item component, its preview element that sets the drag image, and the paletteItemDropped event. It also explains how a drop sets position, size and template, and how snapping and computed node IDs apply.

The skill includes rules, a basic palette example, a drop handler that adds a node to a group and selects it, and a snapping config. It ends with a symptom-to-fix table for common problems such as NullInjectorError, invalid drop data, and drops that do not snap. It is written for Angular developers who use the ng-diagram library.

Written from the project's SKILL.md and checked against it.

What it can do

  • Build a paletteShows how to wrap palette items in ng-diagram-palette-item with an item definition.
  • Set the drag imageExplains using ng-diagram-palette-item-preview so the drag image matches the dropped node.
  • Handle dropsShows how to react to paletteItemDropped, including grouping and selecting the new node.
  • Snap dropped nodesCovers the snapping config and matching the grid cell size to the drop snap step.
  • Control node IDsExplains using computeNodeId with a UUID helper instead of a counter.
  • Fix drop problemsLists symptoms such as wrong size, wrong template and invalid drop data, with fixes.

What you need

  • An Angular project
  • The ng-diagram package

Try asking

  • Create an ng-diagram palette with a Task and a Decision item
  • Make my ng-diagram palette drag image match the dropped node size
  • Snap dropped nodes to a 20 pixel grid in ng-diagram

Good to know

  • Ports and resize or rotate handles do not show in palette items or previews, by design.
  • The drag image is capped at 3x zoom.
  • Touch drags show no image that follows the finger.
  • A drop does not select the new node or add it to a group unless you code that in the drop handler.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/ng-diagram-palette/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to ng-diagram-palette

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

ng-diagram-palette: common questions

How do I make a dropped node a fixed size in ng-diagram?

Set both size and autoSize: false on the palette item. With the default autoSize, the node takes its size from the rendered content and size is replaced.

Why does my palette give a NullInjectorError?

The palette sits outside the component that has providers: [provideNgDiagram()] or one of its children. Moving it under that component fixes the error.

Why does a dropped node not snap to the grid?

Drops snap only when snapping.shouldSnapDragForNode returns true. The snap step should also match the grid cellSize.

How do I install ng-diagram-palette?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is ng-diagram-palette free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is ng-diagram-palette 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-palette?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

ng-diagram-palette Install

Add to stack

Loading.