Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add calebzu/pmsm-control-claude-skills-for-matlab --skill simulink-layout-tidygit clone --depth 1 https://github.com/calebzu/pmsm-control-claude-skills-for-matlabWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/calebzu/pmsm-control-claude-skills-for-matlab/simulink-layout-tidy)<a href="https://agentmods.dev/skills/calebzu/pmsm-control-claude-skills-for-matlab/simulink-layout-tidy"><img src="https://agentmods.dev/badge/skills/calebzu/pmsm-control-claude-skills-for-matlab/simulink-layout-tidy/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/calebzu/pmsm-control-claude-skills-for-matlab/simulink-layout-tidy"><img src="https://agentmods.dev/badge/skills/calebzu/pmsm-control-claude-skills-for-matlab/simulink-layout-tidy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00190 | $0.01181 |
| Opus 5.5 | $0.00076 | $0.00472 |
| Sonnet 5.5 | $0.00038 | $0.00236 |
| Haiku 4.5 | $0.00019 | $0.00118 |
Grade A, and why
simulink-layout-tidy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
simulink-layout-tidy
Make an already-built Simulink model compact, readable, and overlap-free — and report line crossings honestly, never promising a zero that the graph's topology forbids.
Safety invariants (read first)
In Simulink a block's Position and a line's Points are purely cosmetic and orthogonal to the port connections. That fact is the whole basis for this skill being safe.
- L1 contract (default, zero-risk). This skill MUST only modify block
Positionand linePoints. It MUST NOT add or remove blocks and MUST NOT change any port connection. Why: the compiled model is then byte-for-byte identical, so simulation results cannot change and no functional re-test is needed. - L2 contract (opt-in, explicit only). L2 additionally allows (a) replacing long-range / multi-consumer wires with
Goto/Fromand (b) wrapping a functional cluster into aSubsystem. These are logically equivalent but change the block set, so after enabling L2 you MUST run one smoke simulation and confirm noNaN/Infand unchanged behavior. See references/l2_contract.md. - NEVER hard-gate "zero line crossings." A non-planar graph (one containing a
K3,3orK5minor) cannot be drawn crossing-free on a plane (Kuratowski). Forcing zero would reject mathematically-valid models. Use the tiered gates below instead.
Quick start (L1)
addpath('scripts');
load_system('my_model');
rpt = tidy_layout('my_model'); % diagnose -> arrange -> de-overlap -> re-measure -> screenshot
% rpt.before / rpt.after hold the metric structs; rpt.screenshot is the PNG path.
Diagnose planarity (decides whether zero crossings is even reachable):
extract_graph('my_model', 'graph.json'); % blocks=nodes, lines=edges
% then, from a venv/env with networkx:
% python3 scripts/planarity_check.py graph.json (exit 2 == proven non-planar)
Workflow
| Step | Action | Where |
|---|---|---|
| 1 | Measure BEFORE: overlaps, line-block hits, crossings, extent | layout_metrics.m |
| 2 | Diagnose planarity → is zero-crossing reachable at all? | extract_graph.m + planarity_check.py |
| 3 | Build two candidates: minimal-move (de-overlap only) and arrange | tidy_layout.m |
| 4 | Keep whichever has fewer crossings; NEVER accept an arrange regression | tidy_layout.m |
| 5 | Measure AFTER + assert hard gates + export PNG for human sign-off | tidy_layout.m |
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 67 lines · 190 tokens per session scan A f7cdd82f57c4
simulink-layout-tidy is a skill published in the GitHub repository calebzu/pmsm-control-claude-skills-for-matlab (15 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 190 tokens to every session and 1,181 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
simulink-layout-tidy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| simulink-layout-tidycalebzu/pmsm-control-claude-skills-for-matlab | Skill | 15 | 4mo ago | Apache-2.0 | A | 190 | Claude Code |
| matlab-runnerwzyn20051216/matlab-agent-skills | Skill | 30 | 8d ago | MIT | A | 57 | Claude Code, Codex |
| matlab-data-analysiswzyn20051216/matlab-agent-skills | Skill | 30 | 8d ago | MIT | A | 95 | Claude Code, Codex |
| matlab-orchestratorwzyn20051216/matlab-agent-skills | Skill | 30 | 8d ago | MIT | A | 110 | Claude Code, Codex |
| matlab-signal-vision-aiwzyn20051216/matlab-agent-skills | Skill | 30 | 8d ago | MIT | A | 110 | Claude Code, Codex |
| matlab-robotics-autonomywzyn20051216/matlab-agent-skills | Skill | 30 | 8d ago | MIT | A | 129 | Claude Code, Codex |
| matlab-simulink-modelingwzyn20051216/matlab-agent-skills | Skill | 30 | 8d ago | MIT | A | 101 | Claude Code, Codex |