/jgs-magic-sysmlv1-read-skills:jgs-v1-diagramsfrom jgs-magic-sysmlv1-read-skills
Inventory and export SysML v1 diagrams — build a visual review pack of diagram images, list diagram kinds, and compare layout styles. FREE tier (read-only). Requires jgs-magic-sysmlv1-mcp. Trigger: "export diagrams", "diagram images", "PNG", "review pack", "visual review", "diagram inventory", "layout styles", "compare layouts".
Ships in jgs-magic-sysmlv1-read-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use when you need a visual review pack: an inventory of the model's diagrams, exported diagram images, or a comparison of layout styles.
The jgs-magic-sysmlv1-mcp bridge installed and reachable (the FREE/read-only tier is sufficient).
A SysML v1 project open in CATIA Magic / MSOSA.
Diagram export depends on the diagrams the model actually contains.
You are a context-free AI agent executing the jgs-v1-diagrams skill. Read-only — never call
enable_writes or any mutation tool. Any image files are saved with the agent's own Write tool.
Invocation: /jgs-v1-diagrams [<package-name-or-id>]
Behavior-content caveat (bridge gap, 2026-06-17):
list_children/get_element_structure/walk_treedo NOT enumerateActivity.node/edgeorStateMachineregion/state/transition collections — a populated activity/state-machine reportschildCount:1. Never judge an Activity or StateMachine "empty" from those tools. Judge behavior from the exported PNG,get_model_metricstype counts (OpaqueActionImpl/ControlFlowImpl/TransitionImpl/StateImpl), orexecute_groovygetNode()/getRegion().getTransition().
list_diagrams requires parent_id — there is no model-wide form. Call it once per package node.walk_tree takes root_id/max_depth/max_elements; pass max_elements: 2000 and warn if the
result count equals 2000 (possible truncation).export_diagram_image takes a diagram_id and returns an inline base64 JPEG (max 1024px) as MCP
ImageContent — it does NOT return a PNG and does NOT write a file. To persist it, decode the base64
and write a .jpg with the agent's Write tool.list_diagram_symbols, list_layout_styles, compare_layout_styles all take a diagram_id.list_diagram_kinds takes no arguments (reference list of supported kinds).mcp__jgs-sysmlv1__get_root_package → root_id.find_by_name/find_by_qualified_name (handle 0 / 1 / many / 50-cap as in
jgs-v1-navigate) → root_id.Call mcp__jgs-sysmlv1__walk_tree({"root_id": "<root_id>", "max_depth": 10, "max_elements": 2000}).
Collect every package node ID. (Truncation warning if count == 2000.)
For each package node, call mcp__jgs-sysmlv1__list_diagrams({"parent_id": "<package_id>"}).
Collect diagram id, name, kind, owning package. For symbol counts, call
mcp__jgs-sysmlv1__list_diagram_symbols({"diagram_id": "<diagram_id>"}) per diagram. Caveat:
list_diagram_symbols is a partial ("Phase B") capability and may return 0 symbols for a diagram that
actually has content (confirmed live). So do NOT definitively label a diagram a stub on a low/zero
count — render the symbol count as n/a when 0 and treat "stub" as a soft hint only.
Optionally call mcp__jgs-sysmlv1__list_diagram_kinds once to annotate/validate the kinds seen.
Ask the user: "Export images for all N diagrams, or a subset? (all / list names)". For each selected
diagram, call mcp__jgs-sysmlv1__export_diagram_image({"diagram_id": "<diagram_id>"}). Decode the
returned base64 JPEG and write it as jgs-v1-diagrams/<sanitised-diagram-name>.jpg with the agent's
Write tool. If an export fails, note it and continue.
Exporting proves the diagram rendered — not that it is readable. After Step 4, if you can
read images, score each exported JPEG against the shared defect taxonomy and report a
verdict. Full taxonomy + round discipline:
_magic-sysmlv2-self-verify/reference/visual-self-check.md (v1 flavour).
Quick taxonomy: symbol overlap · edge spaghetti · label truncation · cramped density · wrong orientation/aspect · disconnected/gridded boxes (no drawn paths) · blank/near-blank (→ AMBIGUOUS, not a defect) · low contrast.
auto_layout_diagram — that's a write).
So here the self-check is diagnostic only: report defects per diagram in the output
pack ("⚠️ overlap", "⚠️ labels clipped", or "clean"); recommend the user re-run layout in a
PRO/write context. Max 1 scoring pass (no fix loop — you can't fix read-only).Add a Visual column to the output table (clean / ⚠️ / n/a).
If the user asks about layout, call mcp__jgs-sysmlv1__list_layout_styles({"diagram_id": "<id>"}) and
mcp__jgs-sysmlv1__compare_layout_styles({"diagram_id": "<id>"}) for a chosen diagram and summarise.
## Diagram Review Pack — <model or package name>
**Diagrams:** <total> (<count> by kind…)
**Exported:** <n> images → ./jgs-v1-diagrams/
**Stub diagrams (<3 symbols):** <list or "none">
| Diagram | Kind | Package | Symbols | Image | Visual |
|---|---|---|---|---|---|
| <name> | <kind> | <pkg> | <n> | <file.jpg or — not exported —> | clean / ⚠️ <defects> / n/a |
list_diagrams fails for a package: note inline and continue with other packages.export_diagram_image fails for a diagram: mark it "— export failed —" and continue.list_diagrams without parent_id.| Mistake | Fix |
|---|---|
list_diagram_symbols returns 0 → diagram called a "stub" | 0 is a known partial-capability result, NOT proof of emptiness — render the count n/a, treat "stub" as a soft hint only |
Activity / StateMachine reported "empty" (childCount:1) | list_children/get_element_structure/walk_tree do NOT enumerate Activity nodes/edges or SM regions/transitions — judge from the exported image, get_model_metrics type counts, or execute_groovy getNode()/getRegion().getTransition() |
Treating export_diagram_image output as a saved file | It returns an inline base64 JPEG (≤1024px) — decode and Write it yourself to persist |
list_diagrams called model-wide | It requires parent_id — call once per package node |
| Calling a blank export an "empty diagram" | Confirm it's OPEN; a closed/failed export is AMBIGUOUS, not an empty diagram |
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/jgs-v1Dispatcher for all jgs-magic-sysmlv1-mcp FREE-tier skills — navigate, inspect, search, impact, audit, report, diagrams, units, status, fix-plan. Routes any free-tier SysML v1 request to the right specialist skill, and flags PRO-only capabilities (migration, cross-model, model writes)./jgs-v1-auditJGS Model Audit — free, read-only SysML model health audit. Surfaces structural and methodology
findings with element-ID links, severity grades, and a data-driven Engagement Brief.
Invocation: /jgs-v1-audit [<root-package-qn-or-id>]
Requires the JGS MCP bridge (v1 or v2) running on LicenceTier.FREE or higher.
Makes no writes to the model.
Use when: auditing a SysML model for naming, documentation, requirement, duplicate, unused-type,
or methodology issues. The report ends with an Engagement Brief listing JGS-FIXABLE findings
and a contact CTA.
/jgs-v1-audit-docsJGS Model Audit — documentation coverage specialist. Checks model elements for missing documentation using check_documentation_coverage. Returns a JSON array of findings conforming to the jgs-v1-audit finding schema./jgs-v1-audit-duplicatesJGS Model Audit — duplicate elements specialist. Finds duplicate model elements using find_duplicates. Returns JSON findings conforming to the jgs-v1-audit finding schema./jgs-v1-audit-methodologyJGS Model Audit — SE layer hygiene heuristics specialist. Runs six methodology checks (MT-001 to MT-006) covering SE layer coverage, requirements grounding, orphaned elements, allocation completeness, interface definition, and stub diagrams. Returns JSON findings conforming to the jgs-v1-audit finding schema./jgs-v1-audit-namingJGS Model Audit — naming conventions specialist. Checks model element names against SysML/UML naming conventions using the check_naming_conventions MCP tool. Returns a JSON array of findings conforming to the jgs-v1-audit finding schema.Other plugins' skills for the same job
npx claudepluginhub jgsystemsconsulting/jgs-magic-sysmlv1-read-skills --plugin jgs-magic-sysmlv1-read-skills