/jgs-magic-sysmlv1-read-skills:jgs-v1-fixplanfrom jgs-magic-sysmlv1-read-skills
Turn a SysML v1 audit's findings into a read-only remediation plan — per-finding recommended action, the exact computed fix where deterministic (rename mapping, removal list), and the PRO/DANGEROUS write tool that would apply each. FREE tier (read-only; computes fixes, never applies them). Requires jgs-magic-sysmlv1-mcp + a jgs-v1-audit findings file. Trigger: "fix plan", "remediation", "how do I fix", "proposed updates", "fix preview", "what to do about findings".
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 after an audit: it turns severity-graded findings into a read-only remediation plan with the exact computed fix where one is deterministic.
jgs-magic-sysmlv1-mcp bridge installed and reachable (the FREE/read-only tier is sufficient).jgs-v1-fixplan skill. It diagnoses nothing — it
consumes a jgs-v1-audit findings file and prescribes: for each fixable finding it computes a
recommended action, the exact fix where that is deterministic, and the write tool (with its tier) that
would apply it. This skill is read-only — it COMPUTES fixes; it MUST NEVER apply them. Never call
enable_writes, enable_dangerous_writes, or any create/update/delete/rename/move/execute_groovy
tool. The only writes are to the local filesystem (the plan files) via the agent's own Write tool.Invocation: /jgs-v1-fixplan [<path-to-findings-json>]
Behavior-content caveat (bridge gap, 2026-06-17): the shared
walk_treeused to compute MT-004/MT-005 fixes does not enumerateActivity.node/edgeorStateMachineregion/state/transition — a populated activity/state-machine reportschildCount:1. Do not plan a "remove orphaned/empty behavior" fix on that basis; if a finding hinges on behavioral content, derive it fromget_model_metricstype counts, not the tree.
The input is jgs-audit-findings-YYYY-MM-DD.json (emitted by jgs-v1-audit). Resolve it:
jgs-audit-findings-*.json in CWD./jgs-v1-audit first, then re-run /jgs-v1-fixplan." Stop. (Do not re-implement the audit checks.)root_package_id or project_name than the open
model (call mcp__jgs-sysmlv1__get_root_package to compare): halt with a clear error naming the file
and the problem. Do NOT silently plan against stale or foreign findings.Staleness check: call mcp__jgs-sysmlv1__get_edit_history({"max_entries": 1}); if the model's latest
edit entry is newer than the findings file's mtime, warn that the findings may be stale and recommend
re-running /jgs-v1-audit. Otherwise note the findings file timestamp and proceed.
Keep only findings where jgs_fixable == true.
Call mcp__jgs-sysmlv1__get_safety_state (note the safety tier for the closing note) and
mcp__jgs-sysmlv1__get_edit_history({"max_entries": 1}) — record the latest entry. At the end of the
run, call get_edit_history again; the latest entry MUST be unchanged (proof that planning made no
model edits). count is capped (~20) so it is only a secondary signal.
For each fixable finding compute four fields: recommended_action (always), apply_tool + its tier,
fix_kind (exact / candidate / manual), and fix_preview (per the table). Null element_id
findings (model-wide, e.g. MT-001/MT-006): skip per-element work, set fix_kind=manual,
fix_preview=null, still emit recommended_action + apply_tool.
| check_id | recommended_action | fix_kind | fix_preview (Slice 1) | apply_tool (tier) |
|---|---|---|---|---|
| NM-* | "Rename to convention." | exact* | Compute the corrected name (see Step 2a) → old → new. | rename_element (PRO) |
| UN-* | "Remove unused type." | exact | The element is the removal target. | delete_element (DANGEROUS) |
| MT-003 | "Remove or connect the orphan." | exact | The element is the removal target. | delete_element (DANGEROUS) |
| DU-* | "Merge into the richer twin; remove the other." | candidate | Computed keeper + removals (Step 2b). | delete_element (DANGEROUS) |
| RQ-001 | "Add a satisfy link to the realizing element." | candidate | Ranked candidate satisfier (Step 2b). | add_satisfy (PRO) |
| RQ-002 | "Add a verify link (test/verification)." | candidate | Ranked candidate verifier (Step 2b). | add_verify (PRO) |
| MT-002 | "Trace this root block to a requirement." | candidate | Ranked candidate requirement (Step 2b). | add_satisfy (PRO) |
| MT-004 | "Allocate logical→physical." | candidate | Ranked candidate physical target (Step 2b). | create_allocation (PRO) |
| MT-005 | "Type the port(s) with an interface block." | candidate | Suggested InterfaceBlock per port (Step 2b). | set_type (PRO) |
| DC-* | "Add documentation describing purpose." | manual | LLM-drafted doc stub (Step 2c). | set_documentation (PRO) |
| MT-001 | "Create a diagram/package for the missing SE layer." | manual | null. | create_diagram / create_package (PRO) |
| MT-006 | "Populate or remove the stub diagram." | manual | null. | populate_diagram / delete_element (PRO/DANGEROUS) |
*NM is exact unless the computed name collides (Step 2a) → downgrade that finding to candidate.
From the element's simple name (last segment of element_qn):
Use Case 1 → UseCase1; System Requirement 1.1 →
SystemRequirement1_1 (keep a _ where a dot joined two number groups, to avoid silent merge).Total Mass →
totalMass; total_mass_sys → totalMassSys.exact — set fix_kind=candidate and note "computed name collides — manual choice
needed." (Sibling names are taken from the findings set / list_children if available.)Resolve candidates for at most the top 25 findings per check (rank: severity desc, then element_qn
asc); beyond that, emit action + tool with a "(candidate cap reached — N more unresolved)" note.
Candidate suggestions within a finding are ranked by match strength, tie-broken by element_qn asc.
All calls here are read-only (FREE). If MT-004/MT-005 need the element tree, call
mcp__jgs-sysmlv1__walk_tree({"root_id": "<root_id>", "max_depth": 10, "max_elements": 2000}) once
and reuse it (warn if the returned count equals 2000 — truncated).
type+name. For each group (≤25), call
mcp__jgs-sysmlv1__get_relationships({"element_id": "<member>"}) on each member; keeper = the member
with the highest relationship count = len(outgoing)+len(incoming)+len(connectors); the others are
removals. fix_preview = "keep <keeper_qn>; remove <other_qn(s)>"; CSV target_id = keeper id on each
removal row.mcp__jgs-sysmlv1__impact_analysis({"element_id": "<id>"})
and mcp__jgs-sysmlv1__get_relationships({"element_id": "<id>"}) to find related Blocks, and match Block
names against the requirement/block name. fix_preview = "candidate satisfier: <block_qn>" (top match);
CSV target_id = candidate block id.fix_preview = "candidate verifier: ".walk_tree result, match the logical block's name against Blocks in a
package whose name contains "Physical"; fix_preview = "allocate to ".mcp__jgs-sysmlv1__get_ports({"element_id": "<block>"})), enumerate
InterfaceBlocks from the walk_tree result (type filter), rank by longest-common-prefix with the owning
block name, suggest the top one; if none, name create_interface_block. fix_preview = "type
with <IfB_qn>".If no candidate is found for a finding, keep fix_kind=candidate with
fix_preview="no candidate found — manual choice needed".
fix_kind=manual, fix_preview = the labelled stub.domain=="native" / sourced from validate_model, if present
in the findings JSON): relay the host validator's own remedy text verbatim as recommended_action —
do NOT invent one. fix_kind=manual unless the validator names a specific element-level fix.Group by effort tier mapped from fix_kind: Quick-win = exact, Moderate = candidate,
Complex = manual.
jgs-v1-fixplan-YYYY-MM-DD.md (offer to write; new counter suffix if it exists):
# SysML v1 Fix Plan — <project_name>
*Generated: <date> · Source findings: <findings file> (<mtime>) · Safety tier: <tier>*
## Scope summary
N of M fixable findings pre-computed.
- PRO edits: <K> (e.g. renames via rename_element)
- DANGEROUS edits: <J> (removals via delete_element — need enable_dangerous_writes)
- Candidate / manual (need human review): <rest>
Per-tool counts: rename_element <n> · delete_element <n> · add_satisfy <n> · …
## Quick-win (exact)
### [<finding id>] <title>
**Element:** `<element_id>` — `<element_qn>`
**Action:** <recommended_action>
**Apply with:** <apply_tool> (<PRO|DANGEROUS>)
**Fix preview:** <e.g. rename "Use Case 1" → "UseCase1"> (omit if null)
## Moderate (candidate) ## Complex (manual)
(same per-finding block; Fix preview = the computed candidate / doc stub)
Cap each tier's detailed entries at 25 (XR-6) + a rollup line for the remainder. The full edit list goes to the CSV.
jgs-v1-fixplan-YYYY-MM-DD.csv — uniform columns, no per-row branching:
element_id, check_id, fix_kind, apply_tool, tier, action, target_id, new_name
element_id = subject element; new_name = computed name for NM renames (else empty); target_id =
relational target (DU keeper / satisfy / allocate target); empty for plain deletes and manual rows.fix_kind=candidate with empty new_name.Re-check get_edit_history latest entry == the Step 1 baseline; state "No model changes made (read-only)."
Close: "These are computed proposals. Applying them needs write access — PRO for renames/links,
DANGEROUS tier for removals. Contact JG Systems Consulting Ltd. — [email protected]."
Fix Plan — <project_name> — <date>
Quick-win (exact): <n> (renames <n>, removals <n>)
Moderate (candidate): <n>
Complex (manual): <n>
Files: jgs-v1-fixplan-<date>.md, jgs-v1-fixplan-<date>.csv
Read-only confirmed: edit history unchanged.
root_package_id/project_name differs from the open model.exact — downgrade to candidate.delete_element is DANGEROUS tier.| Mistake | Fix |
|---|---|
| Planning against a stale or foreign findings file | Compare root_package_id/project_name against get_root_package, and check get_edit_history mtime — halt or warn rather than planning against the wrong model |
walk_tree truncation ignored | It defaults to max_elements=200 — pass max_elements=2000 and caveat any fix derived from a result that equals 2000 |
| Treating a removal as a PRO-tier fix | delete_element is DANGEROUS tier, not PRO — label the tier of each write tool correctly in the plan |
| Activity / StateMachine planned as "empty" from the tree | walk_tree/get_element_structure do NOT enumerate Activity nodes/edges or SM regions/transitions — judge behavioral content from get_model_metrics type counts, never the tree |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jgsystemsconsulting/jgs-magic-sysmlv1-read-skills --plugin jgs-magic-sysmlv1-read-skills18 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-docs