sys-architecture
Skill4 starsChanged 15 days agoMITView on GitHub
Design the system architecture from approved system requirements (Automotive SPICE SYS.3): system elements (hardware, software, mechanical, external), system interfaces, system-level views, design decisions with alternatives, and the allocation of every system requirement. Use when a system architecture is to be created, extended or reworked, or when the trace check reports system requirements without allocation (COV-03) or system elements without requirements (COV-04).
In this repository38 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- aspice-startSkill
- baselineSkill
- change-requestSkill
- component-qualificationSkill
- cybersecurity-conceptSkill
- cybersecurity-planSkill
- documentsSkill
- haraSkill
- import-inputsSkill
- mock-assessmentSkill
- next-stepSkill
- problem-resolutionSkill
- process-gateSkill
- project-planSkill
- project-statusSkill
- quality-assuranceSkill
- releaseSkill
- reviewSkill
- risk-managementSkill
- safety-analysisSkill
- safety-conceptSkill
- safety-planSkill
- supplier-monitoringSkill
- sw-architectureSkill
- sw-detailed-designSkill
- sw-integration-testSkill
- sw-qualification-testSkill
- sw-requirementsSkill
- sw-unit-implementSkill
- sw-unit-verifySkill
- sys-integration-testSkill
- sys-qualification-testSkill
- sys-requirementsSkill
- taraSkill
- trace-checkSkill
- vulnerability-managementSkill
- work-breakdownSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Run python tools/traceability.py status and python tools/traceability.py check --all (every command takes --project <dir> when the project …
- Very specific: line 53
Run python tools/traceability.py matrix.
- Very specific: line 61
Read the requirements in scope by ID.
- Very specific: line 73
Read references/architecture-guidance.md first.
- Very specific: line 97
Write a view for each, or give the reason why none is needed.
- Very specific: line 154
Before changing an approved item, say that its approval becomes stale and run python tools/traceability.py impact <ID> to show what depends …
- Very specific: line 189
Do not set status to anything but draft (open for a query), or obsolete for an element the user withdraws, and do not write a review record.
- Very specific: line 191
Do not edit requirements, imported items (a problem with one is a query) or project.yaml, and do not design the inside of the software or …
- Distinctive: line 193
Do not decide between alternatives, lower an ASIL or state a measured value.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
System architectural design (SYS.3)
Toolkit root:
${CLAUDE_PLUGIN_ROOT}- where this shows a placeholder instead of a folder, it is the repository you are in. Thetools/,schema/,aspice/,iso-26262/,iso-sae-21434/,examples/and.claude/docs/named here and in the references lie in the toolkit root; run its tools from the project folder aspython "<toolkit root>/tools/<script>.py".
Turns approved system requirements into an architecture expressed as items: the
elements the system consists of (hardware, software, mechanics, and the external
elements around it), the interfaces between them, views of structure and behaviour,
decisions with their alternatives, and the allocation of every system requirement. The
software element and its hardware-software interfaces are what /sw-requirements
(SWE.1) builds on. All items are written in state draft, ready for /review.
| Base practice | What this skill does | Evidence it leaves |
| SYS.3.BP1 Develop system architectural design | breaks the system into elements, each with its reason and responsibility | system-element items; an architecture-view of kind structure or context |
| SYS.3.BP2 Allocate system requirements | assigns every requirement to the element or interface that fulfils it | fulfils links on system-element and system-interface items |
| SYS.3.BP3 Define interfaces of system elements | defines each interface with both end points, signals or media, ranges, units, timing, protocol | system-interface items with a Definition |
| SYS.3.BP4 Describe dynamic behavior | describes operating modes, transitions, start-up, shut-down, failure reactions, timing chains | Dynamic behavior sections; views of kind state-machine, sequence, fault-reaction |
| SYS.3.BP5 Evaluate alternative system architectures | fixes criteria first and assesses alternatives against them; the user decides | design-decision items with level: system and concerns links |
| SYS.3.BP6 Establish bidirectional traceability | sets fulfils, shows and concerns links and checks both directions | links; matrix output |
| SYS.3.BP7 Ensure consistency | self-checks against the checklist; the evidence itself comes from /review | proposed findings; review record written by /review |
| SYS.3.BP8 Communicate agreed system architectural design | not done here: /baseline records the baseline and who was informed | - |
Before you start
- No
project.yaml: stop. "This project has no scope yet. Run/aspice-startfirst." SYS.3not inscope.processes: stop. "SYS.3 is out of scope for this project. A system architecture delivered from outside is registered with/import-inputs."- Run
python tools/traceability.py statusandpython tools/traceability.py check --all(every command takes--project <dir>when the project is not the current directory). - The inputs are
system-requirementitems, approved or imported with an input acceptance review. If there are none, stop and name/sys-requirementsor/import-inputs. - A requirement in
draftorin-review, or with aCOV-19finding, is not settled. Name each one and ask: wait, or design against it at risk. Elements that fulfil it stay indraftuntil it is approved: the check reportsUPSTREAM, and the review refuses to approve an item above one that is not approved. SUSPECTon an existing element means that a requirement it fulfils changed after its review: read the new version first. An openQUERYon an input is a question to its source that is unanswered: read it before designing on that input.
Steps
1. Decide what to cover
- With arguments: the named requirements, element or feature. Without: every
COV-03(requirement not allocated) andCOV-04(element without a requirement) finding, plus existing draft architecture items. - Run
python tools/traceability.py matrix; itsfulfilsandshowstables show what exists.python tools/traceability.py list --type system-elementlists the IDs of one type. Ask the user whether this is the right scope. - Drafting may be handed to the agent
system-engineer: give it the IDs, the criteria of step 2 and the decisions already taken. It returns drafts and questions; the questions, the choice between alternatives and the queries go through you.
2. Find what shapes the architecture
- Read the requirements in scope by ID. List those that constrain structure, interfaces,
timing, safety, security, cost, installation space or reuse, and add the project goals
the user names.
references/architecture-guidance.mdlists typical drivers. - Propose evaluation criteria and ask the user to rank them before any structure is
drawn. Every
design-decisionuses them (step 7). - A question the user cannot answer is not design input. About an imported item, or an
element supplied from outside, it becomes a
queryitem (python tools/record.py next-id query; folderrecords/queries;to,asked_at, aQuestionsection,aboutlinking the item). About a requirement the project wrote, it goes back to/sys-requirements.
3. Identify the elements
- Read
references/architecture-guidance.mdfirst. Propose the elements, each with the reason it is an element of its own:kindhardware, software, mechanical, or external for a neighbouring system the system exchanges with and does not design. - Per element write
Responsibility: what it does, and what it does not do, in terms of what the system needs from it. Levels of hierarchy are shown in a view and named inResponsibility;references/element-template.mdsays how. - Software that arrives from outside (platform, basic software, a supplier's library)
is an element too, with its source named in
Responsibility. Its inside is the concern of the software architecture (/sw-architecture), not of this one.
4. Define the interfaces
- One
system-interfaceper exchange between two elements.kindis hardware-software, bus, electrical, mechanical, diagnostic or external. Both end points are named inDefinition;references/interface-template.mdlists what a complete definition holds. - The hardware-software interfaces are the ones the software requirements depend on: give them the same care as the software element itself, with ranges, units, timing, and what happens at the boundary on failure.
- Where an exchange crosses into an external element, state what the system may rely on
and what it must tolerate. What is not known goes to a
query.
5. Describe the dynamic behaviour
- An element's own modes and start-up go into its
Dynamic behaviorsection; behaviour across elements goes into views. Cover operating modes and their transitions, start-up, shut-down, failure reactions and every chain with a timing requirement. - Write a view for each, or give the reason why none is needed. A system architecture
usually has a
contextview (the system and its neighbours), astructureview (elements and interfaces) and astate-machineorsequenceview for the main functions. This is guidance, not a rule: the trace engine checks no view kinds at system level.view-templates.mdof/sw-architectureshows the form of each kind; setlevel: system. Every view links withshowsto every item in it.
6. Limits of the whole system
- Where requirements fix limits (processor load, memory, power, installation space,
mass, cost), state in each element's
Responsibilitywhat it is given and where each number comes from. No tool adds them: show the user the sums before writing.
7. Alternatives
- For each choice that shapes the system (split between hardware and software, make or
buy, sensor principle, bus or direct wire, home of a safety function) draft a
design-decisionwithlevel: system: context, the criteria of step 2, at least two real alternatives, each assessed against each criterion. The form isdecision-template.mdof/sw-architecture. - Present the assessment and ask the user to decide.
DecisionandConsequencesrecord what the user decided; an undecided draft is listed as open in the hand-over.
8. Allocate
- Per requirement choose the responsible element, or for an interface requirement the
interface, and record it as
fulfilson that item. Requirements are not edited. - A requirement shared by several elements is fulfilled by each of them; each
Responsibilitysays which share. Check both directions withpython tools/traceability.py show <ID>:Responsibilitycovers every requirement of the element, and every element has a requirement (COV-04). - A requirement allocated to an element of kind
softwareis what/sw-requirementsderives software requirements from (COV-05); say so to the user. - A need that only the design creates goes to
/sys-requirementsas a requirement withorigin: internal; it is not written here.
9. ASIL and partitioning
- An element carries the highest ASIL of the requirements allocated to it, an interface
at least that of its most critical use.
COV-23reports an element below an allocated requirement: raise it or re-allocate. A lower ASIL is a decomposition and needs an approveddesign-decisionthatconcernsevery item whose ASIL is lowered. Never lower one on your own. - Where elements of different ASIL coexist, draft a decision on how the lower ones are kept from disturbing the higher ones.
10. Self-check
Apply .claude/docs/checklists/system-architecture.md to the drafts. check --all says
what a draft still needs for review, but not what depends on kind nor what approval
needs: walk the "Needed" columns of the templates. Show the findings as proposals;
correct what the user accepts.
Writing
- Show a table of the drafts (ID, type, title, kind, ASIL, links) and the allocation, and
ask: "May I write these N items to
spec/system/architecture/,spec/views/andspec/decisions/?" Queries go torecords/queries/. - IDs:
python tools/record.py next-id system-element, likewise for the other types; then count upwards. Statusdraft. Layout:element-template.mdandinterface-template.mdinreferences/; views and decisions as in/sw-architecture. - The allocation is written as
links.fulfilson the element or interface. - Before changing an approved item, say that its approval becomes stale and run
python tools/traceability.py impact <ID>to show what depends on it. Change thestatusline todraftfirst, then the content; what depends on it is reported asUPSTREAMand, once the item is approved again, asSUSPECT. - An element the user withdraws becomes
obsoletewithsuperseded_by, after every link to it has moved:LINKandCOV-24report links to an obsolete item. - Inside a baseline, changing or withdrawing an item needs an approved change request
first (
/change-request).
Checks before you finish
Run python tools/traceability.py check --all and python tools/traceability.py matrix.
FORMAT,SCHEMAandLINKfindings on items written in this session: fix them.COV-03,COV-04,COV-23andCOV-24for the scope of this session should be gone. If one remains, report it with the reason. Quote thefulfilstables.- Expected, and to be said:
COV-19until/reviewhas approved the items;COV-05until/sw-requirementshas derived software requirements;COV-15until/sys-integration-testhas verified the interfaces;COV-23until a decomposition decision is approved.
Hand-over
Report, in this order:
- The base practice table with what was done in this session and what is open.
- Limits and sums against what the requirements allow; what is
NOT ASSESSEDand why. - Decisions the user has not taken; the queries written, by ID; needs handed to
/sys-requirements. - The remaining findings of the check that concern these items.
- Next:
/reviewwith checklistsystem-architecturev2, top down: requirements before the elements that fulfil them, shown items before or together with their views. Then/baseline; then/sw-requirementsfor the software element, and/sys-integration-testand/sys-qualification-test.
Do not
- Do not set
statusto anything butdraft(openfor a query), orobsoletefor an element the user withdraws, and do not write a review record. - Do not edit requirements, imported items (a problem with one is a query) or
project.yaml, and do not design the inside of the software or of a hardware element. - Do not decide between alternatives, lower an ASIL or state a measured value.
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.

