# Specification to SysML v2 model: instructions for Claude with the Holarch connector
How to use these instructions:
1. Connect Claude to Holarch (in Holarch: Account Settings → API tokens → Connect an AI App…), with access to read
and propose changes in the project you build.
2. In Holarch, create an empty SysML v2 project (Manage Projects → New Project → SysML v2).
3. Fill in every [[PLACEHOLDER]] below: the document and project names, and the build plan mapped to your
specification's chapters. The writing rules can stay as they are.
4. In Claude, attach the specification, paste the text below the line, and send it.
5. When Claude reports that it is done, open the project in Holarch, choose AI ▾ → Review, check the proposal and
apply it (one step you can undo).
The plan below is the one used for a 338-page CubeSat specification; keep its order (structure, interfaces, behavior,
modes, needs, requirements, budgets, verification, derivation, allocation, views) and replace the chapter numbers,
package names and requirement prefixes with your document's own. A large document may need the work split by chapter
across several sessions.
--------------------------------------------------------------------------------
The attached PDF is [[DOCUMENT TITLE]] ([[DOCUMENT ID AND REVISION]], [[N]] pages, [[N]] requirements). In Holarch (the Holarch connector), project "[[PROJECT NAME]]" is an empty SysML v2 project: find it with list_projects. Build the complete SysML v2 model of this specification in it, as one proposal the engineer reviews and applies. Work through to the end without asking me anything; between tool calls, keep your messages to one short line.
Write one top-level package per propose_sysml call, in this order:
[[BUILD PLAN: map your document's chapters to packages. The plan used for the CubeSat specification, as an example
(replace the chapter numbers, the EO1 prefix, the areas and the requirement prefixes with your own):]]
1. [[Chapters 4-7]]: [[EO1]]Items (item definitions for data, commands, power, signals), [[EO1]]Structure (part definitions of the product tree: mission, system, each subsystem and unit, ground or support elements, external systems; the part usage tree under one root part `[[root]]` with multiplicities; key attributes with units where the spec gives values), [[EO1]]Interfaces (port definitions and interface definitions/usages for the [[IF-xx]] interfaces with the items they carry), [[EO1]]Behavior (actions [[F0-F11]] with their subfunctions and flows), [[EO1]]Modes (the mode state machine: every state, sub-state and transition [[T-xx]] with its trigger and guard as the spec states them), [[EO1]]Needs (needs [[N1-N11]]).
2. [[Chapter 8]]: every [[SR-x.y]] system requirement, split by area into packages [[EO1]]SysReq.
3. [[Chapters 9-22]]: one requirement package per subsystem chapter ([[EO1]]Req, split if large). Put part definitions or attributes a chapter adds in a new package [[EO1]]Units only when [[EO1]]Structure lacks them; do not resend [[EO1]]Structure.
4. [[Chapter 21]]: the budget values ([[mass, power, link, data volume, pointing]]) as attributes with units in [[EO1]]Budgets.
5. [[Chapter 23 + Appendix A (verification matrix)]]: [[EO1]]Verification with one verification definition per verification event ([[TC-xx]] tests, [[AN-xx]] analyses, [[IN-xx]] inspections; short name = the event id, doc = its purpose), each objective verifying the requirements the matrix assigns to it. Needs are validated, not verified: put the [[VAL-xx]] events in [[EO1]]Validation as verification definitions whose doc starts "Validation:" and names the needs they validate, without verify on needs.
6. [[Appendix C (traceability index)]]: [[EO1]]Derivation with a derivation from each parent (need or system requirement) to each requirement traced to it.
7. [[EO1]]Allocation: satisfy relationships from the parts of [[EO1]]Structure to the requirements they are responsible for (subsystem requirements to their subsystem or unit, system requirements to the system or element as the spec allocates them).
8. [[EO1]]Views: a General View of the system structure, an Interconnection View of the system internals, an Action Flow View of the top function, a State Transition View of the modes, and Requirement Views of the needs and of [[the requirement areas you want to see]].
[[Chapters to skip except as background: e.g. introduction, references, glossary.]]
Writing rules (the Holarch core checks every propose_sysml; these are the forms it accepts):
- Requirements: `requirement <'PAY-001'> apertureDiameter { doc /* */ }` with the spec id as the short name and a lowerCamel name from its title. Keep the spec's numbering and every requirement; do not merge or summarize them.
- Refer to a requirement in another package by its short name: `EO1ReqPAY::'PAY-001'` (with `private import EO1ReqPAY::*;` or the qualified name).
- Satisfy: `satisfy EO1ReqPAY::'PAY-001' by eo1.spacecraft.payload;`
- Derivation: `private import RequirementDerivation::*;` then `#derivation connection { end #original ::> EO1SysReqImaging::'SR-1.2'; end #derive ::> EO1ReqPAY::'PAY-001'; }`
- Verification: `verification def <'TC-01'> imagingChainTest { doc /* … */ objective { verify EO1SysReqImaging::'SR-1.2'; verify EO1ReqPAY::'PAY-001'; } }`
- Units: `private import ISQ::*; private import SI::*; private import ScalarValues::*;` then `attribute mass : MassValue = 4.0 [kg];`. Value types: MassValue, LengthValue, DurationValue, PowerValue, EnergyValue, FrequencyValue, SpeedValue, AngularMeasureValue (not AngleValue), AngularVelocityValue, ThermodynamicTemperatureValue, ElectricPotentialValue, ElectricCurrentValue, AreaValue, VolumeValue, ForceValue, TorqueValue, PressureValue. Units: kg, g, m, km, mm, nm, s, min, h, d, Hz, W, J, K, V, A, N, Pa, rad, sr, bit, B, dB, and SI combinations such as [m/s]. There is no data-rate type and no rpm: give those as Real with the unit in the doc. Never name an attribute like a unit (an attribute named m or km hides the unit). If unsure of a form, try it once with check_sysml and a small text.
- States: `state def SpacecraftModes { entry; then launch; state launch; state safe; … transition t1 first launch accept SeparationSignal then detumble; }`. The initial state is given only by `entry; then ;` (one per state that has sub-states); never write a state named initial.
- Views: `private import StandardViewDefinitions::*;` then `view spacecraftStructure : GeneralView { expose EO1Structure::**; }`, InterconnectionView, ActionFlowView, StateTransitionView. A Requirement View is a General View with a filter: `view imagingRequirements : GeneralView { filter @SysML::RequirementDefinition or @SysML::RequirementUsage or @SysML::SatisfyRequirementUsage; expose EO1SysReqImaging::*; }`.
- Packages may import each other (`private import EO1Structure::*;`). Write a package only after the packages it refers to.
- One propose_sysml call takes up to about 1 MB of text, with each line under 64 KB; split a very large set across packages rather than shortening it.
- propose_sysml checks the text and refuses it with diagnostics (codes such as name.unresolved with the name, syntax.* with line and column): fix and send that package again. Never propose throwaway test packages. To add a few elements to a package you already proposed, use propose_element_changes or a new package; do not resend a large package.
- The read tools (get_sysml, check_sysml without text, list_elements) show the project's applied model, not your pending proposal: keep track of your own package and element names.
When every package is written, call propose_changes with the title "[[DOCUMENT TITLE]] model ([[DOCUMENT ID AND REVISION]])" and a summary of what the model holds. Then reply with a short report: the packages written; the counts of needs, requirements (by prefix), part definitions and usages, port and interface definitions and usages, actions, states and transitions, satisfy, derivation and verify relationships, verification and validation cases and views; and what in the spec you could not model or modelled only in part.