MagicLayers for AI Agents

Your agent submits the image and retrieves the PSD or print files after you pay.

Copy the setup prompt

Agent setup prompt
Read https://magiclayers.app/agent/skills/magiclayers/SKILL.md and help me install the MagicLayers CLI and Skill. Ask for my source image, delivery email and whether I need editable design layers or automatic spot-color print separations. Show me the task quote and hosted checkout link. After I pay, check the same task and download its verified delivery. Preserve the task ID and private access file when resuming.

Install the CLI and Skill

Node.js 22 or newer · macOS Apple Silicon or Linux x64 with glibc 2.31 or newer. No Rust, registration or API key required.

The npm package includes native executables and the Agent Skill. Windows, macOS Intel and Linux ARM64 are not included in this release.

Terminal · CLI 2.6.3
npm install -g @canvatopsd/magiclayers@2.6.3
magiclayers --version
magiclayers discover
magiclayers doctor
magiclayers skill install agents
magiclayers skill status agents

Use --dir to install the Skill in your agent’s custom skills directory. Start a new agent session after installing.

Alternative · install the Skill with skills.sh
npx skills add canvatopsd/magiclayers-cli --skill magiclayers

This installs the Skill instructions only; install the CLI with npm above. Use either Skill installation method, then start a new agent session. The bundled installer also supports codex, claude-code, cursor and copilot.

Building from source requires Rust/Cargo with edition 2024 support and a native linker. These requirements apply only to source installation.

Submit, pay and download

Use PNG, JPEG or WebP up to 30 MiB. Check arguments locally first, then submit the image and save the returned task ID.

Image layering
magiclayers convert ./image.png --email you@example.com --dry-run
magiclayers convert ./image.png --email you@example.com
# Use the returned task ID below:
magiclayers checkout TASK_ID
# Complete the hosted Stripe checkout, then verify payment:
magiclayers verify-payment TASK_ID
magiclayers status TASK_ID
# Once delivery is ready:
magiclayers download TASK_ID --output ./delivery.zip

For print separations, add --print to both conversion commands. Colors are extracted automatically, up to twelve inks, at 300 DPI on white. The ZIP contains one grayscale TIFF per ink and an RGB layered PSD preserving the original colors.

Processing starts after payment is verified. The payment command reads the payment record and status checks task progress.

Resume a task

Keep the original task ID and the private access file saved by the CLI. Reuse the same inputs if you need to retry submission.

Find saved access files and recover a task.