canvas-expand
Skill133 starsChanged 5 months agoMITView on GitHub
Outpaint a selected Codex-Canvas image beyond its current frame and collect the expanded image back onto the canvas.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex-canvasSkill
- canvas-edit-elementsSkill
- canvas-edit-textSkill
- canvas-quick-editSkill
- canvas-remove-bgSkill
- canvasSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when the user invokes Expand from Codex-Canvas or asks to extend a selected canvas image beyond its current edges.
- Distinctive: line 13
Use the user's Expand preset, scale, ratio, and optional text as the primary expansion instruction.
- Distinctive: line 17
Keep the original image content visually coherent with the newly generated surrounding area.
- Distinctive: line 21
Do not ask follow-up questions from a background Expand job.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Codex-Canvas Expand
Use this skill when the user invokes Expand from Codex-Canvas or asks to extend a selected canvas image beyond its current edges.
Behavior
- Codex-Canvas first creates a padded PNG input using the selected scale, target ratio, and the user's final source-image position inside the preview frame. Treat the pasted original content as locked source content and the padded surroundings as the outpaint region.
- Use the user's Expand preset, scale, ratio, and optional text as the primary expansion instruction.
- Preserve the source subject identity, visible text, composition anchor, perspective, lighting, colors, and design intent.
- Fill the padded surrounding area with coherent generated content. Do not leave blurred padding, blank margins, checkerboards, seams, or artificial borders in the final image.
- Extend the scene or design outside the current frame. Do not crop, zoom in, replace the main subject, or redesign unrelated content.
- Keep the original image content visually coherent with the newly generated surrounding area.
- Save the final expanded image as a PNG under the Codex-Canvas job output directory.
- Codex-Canvas will collect the output and place it in a row to the right of the source image.
Do not ask follow-up questions from a background Expand job. Make the most reasonable outpainted expansion from the provided instruction.
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
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.

