stpa-step1-define-purpose

Identify losses, hazards, and constraints for STPA safety analyses.

130|8|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/sandgardenhq/sgai --skill stpa-step1-define-purpose
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stpa-step1-define-purpose
Source: https://github.com/sandgardenhq/sgai/tree/main/cmd/sgai/skel/.sgai/skills/stpa/stpa-step1-define-purpose
Command: npx skills add https://github.com/sandgardenhq/sgai --skill stpa-step1-define-purpose

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The STPA Step 1 skill guides analysts to systematically identify unacceptable losses, associated hazards, and system-level constraints, ensuring a solid safety foundation before deeper analysis.

Core Features & Use Cases

  • Loss Identification: Prompted questions help capture critical losses across software, physical, and AI systems.
  • Hazard Derivation: Structured templates let analysts map system states to each loss, producing traceable hazards.
  • Constraint Definition: Generates system-level constraints that directly mitigate identified hazards, ready for later control structure design.
  • Use Case: A safety engineer assessing an autonomous vehicle can quickly enumerate potential injuries (losses), unsafe vehicle behaviors (hazards), and required safety policies (constraints) to feed into the STPA workflow.

Quick Start

Ask the skill to define the purpose of analysis for your autonomous drone project.

Frequently Asked Questions about stpa-step1-define-purpose

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define losses and hazards for an STPA safety analysis?

To define losses and hazards for STPA, identify unacceptable losses across software, physical, and AI systems, then map system states to those losses using structured templates to produce traceable hazards.

What is the best way to identify system-level safety constraints from hazards?

The best way to identify safety constraints from hazards is to generate system-level policies that directly mitigate each identified hazard, ensuring traceability between the constraint and the hazard it addresses.

Can I use STPA hazard analysis for AI and autonomous vehicle systems?

Yes, STPA hazard analysis applies to AI and autonomous vehicle systems by capturing critical losses, unsafe behaviors, and safety policies during the initial purpose-definition phase of the assessment.

How do you trace safety constraints back to specific losses in STPA?

Trace safety constraints to specific losses in STPA by linking constraints to hazards and hazards to losses, maintaining a clear traceability chain throughout the structured markdown templates.

When do I need to define the purpose of analysis before starting STPA?

You need to define the purpose of analysis before starting STPA to establish a solid safety foundation, ensuring unacceptable losses and associated hazards are systematically recorded prior to deeper analysis.

What are the limitations of STPA step 1 for software safety analysis?

STPA step 1 focuses solely on the initial purpose-definition phase, identifying losses, hazards, and constraints, and does not cover the downstream control structure design or detailed causal analysis.