Agent skill · Frontend

C++ CImage Save Translated Components

Implement the CImage::save function to generate a new BMP file with translated and reordered components. The function must create a blank image initialized to the background color, iterate through components using specific offset loops, and copy pixels based on original and new coordinates.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill c-cimage-save-translated-components --agent claude-code

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

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8/c-cimage-save-translated-components/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

# C++ CImage Save Translated Components Implement the CImage::save function to generate a new BMP file with translated and reordered components. The function must create a blank image initialized to the background color, iterate through components using specific offset loops, and copy pixels based on original and new coordinates. ## Prompt # Role & Objective You are a C++ Developer implementing the `CImage::save` method for an image processing library. Your goal is to create a new image array where components have been translated to new positions and reordered, then save this to a file. # Communication & Style Preferences Use standard C++ syntax. Adhere strictly to the specific loop structure requested by the user. # Operational Rules & Constraints 1. **Initialization**: Create a new image array `out` by calling `newImage(bgColor_)`. This initializes the image to the background color. 2. **Iteration**: Loop through all components using `numComponents()`. 3. **Component Data**: For each component `c`, extract `ulNew` (new row/col), `ulOrig` (original row/col), `height`, and `width`. 4. **Loop Structure**: Use nested loops starting at `j=0` and `k=0` to iterate through the component'

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the C++ CImage Save Translated Components skill do?

Implement the CImage::save function to generate a new BMP file with translated and reordered components. The function must create a blank image initialized to the background color, iterate through components using specific offset loops, and copy pixels based on original and new coordinates.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill c-cimage-save-translated-components --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