@imgly/codesign-mcp 0.3.0 → 0.3.1-next.20260827101508.gd4bd07a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/ai-plugins/apps.mjs +5 -5
- package/assets/ai-plugins/version.json +1 -1
- package/assets/docs/api/SKILL.md +2 -2
- package/assets/docs/api/index.d.ts +19 -3
- package/assets/docs/guide/SKILL.md +2 -2
- package/assets/docs/guide/actions.md +430 -0
- package/assets/docs/guide/api/node/interfaces/assetstylepreset.md +1 -1
- package/assets/docs/guide/api/node/type-aliases/exportoptions.md +1 -0
- package/assets/docs/guide/concepts/import-export.md +125 -0
- package/assets/docs/guide/concepts/plugin-architecture.md +187 -0
- package/assets/docs/guide/concepts.md +2 -0
- package/assets/docs/guide/conversion/to-pdf.md +1 -0
- package/assets/docs/guide/export-save-publish/export/compress.md +1 -0
- package/assets/docs/guide/export-save-publish/export/overview.md +5 -1
- package/assets/docs/guide/export-save-publish/export/to-pdf.md +17 -1
- package/assets/docs/guide/export-save-publish/for-printing.md +5 -0
- package/assets/docs/guide/file-format-support.md +3 -0
- package/assets/docs/guide/get-started/agent-skills.md +136 -34
- package/assets/docs/guide/get-started/cesdk-plugin-coding-agents.md +32 -10
- package/assets/docs/guide/guides.md +1 -0
- package/assets/docs/guide/open-the-editor/import-design/from-indesign.md +2 -0
- package/assets/docs/guide/open-the-editor/import-design/from-photoshop.md +4 -2
- package/assets/docs/guide/references/update-check.md +85 -0
- package/assets/docs/guide/rules/asset-handling.md +17 -6
- package/assets/docs/guide/rules/common-pitfalls.md +33 -22
- package/assets/docs/guide/rules/content-fill-mode.md +4 -4
- package/assets/docs/guide/rules/silent-init-errors.md +1 -1
- package/assets/docs/guide/rules/verify-properties-before-use.md +11 -2
- package/dist/assets/inline.generated.d.ts.map +1 -1
- package/dist/assets/inline.generated.js +28 -25
- package/dist/assets/inline.generated.js.map +1 -1
- package/dist/cli/trial-license.generated.d.ts +1 -1
- package/dist/cli/trial-license.generated.js +1 -1
- package/dist/cli/trial-license.generated.js.map +1 -1
- package/package.json +9 -9
- package/assets/docs/guide/api-reference/overview.md +0 -20
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
The CE.SDK Agent Skills
|
|
7
|
+
The CE.SDK Agent Skills plugins give AI coding assistants bundled documentation,
|
|
8
|
+
guided code generation, and project scaffolding for building applications with
|
|
9
|
+
CreativeEditor SDK across 10 Web frameworks, Swift on Apple platforms, and
|
|
10
|
+
Kotlin with Jetpack Compose on Android.
|
|
8
11
|
|
|
9
12
|
## What Are Agent Skills?
|
|
10
13
|
|
|
@@ -12,26 +15,52 @@ The CE.SDK Agent Skills plugin gives AI coding assistants bundled documentation,
|
|
|
12
15
|
|
|
13
16
|
- **Offline documentation**: All guides, API references, and best practices bundled locally — no external API calls
|
|
14
17
|
- **Guided code generation**: Build and explain skills that walk through CE.SDK implementation step by step
|
|
15
|
-
- **Autonomous scaffolding**:
|
|
18
|
+
- **Autonomous scaffolding**: The shared build skill creates and verifies complete CE.SDK projects from scratch
|
|
16
19
|
|
|
17
20
|
## Available Skills
|
|
18
21
|
|
|
19
|
-
| Skill | Description
|
|
20
|
-
| ---------------- |
|
|
21
|
-
| `docs-react` | Look up CE.SDK React reference guides and documentation
|
|
22
|
-
| `docs-vue` | Look up CE.SDK Vue.js reference guides and documentation
|
|
23
|
-
| `docs-svelte` | Look up CE.SDK Svelte reference guides and documentation
|
|
24
|
-
| `docs-sveltekit` | Look up CE.SDK SvelteKit reference guides and documentation
|
|
25
|
-
| `docs-angular` | Look up CE.SDK Angular reference guides and documentation
|
|
26
|
-
| `docs-nextjs` | Look up CE.SDK Next.js reference guides and documentation
|
|
27
|
-
| `docs-nuxtjs` | Look up CE.SDK Nuxt.js reference guides and documentation
|
|
28
|
-
| `docs-electron` | Look up CE.SDK Electron reference guides and documentation
|
|
29
|
-
| `docs-js` | Look up CE.SDK Vanilla JavaScript reference guides and documentation
|
|
30
|
-
| `docs-node` | Look up CE.SDK Node.js reference guides and documentation
|
|
31
|
-
| `build` | Implement features
|
|
32
|
-
| `explain` | Explain how CE.SDK Web features work — concepts, architecture, workflows
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
| Skill | Description |
|
|
23
|
+
| ---------------- | ------------------------------------------------------------------------- |
|
|
24
|
+
| `docs-react` | Look up CE.SDK React reference guides and documentation |
|
|
25
|
+
| `docs-vue` | Look up CE.SDK Vue.js reference guides and documentation |
|
|
26
|
+
| `docs-svelte` | Look up CE.SDK Svelte reference guides and documentation |
|
|
27
|
+
| `docs-sveltekit` | Look up CE.SDK SvelteKit reference guides and documentation |
|
|
28
|
+
| `docs-angular` | Look up CE.SDK Angular reference guides and documentation |
|
|
29
|
+
| `docs-nextjs` | Look up CE.SDK Next.js reference guides and documentation |
|
|
30
|
+
| `docs-nuxtjs` | Look up CE.SDK Nuxt.js reference guides and documentation |
|
|
31
|
+
| `docs-electron` | Look up CE.SDK Electron reference guides and documentation |
|
|
32
|
+
| `docs-js` | Look up CE.SDK Vanilla JavaScript reference guides and documentation |
|
|
33
|
+
| `docs-node` | Look up CE.SDK Node.js reference guides and documentation |
|
|
34
|
+
| `build` | Implement features and autonomously scaffold complete CE.SDK Web projects |
|
|
35
|
+
| `explain` | Explain how CE.SDK Web features work — concepts, architecture, workflows |
|
|
36
|
+
|
|
37
|
+
Claude Code additionally receives a thin optional `builder` agent adapter that
|
|
38
|
+
delegates to the same shared `build` skill. Codex uses the build skill directly.
|
|
39
|
+
|
|
40
|
+
The separate `cesdk-swift` plugin contains three Swift-focused skills:
|
|
41
|
+
|
|
42
|
+
| Skill | Description |
|
|
43
|
+
| --------- | ---------------------------------------------------------------------------- |
|
|
44
|
+
| `docs` | Look up first-party Swift guides and module-qualified API digests |
|
|
45
|
+
| `explain` | Explain CE.SDK Swift concepts and Apple-platform architecture |
|
|
46
|
+
| `build` | Implement Swift features and scaffold iOS projects from bundled starter kits |
|
|
47
|
+
|
|
48
|
+
`IMGLYEngine` is available on iOS, macOS, and Mac Catalyst. The prebuilt editor,
|
|
49
|
+
camera, UI modules, and bundled starter kits are iOS-only. When available, the
|
|
50
|
+
Swift skills prefer live Xcode symbols for the installed SDK and use bundled API
|
|
51
|
+
digests as a portable fallback.
|
|
52
|
+
|
|
53
|
+
The separate `cesdk-android` plugin contains three Android-focused skills:
|
|
54
|
+
|
|
55
|
+
| Skill | Description |
|
|
56
|
+
| --------- | ------------------------------------------------------------------------- |
|
|
57
|
+
| `docs` | Look up Android guides and Kotlin API digests |
|
|
58
|
+
| `explain` | Explain CE.SDK Android, Jetpack Compose, and engine concepts |
|
|
59
|
+
| `build` | Implement Kotlin features and scaffold projects from Android starter kits |
|
|
60
|
+
|
|
61
|
+
The Android API reference is distilled from first-party Dokka Markdown into
|
|
62
|
+
compact per-type digests. The bundled guides cover threading, Compose state,
|
|
63
|
+
and engine lifecycle behavior.
|
|
35
64
|
|
|
36
65
|
## Setup Instructions
|
|
37
66
|
|
|
@@ -45,6 +74,26 @@ claude plugin marketplace add imgly/agent-skills
|
|
|
45
74
|
|
|
46
75
|
# Install the plugin
|
|
47
76
|
claude plugin install cesdk@imgly
|
|
77
|
+
|
|
78
|
+
# Install the Swift plugin
|
|
79
|
+
claude plugin install cesdk-swift@imgly
|
|
80
|
+
|
|
81
|
+
# Install the Android plugin
|
|
82
|
+
claude plugin install cesdk-android@imgly
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Codex Plugin
|
|
86
|
+
|
|
87
|
+
Add the same marketplace and install the plugin in Codex:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# Add the marketplace (one-time setup)
|
|
91
|
+
codex plugin marketplace add imgly/agent-skills
|
|
92
|
+
|
|
93
|
+
# Install the Web, Swift, or Android plugin
|
|
94
|
+
codex plugin add cesdk@imgly
|
|
95
|
+
codex plugin add cesdk-swift@imgly
|
|
96
|
+
codex plugin add cesdk-android@imgly
|
|
48
97
|
```
|
|
49
98
|
|
|
50
99
|
### Vercel Skills CLI
|
|
@@ -70,13 +119,26 @@ For any skills-compatible agent, copy skill folders directly from the [GitHub re
|
|
|
70
119
|
# Clone the repo
|
|
71
120
|
git clone https://github.com/imgly/agent-skills.git
|
|
72
121
|
|
|
73
|
-
# Copy a specific skill into your
|
|
74
|
-
cp -r agent-skills/plugins/cesdk/skills/docs-react
|
|
122
|
+
# Copy a specific skill into your agent's skills directory
|
|
123
|
+
cp -r agent-skills/plugins/cesdk/skills/docs-react <skills-directory>/cesdk-docs-react
|
|
75
124
|
|
|
76
|
-
# Or copy the
|
|
77
|
-
cp agent-skills/plugins/cesdk/
|
|
125
|
+
# Or copy the native documentation skills
|
|
126
|
+
cp -r agent-skills/plugins/cesdk-swift/skills/docs <skills-directory>/cesdk-swift-docs
|
|
127
|
+
cp -r agent-skills/plugins/cesdk-android/skills/docs <skills-directory>/cesdk-android-docs
|
|
78
128
|
```
|
|
79
129
|
|
|
130
|
+
## Keeping Skills Current
|
|
131
|
+
|
|
132
|
+
Every generated skill records its CE.SDK version, generation date, and plugin
|
|
133
|
+
identifier. When a bundle is over six weeks old, or when you ask about updates,
|
|
134
|
+
the assistant can compare it with the matching stable, prerelease, or nightly
|
|
135
|
+
IMG.LY channel. This check is read-only.
|
|
136
|
+
|
|
137
|
+
Before changing anything, the assistant must identify whether the active skill
|
|
138
|
+
came from Claude Code, Codex, the Skills CLI, a Git checkout, or a manual copy.
|
|
139
|
+
It reports unknown or ambiguous installations instead of guessing and requests
|
|
140
|
+
explicit approval for the exact update command and target.
|
|
141
|
+
|
|
80
142
|
## Prerelease and Nightly Versions
|
|
81
143
|
|
|
82
144
|
By default every install method above tracks the **latest stable** CE.SDK release. If you build against a prerelease or nightly engine build (for example `@cesdk/node-native` on the `next` or `dev` npm dist-tag), you can install the matching skills from a dedicated release channel. The channels mirror the npm dist-tag names:
|
|
@@ -87,7 +149,9 @@ By default every install method above tracks the **latest stable** CE.SDK releas
|
|
|
87
149
|
| Prerelease | `next` | `next` | Latest release candidate (e.g. `1.77.0-rc.4`) |
|
|
88
150
|
| Nightly | `dev` | `dev` | Latest nightly build (e.g. `1.78.0-nightly.20260630`) |
|
|
89
151
|
|
|
90
|
-
Every published version is also available under an exact `v<version>`
|
|
152
|
+
Every published version is also available under an exact `v<version>` Git tag.
|
|
153
|
+
Use the channel-specific instructions below to track a moving channel or pin one
|
|
154
|
+
published build.
|
|
91
155
|
|
|
92
156
|
> **Note:** The `v<version>` tag for a given nightly only exists if that nightly actually published skills — when a night's generated content is identical to the previous publish, no new tag is created for that date.
|
|
93
157
|
|
|
@@ -109,6 +173,24 @@ claude plugin marketplace add imgly/agent-skills@v1.78.0-nightly.20260630
|
|
|
109
173
|
claude plugin install cesdk@imgly
|
|
110
174
|
```
|
|
111
175
|
|
|
176
|
+
### Codex Plugin
|
|
177
|
+
|
|
178
|
+
Add the matching marketplace ref:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
# Prerelease channel
|
|
182
|
+
codex plugin marketplace add imgly/agent-skills@next
|
|
183
|
+
codex plugin add cesdk@imgly
|
|
184
|
+
|
|
185
|
+
# Nightly channel
|
|
186
|
+
codex plugin marketplace add imgly/agent-skills@dev
|
|
187
|
+
codex plugin add cesdk@imgly
|
|
188
|
+
|
|
189
|
+
# A specific published version
|
|
190
|
+
codex plugin marketplace add imgly/agent-skills@v1.78.0-nightly.20260630
|
|
191
|
+
codex plugin add cesdk@imgly
|
|
192
|
+
```
|
|
193
|
+
|
|
112
194
|
### Vercel Skills CLI
|
|
113
195
|
|
|
114
196
|
Specify a channel branch or version tag with the `#<ref>` fragment (or an equivalent `/tree/<ref>` URL):
|
|
@@ -138,35 +220,55 @@ git clone -b v1.78.0-nightly.20260630 https://github.com/imgly/agent-skills.git
|
|
|
138
220
|
|
|
139
221
|
## Usage
|
|
140
222
|
|
|
141
|
-
|
|
223
|
+
Ask naturally and let your assistant select the right skill. For explicit
|
|
224
|
+
selection, type `/` in Claude Code or `$` in Codex, then select the matching
|
|
225
|
+
skill from the installed CE.SDK plugin.
|
|
142
226
|
|
|
143
227
|
### Look up documentation
|
|
144
228
|
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
229
|
+
```text
|
|
230
|
+
Use the docs-react skill to look up CE.SDK configuration.
|
|
231
|
+
Use the docs-vue skill for getting started.
|
|
232
|
+
Use the docs-nextjs skill to explain server-side rendering.
|
|
149
233
|
```
|
|
150
234
|
|
|
151
235
|
### Build a feature
|
|
152
236
|
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
|
|
237
|
+
```text
|
|
238
|
+
Use the build skill to add text overlays to images.
|
|
239
|
+
Use the build skill to create a photo editor with filters.
|
|
156
240
|
```
|
|
157
241
|
|
|
158
242
|
### Explain a concept
|
|
159
243
|
|
|
244
|
+
```text
|
|
245
|
+
Use the explain skill to describe how the block hierarchy works.
|
|
246
|
+
Use the explain skill to describe the export pipeline and output formats.
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Use Swift skills
|
|
250
|
+
|
|
251
|
+
```text
|
|
252
|
+
Use the cesdk-swift docs skill to look up IMGLYEngine asset sources.
|
|
253
|
+
Use the cesdk-swift build skill to create an iOS photo editor.
|
|
254
|
+
Use the cesdk-swift explain skill to describe custom editor UI on macOS.
|
|
160
255
|
```
|
|
161
|
-
|
|
162
|
-
|
|
256
|
+
|
|
257
|
+
### Use Android skills
|
|
258
|
+
|
|
259
|
+
```text
|
|
260
|
+
Use the cesdk-android docs skill to look up BlockApi.create.
|
|
261
|
+
Use the cesdk-android build skill to create a Compose photo editor.
|
|
262
|
+
Use the cesdk-android explain skill to describe the EditorConfiguration.remember lifecycle.
|
|
163
263
|
```
|
|
164
264
|
|
|
165
265
|
## How It Works
|
|
166
266
|
|
|
167
267
|
Each documentation skill bundles the complete CE.SDK guides and API references for its framework in a compressed index. Skills read directly from these local files — no external services or MCP servers are required.
|
|
168
268
|
|
|
169
|
-
The build
|
|
269
|
+
The build skills include starter kit templates for common use cases like design
|
|
270
|
+
editors, video editors, and photo editors. They select the matching Web, Swift,
|
|
271
|
+
or Android project structure and generate code accordingly.
|
|
170
272
|
|
|
171
273
|
|
|
172
274
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
The CE.SDK plugin is the one-command way to give your AI coding agent
|
|
7
|
+
The CE.SDK plugin is the one-command way to give your AI coding agent bundled documentation skills and guided workflows for CreativeEditor SDK. Claude Code additionally receives an autonomous project scaffolder.
|
|
8
8
|
|
|
9
9
|
> **Note:** Looking to add AI **generation features** — image, video, audio, or text —
|
|
10
10
|
> into the editor for your own users? That's a different journey: see 
|
|
@@ -20,14 +20,14 @@ A plugin is the distribution unit that bundles several agent capabilities behind
|
|
|
20
20
|
- **MCP servers** — live connections to external tools and data
|
|
21
21
|
- **Hooks** — handlers that run at lifecycle points, such as before or after a tool call
|
|
22
22
|
|
|
23
|
-
The CE.SDK plugin packages documentation skills
|
|
23
|
+
The CE.SDK plugin packages documentation skills and two workflow skills. Claude Code additionally receives an autonomous builder agent:
|
|
24
24
|
|
|
25
|
-
| Capability
|
|
26
|
-
|
|
27
|
-
| **Documentation skills**
|
|
28
|
-
| **Build skill**
|
|
29
|
-
| **Explain skill**
|
|
30
|
-
| **Builder agent** | Autonomous scaffolding that detects your framework and implements a working CE.SDK project end to end
|
|
25
|
+
| Capability | What it gives your agent |
|
|
26
|
+
| ------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
27
|
+
| **Documentation skills** | The complete CE.SDK guides and API reference for each Web framework, bundled locally — no external calls |
|
|
28
|
+
| **Build skill** | Guided code generation and project setup (`/cesdk:build`) |
|
|
29
|
+
| **Explain skill** | Concept and architecture walkthroughs (`/cesdk:explain`) |
|
|
30
|
+
| **Builder agent (Claude Code)** | Autonomous scaffolding that detects your framework and implements a working CE.SDK project end to end |
|
|
31
31
|
|
|
32
32
|
For the full skill list, see [Agent Skills](./get-started/agent-skills.md). For real-time documentation search, connect the [MCP Server](./get-started/mcp-server.md).
|
|
33
33
|
|
|
@@ -45,9 +45,18 @@ claude plugin marketplace add imgly/agent-skills
|
|
|
45
45
|
claude plugin install cesdk@imgly
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
### OpenAI Codex
|
|
49
|
+
|
|
50
|
+
Add the same marketplace, then install the plugin:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
codex plugin marketplace add imgly/agent-skills
|
|
54
|
+
codex plugin add cesdk@imgly
|
|
55
|
+
```
|
|
56
|
+
|
|
48
57
|
### Vercel Skills CLI (Codex, Cursor, and more)
|
|
49
58
|
|
|
50
|
-
|
|
59
|
+
Claude Code and Codex can install CE.SDK agent plugins through their respective marketplaces. For a skills-only installation—or for agents without a plugin marketplace—install the portable skills across **OpenAI Codex**, Cursor, GitHub Copilot, Windsurf, and 70+ more with the [Vercel Skills CLI](https://github.com/vercel-labs/skills), picking your agent with `-a`:
|
|
51
60
|
|
|
52
61
|
```bash
|
|
53
62
|
# OpenAI Codex
|
|
@@ -71,14 +80,27 @@ For any skills-compatible agent, copy skill folders directly from the [GitHub re
|
|
|
71
80
|
|
|
72
81
|
```bash
|
|
73
82
|
git clone https://github.com/imgly/agent-skills.git
|
|
83
|
+
|
|
84
|
+
# Codex and other agents that read the portable Agent Skills directory
|
|
85
|
+
cp -r agent-skills/plugins/cesdk/skills/docs-react .agents/skills/cesdk-docs-react
|
|
86
|
+
|
|
87
|
+
# Claude Code
|
|
74
88
|
cp -r agent-skills/plugins/cesdk/skills/docs-react .claude/skills/cesdk-docs-react
|
|
75
89
|
```
|
|
76
90
|
|
|
77
91
|
## Verify
|
|
78
92
|
|
|
79
|
-
Once installed,
|
|
93
|
+
Once installed, ask your agent to use one of the bundled skills to confirm the plugin is active:
|
|
80
94
|
|
|
95
|
+
```text
|
|
96
|
+
Use the CE.SDK build skill to create a photo editor with filters.
|
|
97
|
+
Use the CE.SDK React documentation skill to look up configuration.
|
|
98
|
+
Use the CE.SDK explain skill to describe the block hierarchy.
|
|
81
99
|
```
|
|
100
|
+
|
|
101
|
+
Claude Code users can also invoke the same workflows with slash commands:
|
|
102
|
+
|
|
103
|
+
```text
|
|
82
104
|
/cesdk:build create a photo editor with filters
|
|
83
105
|
/cesdk:docs-react configuration
|
|
84
106
|
/cesdk:explain how the block hierarchy works
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
## Related Pages
|
|
14
14
|
|
|
15
15
|
- [Configuration](./configuration.md) - Learn how to configure CE.SDK to match your application's functional, visual, and performance requirements.
|
|
16
|
+
- [Actions API](./actions.md) - Learn how to use the Actions API to register and customize action handlers in CE.SDK on Node.js
|
|
16
17
|
- [Settings](./settings.md) - Explore all configurable editor settings and learn how to read, update, and observe them via the Settings API.
|
|
17
18
|
- [Serve Assets](./serve-assets.md) - Configure CE.SDK to load engine and content assets from your own servers instead of the IMG.LY CDN for production deployments.
|
|
18
19
|
- [Engine Interface](./engine-interface.md) - Understand CE.SDK's architecture and learn when to use direct Engine access for automation workflows
|
|
@@ -851,6 +851,8 @@ The IDML importer has the following limitations:
|
|
|
851
851
|
- **Embedded PDF / `.ai`** - Imports as editable blocks when `@imgly/pdf-importer` is installed and `createPdfEmbeddedImporter(PDFParser)` is registered in `embeddedImporters`. Without the adapter, embeds fall through to a placeholder image. Non-rectangular frame clipping and per-embed PDF crop attributes are not yet applied.
|
|
852
852
|
- **Advanced text** - Complex text formatting beyond bold/italic may not be preserved.
|
|
853
853
|
|
|
854
|
+
These are the highlights only—the [`@imgly/idml-importer`](https://www.npmjs.com/package/@imgly/idml-importer) page on npm maintains the complete, up-to-date list of supported features and limitations.
|
|
855
|
+
|
|
854
856
|
## Pre-Import Checklist
|
|
855
857
|
|
|
856
858
|
Before exporting from InDesign:
|
|
@@ -813,8 +813,10 @@ The PSD importer has the following limitations:
|
|
|
813
813
|
- **Text** - No multiple font sizes or families within a single text layer; no text justification
|
|
814
814
|
- **Images** - Image cropping not supported
|
|
815
815
|
- **Fills** - Gradient fills not supported (solid colors only)
|
|
816
|
-
- **Blend modes** -
|
|
817
|
-
- **Advanced text** -
|
|
816
|
+
- **Blend modes** - Some Photoshop blend modes are not supported (for example PassThrough, Dissolve and Subtract)
|
|
817
|
+
- **Advanced text** - Advanced text styling such as kerning, ligatures and baseline shift is not fully supported
|
|
818
|
+
|
|
819
|
+
These are the highlights only—the [`@imgly/psd-importer`](https://www.npmjs.com/package/@imgly/psd-importer) page on npm maintains the complete, up-to-date list of supported features and limitations.
|
|
818
820
|
|
|
819
821
|
## Troubleshooting
|
|
820
822
|
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# CE.SDK Skill Update Check
|
|
2
|
+
|
|
3
|
+
Age only triggers a check; it does not prove that an update exists.
|
|
4
|
+
|
|
5
|
+
## Read-only version and source check
|
|
6
|
+
|
|
7
|
+
1. Reuse a CE.SDK update result already obtained during this task.
|
|
8
|
+
2. Read the local version and plugin name from the calling `SKILL.md`.
|
|
9
|
+
3. Identify the active host, then inspect every read-only provenance source
|
|
10
|
+
below that could actually supply the calling skill. Collect all matching
|
|
11
|
+
records before selecting a channel.
|
|
12
|
+
4. For one unambiguous canonical IMG.LY installation, use its recorded ref:
|
|
13
|
+
normalize `main` and `latest` to `latest`; otherwise accept
|
|
14
|
+
`next`, `dev`, or `legacy`. If the exact canonical repository is
|
|
15
|
+
recorded without a ref, use its default `main` branch as `latest`.
|
|
16
|
+
An exact `v<version>` tag is pinned: report it and do not compare it with
|
|
17
|
+
a moving channel unless the user asks to change channels.
|
|
18
|
+
5. Without unambiguous provenance, do not select a moving channel from the
|
|
19
|
+
version alone. A nightly could be `dev` or an exact tag, a release
|
|
20
|
+
candidate could be `next`, `legacy`, or an exact tag, and a stable
|
|
21
|
+
version could be `latest`, `legacy`, or an exact tag. Report its update
|
|
22
|
+
status as undetermined instead of guessing. If the user requested an update
|
|
23
|
+
check, ask which moving channel or pinned release they intend before fetching
|
|
24
|
+
a catalog. Never compare versions across channels.
|
|
25
|
+
6. Fetch only the selected channel's canonical catalog:
|
|
26
|
+
`https://raw.githubusercontent.com/imgly/agent-skills/<channel>/.claude-plugin/marketplace.json`.
|
|
27
|
+
7. Select `plugins[].version` from the entry whose `name` exactly matches
|
|
28
|
+
the local plugin. Compare the two values as SemVer. Never substitute
|
|
29
|
+
`metadata.version` when the plugin entry is absent.
|
|
30
|
+
8. If the catalog is unavailable, malformed, missing the plugin, or the
|
|
31
|
+
versions are incomparable, report that update status could not be determined
|
|
32
|
+
and continue with the bundled documentation.
|
|
33
|
+
9. If the remote version is not newer, continue without interrupting the user.
|
|
34
|
+
If it is newer, report installed and available versions once. Do not change
|
|
35
|
+
local state.
|
|
36
|
+
|
|
37
|
+
## Read-only installation provenance
|
|
38
|
+
|
|
39
|
+
Inspect only records that could supply the calling skill. Matching records that
|
|
40
|
+
describe the same source, ref, scope, and active path corroborate one
|
|
41
|
+
installation; conflicting candidates make provenance ambiguous.
|
|
42
|
+
|
|
43
|
+
- On Claude Code, read `claude plugin list --json` and
|
|
44
|
+
`claude plugin marketplace list --json`. Require the exact plugin,
|
|
45
|
+
marketplace `imgly`, and source `imgly/agent-skills`.
|
|
46
|
+
- On Codex, read `codex plugin list --json` and
|
|
47
|
+
`codex plugin marketplace list --json`. Require the exact plugin, marketplace
|
|
48
|
+
`imgly`, and canonical marketplace source.
|
|
49
|
+
- Skills CLI: read project `skills-lock.json`, then
|
|
50
|
+
`~/.agents/.skill-lock.json`. Require the exact
|
|
51
|
+
`imgly/agent-skills` source and a matching `skillPath`.
|
|
52
|
+
- Symlink or Git checkout: resolve the active `SKILL.md` and require a Git
|
|
53
|
+
origin exactly matching `https://github.com/imgly/agent-skills` or its SSH
|
|
54
|
+
equivalent. Record its ref and dirty state without changing either. A
|
|
55
|
+
checkout nested in an already matched host- or Skills-managed root
|
|
56
|
+
corroborates that installation; only a standalone checkout is a separate
|
|
57
|
+
candidate.
|
|
58
|
+
- Otherwise report the installation as manual or unknown.
|
|
59
|
+
|
|
60
|
+
Do not inspect another host's inventory merely because its CLI is installed.
|
|
61
|
+
Directory names alone are not provenance. If records point to different active
|
|
62
|
+
candidates, report the ambiguity instead of choosing one.
|
|
63
|
+
|
|
64
|
+
## Update only after approval
|
|
65
|
+
|
|
66
|
+
Show the current and available versions, detected method, scope, source, exact
|
|
67
|
+
target, and exact command. Then request explicit approval.
|
|
68
|
+
|
|
69
|
+
Typical approved routes are:
|
|
70
|
+
|
|
71
|
+
- Claude Code:
|
|
72
|
+
`claude plugin update <plugin>@imgly --scope <recorded-scope>`
|
|
73
|
+
- Codex: `codex plugin marketplace upgrade imgly`, verify the version, then
|
|
74
|
+
`codex plugin add <plugin>@imgly` if the installed plugin still needs to be
|
|
75
|
+
refreshed. Start a new task after reinstalling.
|
|
76
|
+
- Skills CLI:
|
|
77
|
+
`npx skills update <exact-skill-name> --project` or `--global`,
|
|
78
|
+
matching the recorded scope.
|
|
79
|
+
- Git or manual copy: inspect the checkout or destination first and propose a
|
|
80
|
+
recoverable, target-specific operation. Never assume that `git pull` or
|
|
81
|
+
overwriting a directory is safe.
|
|
82
|
+
|
|
83
|
+
Refer managed installations to their administrator. Never update a fork, local
|
|
84
|
+
development plugin, symlink target, or unknown copy as though it came from an
|
|
85
|
+
IMG.LY release channel.
|
|
@@ -7,6 +7,7 @@ Patterns for working with images, URIs, and fills in CE.SDK.
|
|
|
7
7
|
CE.SDK uses a **Skia-based rendering engine** with limited SVG support. Complex SVGs (gradients, filters, advanced paths) may render incorrectly or as blank.
|
|
8
8
|
|
|
9
9
|
**Recommended formats:**
|
|
10
|
+
|
|
10
11
|
- **PNG** — Best compatibility, supports alpha transparency
|
|
11
12
|
- **WebP** — Smaller file size, good browser support
|
|
12
13
|
- **JPEG** — For photos without transparency
|
|
@@ -76,6 +77,7 @@ engine.block.setSourceSet(fill, 'fill/image/sourceSet', [
|
|
|
76
77
|
```
|
|
77
78
|
|
|
78
79
|
The `Source` type from `@cesdk/engine`:
|
|
80
|
+
|
|
79
81
|
```typescript
|
|
80
82
|
interface Source {
|
|
81
83
|
uri: string;
|
|
@@ -89,7 +91,11 @@ interface Source {
|
|
|
89
91
|
Sets only the URI — the engine must load the image to determine dimensions:
|
|
90
92
|
|
|
91
93
|
```typescript
|
|
92
|
-
engine.block.setString(
|
|
94
|
+
engine.block.setString(
|
|
95
|
+
fill,
|
|
96
|
+
'fill/image/imageFileURI',
|
|
97
|
+
'https://example.com/mockup.png'
|
|
98
|
+
);
|
|
93
99
|
```
|
|
94
100
|
|
|
95
101
|
Use `setSourceSet` when you know the image dimensions (which you usually do for mockups and templates).
|
|
@@ -100,11 +106,11 @@ Use `setSourceSet` when you know the image dimensions (which you usually do for
|
|
|
100
106
|
|
|
101
107
|
CE.SDK supports several fill types:
|
|
102
108
|
|
|
103
|
-
| Fill Type | Created With
|
|
104
|
-
|
|
109
|
+
| Fill Type | Created With | Use Case |
|
|
110
|
+
| --------- | ---------------------------------- | ----------------------------------------- |
|
|
105
111
|
| `'image'` | `engine.block.createFill('image')` | Product mockups, user photos, backgrounds |
|
|
106
|
-
| `'color'` | `engine.block.createFill('color')` | Solid color backgrounds, placeholders
|
|
107
|
-
| `'video'` | `engine.block.createFill('video')` | Video backgrounds
|
|
112
|
+
| `'color'` | `engine.block.createFill('color')` | Solid color backgrounds, placeholders |
|
|
113
|
+
| `'video'` | `engine.block.createFill('video')` | Video backgrounds |
|
|
108
114
|
|
|
109
115
|
### Setting Fills
|
|
110
116
|
|
|
@@ -116,7 +122,12 @@ engine.block.setSourceSet(imageFill, 'fill/image/sourceSet', sources);
|
|
|
116
122
|
|
|
117
123
|
// Color fill (e.g. transparent page background)
|
|
118
124
|
const colorFill = engine.block.getFill(page); // pages have a default fill
|
|
119
|
-
engine.block.setColor(colorFill, 'fill/color/value', {
|
|
125
|
+
engine.block.setColor(colorFill, 'fill/color/value', {
|
|
126
|
+
r: 0,
|
|
127
|
+
g: 0,
|
|
128
|
+
b: 0,
|
|
129
|
+
a: 0
|
|
130
|
+
});
|
|
120
131
|
```
|
|
121
132
|
|
|
122
133
|
---
|
|
@@ -20,10 +20,7 @@ See: `mockup-editor-architecture.md` (in the rules directory)
|
|
|
20
20
|
|
|
21
21
|
```javascript
|
|
22
22
|
import sharp from 'sharp';
|
|
23
|
-
await sharp('mockup.svg')
|
|
24
|
-
.resize(800, 940)
|
|
25
|
-
.png()
|
|
26
|
-
.toFile('mockup.png');
|
|
23
|
+
await sharp('mockup.svg').resize(800, 940).png().toFile('mockup.png');
|
|
27
24
|
```
|
|
28
25
|
|
|
29
26
|
Ensure PNGs preserve alpha transparency (`hasAlpha: true`).
|
|
@@ -85,10 +82,19 @@ engine.editor.setSettingBool('page/dimOutOfPageAreas', false);
|
|
|
85
82
|
|
|
86
83
|
```typescript
|
|
87
84
|
import {
|
|
88
|
-
ImageColorsAssetSource,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
ImageColorsAssetSource,
|
|
86
|
+
BlurAssetSource,
|
|
87
|
+
ColorPaletteAssetSource,
|
|
88
|
+
CropPresetsAssetSource,
|
|
89
|
+
DemoAssetSources,
|
|
90
|
+
EffectsAssetSource,
|
|
91
|
+
FiltersAssetSource,
|
|
92
|
+
PagePresetsAssetSource,
|
|
93
|
+
StickerAssetSource,
|
|
94
|
+
TextAssetSource,
|
|
95
|
+
TextComponentAssetSource,
|
|
96
|
+
TypefaceAssetSource,
|
|
97
|
+
UploadAssetSources,
|
|
92
98
|
VectorShapeAssetSource
|
|
93
99
|
} from '@cesdk/cesdk-js/plugins';
|
|
94
100
|
|
|
@@ -119,20 +125,20 @@ await cesdk.addPlugin(
|
|
|
119
125
|
|
|
120
126
|
Asset source IDs:
|
|
121
127
|
|
|
122
|
-
| Plugin Class
|
|
123
|
-
|
|
124
|
-
| `BlurAssetSource`
|
|
128
|
+
| Plugin Class | Asset Source ID |
|
|
129
|
+
| --------------------------- | ------------------------ |
|
|
130
|
+
| `BlurAssetSource` | `ly.img.blur` |
|
|
125
131
|
| `CaptionPresetsAssetSource` | `ly.img.caption.presets` |
|
|
126
|
-
| `ColorPaletteAssetSource`
|
|
127
|
-
| `CropPresetsAssetSource`
|
|
128
|
-
| `EffectsAssetSource`
|
|
129
|
-
| `FiltersAssetSource`
|
|
130
|
-
| `PagePresetsAssetSource`
|
|
131
|
-
| `StickerAssetSource`
|
|
132
|
-
| `TextAssetSource`
|
|
133
|
-
| `TextComponentAssetSource`
|
|
134
|
-
| `TypefaceAssetSource`
|
|
135
|
-
| `VectorShapeAssetSource`
|
|
132
|
+
| `ColorPaletteAssetSource` | `ly.img.color.palette` |
|
|
133
|
+
| `CropPresetsAssetSource` | `ly.img.crop.presets` |
|
|
134
|
+
| `EffectsAssetSource` | `ly.img.effect` |
|
|
135
|
+
| `FiltersAssetSource` | `ly.img.filter` |
|
|
136
|
+
| `PagePresetsAssetSource` | `ly.img.page.presets` |
|
|
137
|
+
| `StickerAssetSource` | `ly.img.sticker` |
|
|
138
|
+
| `TextAssetSource` | `ly.img.text` |
|
|
139
|
+
| `TextComponentAssetSource` | `ly.img.text.components` |
|
|
140
|
+
| `TypefaceAssetSource` | `ly.img.typeface` |
|
|
141
|
+
| `VectorShapeAssetSource` | `ly.img.vector.shape` |
|
|
136
142
|
|
|
137
143
|
---
|
|
138
144
|
|
|
@@ -141,6 +147,7 @@ Asset source IDs:
|
|
|
141
147
|
**Problem:** Setting a white product mockup as a page's image fill makes it invisible — white image on white canvas background.
|
|
142
148
|
|
|
143
149
|
**Solution:** Don't use page image fills for mockups. The correct architecture uses:
|
|
150
|
+
|
|
144
151
|
1. **Transparent** page fill (`{ r: 0, g: 0, b: 0, a: 0 }`)
|
|
145
152
|
2. **Scene-level mockup block** behind the page
|
|
146
153
|
3. CE.SDK's gray canvas background provides contrast
|
|
@@ -186,7 +193,11 @@ engine.block.setSourceSet(fill, 'fill/image/sourceSet', [
|
|
|
186
193
|
]);
|
|
187
194
|
|
|
188
195
|
// Avoid for production use
|
|
189
|
-
engine.block.setString(
|
|
196
|
+
engine.block.setString(
|
|
197
|
+
fill,
|
|
198
|
+
'fill/image/imageFileURI',
|
|
199
|
+
'https://example.com/image.png'
|
|
200
|
+
);
|
|
190
201
|
```
|
|
191
202
|
|
|
192
203
|
The `Source` type from `@cesdk/engine` defines the shape: `{ uri: string; width: number; height: number }`.
|
|
@@ -16,11 +16,11 @@ engine.block.setEnum(block, 'contentFill/mode', 'Cover');
|
|
|
16
16
|
|
|
17
17
|
## Common Values
|
|
18
18
|
|
|
19
|
-
| Value
|
|
20
|
-
|
|
19
|
+
| Value | Behavior |
|
|
20
|
+
| ----------- | ------------------------------------------------------ |
|
|
21
21
|
| `'Contain'` | Scale to fit within the block, preserving aspect ratio |
|
|
22
|
-
| `'Cover'`
|
|
23
|
-
| `'Crop'`
|
|
22
|
+
| `'Cover'` | Scale to fill the block, cropping as needed |
|
|
23
|
+
| `'Crop'` | Manual crop region |
|
|
24
24
|
|
|
25
25
|
## Why This Is Confusing
|
|
26
26
|
|
|
@@ -23,7 +23,12 @@ if (props.includes('animationEasing')) {
|
|
|
23
23
|
## Pattern: Safe Property Access
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
|
-
function safeSetEnum(
|
|
26
|
+
function safeSetEnum(
|
|
27
|
+
engine: CreativeEngine,
|
|
28
|
+
block: number,
|
|
29
|
+
prop: string,
|
|
30
|
+
value: string
|
|
31
|
+
): boolean {
|
|
27
32
|
const props = engine.block.findAllProperties(block);
|
|
28
33
|
if (props.includes(prop)) {
|
|
29
34
|
engine.block.setEnum(block, prop, value);
|
|
@@ -32,7 +37,11 @@ function safeSetEnum(engine: CreativeEngine, block: number, prop: string, value:
|
|
|
32
37
|
return false;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
|
-
function safeGetFloat(
|
|
40
|
+
function safeGetFloat(
|
|
41
|
+
engine: CreativeEngine,
|
|
42
|
+
block: number,
|
|
43
|
+
prop: string
|
|
44
|
+
): number | undefined {
|
|
36
45
|
const props = engine.block.findAllProperties(block);
|
|
37
46
|
if (props.includes(prop)) {
|
|
38
47
|
return engine.block.getFloat(block, prop);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.generated.d.ts","sourceRoot":"","sources":["../../src/assets/inline.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"inline.generated.d.ts","sourceRoot":"","sources":["../../src/assets/inline.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgmBhD,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEvD,CAAC"}
|