getartisanflow/wireflow/wireflow-development

Claude Code and agent skill by getartisanflow/wireflow

Trust tier 2
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Build flow diagrams with WireFlow Blade components and Livewire integration. Covers the <x-flow> canvas plus schema-designer and workflow Blade components, the WithWireFlow and WithSchemaDesigner traits, server-side flow control, and WireFlow-specific patterns. Activates when working with <x-flow>, <x-flow-schema-node> / <x-schema-*-inspector>, workflow run/replay components, WithWireFlow or WithSchemaDesigner methods, or Livewire flow diagrams.

Install

npx vskill@latest install getartisanflow/wireflow/wireflow-development

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as getartisanflow/wireflow/wireflow-development.

WireFlow Development

When to Apply

Activate this skill when:

  • Using <x-flow> or any <x-flow-*> Blade components
  • Using the WithWireFlow trait in Livewire components
  • Handling flow events on the server (onConnect, onNodeClick, etc.)
  • Configuring WireFlow (theme, asset injection)
  • Using convenience methods (flowConnect, flowHighlightNode, etc.)
  • Combining whiteboard tools with WireFlow's <x-flow> component
  • Building a schema/ER designer (<x-flow-schema-node>, <x-schema-*-inspector>, the WithSchemaDesigner trait)
  • Building a workflow runner (<x-flow-run-button>, <x-flow-execution-log>, <x-flow-condition-node>, flowRun/flowSetNodeState)

Also activate the alpineflow-development skill — WireFlow wraps AlpineFlow, and the AlpineFlow rules apply.

Documentation

Use search-docs for detailed API reference. The docs at https://artisanflow.dev/docs/wireflow cover components, trait methods, configuration, and events. For AlpineFlow-specific features (directives, CSS variables, animation API), search https://artisanflow.dev/docs/alpineflow.

Critical Rules

1. Don't import Alpine separately

Livewire bundles Alpine. Never import or start Alpine yourself:

js
// WRONG
import Alpine from 'alpinejs';
Alpine.start();
// CORRECT — register AlpineFlow on Livewire's Alpine
import AlpineFlow from '../../vendor/getartisanflow/wireflow/dist/alpineflow.bundle.esm.js';
document.addEventListener('alpine:init', () => {
window.Alpine.plugin(AlpineFlow);
});
2. <x-flow> creates an isolated Alpine scope

The <x-flow> component renders x-data="flowCanvas({...})". Attributes on <x-flow> evaluate in the flowCanvas scope, NOT in parent scopes.

To add custom properties (like tool for whiteboard), use x-init with Object.assign($data, ...):

blade
<!-- WRONG — tool is in parent scope, invisible to directives on <x-flow> -->
<div x-data="{ tool: null }">
<x-flow x-flow-freehand="tool === 'draw'" ...>
</x-flow>
</div>
<!-- CORRECT — inject into flowCanvas scope -->
<x-flow
x-init="Object.assign($data, { tool: null, toolSettings: { strokeColor: '#333', strokeWidth: 2, opacity: 1 } })"
x-flow-freehand="tool === 'draw'"
...
>
3. Never use @@event on <x-flow> for custom events

Livewire 4 crashes when parsing custom event names with hyphens via @@. Use $el.addEventListener in x-init instead:

blade
<!-- WRONG — Livewire crashes -->
<x-flow @@flow-freehand-end="addNodes([...])">
<!-- CORRECT — attach in x-init -->
<x-flow
x-init="
$el.addEventListener('flow-freehand-end', (e) => {
addNodes([{
id: 'ann-' + Date.now(),
position: { x: 0, y: 0 },
class: 'flow-node-annotation',
data: { annotation: 'drawing', pathData: e.detail.pathData },
}]);
});
"
>
4. toolSettings via config prop does NOT work

Drawing directives read toolSettings from the Alpine scope, not from config:

blade
<!-- WRONG — toolSettings is in _config, not the scope -->
<x-flow :config="['toolSettings' => ['strokeColor' => '#333']]">
<!-- CORRECT — inject via x-init -->
<x-flow x-init="Object.assign($data, { toolSettings: { strokeColor: '#333', strokeWidth: 2, opacity: 1 } })">
5. fitViewOnInit not initialFitView

The config option was renamed:

blade
<!-- WRONG -->
<x-flow :initial-fit-view="true">
<!-- CORRECT -->
<x-flow :fit-view-on-init="true">
6. Event listeners inside node templates use Alpine @, not Blade @@

Content inside <x-slot:node> is regular Blade, not a component attribute. Use single @:

blade
<x-slot:node>
<!-- This is inside the slot, Alpine handles @ directly -->
<button @click="removeNodes([node.id])">Delete</button>
</x-slot:node>

Blade Components

<x-flow> — Main canvas
blade
<x-flow
:nodes="$nodes"
:edges="$edges"
background="dots"
:controls="true"
:minimap="true"
fit-view-on-init
:history="true"
style="height: 500px;"
>
<x-slot:node>
<x-flow-handle type="target" position="top" />
<span x-text="node.data.label"></span>
<x-flow-handle type="source" position="bottom" />
</x-slot:node>
</x-flow>
Available components
ComponentPurpose
<x-flow>Main canvas. Renders wire:ignore by default (wireIgnore=true) so Livewire morphs don't clobber the Alpine-managed canvas — pass :wire-ignore="false" to opt out. Extra props: containerHeight ('fill'/px/CSS length), fullscreenTarget (selector)
<x-flow-handle>Connection handle (type, position, id)
<x-flow-panel>Floating overlay panel (position, resizable). Invalid position throws InvalidArgumentException
<x-flow-toolbar>Node toolbar — position top/bottom/left/right, align start/center/end (flow-relative, NOT left/right), offset, show selected/always. Invalid enum values throw InvalidArgumentException
<x-flow-drag-handle>Restrict drag to element
<x-flow-resizer>Resize handles (min-width, min-height)
<x-flow-action>Action button (type: undo, redo, fit-view, etc.). target = canvas CSS selector when the button lives outside <x-flow> (renders data-flow-target)
<x-flow-context-menu>Right-click menu (scope: node, edge, pane, selection)
<x-flow-collapse>Collapse toggle (instant, all, expand, children)
<x-flow-condense>Condense toggle
<x-flow-edge-toolbar>Edge toolbar — position float 0–1 (point along edge), below bool, show selected/always (invalid show throws), target = canvas selector for out-of-canvas placement
<x-flow-loading>Loading overlay (fade)

Toolbar/EdgeToolbar enum props are validated by the ValidatesEnumProps trait against src/Enums/* and throw InvalidArgumentException on bad values — so align="left" is an error, not a silent center. Search docs for full prop reference per component.

Schema-designer components

Registered by the provider but separate from the table above (note the prefix split: the node is flow-schema-*, the rest are schema-*):

ComponentPurpose
<x-flow-schema-node>Schema/table node renderer (label, fields) — drop into <x-slot:node>
<x-schema-designer>Full schema canvas variant (~30 props; schema-tuned defaults like default-edge-type="avoidant", prevent-cycles, keyboard-connect)
<x-schema-field>Single field row
<x-schema-node-inspector>Selected-node inspector (default-ui) → injects selectedNode + inspector
<x-schema-row-inspector>Selected-field inspector → selectedRow {nodeId, fieldName} + inspector
<x-schema-edge-inspector>Selected-relationship inspector → selectedEdge + inspector
Workflow components
ComponentPurpose
<x-flow-condition-node>Condition/branch node (label, condition, direction, evaluate-label)
<x-flow-wait>Timed wait node (label, duration-ms, icon)
<x-flow-run-button>Start a run (required start-id, options, handlers-key="runHandlers", target)
<x-flow-stop-button> / <x-flow-reset-button>Stop / reset the run (target)
<x-flow-replay-controls>Replay the execution log (handle, target, speeds=[0.5,1,2,4])
<x-flow-execution-log>Live execution log (source, filter="all", max-events=500)

Search docs for full prop reference per component.

WithWireFlow Trait

Server-to-client convenience methods
php
use ArtisanFlow\WireFlow\Concerns\WithWireFlow;
class MyFlow extends Component
{
use WithWireFlow;
public function approve(string $stepId): void
{
$this->flowHighlightNode($stepId, 'success');
$this->flowLockNode($stepId);
$this->flowConnect($stepId, $nextStep, duration: 600);
$this->flowHighlightPath([$stepId, $nextStep]);
$this->flowFocusNode($nextStep);
}
}
Available convenience methods
MethodDescription
flowUpdate(targets, options)Update nodes/edges/viewport (instant)
flowAnimate(targets, options)Animate (300ms smooth default)
flowMoveNode(id, x, y, duration?)Move single node
flowUpdateNode(id, changes, duration?)Update node properties
flowFocusNode(id, duration?, padding?)Pan+zoom to center on node
flowConnect(source, target, duration?)Create edge with optional draw animation
flowDisconnect(source, target, duration?)Remove edge(s) with optional fade
flowHighlightNode(id, style, duration?)Flash preset: success/error/warning/info
flowHighlightPath(nodeIds, options)Fire particles along node sequence
flowLockNode(id) / flowUnlockNode(id)Lock/unlock node
flowHideNode(id) / flowShowNode(id)Hide/show node
flowSelectNodes(ids) / flowSelectEdges(ids)Select specific items
Available base methods
MethodDescription
flowFitView()Fit all nodes
flowZoomIn() / flowZoomOut()Zoom
flowSetCenter(x, y, zoom?)Center viewport
flowAddNodes(nodes) / flowRemoveNodes(ids)Add/remove nodes. Now mutate server-side `$this->nodes` too (when it's a public array) — flowRemoveNodes cascades to descendants (parentId chain) and connected edges, mirroring the client. Delete your manual $nodes filters.
flowAddEdges(edges) / flowRemoveEdges(ids)Add/remove edges. Also mutate server-side $this->edges when present.
flowLayout(options)Apply auto-layout
flowUndo() / flowRedo()History (requires history: true)
flowClear()Destructive — empties nodes/edges and resets the viewport to the origin (dispatches flow:clear; applied immediately).
flowSetLoading(bool)Loading overlay
flowPatchConfig(changes)Update config at runtime
flowCollapseNode(id) / flowExpandNode(id)Collapse/expand
Run-state, particles & lifecycle (also on WithWireFlow)
MethodDescription
flowRun(startId, options)Drive a workflow run from the server (pairs with <x-flow-run-button> / <x-flow-execution-log>)
flowSetNodeState(ids, state) / flowResetStates()Set/clear per-node run state — 'pending' / 'running' / 'completed' / 'failed' / 'skipped' (drives .flow-node-* classes). Distinct from the workflow run state (idle/running/paused/stopped) that flowRun drives.
flowSendParticle / flowSendParticleAlongPath / flowSendParticleBetween / flowSendParticleBurst / flowSendConvergingParticle effects
flowCancelAll() / flowPauseAll() / flowResumeAll()Animation lifecycle
flowFollow(id) / flowUnfollow()Camera follow a node
flowSetViewport / flowPanBy / flowFitBoundsViewport control
flowFromObject(obj) / flowDeselectAll() / flowToggleInteractive()Misc
Event handlers

Declare on <x-flow> as @event-name="methodName":

blade
<x-flow @connect="onConnect" @node-click="onNodeClick">
php
public function onConnect(string $source, string $target, ?string $sourceHandle, ?string $targetHandle): void
{
$this->edges[] = [
'id' => "e-{$source}-{$target}",
'source' => $source,
'target' => $target,
];
}

Use #[Renderless] (Livewire 3.3+ / 4) on methods that only dispatch client-side commands (no re-render needed). On older Livewire 3.x, call $this->skipRender() at the end of the method instead.

onNodesChange / onEdgesChange receive array $changes that now carries an `origin` key — filter on it to persist only user intent:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
93
Repository forks
3
7-day trend score
23

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/getartisanflow/wireflow/wireflow-development/badge)](https://verified-skill.com/skills/getartisanflow/wireflow/wireflow-development)

Something wrong with this skill or its page? Tell us.