hara-stage1

Derive Stage 1 function-level malfunction candidates from Stage 0 mappings.

2|Updated May 13, 2026
One-click install
npx skills add https://github.com/WSJ40/hara-mutiagent --skill hara-stage1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hara-stage1
Source: https://github.com/WSJ40/hara-mutiagent/tree/main/skills/hara-stage1
Command: npx skills add https://github.com/WSJ40/hara-mutiagent --skill hara-stage1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you derive Stage 1 function-level malfunction entries from Stage 0 function mappings, ensuring every output row is traceable to each function’s detail_text and conforms to the required JSON contract.

Core Features & Use Cases

  • Stage 1 malfunction derivation: Produces per-function derive_mf rows for the fixed set of malfunction fields (functional loss, over/under magnitude, early/late timing, unintended activation, stiction, direction error).
  • Deterministic, contract-first workflow: Enforces row counts, numbering rules, and mandatory nan vs non-nan consistency through slice outputs and subsequent Stage1R review.
  • Controlled knowledge loading: Only consults relevant knowledge files when needed, while keeping risk/scenario/security goal knowledge out of this stage.
  • Use case: When you already have Stage 0 function-to-ID mappings for a vehicle HARA run, you can generate output/<RUN_ID>_stage1_derive_mf.json for downstream semantic review and later stages.

Quick Start

Run the Stage 1 context preparation (only if needed) and then generate slice outputs per Function_ID to proceed into Stage1R semantic review before merging into the final Stage 1 derive file.

Frequently Asked Questions about hara-stage1

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

FAQPage Schema
How do I derive function-level malfunction candidates for a HARA workflow?

To derive function-level malfunction candidates, this Skill generates per-function rows for a fixed set of fields like functional loss, over/under magnitude, and timing errors from Stage 0 function mappings. It outputs a traceable JSON file ready for downstream semantic review.

What is the JSON schema contract for Stage 1 malfunction derivation?

The JSON schema contract enforces strict row counts, numbering rules, and mandatory nan versus non-nan consistency for malfunction fields. It ensures every output row is traceable to the original function detail_text and conforms to deterministic validation rules.

How do I generate Stage 1 malfunction entries from Stage 0 function mappings?

You generate Stage 1 malfunction entries by using Stage 0 function-to-ID mappings as input, producing slice outputs per Function_ID. These slices proceed into semantic review before merging into the final derive_mf JSON file.

Does this HARA Skill generate vehicle hazards, ASIL ratings, or safety goals?

No, this HARA Skill does not generate vehicle hazards, SEC ratings, scenarios, ASIL synchronization, or safety goals. It strictly isolates Stage 1 malfunction derivation, keeping risk and scenario knowledge out of this stage.

What are the fixed malfunction fields included in Stage 1 derivation?

The fixed malfunction fields include functional loss, over magnitude, under magnitude, early timing, late timing, unintended activation, stiction, and direction error. Each function receives derived rows for all these applicable malfunction types.

Can I use pipeline orchestration to automate functional safety malfunction derivation?

Yes, you can automate functional safety malfunction derivation using pipeline orchestration. The Skill applies deterministic, contract-first workflows with controlled knowledge loading to produce consistent JSON outputs for pipeline integration.