Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

foblex-flow

БесплатноБез исполняемых скриптовНе проверен

Authoritative guide for working with Foblex Flow (@foblex/flow) in the skill-map UI. Use whenever editing Angular code in ui/ that touches graph rendering…

crystianот crystian★ 82 звезды на GitHub

Об этом скилле

Foblex Flow — working rules for skill-map

Foblex Flow (@foblex/flow) is the graph library that powers ui/src/app/views/graph-view/. Upstream documentation is sparse, so this skill is the authoritative operational guide. Before writing or reviewing any graph-related code, read the non-negotiables below.

Installed version: 19.1.6 (migrated from 18.6.1). The migration adopted v19's unified [fConnector] model, the renamed f-connection endpoint inputs (fSourceId / fTargetId), the opt-in keyboard a11y layer (provideFFlow(withA11y(...))), and the Foblex-owned selection contract. Legacy names still work but are deprecated; new code uses the v19 names.

Reference material (load on demand):

  • references/api-reference.md — every directive, component, input, output, event, method, CSS class, theme token, and enum.
  • references/examples/ — verbatim copies of every official example from libs/f-examples/ in the Foblex repo, organized by category (nodes, connectors, connections, extensions, plugins, advanced, reference-apps). Start at references/examples/README.md for the index and the six canonical patterns that repeat across all examples. When in doubt, the examples win — they are the Foblex team's own reference shape.

Mental model

  • Foblex Flow does NOT own graph state. Your app owns nodes, groups, connections, ids, validation, and persistence.
  • Angular templates render the current state; user actions emit events; your app mutates state; Angular rerenders.
  • Connections are connector-to-connector, NOT node-to-node. Each <f-connection> names a source connector (fSourceId) and a target connector (fTargetId); both must match a registered fConnectorId. (Pre-v19 these inputs were fOutputId / fInputId, still accepted but deprecated.)
  • Do NOT assume React-Flow-style APIs ([nodes], [edges], setNodes(), addEdge()). Those do not exist.

The nine non-negotiables

Skipping any of these produces silent failures: missing visuals, degraded performance, or wrong positioning. All nine were learned the hard way — do not relitigate them, apply them.

1. One id per connector, one registry (unified [fConnector] model)

v19 replaces the legacy fNodeInput / fNodeOutput / fNodeOutlet directives with a single [fConnector] directive whose role is set by fConnectorType ('source' | 'target' | 'source-target' | 'outlet', default 'source-target'). All connector ids now live in one registry: there are no separate input/output namespaces anymore, so a fConnectorId must be unique across the flow, and one id can serve as both endpoint roles via source-target.

skill-map's canonical shape (the same-element pattern, directives on the [fNode] host):

<div fNode fDragHandle
     fConnector fConnectorType="source-target"
     [fNodeId]="node.id"
     [fNodePosition]="node.position"
     [fConnectorId]="node.id">
  <sm-node-card … />
</div>

Connector ids are plain node ids. The old node.id + '-in' / node.id + '-out' suffix convention is gone: with one connector per node and a unified registry there is nothing to disambiguate, and <f-connection> binds [fSourceId]="edge.from" / [fTargetId]="edge.to" directly. Session anchors (spawn overlay) use the same directive with a narrower role: fConnector fConnectorType="source" [fConnectorId]="session.id".

Two defaults changed with the unified directive, worth knowing when porting legacy code:

  • fConnectorMultiple defaults to true (a legacy fNodeOutput was single-connection unless fOutputMultiple was set).
  • fCanBeConnectedTo replaces the legacy fCanBeConnectedInputs for connection allow-lists.

Legacy note: the old directives still work (deprecated since v19, one release of grace, do not write them in new code). Under them, ids lived in per-direction registries, so fInputId and fOutputId on the same node had to be different strings (hence the -in / -out suffixes you will still see in the official v18-era examples). Reusing node.id for both silently dropped every edge. If edges do not show and the console is clean, check that every fSourceId / fTargetId on your connections matches a registered fConnectorId (see troubleshooting #1).

2. Wire the theme — either the global default.scss OR per-view SCSS mixins

Connections and markers render as invisible SVG without the theme. Two supported paths:

Path A — global import via angular.json (what skill-map uses today):

Wire ../node_modules/@foblex/flow/styles/default.scss as the first entry in the styles array. Two gotchas:

  • Workspace hoisting: this repo uses npm workspaces. @foblex/flow hoists to the repo-root node_modules/, not ui/node_modules/. The ../ is required — a literal node_modules/@foblex/flow/... resolves relative to `ui
Полный SKILL.md на GitHub

Установить foblex-flow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/api-reference.mdreferences/examples/README.mdreferences/examples/advanced.mdreferences/examples/connections.mdreferences/examples/connectors.mdreferences/examples/extensions.mdreferences/examples/nodes.mdreferences/examples/plugins.mdreferences/examples/reference-apps.md

FAQ

Что делает скилл foblex-flow?

Authoritative guide for working with Foblex Flow (@foblex/flow) in the skill-map UI. Use whenever editing Angular code in ui/ that touches graph rendering — templates with f-flow / f-canvas / f-connection / fNode / fConnector / fDraggable / fZoom / fMarker directives; TypeScript importing from @foblex/flow (FFlowModule, FCanvasComponent, provideFFlow, withA11y, EFConnectionConnectableSide, EFMarkerType, FConnectionMarkerArrow, etc.); CSS targeting .f-* classes or .sm-gnode; angular.json style configuration for the Foblex theme; or any task involving node layout, connector rendering, pan/zoom behavior, edge styling, drag handles, keyboard navigation, or performance of the graph view. Covers the nine non-negotiable rules learned the hard way, the antipattern checklist, and points at the full API reference for every directive and component.

Как установить скилл foblex-flow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл foblex-flow запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить foblex-flow с