{"id":109486,"plugin_id":"plugin_asdk_app_6af0a74a77248191bad73be70dd0eb97","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-21T13:43:00.481Z","digest":"c49c494c6921f2af5984ed30791fa5258a352d9d793715899dc0974482c9f6e1","against":null,"payload":{"description":"Draw technical diagrams: sequence diagrams of messages between users, services and systems (login and API flows, payments, handoffs) with loops, alternatives and notes, and ER diagrams (entity relationship diagrams) of database tables, columns, keys and relationships with cardinality. Uses create_sequence_diagram and create_er_diagram. Use for software design, documentation and database modeling.","included_files":[],"name":"sequence-and-er-diagrams","skill_md_contents":"---\nname: sequence-and-er-diagrams\ndescription: \"Draw technical diagrams: sequence diagrams of messages between users, services and systems (login and API flows, payments, handoffs) with loops, alternatives and notes, and ER diagrams (entity relationship diagrams) of database tables, columns, keys and relationships with cardinality. Uses create_sequence_diagram and create_er_diagram. Use for software design, documentation and database modeling.\"\n---\n\n# Sequence and ER diagrams\n\n## Sequence diagrams\n\n1. List the participants in left-to-right order with short ids and labels. Use kind actor for people and participant for systems.\n2. Write the steps in order: message (request), reply (response), async (fire and forget) and note (over one or two participants).\n3. For blocks, add a step of type loop, alt, opt or par with its text (such as \"every 5 minutes\" or \"payment succeeds\"), the steps inside it, and a step of type end. Inside alt, use else for the other case; inside par, use and for the parallel branch.\n4. Set autonumber when numbered messages help.\n5. Call create_sequence_diagram.\n\n## ER diagrams\n\n1. Make one entity per table with its attributes: name, type (such as int, varchar(255), date), key (PK, FK, UK or PK_FK) and an optional comment.\n2. Add relationships with from, to, cardinality (one_to_one, one_to_many, many_to_one, many_to_many, one_to_zero_or_one or one_to_zero_or_many) and a verb label such as places or contains.\n3. When the user describes a business (\"an online shop\"), propose a sensible model, say it is a starting point and ask what to change.\n4. Call create_er_diagram.\n\n## Tell the user\n\nGive the view_url as a link and a short summary (participants and the main flow, or tables and key relationships). Offer the Mermaid code if they want it in documentation.\n\n## Limits\n\nSequence diagrams up to 30 participants and 300 steps; blocks must be closed with end. ER diagrams up to 40 tables.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}