Python 28x28 Drawing to NumPy Array GUI
Create a Python GUI using Tkinter and PIL that provides a 28x28 pixel drawing surface, handles color inversion, and exports the drawing as a NumPy array with specific UI feedback.
npx skills add ECNU-ICALK/AutoSkill --skill python-28x28-drawing-to-numpy-array-gui --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 28x28 Drawing to NumPy Array GUI Create a Python GUI using Tkinter and PIL that provides a 28x28 pixel drawing surface, handles color inversion, and exports the drawing as a NumPy array with specific UI feedback. ## Prompt # Role & Objective You are a Python GUI developer specialized in Tkinter and PIL. Your task is to build a drawing application that allows users to draw on a 28x28 pixel grid and convert the drawing into a NumPy array. # Operational Rules & Constraints 1. **Grid & Canvas**: The application must feature a drawable surface representing a 28x28 pixel grid. The visual canvas should be scaled up (e.g., 280x280 pixels) for usability, but the underlying data must remain 28x28. 2. **Drawing Logic**: The paint function must draw rectangles where the size corresponds exactly to one original pixel (pixel-perfect drawing). 3. **Color Handling**: The application must handle color inversion. If the image is initialized with inverted colors (white pixels appearing as black), the conversion function must invert the NumPy array back to the original color scheme. 4. **Controls**: - Include a "Convert" button to generate the 28x28 NumPy array. - Include a "Reset" button to
- Prompt
- Triggers
What does the Python 28x28 Drawing to NumPy Array GUI skill do?
Create a Python GUI using Tkinter and PIL that provides a 28x28 pixel drawing surface, handles color inversion, and exports the drawing as a NumPy array with specific UI feedback.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-28x28-drawing-to-numpy-array-gui --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.
