safety-trinity

safety-trinity is a skill for Claude Code, Codex from AutoZYX-Labs/ADSafetyPilot. It costs 48 tokens per session (871 once invoked), scanned A, original, MIT.

A combined safety-analysis method covering vehicle functional safety, limits of intended functionality, and cybersecurity. It maps risks from system failures, difficult operating conditions, and attacks into one analysis.

In plain words
What is it for?
Use it to identify hazards, map safety goals and requirements, connect FuSa, SOTIF, and cybersecurity findings, and plan shared verification for automotive systems.
Why use it?
Separate safety reviews can miss risks that overlap—for example, a sensor failure, poor visibility, and sensor tampering may lead to the same danger. Combining them exposes those interactions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/autozyx-labs/adsafetypilot/safety-trinity
Any agent
npx skills add AutoZYX-Labs/ADSafetyPilot --skill safety-trinity
Clone the repo
git clone --depth 1 https://github.com/AutoZYX-Labs/ADSafetyPilot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for safety-trinity

README.md
[![agentmods](https://agentmods.dev/badge/skills/autozyx-labs/adsafetypilot/safety-trinity.svg)](https://agentmods.dev/skills/autozyx-labs/adsafetypilot/safety-trinity)
Your own site
<a href="https://agentmods.dev/skills/autozyx-labs/adsafetypilot/safety-trinity"><img src="https://agentmods.dev/badge/skills/autozyx-labs/adsafetypilot/safety-trinity.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00871
Opus 5 $0.00024 $0.00436
Sonnet 5 $0.00010 $0.00174
Haiku 4.5 $0.00005 $0.00087

Measured 6d ago against content hash 51a3003e57e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

safety-trinity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/safety-trinity/SKILL.md · 80 lines

What it actually says

安全三支柱 | Safety Trinity

本技能打破FuSa/SOTIF/CyberSec三个标准的独立分析壁垒,提供交叉映射的统一分析流程。

为什么需要三合一?

传统做法:三个团队各做各的分析,最后开一个接口会议"对齐"。 问题:

  • HARA识别的hazard可能被SOTIF触发条件放大
  • TARA识别的攻击路径可能导致SOTIF功能不足
  • 三个分析之间的交互效应被遗漏

交叉映射框架

FuSa HARA                    SOTIF触发条件              CyberSec TARA
(系统故障→危害)              (功能不足→危害)            (攻击→危害)
    │                            │                         │
    └──────────┬─────────────────┘─────────────────────────┘
               │
    ┌──────────┴──────────┐
    │   Unified Hazard     │
    │   统一危害分析        │
    │                      │
    │  Hazard H-001:       │
    │  ├─ FuSa: 雷达故障    │
    │  ├─ SOTIF: 雨雾漏检   │
    │  └─ Cyber: 雷达欺骗   │
    │                      │
    │  → 统一安全目标       │
    │  → 统一验证策略       │
    └─────────────────────┘

分析流程

Step 1: 统一危害识别

  • FuSa: 对每个功能做HARA(严重度S×暴露度E×可控性C → ASIL)
  • SOTIF: 对每个功能做触发条件分析(感知局限×算法不足×人因误用)
  • CyberSec: 对每个功能做TARA(资产→威胁→攻击路径→影响)
  • 交叉:检查三者识别的危害是否有重叠/放大效应

Step 2: 统一安全目标

  • 将三个来源的危害映射到统一的安全目标集合
  • 标注每个安全目标的来源(FuSa/SOTIF/Cyber/Multiple)
  • 优先处理多来源危害(更高风险)

Step 3: 统一安全需求

  • 功能安全需求(TSR/HSR)
  • SOTIF安全需求(场景覆盖+残余风险可接受)
  • 网络安全需求(安全机制+监测+响应)
  • 交叉需求:如"雷达欺骗检测"同时满足Cyber+SOTIF

Step 4: 统一验证矩阵

  • 测试场景同时覆盖FuSa故障注入 + SOTIF触发条件 + Cyber攻击场景
  • 避免三套测试各跑一遍的资源浪费

使用示例

用户:我的AEB系统需要做完整的安全分析
输出:
1. 统一HARA表(含FuSa/SOTIF/Cyber三列来源标注)
2. 交叉危害清单(三个领域相互放大的危害)
3. 统一安全需求分解
4. 统一验证计划(合并三类测试场景)

参考标准

  • ISO 26262:2018 Road vehicles — Functional safety
  • ISO 21448:2022 Road vehicles — Safety of the intended functionality
  • ISO/SAE 21434:2021 Road vehicles — Cybersecurity engineering
  • ISO/TR 4804:2020 Safety and cybersecurity for automated driving systems
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 80 lines · 48 tokens per session scan A 51a3003e57e6

Subscribe to this mod's changes

safety-trinity is a skill published in the GitHub repository AutoZYX-Labs/ADSafetyPilot (2 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 871 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens