hara
Skill4 starsChanged 15 days agoMITView on GitHub
Hazard analysis and risk assessment of ISO 26262 part 3 (clauses 5 and 6): the item definition, hazards from malfunctions of the item, hazardous events in operational situations classified by severity, exposure and controllability, their ASIL by the determination the safety plan states, and the safety goals with safe states and fault tolerant time intervals. Use when part 3 is under scope.safety and the HARA is to be done or redone after a change of the item, or when the trace check reports COV-65 or COV-66.
In this repository38 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- aspice-startSkill
- baselineSkill
- change-requestSkill
- component-qualificationSkill
- cybersecurity-conceptSkill
- cybersecurity-planSkill
- documentsSkill
- 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-architectureSkill
- 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, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Run python tools/traceability.py status, python tools/traceability.py check and python tools/traceability.py safety 3.
- Very specific: line 31
No approved safety plan with asil_determination: say that the ASILs cannot be checked (check reports it as not assessed) and offer …
- Very specific: line 42
When clause 3:5 is the project's, write the project's own item definition, naming the delivered one in its text and taking over what still …
- Distinctive: line 59
Never pick an ASIL by judgement when the plan's determination gives one.
- Very specific: line 73
After a change of an approved item: python tools/traceability.py impact <ID>.
- Very specific: line 77
Run python tools/traceability.py check and python tools/traceability.py safety 3.
- Distinctive: line 93
Do not rate severity, exposure or controllability in anyone's name, and do not lower a rating to reach a lower ASIL.
- Distinctive: line 95
Do not copy the classification tables or the ASIL determination of ISO 26262 into items.
- Very specific: line 97
Do not edit a HARA item received from the customer.
≈ “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
Hazard analysis and risk assessment (ISO 26262-3 clauses 5, 6)
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".
Finds out what the item can do wrong at vehicle level, in which situations that harms
someone, and how much protection each case needs. The result is an item-definition,
hazardous-event items classified by severity, exposure and controllability with their
ASIL, and the safety-goal items that answer them. The classification is the
judgement of the people named in the safety plan; the skill proposes with reasons.
| Clause | What this skill does | Evidence it leaves |
| 26262-3:5 Item definition | describes functions, boundary, interfaces, environment and dependencies, from the system architecture where it exists | item-definition (26262-3:5.5.1), shared with ISO/SAE 21434 |
| 26262-3:6 Hazard analysis and risk assessment | proposes malfunctions, hazards and operational situations; the responsible people classify; the ASIL follows the determination of the safety plan; safety goals are written | hazardous-event with arises_in; safety-goal with addresses (26262-3:6.5.1); COV-65, COV-66; its review (26262-3:6.5.2) through /review |
Before you start
- No
project.yaml: stop. "This project has no scope yet. Run/aspice-startfirst." - Part 3 not under
scope.safety: say that the HARA is not the project's and stop. A HARA or safety goals received from the customer are inputs:/import-inputsregisters them unchanged. - Run
python tools/traceability.py status,python tools/traceability.py checkandpython tools/traceability.py safety 3. ReadCOV-27for kindsafety,COV-65,COV-66. - No approved safety plan with
asil_determination: say that the ASILs cannot be checked (checkreports it as not assessed) and offer/safety-plan. The project types the determination there from the standard; the toolkit does not carry it.
Steps
1. Item definition (26262-3:5)
- An item definition written for ISO/SAE 21434 serves here too; read it and complete what
safety needs: functions and their behaviour at vehicle level, known hazards, legal
requirements, the elements the item depends on. Read
references/hara-templates.md. - An imported item definition (
imported, delivered by the customer) is never edited. When clause 3:5 is the project's, write the project's own item definition, naming the delivered one in its text and taking over what still holds; otherwise what safety needs from it is aqueryto whoever delivered it (/import-inputs).
2. Malfunctions, hazards, situations
- For each function, propose malfunctioning behaviours with a guide-word method the
plan names (for example: no function, function when not requested, too much, too
little, too early, too late, stuck). For each, the hazard at vehicle level and the
operational situations in which it matters (speed, road, weather, occupants,
workshop). One
hazardous-eventper combination that counts,arises_inthe item.
3. Classification (ASIL)
- Propose severity, exposure and controllability with the reasons in
Classification rationale: who is harmed and how badly, how often the situation occurs, who could avoid the harm and how. The responsible people rate; record their ratings and who gave them. - The ASIL is the one the plan's
asil_determinationgives;checkcompares (COV-65). Never pick an ASIL by judgement when the plan's determination gives one.
4. Safety goals
- For every hazardous event of ASIL A to D, a
safety-goalthataddressesit, with an ASIL not lower than the highest event it addresses (COV-66), its safe state and fault tolerant time interval where one applies. Similar events may share a goal. - Goals go to
/safety-concept, which refines them into requirements (COV-67).
Writing
- Show each item before writing it and ask: "May I write HZE-NNNN in
spec/safety/hara/?" IDs frompython tools/record.py next-id <type>; statusdraft. - Ratings are recorded as the named people state them; a proposal nobody confirmed stays marked as a proposal in the rationale.
- After a change of an approved item:
python tools/traceability.py impact <ID>.
Checks before you finish
Run python tools/traceability.py check and python tools/traceability.py safety 3.
FORMAT,SCHEMA,LINKon items written in this session: fix them.COV-65,COV-66: report each with what closes it.COV-32on the new items, when MAN.3 is in scope: they need the work package that delivers them (/work-breakdown).
Hand-over
- The clause table with what was done and what is open.
- The hazardous events by ASIL with their goals, as
safetyprints them. - Ratings still owed by people.
- Next:
/reviewwith.claude/docs/checklists/hara.md;/safety-concept.
Do not
- Do not rate severity, exposure or controllability in anyone's name, and do not lower a rating to reach a lower ASIL.
- Do not copy the classification tables or the ASIL determination of ISO 26262 into items; the safety plan holds what the project applies.
- Do not edit a HARA item received from the customer; questions go back as a
query.
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.

