/jgs-magic-sysmlv1-read-skills:jgs-v1-audit-duplicatesfrom jgs-magic-sysmlv1-read-skills
JGS Model Audit — duplicate elements specialist. Finds duplicate model elements using find_duplicates. Returns JSON findings conforming to the jgs-v1-audit finding schema.
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 suspect the same concept was modelled more than once and want candidate duplicate elements surfaced.
jgs-magic-sysmlv1-mcp bridge installed and reachable (the FREE/read-only tier is sufficient).mcp__jgs-sysmlv1__find_duplicates({})
Use mcp__jgs-sysmlv2__find_duplicates if the v2 bridge is active.
Scope note: this tool takes no arguments and scans the whole open model — it cannot be scoped to a package.
On a real model find_duplicates can return a very large set (the live qa-fixture-v1 model returns
~140 KB of duplicates). Do not emit one finding per duplicate at that scale.
DU-001
findings, then emit ONE rollup finding (check_id DU-000, severity MAJOR, element_id null)
stating the true total — e.g. "find_duplicates reported N duplicate elements; 25 shown. Many are
likely repeated value/property names; review in bulk."For each group of duplicate elements reported, emit one finding per duplicate (not per group):
{
"check_id": "DU-001",
"severity": "MAJOR",
"domain": "duplicates",
"title": "Duplicate element: <element name>",
"detail": "Element '<qualified_name>' appears to be a duplicate of '<other_qualified_name>'. Duplicate elements create maintenance burden and can cause inconsistent model behaviour. One should be removed or merged.",
"element_id": "<element ID of the duplicate>",
"element_qn": "<qualified name of the duplicate>",
"requires_write_access": true,
"requires_jgs_skills": false
}
[{
"check_id": "SYS-001",
"severity": "INFO",
"domain": "system",
"title": "Specialist check unavailable: duplicates",
"detail": "find_duplicates returned an error or empty result.",
"element_id": null,
"element_qn": null,
"requires_write_access": false,
"requires_jgs_skills": false
}]
Return ONLY a JSON array. No prose. Return [] if no duplicates found.
| Mistake | Fix |
|---|---|
Scoping find_duplicates to the root package | It takes no arguments and scans the whole open model — pass {}; the root package ID is report context only |
| Emitting one finding per duplicate at scale | A real model can return ~140 KB of duplicates — cap at 25 individual DU-001 findings + one DU-000 rollup with the true total |
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