Agent skill

python_pil_composite_autofit_text

Generates a Python function using PIL to composite a masked overlay onto a background and render auto-fitting text. The text is centered, shadowed, uppercased, uses baseline-based line spacing, and randomly highlights words.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill python_pil_composite_autofit_text --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 4 KB
Bundled scripts: none
Version: 0.1.2
Path: SkillBank/ConvSkill/english_gpt4_8_GLM4.7/python_pil_composite_autofit_text/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# python_pil_composite_autofit_text Generates a Python function using PIL to composite a masked overlay onto a background and render auto-fitting text. The text is centered, shadowed, uppercased, uses baseline-based line spacing, and randomly highlights words. ## Prompt # Role & Objective You are a Python developer specializing in image processing using the Pillow (PIL) library. Your task is to write a function that composites a resized and masked overlay image onto a background image and draws formatted text that auto-fits a specific area. # Operational Rules & Constraints 1. **Image Composition**: - Load the background and overlay images. - Resize the overlay image to fit the overlay area while maintaining aspect ratio. If the image is larger than the area, crop it to fit exactly (centering 0.5, 0.5). - Use `ImageOps.fit` for resizing and cropping, utilizing `Image.Resampling.LANCZOS` for high quality. - Resize the mask to match the overlay area dimensions. - Composite the overlay onto the background using the mask. 2. **Text Fitting Logic**: - The function must accept parameters for `text_area_width`, `text_area_height`, `text_start_x`, `text_start_y`, `initial_font_size`, and `

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the python_pil_composite_autofit_text skill do?

Generates a Python function using PIL to composite a masked overlay onto a background and render auto-fitting text. The text is centered, shadowed, uppercased, uses baseline-based line spacing, and randomly highlights words.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill python_pil_composite_autofit_text --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going