stpa-step1-define-purpose

Define STPA analysis purpose by identifying losses, hazards, and constraints.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users systematically define the foundational elements of a System-Theoretic Process Analysis (STPA) by identifying critical losses, potential hazards, and essential system-level constraints.

Core Features & Use Cases

  • Loss Identification: Guides users to define unacceptable outcomes for a system.
  • Hazard Identification: Assists in pinpointing system states that could lead to identified losses.
  • Constraint Definition: Facilitates the creation of rules the system must follow to prevent hazards.
  • Use Case: Before analyzing the safety of an autonomous vehicle's braking system, use this Skill to clearly document that a "loss of control leading to accident" is unacceptable, identify "uncommanded acceleration" as a hazard, and define a constraint like "vehicle must decelerate when brake is applied."

Quick Start

Use the stpa-step1-define-purpose skill to begin defining the purpose of our STPA analysis by identifying losses, hazards, and constraints.

Frequently Asked Questions about stpa-step1-define-purpose

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

FAQPage Schema
What is the first step in STPA safety analysis?

Defining the purpose in STPA involves identifying unacceptable losses, pinpointing system hazards that lead to those losses, and deriving system-level constraints to prevent them, establishing a clear safety baseline for complex systems.

How do I identify system hazards and constraints for risk assessment?

You identify hazards by pinpointing system states that could lead to unacceptable losses, then derive constraints by creating rules the system must follow to prevent these hazards during your safety analysis.

When do I need to define losses and hazards for system safety analysis?

You need to define losses and hazards before analyzing the safety of any complex system, such as an autonomous vehicle's braking system, to clearly document unacceptable outcomes and establish a foundational safety scope.

Can I use this STPA method to analyze an autonomous vehicle's braking system?

Yes, you can use this STPA method to analyze an autonomous vehicle's braking system by documenting losses like accidents, identifying hazards like uncommanded acceleration, and defining constraints like mandatory deceleration.

What is the difference between a system loss and a system hazard in STPA?

In STPA, a loss is an unacceptable outcome for the system, while a hazard is a specific system state or condition that could lead directly to that identified loss, requiring constraints to prevent it.