agentsclimarketplace

Yfiles layout

Skill yWorks/yfiles-for-html-skills/skills/yfiles-layout

This skill should be used when the user asks to "apply a layout", "arrange nodes", "organize the graph", "apply hierarchical layout", "use organic layout", "use tree layout", or mentions layout algorithms like "HierarchicalLayout", "OrganicLayout", "TreeLayout", "CircularLayout", "OrthogonalLayout", or "RadialLayout".From its SKILL.md

Install
npx -y skills add yWorks/yfiles-for-html-skills --skill yfiles-layout

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.9 KB, 356 tokens by cl100k_base, as published. Nobody here has run it

Apply Automatic Layouts

Execute layout algorithms to automatically arrange graph elements.

Before Applying

Always query the yFiles MCP for current API:

yfiles:yfiles_search_by_description(query="layout algorithm")
yfiles:yfiles_get_symbol_details(name="HierarchicalLayout")
yfiles:yfiles_get_symbol_details(name="LayoutExecutor")

Quick Start

import { HierarchicalLayout, LayoutExecutor } from '@yfiles/yfiles'

await new LayoutExecutor({
  graphComponent,
  layout: new HierarchicalLayout(),
  animationDuration: '0.5s'
}).start()

Choosing a Layout

Graph typeAlgorithm
Tree (no cycles)TreeLayout
Directed / hierarchicalHierarchicalLayout
Undirected networkOrganicLayout
Center focus / starRadialLayout
Orthogonal routingOrthogonalLayout
Circular / cyclicCircularLayout

LayoutExecutor Options

new LayoutExecutor({
  graphComponent,          // Required
  layout,                  // Required: ILayoutAlgorithm
  layoutData,              // Optional: layout-specific constraints/hints
  animationDuration: '1s',
  animateViewport: true,
  easedAnimation: true
})

Additional Resources

  • references/algorithms.md — Per-algorithm configuration: HierarchicalLayout, OrganicLayout, TreeLayout, CircularLayout, OrthogonalLayout, RadialLayout
  • references/configuration.md — LayoutData, sequential layouts, partial layouts, incremental layouts, fixed nodes
  • references/examples.md — Complete working code examples

What ships with it: 3 files

18.1 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.