How marelegsaa/split-ai works
Split is a Photoshop UXP plugin that turns natural-language editing requests into reviewable plans and applies approved edits through Photoshop. The main flow is prompt entry, document context and preview capture, Gemini plan generation, user review, then operation dispatch. Manual controls and layer tools are also documented capabilities. Source excerpts show the main orchestration and editing calls; some UI and validation details are supported only by the README, so those links are documented rather than inferred from unsampled code.
Main entry points: ai.js Plan analysis · ui.js Panel UI · operations.js Image operations · config.js Photoshop bindings
Components 13
Plugin panel
- Plugin entry
index.js - Panel UI
modules/ui.js - Manual controls
modules/ui.js
AI planning
- Plan analysis
modules/ai.js - Prompt builder
modules/prompts.js - Document context
modules/document.js - Status and checks
modules/utils.js
Photoshop editing
- Image operations
modules/operations.js - Layer operations
modules/layers.js
Plugin foundation
- Photoshop bindings
modules/config.js
Other components
- Photoshop user
- Gemini API
- Adobe Photoshop
Connections 19
- Photoshop user → Panel UI: enters request
README.md - Plugin entry → Panel UI: initializes
index.js - Panel UI → Plan analysis: starts analysis
modules/ui.js - Panel UI → Plan analysis: approves plan
modules/ui.js - Panel UI → Manual controls: offers controls
README.md - Manual controls → Image operations: requests edits
README.md - Plan analysis → Document context: captures context
modules/ai.js - Plan analysis → Prompt builder: builds prompt
modules/ai.js - Plan analysis → Gemini API: sends request
modules/ai.js - Gemini API → Plan analysis: returns plan
modules/ai.js - Plan analysis → Status and checks: reports status
modules/ai.js - Plan analysis → Image operations: dispatches edits
modules/ai.js - Plan analysis → Layer operations: dispatches layer edits
modules/ai.js - Image operations → Photoshop bindings: uses bindings
modules/operations.js - Layer operations → Photoshop bindings: uses bindings
modules/layers.js - Document context → Photoshop bindings: uses bindings
modules/document.js - Photoshop bindings → Adobe Photoshop: binds APIs
modules/config.js - Image operations → Adobe Photoshop: applies descriptors
modules/operations.js - Layer operations → Adobe Photoshop: changes layers
modules/layers.js