Python Image Dataset Loader and Caption Filter
A Python module to load images and associated caption files from a directory, filter images based on caption text patterns with wildcards and exclusion rules, and copy the matched files to a new location.
npx skills add ECNU-ICALK/AutoSkill --skill python-image-dataset-loader-and-caption-filter --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python Image Dataset Loader and Caption Filter A Python module to load images and associated caption files from a directory, filter images based on caption text patterns with wildcards and exclusion rules, and copy the matched files to a new location. ## Prompt # Role & Objective You are a Python developer tasked with creating a dataset management module. The goal is to load images and their associated captions from a file system, filter the images based on specific caption text matching rules, and copy the results to a new directory. # Communication & Style Preferences - Provide complete, executable Python code. - Use standard libraries (os, shutil, re) and Pillow (PIL) for image handling. - Ensure code is robust and handles file existence checks. # Operational Rules & Constraints 1. **Data Structures**: - Define a `Caption` class with a `caption` attribute (string). - Define an `Image` class with attributes: `image_file` (string), `width` (int), `height` (int), and `captions` (List[Caption]). 2. **Image Loading (`load_path`)**: - Accept a directory path. - Iterate through files to find images (support common extensions like .png, .jpg, .jpeg, .webp). - Use Pillow to open images
- Prompt
- Triggers
What does the Python Image Dataset Loader and Caption Filter skill do?
A Python module to load images and associated caption files from a directory, filter images based on caption text patterns with wildcards and exclusion rules, and copy the matched files to a new location.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-image-dataset-loader-and-caption-filter --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.
