morpheus
Skill4 starsChanged 54 days agoApache-2.0View on GitHub
Authors, translates, runs, validates, and debugs Morpheus/MorpheusML simulation models (Cellular Potts/CPM, ODE, PDE/reaction-diffusion, and multiscale) using bundled reference models and the MorpheusML tag reference. Use when working with Morpheus XML model files or the morpheus CLI, or when reproducing a published multicellular model in Morpheus.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- CassioRoos/godfly-skillstheir own version, first seen Oct 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- CassioRoos/godfly-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Use relevant figures, captions, and surrounding text for qualitative targets such as clustering, fronts, stripes, spots, gradients, lumen …
- Distinctive: line 24
If the source uses another simulator or formalism, translate its biology, mechanisms, parameters, and observables before mapping them to …
- Distinctive: line 27
Validate structure: Check the MorpheusML Quick Reference, then verify every symbol relationship, model-specific section, contact name, …
- Distinctive: line 34
Validate at target scale: After the reduced-scale gate passes, restore the target dimensions, populations, and duration.
- Very specific: line 41
Never invent XML tags or attributes.
- Distinctive: line 42
Prefer a minimal adaptation of the closest reference model over XML written from scratch.
- Very specific: line 45
Every symbol-ref resolves to a defined symbol.
- Distinctive: line 63
Keep source authority distinct:
- Very specific: line 100
When the Morpheus MCP server is available, use its tools as the primary interface.
- Very specific: line 102
Start a run workspace with morpheus:create_run.
- Very specific: line 104
Read supplied papers with morpheus:extract_paper_text.
- Very specific: line 106
Check structure with morpheus:validate_model_xml, then write generated XML with morpheus:write_model_xml.
- Very specific: line 107
Run with morpheus:run_morpheus_model.
- Distinctive: line 110
Use direct filesystem or CLI operations when MCP is unavailable, lacks the needed operation, or the user explicitly requests CLI commands.
- Very specific: line 114
Verify the executable with morpheus --help, then run each attempt with an explicit model file and a fresh output directory:
- Very specific: line 120
Always pass both -f and --outdir.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Morpheus
MorpheusML is the XML model language of the Morpheus multicellular simulator. Running simulations requires a local Morpheus installation; authoring XML does not.
Operating Contract
For create, translate, fix, or reproduce tasks, run the model by default when Morpheus is available and refine it from observed outputs. For review or diagnosis, report findings without rewriting or running the model unless asked. Valid XML alone does not establish successful biological or visual reproduction.
Authoring and Validation Workflow
- Ground the target. State the model class, requested observable, and material assumptions.
- For paper-based work, use text and methods for mechanisms, entities, equations, parameters, and initial or boundary conditions.
- Use relevant figures, captions, and surrounding text for qualitative targets such as clustering, fronts, stripes, spots, gradients, lumen formation, or invasion.
- Record inferred or approximated values instead of presenting them as reported facts.
- If the source uses another simulator or formalism, translate its biology, mechanisms, parameters, and observables before mapping them to MorpheusML.
- Choose a grounded starting model. Follow Sources and Tool Routing. Read the closest compatible example and
references/model-template.md. Start with bundled or MCP references; use the official model repository when they lack a suitable example, and consult the MorpheusML documentation or official source code for unfamiliar constructs or version-sensitive behavior. - Adapt minimally. Preserve known-good ordering and nesting. Change only the mechanisms, parameters, geometry, initialization, and analysis required by the target.
- Validate structure. Check the MorpheusML Quick Reference, then verify every symbol relationship, model-specific section, contact name, equation reference, and configured output before execution.
- Run at reduced scale first. For create, translate, fix, or reproduce tasks, create a separate reduced-scale configuration whenever Morpheus execution is available. Use smaller lattice dimensions, fewer cells or population members, and a shorter
StopTimeas appropriate. Preserve the mechanisms, geometry class, boundary types, and relative parameter relationships needed for the reduced run to remain meaningful. If execution is unavailable, leave runtime and phenotype explicitly unverified and continue to step 8 with structural validation only. - Iterate at reduced scale.
- Confirm exit code zero, progression to
StopTime, configured PNG and/or CSV outputs, and no remaining stderr error. - Inspect early and late frames and compare observed morphology or dynamics with the requested phenomenon.
- Make one conservative, evidence-backed correction at a time and repeat the reduced run.
- Estimate whether the target-scale run fits the available time and resources. Do not scale up while failures, timeouts, or unexplained behavior remain.
- Confirm exit code zero, progression to
- Validate at target scale. After the reduced-scale gate passes, restore the target dimensions, populations, and duration. Run the target model and repeat both the technical and visual or biological evidence checks. Reduced-scale success does not establish a scale-dependent target phenotype.
- Report the result. Distinguish structural validation, reduced-scale behavior, and target-scale evidence. State anything that could not be executed or verified.
MorpheusML Quick Reference
Core Invariants
- Never invent XML tags or attributes. Ground each unfamiliar construct in a compatible bundled or official model,
references/morpheusml-doc.md, or the official Morpheus source code. - Prefer a minimal adaptation of the closest reference model over XML written from scratch.
- New models use
<MorpheusModel version="4">and containDescription,Space,Time, andAnalysis. Descriptioncontains aTitle.Spacecontains aLatticewithNeighborhood,Size, andBoundaryConditions, plus aSpaceSymbol.TimecontainsStartTime,StopTime, andTimeSymbol.- Every
symbol-refresolves to a defined symbol. Every contact pair names existingCellTypevalues. - CPM models include
CellTypes,CPM, andCellPopulations.MonteCarloSamplerhasMetropolisKineticswith temperature. Biological CPM cell types normally includeConnectivityConstraintunless the requested biology or closest reference justifies fragmentation. - PDE fields include
Diffusion; their systems contain matchingDiffEqnreferences. Analysiscontains outputs appropriate to the task. UseGnuplotterfor visual validation and/orLoggerfor numerical output. Logger-only models are valid when no visual phenotype needs inspection.- In
Gnuplotter, useCells value="cell.type"orcell.idfor CPM andField symbol-ref="..."for PDE.
Model Types
| Class | Typical use | Required model-specific structure |
| CPM | Cell sorting, migration, proliferation, adhesion, shape | CellTypes, CPM, CellPopulations |
| PDE | Reaction-diffusion, Turing patterns, morphogen gradients | Global Field, Diffusion, System with DiffEqn |
| ODE | Signaling, cell cycle, gene regulation | System with DiffEqn in Global or a CellType |
| Multiscale | Chemotaxis with signaling, cell-cycle/field coupling, tissue patterning | Relevant CPM, PDE, and ODE structures combined |
| Miscellaneous | Cellular automata or models outside the classes above | Closest verified reference structure |
Sources and Tool Routing
Keep source authority distinct:
- Supplied papers and user artifacts establish the requested biology, parameters, and target phenotype.
- Compatible Morpheus models, documentation, and source code establish valid MorpheusML structure and runtime semantics.
- Observed simulation outputs establish what the generated model actually does.
- Reference models are structural and mechanistic evidence, not proof that the requested paper result was reproduced.
Bundled References
Load only references relevant to the current decision. Every file except the template is too large to read whole: read its ## Contents section first, then grep -n for the entry you need and read only that section.
grep -n "^# Chemotaxis" references/morpheusml-doc.md # one tag or plugin
grep -n "^## CellSorting_2D" references/cpm-examples.md # one example model
grep -n "<Chemotaxis" references/*-examples.md # examples that use a constructreferences/model-template.md— minimal MorpheusML v4 skeletonreferences/morpheusml-doc.md— tag and attribute referencereferences/cpm-examples.md— cell sorting, migration, proliferation, adhesion, and cell shapereferences/pde-examples.md— reaction-diffusion, Turing patterns, and morphogen gradientsreferences/ode-examples.md— signaling, cell-cycle, and gene-regulation systemsreferences/multiscale-examples.md— coupled CPM, PDE, and ODE modelsreferences/miscellaneous-examples.md— cellular automata and other modelsassets/— TIFF domain images loaded by theCryptandActivatorInhibitor_Domainexamples through<Domain><Image path="assets/..."/>. Morpheus resolves this path relative to the directory it is launched from, so when adapting either model, copy the TIFF next to the new model and update the path, or use an absolute path.
Official External Sources
The bundled references are a curated offline starting point, not the only or necessarily newest Morpheus resources. When web access is available, consult official sources selectively:
- Morpheus Model Repository — search built-in, contributed, and published models for closer structural or biological examples. Check each model's category and provenance rather than treating every contribution as normative. The underlying files and history are available in the model repository on GitLab.
- Morpheus source code — consult for release-specific feature support, XML parsing, plugin behavior, and runtime semantics when models or documentation are ambiguous.
Match external material to the installed Morpheus version. Models in older MorpheusML versions are valid references, because Morpheus ports them to the current version automatically when it loads them.
Tool Selection
When the Morpheus MCP server is available, use its tools as the primary interface. Tool names below are fully qualified with the server name morpheus; if the server is registered under another name, substitute that name.
- Start a run workspace with
morpheus:create_run. - Discover and read references with
morpheus:list_referencesandmorpheus:read_reference. - Read supplied papers with
morpheus:extract_paper_text. - Identify relevant figures with
morpheus:list_paper_figuresormorpheus:list_paper_visuals, then render only the pages needed to recover the target phenotype or geometry withmorpheus:render_pdf_pages. - Check structure with
morpheus:validate_model_xml, then write generated XML withmorpheus:write_model_xml. - Run with
morpheus:run_morpheus_model; review withmorpheus:summarize_morpheus_run,morpheus:sample_output_images, andmorpheus:evaluate_technical_runas appropriate. - Inspect returned images with an image-capable tool and logs, CSV files, or manifests with
morpheus:read_file_text.
Use direct filesystem or CLI operations when MCP is unavailable, lacks the needed operation, or the user explicitly requests CLI commands.
CLI Fallback
Verify the executable with morpheus --help, then run each attempt with an explicit model file and a fresh output directory:
morpheus -f model.xml --outdir attempts/attempt_001/Always pass both -f and --outdir; wrapped environments reject runs without them. Use --num-threads N for threads and --seed N to fix the random seed. Expected artifacts may include model_graph.dot, plot-N_NNNNN.png, and logger.csv. A clean run reaches StopTime; artifact presence must match the configured Analysis outputs.
Troubleshooting
Diagnose the first concrete failure before changing the model.
| Symptom | Check first | Minimal response |
| Unknown tag or attribute | Exact spelling and nesting in a compatible model or MorpheusML docs | Replace only the unsupported construct |
| Symbol not found | Definitions and every symbol-ref | Repair the mismatched reference |
| Cell type not found | Contact names against CellType name values | Make names identical |
| Cannot parse value | Expected type and expression syntax in the docs | Correct the value, not surrounding structure |
| No PNG or CSV | Configured Gnuplotter or Logger outputs | Add only the output the task requires |
| Timeout or hang | Lattice size, StopTime, and output frequency | Reduce the smallest dominant workload factor |
| Segmentation fault right after "Can't find gnuplot" | Whether gnuplot is on PATH | Install gnuplot or pass --gnuplot-path; do not change the model |
| Segmentation fault | Lattice, boundaries, initialization, and malformed structures | Compare the failing section with a working reference |
| Valid run, wrong behavior | Initial conditions, boundaries, parameter scale, and source assumptions | Change one evidence-backed cause and rerun |
For CPM outputs, inspect cell boundaries, fragmentation, sorting, and motion. For PDE outputs, inspect expected gradients, spots, stripes, waves, or steady states. Treat all-black, all-white, or static frames as evidence to inspect visualization bounds and model dynamics, not as proof of a specific cause.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

