technical-poster-generator
Generate technical exploded-view posters of hardware devices using Python Pillow. Use this skill when creating engineering diagrams, exploded-view illustrations, hardware layer breakdowns, or technical documentation posters programmatically. Triggers on: exploded view, technical poster, hardware diagram, device layers.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 7
01 前言 Front Matter
- name
- technical-poster-generator
- description
- Generate technical exploded-view posters of hardware devices using Python Pillow. Use this skill when creating engineering diagrams, exploded-view illustrations, hardware layer breakdowns, or technical documentation posters programmatically. Triggers on: exploded view, technical poster, hardware diagram, device layers.
03 SKILL.md 正文
Technical Poster Generator
Approach
Use Python with Pillow (PIL) to draw an exploded-view diagram. Each hardware layer is rendered as a rounded rectangle or shaped polygon, vertically offset to create the "exploded" separation effect.
Exploded-View Construction
Layer Stack (top to bottom, with vertical gaps)
- Outer Casing — largest footprint, rounded corners, dark fill
- Thermal Management Unit — slightly inset, distinct accent color
- PCB (Printed Circuit Board) — inset further, with circuit-trace detail hints
- Battery Pack — compact rectangle, neutral/dark fill
- Interface / Connector Board — smallest, with highlighted connector points
Drawing Strategy
- Canvas: 2400×3200px (portrait, print-quality at 300 DPI ≈ 8×10.7 inches)
- Each layer: rounded rectangle with 2-4px border
- Vertical gap between layers: 60-80px to show separation
- Slight horizontal offset or perspective shift (optional) for depth
- Annotation leader lines: thin horizontal lines from layer edge to text labels
Annotation Pattern
- Draw a thin line (1.5px) from the layer's right edge to a text label
- Use small dots at the line origin on the layer
- Label text: component name + brief spec (e.g., "PCB — 6-Layer FR4")
Title Block
- Position: top-left corner, with generous padding
- Large bold text for product name
- Smaller subtitle line below (e.g., "Technical Exploded View")
Python Libraries
PIL/Pillowfor renderingPIL.ImageDrawfor shapes and linesPIL.ImageFontfor typography (use truetype fonts when available)
Code Pattern
from PIL import Image, ImageDraw, ImageFont
img = Image.new('RGB', (2400, 3200), background_color)
draw = ImageDraw.Draw(img)
# Draw layers bottom-up so upper layers visually overlap if needed
for layer in reversed(layers):
draw.rounded_rectangle(layer.bbox, radius=12, fill=layer.color, outline=layer.border)
# Add annotation lines and labels
# Save
img.save('output.png', quality=95)
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.