matlab/matlab-agentic-toolkit / skills-catalog/computational-biology/simbiology-build-model
simbiology-build-model
UnverifiedBuild, modify, and diagram SimBiology models — API reference, helper functions, and layout patterns. Use when constructing or editing models programmatically or visually.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 20.6 KB |
| manifest.yaml | config | 480 B |
| references/api-cheatsheet-guidance.md | markdown | 5.2 KB |
| references/app-lifecycle-guidance.md | markdown | 3.3 KB |
| references/diagram-styling-guidance.md | markdown | 2.0 KB |
| references/evacuation-procedure-guidance.md | markdown | 4.5 KB |
| references/layout-strategy-guidance.md | markdown | 6.9 KB |
| references/pbpk-layout-guidance.md | markdown | 10.3 KB |
| references/pk-library-guidance.md | markdown | 5.2 KB |
| scripts/addAndPositionCompartment.p | binary | 1.3 KB |
| scripts/buildLayoutContext.p | binary | 1.3 KB |
| scripts/checkDiagramLayout.p | binary | 2.2 KB |
| scripts/computeSafeReactionPosition.p | binary | 4.4 KB |
| scripts/getModelByUUID.p | binary | 268 B |
| scripts/isAppOpen.p | binary | 277 B |
| scripts/lineIntersectsRect.p | binary | 386 B |
| scripts/loadViaBuilder.p | binary | 808 B |
| scripts/openLiveBuilder.p | binary | 640 B |
| scripts/positionAncillaryBlocks.p | binary | 1.9 KB |
| scripts/queryGridForLine.p | binary | 457 B |
| scripts/repositionAllReactions.p | binary | 3.7 KB |
| scripts/saveViaBuilder.p | binary | 911 B |
| scripts/updateContextBlock.p | binary | 622 B |
references/diagram-styling-guidance.md
View on GitHub# Diagram Styling Guidance
Color palettes, font formatting, and cloning mechanics for SimBiology
Model Builder diagrams.
---
## Color Palette
| Subsystem | RGB | Description |
|---------------|----------------------|--------------|
| PK / Drug | `[0.53 0.81 0.98]` | Light blue |
| PD / Response | `[0.56 0.93 0.56]` | Light green |
| Metabolite | `[1.00 0.85 0.56]` | Light orange |
| Immune / Cell | `[0.86 0.63 0.87]` | Light purple |
| Neutral | `[0.90 0.90 0.90]` | Light grey |
Apply with:
```matlab
simbio.diagram.setBlock(species, 'FaceColor', [0.53 0.81 0.98]);
```
For all species in a compartment:
```matlab
comp = sbioselect(model, 'Type', 'compartment', 'Name', 'Central');
simbio.diagram.setBlock(comp.Species, 'FaceColor', [0.53 0.81 0.98]);
```
---
## Text Formatting
- **`TextLocation = 'center'`** for all species (names inside blocks).
- **`FontWeight = 'bold'`** on all species and compartment blocks.
- **Size species blocks** to fit names (see width table in SKILL.md).
```matlab
simbio.diagram.setBlock(species, 'TextLocation', 'center', 'FontWeight', 'bold');
```
---
## Cloning Mechanics
Clone species when they participate in >= 3 reactions spanning different
regions, or for cofactors (ATP, ADP, NAD+, NADH). **Clones cannot be
placed outside their parent compartment.**
### Split (clone)
```matlab
expr = simbio.diagram.splitBlock(sp);
simbio.diagram.setBlock(sp, expr(1), 'Position', [x1 y1 50 16]);
simbio.diagram.setBlock(sp, expr(2), 'Position', [x2 y2 50 16]);
```
### Join (merge back)
```matlab
simbio.diagram.joinBlock(sp, expr(2)); % merge back, keep expr(2)
```
### When to clone
- Species participates in >= 3 reactions spanning different diagram regions
- Cofactors (ATP, ADP, NAD+, NADH) that appear in many reactions
- **Clone sparingly** — clones add visual noise
### When NOT to clone
- Species has 1-2 connections
- All connections are in the same diagram region
- Species can be reached without long crossing lines
----
Copyright 2026 The MathWorks, Inc.
----
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |