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★ 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 fromlibs/f-examples/in the Foblex repo, organized by category (nodes, connectors, connections, extensions, plugins, advanced, reference-apps). Start atreferences/examples/README.mdfor 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 registeredfConnectorId. (Pre-v19 these inputs werefOutputId/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:
fConnectorMultipledefaults to true (a legacyfNodeOutputwas single-connection unlessfOutputMultiplewas set).fCanBeConnectedToreplaces the legacyfCanBeConnectedInputsfor 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/flowhoists to the repo-rootnode_modules/, notui/node_modules/. The../is required — a literalnode_modules/@foblex/flow/...resolves relative to `ui
Установить foblex-flow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic