agentleFS
LieubkLieubk/automotive-safety-security-assurance-kit/CLAUDE.md

automotive-safety-security-assurance-kit

CLAUDE.md4 starsChanged 15 days agoMITView on GitHub

Skills, agents, hooks and deterministic tools for developing automotive ECU software in line with Automotive SPICE 3.1 (4.0 from its draft), ISO 26262 and ISO/SAE 21434. Engineering artifacts are text files in this repository - one item per file - and a trace engine checks them. @.claude/docs/working-agreement.md

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow .claude/docs/skill-authoring.md for skills, checklists and agents.

    line 97
  2. Very specific:

    Before a commit, python tools/confidentiality_scan.py must report no finding.

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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
CLAUDE.md

Automotive Safety & Security Assurance Kit

Skills, agents, hooks and deterministic tools for developing automotive ECU software in line with Automotive SPICE 3.1 (4.0 from its draft), ISO 26262 and ISO/SAE 21434. Engineering artifacts are text files in this repository - one item per file - and a trace engine checks them.

How work is done here

@.claude/docs/working-agreement.md

Where things are

PathContent
project.yamlscope of the project: role, processes the team is responsible for, paths. Written by /aspice-start. Absent in a fresh copy of the toolkit
plans/, spec/, verification/, records/the project's items, in the folders schema/items.yaml names
checklists/the project's own review checklists, extending or replacing the toolkit's (python tools/record.py checklists)
src/, tests/code and test code
aspice/3.1/process catalog (processes/) and notes per process (notes/)
aspice/4.0/catalog of Automotive SPICE 4.0 built from the draft 3.991, each practice mapped to 3.1 (maps_to); chosen by aspice.version in project.yaml
iso-26262/2018/catalog of ISO 26262: parts, clauses, requirement numbers, work products, table titles, purposes in our words
iso-sae-21434/2021/catalog of ISO/SAE 21434: clauses, subclauses, requirement and work product identifiers, objectives in our words
schema/item types, links and coverage rules (items.yaml), file layout (item-format.md), generated documents (documents.yaml)
tools/trace engine, record writer, validators
.claude/skills/, .claude/agents/, .claude/hooks/the toolkit itself
.claude/docs/working agreement, command reference (tools.md), review checklists, authoring conventions
examples/power-window/worked example of a software supplier (SWE.1 to SWE.6, ISO 26262 at ASIL B, a TARA)
examples/door-control-unit/worked example of a system supplier (SYS.2 to SYS.5, supplier, risks, vulnerability monitoring, release)
.claude-plugin/, hooks/hooks.jsonthe packaging as a Claude Code plugin: manifest, marketplace, the hooks run from the plugin

Skills

SkillProcessUse it to
/aspice-start-set up or change the project scope
/import-inputsboundary of the scoperegister what was received and prepare its acceptance
/sys-requirementsSYS.2derive and analyse system requirements from stakeholder requirements
/sys-architectureSYS.3system elements, interfaces, views, decisions, allocation
/sw-requirementsSWE.1derive and analyse software requirements
/sw-architectureSWE.2components, interfaces, views, decisions, allocation
/sw-detailed-designSWE.3component designs and software units
/sw-unit-implementSWE.3code for an approved unit design
/sw-unit-verifySWE.4strategy, unit test cases, tests, static analysis, coverage, records
/sw-integration-testSWE.5integration strategy and steps, integration test cases, builds, runs
/sw-qualification-testSWE.6qualification strategy, test cases from requirements, runs, bench reports
/sys-integration-testSYS.4system integration strategy and steps, integration tests, system builds and bench runs
/sys-qualification-testSYS.5system qualification strategy, test cases from system requirements, bench and vehicle runs
/reviewallthe only way an item becomes approved
/trace-checkallexplain what the trace engine reports
/process-gateallreadiness of a process practice by practice, or of ISO 26262 and ISO/SAE 21434 clause by clause
/mock-assessmentallrehearsal of an assessment: evidence pack, questions, ratings by named people, consistency
/baselineSUP.8baselines and their communication
/change-requestSUP.10changes to baselined items
/problem-resolutionSUP.9problems from recording to closure, urgent actions, alerts, trends
/supplier-monitoringACQ.4supplier agreements, technical and progress reviews with suppliers, exchanged information, deviations
/quality-assuranceSUP.1quality assurance plan, checks of work products and processes, non-conformances, escalation, quality reports
/project-planMAN.3scope, life cycle and milestones, feasibility, resources, skills, interfaces, reporting
/work-breakdownMAN.3work packages, activities, estimates, schedule, dependencies
/risk-managementMAN.5risk management plan, risks rated, treated, monitored, accepted, corrective actions
/project-statusMAN.3progress against the plan, status reports, corrective actions
/cybersecurity-planISO/SAE 21434 cl. 6, 7, 12-14cybersecurity plan with tailoring and TARA method, interface agreement, post-development plans, cybersecurity case, assessment record
/taraISO/SAE 21434 cl. 9.3, 9.4, 15item definition, assets, damage and threat scenarios, attack paths, ratings, risk values, treatment, goals and claims
/cybersecurity-conceptISO/SAE 21434 cl. 9.5, 10, 11requirements derived from goals, security relevance down the levels, verification and validation
/vulnerability-managementISO/SAE 21434 cl. 8monitoring plan, events, weaknesses, vulnerability analysis and treatment
/safety-planISO 26262-2, 8safety plan with a decision per clause, methods per table, determinations, confirmation measures, tool evaluation, safety case
/haraISO 26262-3item definition, hazardous events classified, ASIL, safety goals
/safety-conceptISO 26262-3, 4, 6, 9functional, technical and software safety requirements, ASIL inheritance, decomposition, validation
/safety-analysisISO 26262-9, 6, 4FMEA, FTA, DFA with findings carried into requirements or design
/component-qualificationISO 26262-8qualification of supplied or reused software components of ASIL A to D, or a proven in use argument from field data
/releaseSPL.2, ISO 26262-2, ISO/SAE 21434 6.4.9release plan, release record from a baseline with approval and release note, delivery and receipt
/documentsall40 kinds of documents from the items - specifications, SAD, SDD, test specifications and reports, traceability, release, QA, problem, project, risk, TARA and cybersecurity reports - as HTML, PDF, Word or Excel, neutral or in the customer's template
/next-step-where the project stands and what to do next

Processes without a skill of their own are still in the catalog and covered by the schema's rules; say so when the user asks for one.

Commands worth knowing

python tools/traceability.py check              # findings for the project in the current folder
python tools/traceability.py --project examples/power-window check
python tools/traceability.py practices SWE.1    # evidence and open findings per base practice
python tools/traceability.py clauses           # ISO/SAE 21434: decision, evidence and findings per subclause
python tools/traceability.py safety            # ISO 26262: decision, evidence and findings per clause
python tools/document.py build software-architecture-description --format docx   # documents from the items
python tools/xlsx.py sheets inputs/delivery.xlsx    # Excel exchange; tools/alm.py for Polarion, codebeamer, Jama
python -m unittest discover -s tools/tests      # tests of the engine and the hooks
python tools/skill_lint.py                      # mechanical checks of skills, agents, checklists

The full command reference is .claude/docs/tools.md. Read it before calling a tool for the first time in a session.

Changing the toolkit itself

  • Follow .claude/docs/skill-authoring.md for skills, checklists and agents. A new agent is also listed in .claude-plugin/plugin.json; a hook change is made in .claude/settings.json and in hooks/hooks.json (tools/tests/test_plugin.py compares them).
  • schema/items.yaml is the single definition of items and rules; after a change run python tools/schema_check.py and the tests.
  • Text of Automotive SPICE and of other standards (ISO/SAE 21434 and ISO 26262 included, with their annexes, example tables and normative tables) is not reproduced anywhere in this repository: identifiers and official names only, descriptions in our own words.
  • Before a commit, python tools/confidentiality_scan.py must report no finding.

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.