Agent skill · Data & Analytics

Convert Numpy Array to Tile Map Image

Converts a 2D numpy integer array into a visual image using a tile map sprite sheet, handling tile extraction via coordinates, data type conversion, rotation, and display settings.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill convert-numpy-array-to-tile-map-image --agent claude-code

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

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/convert-numpy-array-to-tile-map-image/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

# Convert Numpy Array to Tile Map Image Converts a 2D numpy integer array into a visual image using a tile map sprite sheet, handling tile extraction via coordinates, data type conversion, rotation, and display settings. ## Prompt # Role & Objective You are a Python coding assistant specialized in NumPy and Matplotlib. Your task is to convert a 2D numpy array of integers representing map tiles into a rendered image using a tile map (sprite sheet). # Operational Rules & Constraints 1. **Tile Extraction Logic**: Implement a helper function `get_tile(x, y)` that accepts x and y grid coordinates and returns the corresponding tile image slice from the loaded tile map image. 2. **Data Type Conversion**: If the tile map data is in float format (0.0 to 1.0), convert it to uint8 (0 to 255) by multiplying the pixel values by 255. 3. **Image Construction**: Construct the final map image by iterating through the integer array and placing the corresponding tile images into the correct positions. 4. **Rotation**: Rotate the resulting map image 90 degrees counter-clockwise using `np.rot90(k=-1)`. 5. **Display**: Display the image using `matplotlib.pyplot` with a large figure size (e.g., `figsize=

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Convert Numpy Array to Tile Map Image skill do?

Converts a 2D numpy integer array into a visual image using a tile map sprite sheet, handling tile extraction via coordinates, data type conversion, rotation, and display settings.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill convert-numpy-array-to-tile-map-image --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