flow-anchor-connection
暂无简介
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 13
- Forks
- 2
03 SKILL.md 正文
/flow-anchor-connection
When to Use
- Build interactive workflow editor for yamtam agent pipeline configuration
- Render agent-to-agent connections with drag-and-drop in a web UI
- Visualize live data flow between skills in a browser-based dashboard
- Generate connection diagrams from agent state JSON
Do NOT use for
- Static diagrams without user interaction (use [[mermaid-diagram-generation]])
- Server-side rendering without DOM (jsPlumb requires browser environment)
jsPlumb setup (vanilla JS)
import { newInstance, AnchorLocations, ArrowOverlay } from '@jsplumb/browser-ui'
const instance = newInstance({
container: document.getElementById('canvas'),
})
// Add nodes
const nodeA = document.getElementById('skill-proxy')
const nodeB = document.getElementById('skill-sandbox')
// Connect with an arrow
instance.connect({
source: nodeA,
target: nodeB,
anchors: [AnchorLocations.Bottom, AnchorLocations.Top],
connector: 'Flowchart',
overlays: [{ type: 'Arrow', options: { width: 10, length: 10 } }],
paintStyle: { stroke: '#2563eb', strokeWidth: 2 },
})
// Make node draggable
instance.manage(nodeA)
instance.manage(nodeB)
Dynamic pipeline from JSON state
function renderPipeline(stages: { id: string; label: string }[]) {
const canvas = document.getElementById('pipeline-canvas')!
// Create DOM nodes
stages.forEach(({ id, label }, i) => {
const el = document.createElement('div')
el.id = id
el.textContent = label
el.className = 'pipeline-node'
el.style.left = `${50 + i * 200}px`
el.style.top = '100px'
canvas.appendChild(el)
instance.manage(el)
})
// Connect sequentially
stages.forEach(({ id }, i) => {
if (i === 0) return
instance.connect({
source: stages[i - 1].id,
target: id,
connector: 'Straight',
})
})
}
renderPipeline([
{ id: 'proxy', label: 'tool-proxy.sh' },
{ id: 'sandbox', label: 'sandbox-exec.sh' },
{ id: 'audit', label: 'audit-log' },
])
Export connections as JSON
function exportConnections(): object[] {
return instance.getConnections().map(conn => ({
source: conn.source.id,
target: conn.target.id,
type: conn.connector?.type,
}))
}
Anti-Fake-Pass Checklist
❌ jsPlumb requires browser DOM — no Node.js/server-side rendering
❌ manage() not called → nodes not draggable even if connect() works
❌ Container element not positioned (relative/absolute) → connections render at (0,0)
❌ repaintEverything() not called after layout change → connectors don't follow nodes
❌ jsPlumb Community vs Toolkit: very different APIs — don't confuse
❌ SSR frameworks (Next.js) → import jsPlumb only in useEffect, not at module level
04 同仓库更多 Skills
openai--sentry--sentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.
ito-basket-compare
Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.
implementing-network-traffic-baselining
Build network traffic baselines from NetFlow/IPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly/daily traffic pattern profiling
detecting-evasion-techniques-in-endpoint-logs
Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.
implementing-microsegmentation-with-guardicore
Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.
ramdisk-tmpfs-patterns
暂无简介