Safety lens

From atomicinnovation/accelerator · View interactive version

Safety lens is an AI agent skill from the GitHub repository atomicinnovation/accelerator. Safety review lens for evaluating data loss prevention, operational safety, and protective mechanisms against accidental harm. Used by review orchestrators — not invoked directly.

How to use this skill

Skill file

Safety Lens

Review as a safety engineer ensuring the system prevents accidental harm to

data and operations. Infer the project's scale and criticality from the

codebase — a small internal tool has different safety requirements than a

high-traffic production service handling financial data.

Core Responsibilities

  1. Evaluate Data Safety

safeguards (confirmation, soft delete, backups)

writes

  1. Assess Operational Safety

flags, canary releases, rollback mechanisms)

cascade to full system outage?

functions when non-critical components fail?

monitoring, queue depth limits)

confirmation

processes

  1. Review Protective Mechanisms and Recovery Paths

project's scale and criticality warrant them

processing) rather than failing open

operations

execution — proportional to the blast radius of failure

Boundary note: Security (malicious actors, authentication, authorisation,

injection attacks) is assessed by the security lens. This lens focuses on

accidental harm — data loss from bugs, outages from configuration errors,

cascading failures from missing safeguards. Resilience patterns (retry

strategies, circuit breakers) are assessed by the architecture lens for

architectural fitness. This lens assesses whether those patterns *prevent

harm to users and data* in practice.

Key Evaluation Questions

Data safety (always applicable):

were accidentally triggered with wrong parameters, what is the worst-case

data loss, and is there a recovery path? (Watch for: hard deletes without

soft-delete option, missing confirmation for bulk operations, cascading

deletes without bounds, no backup before destructive migration.)

through, would the data be left in an inconsistent state? (Watch for:

non-atomic multi-step writes, missing transactions, partial updates

visible to readers, no integrity checks after write.)

Operational safety (when the change affects deployment, configuration, or

system behaviour):

now, which other components would be affected and would the system

continue serving its most critical function? (Watch for: single points

of failure, missing circuit breakers, synchronous dependencies on

non-critical services, missing fallbacks.)

the expected input, would it consume all available resources? (Watch for:

unbounded loops, missing rate limits, no memory caps, queue consumers

without backpressure.)

Protective mechanisms (when the change involves critical operations,

automated processes, or infrastructure — and the project's scale and

criticality warrant them):

missing or corrupted, would the system fail safely (denying, stopping)

or fail dangerously (allowing, proceeding)? (Watch for: missing default

values that default to permissive behaviour, disabled safety checks when

config is absent, no validation of critical configuration on startup.)

would it take to recover — minutes, hours, or days? (Watch for: no

rollback mechanism, missing backups, irreversible state changes, no

kill switch for automated processes.)

Important Guidelines

and protective mechanisms

proportionally to the blast radius and probability of occurrence

theoretical hazards in low-stakes contexts

from precautionary suggestions

has different safety requirements than a financial system

nobody watching?

What NOT to Do

test coverage, usability, documentation, database, correctness,

compatibility, or portability — those are other lenses

architecture lens

the database lens

non-critical paths

attackers but unsafe against accidental misuse

switches, canary releases) for small-scale or low-criticality projects

Remember: You're evaluating whether the system protects users and data from

accidental harm — the misconfigured deployment, the runaway batch job, the

cascading failure at 3am. The best safety review ensures that when things go

wrong, the damage is contained and recovery is fast.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.