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

safety-concept

Skill4 starsChanged 15 days agoMITView on GitHub

Refine safety goals into the safety requirements of ISO 26262 and carry their ASIL down (part 3 clause 7, part 4 clause 6, part 6 clause 6, part 9 clause 5): functional safety requirements with safe states and fault tolerance, technical safety requirements with safety mechanisms, software safety requirements, their allocation, ASIL inheritance, ASIL decomposition as a design decision resting on a dependent failures analysis, and validation of the goals. Use when safety goals are approved and no requirement is derived from them (COV-67), when an ASIL does not follow its source (COV-23), when a decomposition is planned (COV-70), or when a goal 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 status, python tools/traceability.py check and python tools/traceability.py safety.

    line 30
  2. Very specific:

    Read references/safety-requirements.md.

    line 38
  3. Very specific:

    Ask for the verification method each needs at its ASIL.

    line 50
  4. Very specific:

    Only where the user wants to split a requirement onto independent elements with lower ASILs.

    line 54
  5. Very specific:

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

    line 72
  6. Distinctive:

    Do not lower an ASIL without an approved decomposition decision and its analysis.

    line 89
  7. Distinctive:

    Do not choose a safe state, a fault tolerant time or a decomposition for the user.

    line 90
  8. Distinctive:

    Do not edit a goal or requirement received from the customer.

    line 91

≈ “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 concept (ISO 26262-3 clause 7, 26262-4 clause 6, 26262-6 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".

Turns each safety goal into requirements that elements of the architecture can fulfil, and keeps the ASIL with them. The requirements are the existing system-requirement and software-requirement items with an asil: functional safety requirements derived from goals, technical ones derived from those, software ones derived from the technical ones or, in a software-only scope, from the goals. The engineering skills of each level write and allocate them; this skill keeps the safety thread.

ClauseWhat this skill doesEvidence it leaves
26262-3:7 Functional safety conceptproposes functional safety requirements per goal: what is detected, the safe state, the fault tolerant time, warnings, degradation; their allocation follows in the architecturesystem requirements with derived_from a goal (26262-3:7.5.1); COV-67, COV-23
26262-4:6 Technical safety conceptproposes technical safety requirements and safety mechanisms for the system elements, with the hardware-software interfacesystem requirements, elements, interfaces of ASIL above QM (26262-4:6.5.1 to 6.5.4) through /sys-requirements, /sys-architecture
26262-6:6 Specification of software safety requirementsproposes software safety requirements from the technical ones and the hardware-software interfacesoftware requirements with asil (26262-6:6.5.1) through /sw-requirements
26262-9:5 Requirements decompositionprepares a decomposition as a design decision with the dependent failures analysis it rests ondesign-decision with decomposition; COV-70, COV-23
26262-4:8 Safety validationasks for a system qualification test per goal on the vehicle where part 4 is in scopesystem qualification tests that verify goals

Before you start

  1. No project.yaml: stop. "This project has no scope yet. Run /aspice-start first."
  2. None of the parts 3, 4, 6, 9 under scope.safety: say so and stop.
  3. Run python tools/traceability.py status, python tools/traceability.py check and python tools/traceability.py safety. Read COV-23, COV-67, COV-70.
  4. Goals not approved and not received from the customer: name /hara and stop; the concept builds on approved goals.

Steps

1. Functional safety requirements (26262-3:7)

  • Read references/safety-requirements.md. For each goal show the hazardous events and propose requirements: fault detection, the transition to the safe state within the fault tolerant time, warnings to the driver, degraded operation, arbitration of requests. Each derived_from the goal, asil not lower than the goal's (COV-23).
  • Allocation to elements of the preliminary architecture: /sys-architecture.

2. Technical and software safety requirements (26262-4:6, 26262-6:6)

  • Technical: safety mechanisms per element (plausibility, monitoring, redundancy, watchdog), the hardware-software interface, requirements for production and service. /sys-requirements and /sys-architecture write and allocate them.
  • Software: what the software has to detect, react to and guarantee, with timing, derived from the technical requirements or the goals. /sw-requirements writes them.
  • Ask for the verification method each needs at its ASIL; the plan's method_selection says which methods apply.

3. Decomposition (26262-9:5)

  • Only where the user wants to split a requirement onto independent elements with lower ASILs. Draft a design-decision with decomposition (requirement, into, independence) and ask /safety-analysis for the dependent failures analysis it rests on. The allowed schemes are in the standard; the user states which is applied.

4. Validation (26262-4:8)

  • Part 4 in scope: each goal needs a system qualification test that verifies it, run on the vehicle (/sys-qualification-test).

Writing

  • Show each requirement or decision before writing it and ask: "May I write SWR-NNNN in spec/software/requirements/?" IDs from python tools/record.py next-id <type>; status draft; approval through /review.
  • Items of other levels are written by the skill that owns them; propose and hand over.

Checks before you finish

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

  • FORMAT, SCHEMA, LINK on items written in this session: fix them.
  • COV-23, COV-67, COV-70: report each with what closes it.
  • COV-32 on the new items, when MAN.3 is in scope: they need the work package that delivers them (/work-breakdown).

Hand-over

  1. The clause table with what was done and what is open.
  2. Per goal: its requirements, their ASIL and allocation, as show and matrix print them.
  3. Decisions still owed: safe states, fault tolerance times, decompositions.
  4. Next: /review; /safety-analysis for the architecture; the requirement and architecture skills of each level.

Do not

  • Do not lower an ASIL without an approved decomposition decision and its analysis.
  • Do not choose a safe state, a fault tolerant time or a decomposition for the user.
  • Do not edit a goal or requirement received from the customer.

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.