Single Entity Attribute ER Diagram Drawing
Paste the following prompt into your AI chat to install this skill:
Install @user_3d4d85ac/simple-single-entity-er-graph into your AI assistant by following https://skillhub.cn/install/skillhub.md.
About this skill
Problem
- Database course assignments often require drawing one entity with its attributes, such as
Movie,Student, orBook. - Hand-drawn diagrams can suffer from uneven ellipses, inconsistent spacing, text overflow, and insufficient margins.
- This skill targets a standard single-entity attribute ER diagram and produces a ready-to-use
PNG, without modeling entity relationships.
How It Works
- When both the entity name and attribute list are provided, it draws the diagram using the supplied fields.
- When only an entity name is given, it infers 4–8 typical attributes from common business fields, such as
Studentwith id, name, gender, age, major, class, and enrollment year. - It prefers
scripts/er_draw.py, controlled by flags like--entity,--attributes,--color,--layout,--ellipse-width, and--attr-size. --layout autoselects a 120°, 180°, or 360° layout based on attribute count and switches to a full circle if overlaps are detected.- If the script is unavailable, it falls back to a Python template with dependency checks, font warnings, rendering degradation, and return-code handling.
- The visual style follows textbook conventions: a rectangle for the entity, ellipses for attributes, connector lines attached only to the rectangle edge, no primary-key marks, no title, and adequate margins.
Boundaries
- Good for single-entity attribute diagrams, style adjustments, and database coursework drafts.
- Not suitable for multi-entity relationship diagrams, document export, or modifying existing images.
- Very long attribute lists may trigger truncation warnings, so splitting them into multiple diagrams is recommended.
- It requires a runtime environment with
numpyandmatplotlib.
Use Cases
- Finish a database coursework diagram by quickly drawing a single-entity ER chart for Student, Movie, or Book.
- After compiling an entity's field list, generate a standard PNG with a rectangle entity and attribute ellipses for submission.
- If the figure is too small or the color is wrong, redraw it by adjusting ellipse size, rectangle size, font size, and color.
- When only the entity name is known, let the skill infer common coursework attributes and then produce the ER diagram.
Best For
- Database coursework students who need to draw a standard single-entity attribute diagram and submit a PNG.
- Students learning database fundamentals who need to turn entity fields into a standard ER sketch quickly.
- Instructors or TAs preparing assignment figure templates who need consistent entity rectangles and attribute ellipses.
- Exam-preparing students who need to generate attribute diagrams for Movie, Student, or Book entities without primary-key marks.
Related Skills
Info Bubble Breaker Six-Step Framework
@user_aad6add3/info-bubble-breaker
Provides a six-step framework for diagnosing echo chambers and generating a structured Word report with diagnosis and action steps.
Education
2026.08.29
↓ 369
Classroom Chronological Text Analysis
@user_6b9c00a3/classroom-analysis
Converts classroom transcripts, teacher-student dialogue, and observation notes into evidence-based analysis, improvement suggestions, and article outlines.
Education
2026.08.29
↓ 371
Champion Principal Thought and Action System
@user_3de47a13/szbs-champion-principal
Based on a champion principal philosophy, it generates student-centered lesson plans, growth-minded feedback, PDCA reflections, and learning diagnoses.
Education
2026.08.29
↓ 354
Interview Prep Assistant
@user_3651d062/interview-prep
Organizes major-company interview prep by target role, pushing focused subtopic knowledge and interview questions with periodic review.
Education
2026.08.30
↓ 377