cell-lct README

The project's README from github.com/yrui-cmd/cell-lct. As one markdown file: README.md.

Cell-lct

本仓库的 Skill 与配套脚本采用 MIT 许可证 开源,欢迎修改和二次创作;第三方 API 服务由其提供方维护。

新亮点:去 AI 隐藏水印与可编辑绘图衔接

最新 main 已接入独立开源的 cell_no_ai:去字后可选择进行 AI 隐藏水印处理,自动接收返回图片,再继续描摹并恢复可编辑文字,生成 Adobe Illustrator 原生可编辑矢量图。选择跳过时直接继续原有绘图流程。

安装时会同时安装或更新 cell_no_ai,新的图片重建任务会自动检查其最新版本。隐藏水印处理由第三方 API 提供;支持的是处理流程,具体效果以服务返回及检测结果为准。

使用此新功能请从最新 main 安装;下方历史 v0.2.1 Tag/ZIP 不包含本次更新:

git clone --branch main --depth 1 https://github.com/yrui-cmd/cell-lct.git
Set-Location .\cell-lct
powershell -ExecutionPolicy Bypass -File .\setup.ps1

Cell-lct v0.2.1 是面向 Windows、Codex Desktop 与 Adobe Illustrator 2026 的稳定版科研矢量绘图插件。它将参考图重建为可编辑路径和真实 SVG 文本,并续画到用户已经打开的 Illustrator 文档中。

稳定版保证

环境要求

从固定 Tag 一键安装

git clone --branch v0.2.1 --depth 1 https://github.com/yrui-cmd/cell-lct.git
Set-Location .\cell-lct
powershell -ExecutionPolicy Bypass -File .\setup.ps1

首次安装会安装锁定依赖、复制 Skill、在终端中安全提示录入 API Key,并运行诊断。API Key 不应写进命令、仓库、截图或聊天记录。

如果已经存在同名 Skill,并确认要替换:

powershell -ExecutionPolicy Bypass -File .\setup.ps1 -Force

安装后重启 Codex,并新建任务。先由用户打开 Illustrator 2026 和目标文档,然后发送:

使用 $cell-lct,根据我上传的内容或图片在当前 Illustrator 画板中作图,保留全部已有内容。

从 Release ZIP 安装

下载同一版本的两个文件:

验证后解压并运行 setup.ps1:

$zip = '.\cell-lct-v0.2.1.zip'
$expected = ((Get-Content "$zip.sha256") -split '\s+')[0]
$actual = (Get-FileHash $zip -Algorithm SHA256).Hash.ToLowerInvariant()
if ($actual -ne $expected) { throw 'SHA256 校验失败,停止安装。' }
Expand-Archive $zip -DestinationPath .\cell-lct-v0.2.1
Set-Location .\cell-lct-v0.2.1\cell-lct-v0.2.1
powershell -ExecutionPolicy Bypass -File .\setup.ps1

诊断

.\doctor.ps1
.\doctor.ps1 -VerifyApi -RequireIllustratorOpen
.\doctor.ps1 -Json

诊断只检查 Illustrator 注册和进程状态,不会启动、重启、聚焦、最大化或关闭 Illustrator。

工作方式

测试与发行

.\tests\test-package.ps1
.\tests\test-windows-e2e.ps1
.\build-release.ps1

Illustrator 真机测试会向当前打开的文档写入测试图,只能在一次性测试文档中显式运行:

.\tests\test-illustrator-e2e.ps1 -ConfirmDisposableOpenDocument

生成的 ZIP 与 SHA256 位于 dist。CI 使用 Windows runner 执行离线绘制链路测试;Illustrator 真机链路仅在带 Illustrator 2026 的自托管 Windows runner 上人工触发。

可复现性边界

仓库可以固定 Skill、脚本、依赖、测试和发行文件,但无法把 Codex 内置 Image 2 或 Adobe Illustrator 本体打包进去。另一台电脑要获得一致流程,必须满足 runtime-lock.json 中的环境契约,并自行配置 DPAPI API Key。

完整插件源码位于 plugins/cell-lct,安装器只把其中的 cell-lct Skill 部署到用户的 Codex Skills 目录。原版 Cell-lct 与 Cell-lct 可以并存。

cell-lct (yrui-cmd/cell-lct)

Searching Database…

What is this?Cell-lct is an editable scientific vector drawing plugin for Adobe Illustrator. It reconstructs reference images (charts with arrows, axes, heatmaps, legends) into real editable vector paths and genuine SVG text, then draws them directly into the Illustrator document you already have open.
Is this an Illustrator plugin, or does it also need something else running?It ships as a Codex Desktop Skill plus PowerShell install scripts: Codex drives the workflow using its built-in Image 2 editing capability, while the actual vector drawing happens live inside Adobe Illustrator 2026 through a persistent connection.
What do I need installed before I can use it?Windows 10/11 x64, Codex Desktop, Adobe Illustrator 2026 (30.x), PowerShell 5.1 or higher, and Python 3.11–3.14, with all Python dependencies pinned via requirements.lock.
Does it ever touch my existing artwork in Illustrator?No — it never deletes, hides, or replaces content already on the artboard, and it only exports a PNG at the very end of the process; non-text elements like arrows, boxes, axes, heatmaps and legends are preserved throughout.
Does this work without internet access?No — text removal and the optional AI watermark-hiding step are both handled by a third-party API, so the quality of results depends on that external service and an internet connection with available quota is required.
What is cellnoai and do I have to use it?cellnoai is a separate open-source tool now wired into the latest main branch that can strip hidden AI watermarks from the de-texted reference image before vectorization. It's optional — skipping it just continues with the original image.
Does using this cost money?Image processing goes through a third-party API that consumes quota. Free daily quota is handed out in the author's Douyin group, and paid quota can be arranged via a Xiaohongshu contact; if a single image is expected to use more than one credit, the tool asks for confirmation before uploading.
Can I trust a v0.2.1 install to behave the same on another PC?Reproducibility is locked for the Skill, scripts, dependencies and release artifacts via requirements.lock and runtime-lock.json, but Codex's built-in Image 2 feature and Adobe Illustrator itself can't be bundled — both still need to be set up separately on each machine.
Do I click through a separate app, or just chat with Codex?There's no standalone GUI for this plugin. You open Illustrator 2026 and your target document yourself, then send the drawing request as a message in a Codex Desktop task.
Creator
yrui-cmd
Size
0.3 MB
Stars
394
Age
1mo
Commits · 90 Days