Hub / skills / safety-risk-assessment

Skill · Security & Audits

Safety Risk Assessment

Use before executing any action that could be destructive, irreversible, or affect shared systems. Covers permission checks, destructive operation guards, reversibility assessment, and risk tier classification.

Community Markdown only · quarantined draft Local 14B+ MIT safetyriskassessmentsecurity

How to use

Pure Markdown procedure — zero executable code bundled. Inspect the full source below, then drop it into your Prometheus skills directory (or promote it from SkillDraftStore once oara hub install ships).

Install
# Copy-in path on your Prometheus host:
mkdir -p ~/.prometheus/skills/safety-risk-assessment
# Save the raw SKILL.md below as ~/.prometheus/skills/safety-risk-assessment/SKILL.md

# Upcoming CLI command:
oara hub install skills/safety-risk-assessment

Honest disclosures

  • Pure Markdown instructions — zero executable code bundled.
  • Lands quarantined in SkillDraftStore until explicitly promoted by the operator.
Inspect raw source (skills/safety-risk-assessment/SKILL.md)
---
name: safety-risk-assessment
description: Use before executing any action that could be destructive, irreversible,
  or affect shared systems. Covers permission checks, destructive operation guards,
  reversibility assessment, and risk tier classification.
license: MIT
tier: tool_search
---
<!-- Provenance: https://github.com/repowise-dev/claude-code-prompts | patterns/03-safety-and-risk-assessment.md | MIT | Pinned: 673eb39a29f19ae03587265bb4aa7e4491fd77d3 -->

# Safety and Risk Assessment

## Overview

This skill requires the agent to classify risk before editing code or executing commands. The goal is not to slow work down, but to apply the right level of caution to the current change.

Safety is operational: prevent irreversible mistakes, protect secrets, and surface uncertain assumptions early.

## Risk Tiers

### Low Risk
- Local scope, reversible, no sensitive data, narrow impact.
- Examples: editing a file, running a test suite, adding a log statement.
- Action: proceed with standard checks.

### Medium Risk
- Shared code paths, moderate impact, recoverable with effort.
- Examples: modifying shared library code, changing database queries, altering CI configuration.
- Action: expand tests, call out the rollback path explicitly.

### High Risk
- Production data/systems, destructive commands, broad impact, externally visible.
- Examples: force-pushing, dropping database tables, deleting branches, publishing artifacts, posting messages.
- Action: request explicit user approval before proceeding.

### Rule: When Uncertain, Choose the Higher Tier

If you cannot confidently classify a risk as low, treat it as medium. If you cannot confidently classify it as medium, treat it as high.

## Risk Assessment Process

1. **Classify:** Assign a risk tier with a one-line justification.
2. **Apply safeguards:** Follow the tier-specific action (see above).
3. **Evaluate reversibility:** How easily can this action be undone?
4. **Evaluate propagation:** How widely do the effects spread?
5. **Document:** Show risk tier, safeguards used, verification run, residual risk.

## Safety Rules (Non-Negotiable)

- **Never expose credentials, tokens, or secret files** in logs, code, commits, or output.
- **Never run destructive operations** without explicit user confirmation.
- **Clearly list assumptions** that could affect correctness.
- **Single-use approval only:** User approval for a specific action applies only to the exact scope described. It does not constitute standing authorization for similar future actions.

## Actions That Always Require Confirmation

- Destructive operations: removing files, deleting branches, dropping database tables, terminating processes
- Hard-to-undo operations: force-pushing, resetting git history
- Externally visible operations: pushing commits, opening pull requests, posting messages, publishing artifacts
- Uploads to third-party services

## When Encountering Unexpected State

- If you discover files you do not recognize, branches you did not create, or unfamiliar running processes -- examine them before taking removal action.
- If a lock file exists, check what process holds it rather than removing it.
- When facing merge conflicts, resolve them rather than discarding changes.
- Do not resort to destructive shortcuts when encountering obstacles. Investigate the underlying cause.

## Variations

- Add a "privacy-critical" tier for PII-heavy applications.
- Require a rollback script for all medium/high-risk changes.
- Add a "dry-run first" rule for deployment and migration commands.