cytoscape — community cytoscape, Codex-Cryptica, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Visualization Agents needing high-performance network visualization capabilities with Cytoscape.js and Svelte 5 integration. Node based RPG campaign manager

eserlan eserlan
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The cytoscape skill by eserlan is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Visualization Agents needing high-performance network visualization capabilities with Cytoscape.js and Svelte 5 integration.

Core Value

Empowers agents to create aesthetically striking network visualizations using Cytoscape.js, with seamless Svelte 5 integration and support for the 'Codex Arcana' sci-fi aesthetic, leveraging $effect and onMount for lifecycle management.

Capabilities Granted for cytoscape

Visualizing complex node-based RPG campaign networks
Generating interactive graph visualizations with Cytoscape.js
Integrating Svelte 5 components with Cytoscape for dynamic reactivity

! Prerequisites & Limits

  • Requires Svelte 5 and Cytoscape.js compatibility
  • Limited to network visualization use cases
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

cytoscape

Install cytoscape, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Cytoscape Graph Visualization

Master the art of creating high-performance, aesthetically striking network visualizations using Cytoscape.js, with a focus on Svelte 5 integration and the "Codex Arcana" sci-fi aesthetic.

Core Patterns

1. Svelte 5 Integration

Manage Cytoscape lifecycle and reactivity using Svelte 5 $effect and onMount.

svelte
1<script lang="ts"> 2 import { onMount, onDestroy } from "svelte"; 3 import cytoscape, { type Core } from "cytoscape"; 4 5 let container: HTMLElement; 6 let cy: Core | undefined = $state(); 7 let { elements } = $props(); 8 9 onMount(() => { 10 cy = cytoscape({ 11 container, 12 elements, 13 style: [ 14 /* styles */ 15 ], 16 layout: { name: "cose" }, 17 }); 18 }); 19 20 onDestroy(() => { 21 cy?.destroy(); 22 }); 23 24 // Reactive updates 25 $effect(() => { 26 if (cy && elements) { 27 cy.elements().remove(); 28 cy.add(elements); 29 cy.layout({ name: "cose", animate: true }).run(); 30 } 31 }); 32</script> 33 34<div bind:this={container} class="w-full h-full"></div>

2. Sci-Fi "Terminal" Styling

Embrace a high-contrast, glowing aesthetic. Use dark backgrounds with vibrant green or amber accents.

FeaturePattern
Node Shaperound-rectangle or diamond for sci-fi feel.
Node LabelUse text-valign: bottom and text-margin-y for a data-readout look.
Edge Stylebezier curves with triangle arrows. Keep lines thin and subtle.
OverlaysUse overlay-color and overlay-opacity for glowing selection effects.

Example Sci-Fi Style:

ts
1const SCIFI_STYLE = [ 2 { 3 selector: "node", 4 style: { 5 "background-color": "#022c22", 6 "border-width": 1, 7 "border-color": "#15803d", 8 label: "data(label)", 9 color: "#86efac", 10 "font-family": "Inter, monospace", 11 "font-size": 10, 12 "text-transform": "uppercase", 13 }, 14 }, 15 { 16 selector: "edge", 17 style: { 18 "line-color": "#14532d", 19 "target-arrow-shape": "triangle", 20 "curve-style": "bezier", 21 opacity: 0.6, 22 }, 23 }, 24];

3. Layout Strategies

  • Cose: Good for organic, balanced layouts.
  • Circle/GridLayout: Use for structured overviews or specific groupings.
  • Fcose/Cola: Advanced force-directed layouts for complex networks (require plugins).
  • Manual: Use metadata.coordinates if entities have fixed positions.

Interaction Patterns

Selection & Focus

Animate the view when a node is selected to provide feedback.

ts
1cy.on("tap", "node", (evt) => { 2 const node = evt.target; 3 cy.animate({ 4 center: { eles: node }, 5 zoom: 1.5, 6 duration: 500, 7 easing: "ease-out-cubic", 8 }); 9});

Connection Management

Implement a "Connect Mode" to allow users to link nodes visually.

  • Tap Source -> Tap Target -> Save relationship.
  • Visual feedback via classes (e.g., .selected-source).

Performance Guidelines

  1. Batch Updates: Use cy.batch() when performing many operations.
  2. Selective Layouts: Only run layouts when elements change significantly, not on every prop update.
  3. Hardware Acceleration: Cytoscape uses Canvas, which is generally performant, but keep texture usage low.

Best Practices

  1. Lifecycle Management: Always destroy() the instance in onDestroy.
  2. Viewport Handling: Use cy.fit() and cy.resize() to ensure the graph looks good on all screens.
  3. Data Transformation: Use a separate Transformer utility to map domain objects (Entities) to Cytoscape elements.
  4. Overlay Elements: Use HTML/CSS overlays for UI (zoom controls, legends) instead of rendering them in the Canvas.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is cytoscape?

Perfect for Visualization Agents needing high-performance network visualization capabilities with Cytoscape.js and Svelte 5 integration. Node based RPG campaign manager

How do I install cytoscape?

Run the command: npx killer-skills add eserlan/Codex-Cryptica/cytoscape. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for cytoscape?

Key use cases include: Visualizing complex node-based RPG campaign networks, Generating interactive graph visualizations with Cytoscape.js, Integrating Svelte 5 components with Cytoscape for dynamic reactivity.

Which IDEs are compatible with cytoscape?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for cytoscape?

Requires Svelte 5 and Cytoscape.js compatibility. Limited to network visualization use cases.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add eserlan/Codex-Cryptica/cytoscape. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use cytoscape immediately in the current project.

Related Skills

Looking for an alternative to cytoscape or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI