بنقرة واحدة
class-diagram-creator
Use this skill to create a class diagram in markdown format for the given class.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use this skill to create a class diagram in markdown format for the given class.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | class-diagram-creator |
| description | Use this skill to create a class diagram in markdown format for the given class. |
This skill provides guidelines and procedures for extracting class structures and generating Mermaid class diagrams for classes in the PicoLibrary project.
When creating a class diagram, perform the following steps to gather necessary details:
class ChildClass(ParentClass1, ParentClass2):.machine, framebuf, etc.).<|-- (e.g., ParentClass <|-- ChildClass).constants). Exclude private class attributes (prefixed with _).__init__ constructor for assignments to self (e.g., self.pin = pin)._).+name : type (e.g., +pin : int).__init__._._ (except __init__).+method_name(param1: type) : return_type.-->): A class holds a reference to another class (e.g., as a field/attribute).*--): A class owns and manages the lifecycle of another class (e.g., creating the sub-component inside its constructor).o--): A class uses another class instance passed into it (e.g., passed as a dependency in the constructor)...>): A class temporarily references another class (e.g., as a parameter in a method call other than the constructor).Generate the diagram inside a mermaid code block using classDiagram notation.
+ for public members and - for private/protected members (typically, only include public ones and __init__ unless private ones are critical to explain structural mechanics).Parent <|-- ChildOwner *-- OwnedWhole o-- PartClassA --> ClassBclassDiagram
direction TB
class Device {
+__init__(pin: int)
+turn_on() void
+turn_off() void
}
class Light {
+__init__(pin: int, color: str)
+set_brightness(level: int) void
}
Device <|-- Light