/jgs-magic-sysmlv1-read-skills:jgs-v1-audit-unusedfrom jgs-magic-sysmlv1-read-skills
JGS Model Audit — unused types and definitions specialist. Detects unused model types using find_unused_types (v1+v2) and find_unused_definitions (v2 only). 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 want unused types and definitions detected so dead model content can be reviewed for removal.
jgs-magic-sysmlv1-mcp bridge installed and reachable (the FREE/read-only tier is sufficient).bridge_adapter from the ping response as context (either sysml-v1 or sysml-v2; treat absent as sysml-v1).The orchestrator provides bridge_adapter as context. If bridge_adapter == "sysml-v2", use v2 tools. Otherwise use v1 tools.
Always call (v1 and v2):
mcp__jgs-sysmlv1__find_unused_types({})
(or mcp__jgs-sysmlv2__find_unused_types on v2)
Scope note: find_unused_types/find_unused_definitions take no arguments and scan the whole open model — they cannot be scoped to a package.
Additionally on v2 only:
mcp__jgs-sysmlv2__find_unused_definitions({})
If on v1 bridge, after calling find_unused_types, also emit this INFO finding:
{
"check_id": "SYS-002",
"severity": "INFO",
"domain": "system",
"title": "find_unused_definitions not available on v1 bridge — upgrade to v2 for full unused-type coverage",
"detail": "The find_unused_definitions check requires the SysML v2 MCP bridge adapter. Only find_unused_types was run.",
"element_id": null,
"element_qn": null,
"requires_write_access": false,
"requires_jgs_skills": false
}
On a real model find_unused_types can return an enormous set (the live qa-fixture-v1 model returns
~1 MB). Do not emit one finding per unused type at that scale.
UN-001 findings,
then emit ONE rollup finding (check_id UN-000, severity MINOR, element_id null) stating the true
total — e.g. "find_unused_types reported N unused types; 25 shown. Most are likely imported library
DataTypes; consider excluding imported libraries before remediation." Apply the same ≤25+rollup rule
to find_unused_definitions on v2 (UN-002 / UN-000).For each unused type from find_unused_types:
{
"check_id": "UN-001",
"severity": "MINOR",
"domain": "unused",
"title": "Unused type: <type name>",
"detail": "Type '<qualified_name>' is defined but not used anywhere in the model. Unused types add clutter and should be removed or used.",
"element_id": "<element ID>",
"element_qn": "<qualified name>",
"requires_write_access": true,
"requires_jgs_skills": false
}
For each unused definition from find_unused_definitions (v2 only):
{
"check_id": "UN-002",
"severity": "MINOR",
"domain": "unused",
"title": "Unused definition: <definition name>",
"detail": "Definition '<qualified_name>' is defined but has no usages in the model. Consider removing it or creating a usage.",
"element_id": "<element ID>",
"element_qn": "<qualified name>",
"requires_write_access": true,
"requires_jgs_skills": false
}
[{
"check_id": "SYS-001",
"severity": "INFO",
"domain": "system",
"title": "Specialist check unavailable: unused types",
"detail": "find_unused_types 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 combining all findings. No prose.
When running on v1 bridge: always include the SYS-002 INFO finding in the array, regardless of whether unused types were found. This signals to the user that find_unused_definitions was not run.
When running on v2 bridge: do not include SYS-002. Return [] if no findings.
| Mistake | Fix |
|---|---|
Scoping find_unused_types / find_unused_definitions to the root package | They take no arguments and scan the whole open model — pass {}; the root package ID is report context only |
| Emitting one finding per unused type at scale | A real model can return ~1 MB (mostly imported library DataTypes) — cap at 25 individual UN-001 findings + one UN-000 rollup with the true total |
Calling find_unused_definitions on the v1 bridge | It is v2-only — on v1 call only find_unused_types and always emit the SYS-002 INFO finding flagging the coverage gap |
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-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.