agentleFS
Xiangyu-CASXiangyu-CAS/codex-canvas/skills/canvas-edit-text/SKILL.md

canvas-edit-text

Skill133 starsChanged 5 months agoMITView on GitHub

Recognize visible text in a selected Codex-Canvas image, apply a user-described text edit with imagegen, and collect the result back onto the canvas.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when the user invokes Edit Text from Codex-Canvas or asks to modify visible text inside a selected canvas image.

    line 8
  2. Distinctive:

    Treat the selected canvas image as the edit target.

    line 12
  3. Very specific:

    Before generating, identify the visible text in the image and write a formatted text inventory to the job output directory path supplied by …

    line 13
  4. Distinctive:

    Use the user's Edit Text instruction as the primary edit instruction.

    line 14
  5. Distinctive:

    Use imagegen once to create the edited image.

    line 15
  6. Distinctive:

    Only change text requested by the edit instruction.

    line 17
  7. Very specific:

    If the source image is a transparent layer, render the edited layer on a flat solid #ff00ff chroma-key background so Codex-Canvas can recut …

    line 18
  8. Distinctive:

    Do not ask follow-up questions from a background Edit Text job.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex-Canvas Edit Text

Use this skill when the user invokes Edit Text from Codex-Canvas or asks to modify visible text inside a selected canvas image.

Behavior

  1. Treat the selected canvas image as the edit target.
  2. Before generating, identify the visible text in the image and write a formatted text inventory to the job output directory path supplied by Codex-Canvas.
  3. Use the user's Edit Text instruction as the primary edit instruction.
  4. Use imagegen once to create the edited image.
  5. Preserve non-text content, aspect ratio, composition, colors, perspective, typography style, and design intent.
  6. Only change text requested by the edit instruction. Keep unchanged visible text as-is.
  7. If the source image is a transparent layer, render the edited layer on a flat solid #ff00ff chroma-key background so Codex-Canvas can recut the alpha channel after generation.
  8. Save the final selected output as a PNG under the job output directory provided by Codex-Canvas.
  9. Codex-Canvas will collect the output, remove the chroma-key background when needed, and place it in a row to the right of the source image.

Do not ask follow-up questions from a background Edit Text job. Make the most reasonable text edit from the provided instruction.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.