跳到主要内容

Raster Edit

Polish rasters in Photoshop, Affinity, or Photopea.

Skill metadata​

SourceBundled (installed by default)
Pathskills/creative/raster-edit
Version1.0.0
AuthorVibeOS
LicenseMIT
Platformsmacos, windows, linux
Tagsphotoshop, affinity, photopea, raster, computer-use, creative
Related skillscreative-studio, choose-interaction-surface, computer-use, figma-edit

Reference: full SKILL.md​

信息

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Raster Edit Skill

Finish a still deliverable in a raster editor when image_generate alone is not enough (crop, type, simple retouch, export). This is Operate-on-editor, not a Photoshop/Affinity scripting API.

Prefer: generate with image_generate → open in editor → export to exports/. Use computer_use with SoM; escalate after two stuck attempts.

When to Use​

  • User asks to edit a PNG/JPEG/WebP/PSD in Photoshop, Affinity Photo, or Photopea.
  • Creative Studio mode editor / still handoff when generation needs polish.

Do not use for greenfield illustration (use image_generate / SVG first), or for purchases / Creative Cloud billing / store installs.

Prerequisites​

  • Target app installed (or Photopea in a headed browser the user already uses)
  • Source file path known; workspace exports/ ready
  • computer_use permissions; OS playbook skill as needed
  • Destructive overwrite of an existing master → human approve

How to Run​

  1. Confirm surface via choose-interaction-surface: native app → computer_use; Photopea web → browser_* first, CU only if the tab is a plain WebView.
  2. Open the file (File → Open / drag from Finder) — prefer known path dialogs.
  3. Do the smallest change that meets the brief (crop, type, levels, export).
  4. Export PNG/WebP/JPEG into exports/; verify the file exists.
  5. Fail after two stuck GUI attempts → ask the user; note gaps in qa.md.

Quick Reference​

AppOpenExport tip
PhotoshopFile → Open / recentFile → Export → Export As… / Save for Web
Affinity PhotoFile → OpenFile → Export (PNG/JPEG/WebP)
PhotopeaFile → Open (browser)File → Export As

Procedure​

Shared self-heal (max 2 retries)​

  1. computer_use capture mode=som (or ax) with app set when possible.
  2. Act by element index — never blind pixel spam.
  3. Re-capture after each dialog; if the tree is empty, try alternate surface once (browser ↔ CU), then escalate to the user.
  4. Web CAPTCHA / login walls → challenge-gate, not editor clicks.
  5. Stop before cloud sync publish / stock purchase unless asked.

When generation is enough​

If the brief only needs a new still with no layer work, stay on image_generate + vision_analyze and skip the raster editor.

Pitfalls​

  • Do not invent UXP/ExtendScript or Affinity macros — they are not core tools.
  • PSD/AFPHOTO masters stay user-owned; prefer exporting a delivery format.
  • License / sign-in / TCC dialogs are human gates.
  • Prefer regenerate + light edit over endless click loops.

Verification​

  • Exported raster exists under exports/ (or the brief’s export dir).
  • Dimensions/aspect roughly match the brief.
  • qa.md records pass/fail and any manual steps left for the user.