Figjam plugin

From aiskillstore/marketplace · View interactive version

Figjam plugin is an AI agent skill from the GitHub repository aiskillstore/marketplace. FigJam plugin development workflow. Use when modifying code.ts (canvas rendering), ui.ts (WebSocket/UI), fixing plugin build errors, or adding new rendering features.

How to use this skill

Skill file

FigJam Plugin Development

Architecture

| Thread | File | APIs | Role |

|--------|------|------|------|

| Main | code.ts | figma.* only | Canvas rendering |

| UI | ui.ts | Browser APIs | WebSocket client, connection UI |

Critical: code.ts has NO browser APIs (window, document, fetch, WebSocket).

Communication

CLI ←─ WebSocket ─→ ui.ts ←─ postMessage ─→ code.ts ←─ figma.* ─→ Canvas

Build & Import

cd packages/plugin && bun run build

Import: Figma Desktop → Plugins → Development → Import from manifest → packages/plugin/manifest.json

Debugging

JSON Import

Key Files

| File | Purpose |

|------|---------|

| manifest.json | Plugin config |

| src/code.ts | Canvas rendering |

| src/ui.ts | WebSocket + UI |

| src/icons/ | Service icons |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.