스킬 figjam-plugin
🎨

figjam-plugin

안전 🌐 네트워크 접근📁 파일 시스템 액세스⚙️ 외부 명령어

以雙執行緒架構開發 FigJam 外掛

또한 다음에서 사용할 수 있습니다: 7nohe

FigJam 外掛開發需要理解 Figma API 限制與 WebSocket 通訊模式。此技能提供在 FigJam 畫布中渲染 AWS 架構圖的外掛建置、除錯與部署指引。

지원: Claude Codex Code(CC)
📊 69 적절함
1

스킬 ZIP 다운로드

2

Claude에서 업로드

설정 → 기능 → 스킬 → 스킬 업로드로 이동

3

토글을 켜고 사용 시작

테스트해 보기

"figjam-plugin" 사용 중입니다. How do I set up a FigJam plugin with the two-thread architecture?

예상 결과:

  • 主執行緒(code.ts):處理 Figma API 與畫布渲染,不可使用瀏覽器 API
  • UI 執行緒(ui.ts):管理 WebSocket 連線與瀏覽器 API
  • 通訊:CLI 與 UI 之間使用 WebSocket,UI 與主執行緒之間使用 postMessage
  • 在 packages/plugin 目錄使用 'bun run build' 建置
  • 透過 Figma Desktop → Plugins → Development → Import from manifest 匯入

"figjam-plugin" 사용 중입니다. How do I debug WebSocket connection issues?

예상 결과:

  • 在外掛 UI 上開啟瀏覽器 DevTools(右鍵 → Inspect)
  • 檢查 console 的連線狀態與錯誤訊息
  • 確認 WebSocket 伺服器已透過 CLI 在本機執行
  • 查看 UI 與主執行緒之間的 postMessage 錯誤
  • 使用 Figma console 進行主執行緒除錯

보안 감사

안전
v3 • 1/16/2026

Documentation-only skill containing only markdown prompts and JSON metadata. No executable code, scripts, network calls, file system access, or external command execution. All 32 static findings are false positives triggered by markdown formatting (backticks in code blocks) and JSON hash strings. This is a pure prompt-based skill providing development guidance.

2
스캔된 파일
122
분석된 줄 수
3
발견 사항
3
총 감사 수
감사자: claude 감사 이력 보기 →

품질 점수

38
아키텍처
100
유지보수성
85
콘텐츠
21
커뮤니티
100
보안
91
사양 준수

만들 수 있는 것

建立 AWS 架構圖

建立以 YAML 驅動的 AWS 架構圖,並即時同步到 FigJam 以利團隊協作。

設定 FigJam 外掛專案

初始化並設定具備正確架構的雙執行緒 FigJam 外掛。

除錯外掛通訊

診斷 CLI 與外掛 UI 之間的 WebSocket 問題與連線故障。

이 프롬프트를 사용해 보세요

初始化外掛專案
How do I set up a FigJam plugin with the two-thread architecture? Explain code.ts and ui.ts responsibilities.
除錯 WebSocket 連線
My FigJam plugin is not connecting to the WebSocket server. What steps do I take to debug the connection?
建置並匯入外掛
How do I build the FigJam plugin and import it into Figma Desktop? What is the manifest.json configuration?
處理主執行緒錯誤
How do I debug errors in code.ts (main thread) that affect canvas rendering? What tools do I use?

모범 사례

  • 保持主執行緒程式碼精簡,專注於畫布渲染
  • 在 UI 執行緒中驗證並正規化資料後再送往主執行緒
  • UI 錯誤用瀏覽器 DevTools,主執行緒錯誤用 Figma console

피하기

  • 在 code.ts 使用瀏覽器 API(window、document、fetch)— 會失敗
  • 在處理前跳過 JSON 輸入驗證
  • 未在 Figma Desktop 環境測試就建置

자주 묻는 질문

What is the difference between code.ts and ui.ts in FigJam plugins?
code.ts 在主執行緒上執行,只能存取 Figma API。ui.ts 在 iframe 中執行,具備瀏覽器 API 與 WebSocket 支援。
Can I use this plugin in Figma browser editor?
不行。FigJam 外掛需要 Figma Desktop 應用程式。瀏覽器編輯器不支援自訂外掛開發。
How do I debug WebSocket connection issues?
在外掛 UI 上開啟瀏覽器 DevTools(右鍵 → Inspect),在 console 查看連線狀態與錯誤訊息。
Is my data safe when using this plugin?
是的。外掛在本機執行,WebSocket 伺服器在 localhost。資料不會送往外部伺服器。
Why is my code.ts failing with undefined errors?
主執行緒不能使用瀏覽器 API。請確保 code.ts 中沒有 window、document 或 fetch 呼叫,只使用 figma.* API。
How does this compare to other diagram tools?
此工具使用 YAML 定義架構並即時同步到 FigJam。相較於 draw.io,它提供可版本控制的圖表。

개발자 세부 정보

작성자

7nohe

라이선스

MIT

참조

main

파일 구조

📄 SKILL.md