safety-analysis
Skill4 starsChanged 15 days agoMITView on GitHub
Safety analyses of ISO 26262 (part 9 clauses 6 to 8, part 6 clause 7, part 4 clause 6): FMEA, FTA, HAZOP or another method on system or software elements, dependent failures analysis for coexistence of different ASILs and for decompositions, findings with the measures that answer them, carried into requirements or design, and the verification of the analyses. Use when an element of ASIL A to D has no analysis (COV-69), when a decomposition needs its independence argued (COV-70), when findings are open (COV-68), or when an analysed element changes.
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-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
8 rules. About 0 are common, 3 are distinctive, and 5 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.
5
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 check and python tools/traceability.py safety.
- Very specific: line 29
Read COV-68 to COV-70. The analysed elements must exist: an analysis of an architecture that is not drafted yet waits for /sw-architecture …
- Very specific: line 40
Read references/analysis-templates.md.
- Very specific: line 55
Write Results: what the analysis shows as a whole and what stays open.
- Very specific: line 68
When an analysed element changes, the analysis is suspect (analyses link): run python tools/traceability.py impact <ID> and redo what …
- Distinctive: line 86
Do not close a finding without a carrier or the user's rationale.
- Distinctive: line 87
Do not state a failure rate, a diagnostic coverage or a probability nobody measured or sourced.
- Distinctive: line 89
Do not copy example analyses or tables of the standard into items.
≈ “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
Safety analyses (ISO 26262-9 clauses 6 to 8, 26262-6 clause 7, 26262-4 clause 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".
Examines how elements can fail and what that does to the safety goals, and makes sure
each weakness found is answered by a measure carried into a requirement or the design,
or argued. A safety-analysis item holds one analysis of one or more elements at one
level, with its findings as a structured list.
| Clause | What this skill does | Evidence it leaves |
| 26262-9:8 Safety analyses | runs an inductive (FMEA) or deductive (FTA) analysis with the user on the elements in question | safety-analysis with analyses and findings (26262-9:8.5.1); COV-68 |
| 26262-6:7 Software architectural design | analyses every software component of ASIL A to D at software level; argues freedom from interference where ASILs mix | software-level analyses (26262-6:7.5.2, 7.5.3); COV-69 |
| 26262-4:6 Technical safety concept | analyses the system elements of ASIL A to D at system level | system-level analyses (26262-4:6.5.7); COV-69 |
| 26262-9:6, 26262-9:7 Coexistence, dependent failures | analyses common causes and cascading failures between elements that must be independent or free from interference | safety-analysis of method dfa (26262-9:7.5.1); COV-69, COV-70 |
| verification of the analyses | prepares their review | review records (26262-9:8.5.2, 7.5.2) through /review |
Before you start
- No
project.yaml: stop. "This project has no scope yet. Run/aspice-startfirst." - None of the parts 4, 6, 9 under
scope.safety: say so and stop. - Run
python tools/traceability.py checkandpython tools/traceability.py safety. ReadCOV-68toCOV-70. The analysed elements must exist: an analysis of an architecture that is not drafted yet waits for/sw-architectureor/sys-architecture.
Steps
1. What to analyse
- From
COV-69: the components and elements of ASIL A to D without an analysis, and whether ASILs coexist without a dependent failures analysis. FromCOV-70: the decompositions waiting for theirs. Ask the user which analysis to do now.
2. Method and scope
- Read
references/analysis-templates.md. Agree on the method: FMEA (from each failure mode of an element to its effect), FTA (from a violated goal down to causes), DFA (common causes and cascades between elements that must be independent). WriteScope(elements, depth, the goals or requirements it is measured against) andMethod(guide words, fault models, initiators).
3. Findings
- Work through the elements with the user, reading their items (
show <ID>): interfaces, units, timing, shared resources. Each finding: the fault, its effect up to the goal, the measure that prevents, detects or controls it, andcarried_bythe requirement or element that carries the measure. A measure without a carrier is a new requirement or a design change: hand it to the skill that owns the item. - A finding that needs no measure is closed with a
rationalethe user states.
4. Results and review
- Write
Results: what the analysis shows as a whole and what stays open. Statusin-reviewwhen complete. - Order of approval: the analysis is drafted on the drafted architecture and read by the
architecture review (ARC-85 asks that it exists, not that it is approved); the
architecture is approved first, then the analysis with
/reviewand.claude/docs/checklists/safety-analysis.md, because an approved analysis may not rest on elements that are not (UPSTREAM).
Writing
- Show each analysis before writing it and ask: "May I write SAN-NNNN in
spec/safety/analyses/?" IDs frompython tools/record.py next-id safety-analysis; statusdraft. - When an analysed element changes, the analysis is suspect (
analyseslink): runpython tools/traceability.py impact <ID>and redo what changed.
Checks before you finish
Run python tools/traceability.py check.
FORMAT,SCHEMA,LINKon items written in this session: fix them.COV-68toCOV-70: report each with what closes it.
Hand-over
- The clause table with what was done and what is open.
- The analyses with their open findings and the measures handed on.
- Next:
/review; the requirement or architecture skill for new measures;/safety-conceptfor decompositions.
Do not
- Do not close a finding without a carrier or the user's rationale.
- Do not state a failure rate, a diagnostic coverage or a probability nobody measured or sourced.
- Do not copy example analyses or tables of the standard into items.
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.

