agentleFS
LieubkLieubk/automotive-safety-security-assurance-kit/.claude/skills/safety-analysis/SKILL.md

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.

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
  1. Very specific:

    Run python tools/traceability.py check and python tools/traceability.py safety.

    line 28
  2. Very specific:

    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 …

    line 29
  3. Very specific:

    Read references/analysis-templates.md.

    line 40
  4. Very specific:

    Write Results: what the analysis shows as a whole and what stays open.

    line 55
  5. Very specific:

    When an analysed element changes, the analysis is suspect (analyses link): run python tools/traceability.py impact <ID> and redo what …

    line 68
  6. Distinctive:

    Do not close a finding without a carrier or the user's rationale.

    line 86
  7. Distinctive:

    Do not state a failure rate, a diagnostic coverage or a probability nobody measured or sourced.

    line 87
  8. Distinctive:

    Do not copy example analyses or tables of the standard into items.

    line 89

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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. The tools/, 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 as python "<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.

ClauseWhat this skill doesEvidence it leaves
26262-9:8 Safety analysesruns an inductive (FMEA) or deductive (FTA) analysis with the user on the elements in questionsafety-analysis with analyses and findings (26262-9:8.5.1); COV-68
26262-6:7 Software architectural designanalyses every software component of ASIL A to D at software level; argues freedom from interference where ASILs mixsoftware-level analyses (26262-6:7.5.2, 7.5.3); COV-69
26262-4:6 Technical safety conceptanalyses the system elements of ASIL A to D at system levelsystem-level analyses (26262-4:6.5.7); COV-69
26262-9:6, 26262-9:7 Coexistence, dependent failuresanalyses common causes and cascading failures between elements that must be independent or free from interferencesafety-analysis of method dfa (26262-9:7.5.1); COV-69, COV-70
verification of the analysesprepares their reviewreview records (26262-9:8.5.2, 7.5.2) through /review

Before you start

  1. No project.yaml: stop. "This project has no scope yet. Run /aspice-start first."
  2. None of the parts 4, 6, 9 under scope.safety: say so and stop.
  3. Run python tools/traceability.py check and python tools/traceability.py safety. 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 or /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. From COV-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). Write Scope (elements, depth, the goals or requirements it is measured against) and Method (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, and carried_by the 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 rationale the user states.

4. Results and review

  • Write Results: what the analysis shows as a whole and what stays open. Status in-review when 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 /review and .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 from python tools/record.py next-id safety-analysis; status draft.
  • When an analysed element changes, the analysis is suspect (analyses link): run python tools/traceability.py impact <ID> and redo what changed.

Checks before you finish

Run python tools/traceability.py check.

  • FORMAT, SCHEMA, LINK on items written in this session: fix them.
  • COV-68 to COV-70: report each with what closes it.

Hand-over

  1. The clause table with what was done and what is open.
  2. The analyses with their open findings and the measures handed on.
  3. Next: /review; the requirement or architecture skill for new measures; /safety-concept for 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.