selected-avatar-edit — Claude Code prompt: how it works
selected-avatar-edit is a Claude Code prompt for adding a circular creator avatar to an existing LeiBox WeChat cover. It applies precise coordinates without altering original artwork.
MIT ★ 289 updated 2026-11-08
.claude/commands/selected-avatar-edit.mdWhat selected-avatar-edit does
The prompt positions a 56px circular avatar photo onto an existing 1920×818 LeiBox cover. It places the image to the left of the text “LSF 设计日常” with a 14px gap. The blue-to-white gradient, fonts, footer, and component artwork remain untouched.
Execution requires two input files: the finished cover and an archived portrait photo. The prompt explicitly forbids modifying facial features, colors, or lighting. The output delivers a single edited cover maintaining the original 2.35:1 aspect ratio.
What it helps with
- insert a circular creator portrait into a finished LeiBox cover
- preserve exact fonts, gradients, and layout on WeChat graphics
- align an avatar next to headline text using strict pixel coordinates
Example prompts for the agent
- Apply selected-avatar-edit to attach the creator portrait to this LeiBox cover
- Position the author avatar next to the headline using selected-avatar-edit coordinates
How to install selected-avatar-edit
Manually: put the files in place
.claude/commands/selected-avatar-edit.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about selected-avatar-edit
How to install selected-avatar-edit in Claude Code?
Save the file into .claude/commands/selected-avatar-edit.md inside your repository.
What does selected-avatar-edit do?
It instructs an image model to embed a 56px circular portrait into a LeiBox banner at coordinates left=116px and top=58px.
What is required to run selected-avatar-edit?
You must provide two images: the finished cover graphic and the creator portrait photo.
Source text
selected-avatar-edit.prompt.md · MIT
Edit the supplied selected LeiBox WeChat cover with exactly one local change: add a small circular creator avatar immediately to the LEFT of the existing top-left text “LSF 设计日常”. Image 1 is the selected finished cover, 1920×818 approximately. Preserve its whole composition, blue-to-white gradient, exact Chinese headline, all font choices and letterforms, component artwork, logo sticker, footer, signature, divider, year and output aspect ratio. Do not reflow, redesign, recolor or add any other element. Image 2 is the creator's archived original avatar portrait. Use that exact image appearance as a photographic insert; do not invent another face, change facial features, hair, lighting, expression, color, makeup or background. Display the full square image through a clean circular crop. No embellishment, no generated avatar frame, no heavy ring or shadow. At the approximately1920×818 canvas size, place a 56px-diameter circular avatar near left=116px, top=58px, centerline y=86px. It should align vertically with the existing “LSF 设计日常” text, leave about14px clear gap before the name, and not touch the title below. Scale those coordinates proportionally if needed. The avatar should be small and understated, all original typography and the original product panel remain visually unchanged. Return ONE complete edited cover, same ultra-wide2.35:1-ish ratio and same full-resolution composition as Image1. Only insert the original circular avatar; do not add another author name, extra words, emoji, logos, watermark, border or crop.
© leishifu666 · MIT · leishifu666/LeiBox