Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

safety

Skill by langchain-ai

Checks secret handling, staged changes, push targets, destructive Git operations, Docker image hygiene and new dependencies before consequential coding actions. Built for developers using AI coding assistants.

  • Score 89
  • 32k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install safety

Built from the published package, never by AI.

git clone --depth 1 https://github.com/langchain-ai/deepagents /tmp/deepagents && mkdir -p ~/.claude/skills && cp -r /tmp/deepagents/libs/talon/deepagents_talon/defaults/skills/safety ~/.claude/skills/safety

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install safety in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The safety skill is a preflight checklist for AI coding assistants. It applies before consequential actions such as commits, pushes, container builds or publishes, and dependency additions, and it also covers explicit safety reviews. It covers secret handling, staged changes and push targets, destructive Git operations, Docker image hygiene, and supply chain checks.

The skill is guidance, not a tool permission or an automatic approval gate. It asks the assistant to keep secrets out of chat, commands, logs and image layers, to inspect git status and staged diffs before committing, and to confirm the remote and branch before pushing. If a check cannot be completed, the assistant is told to explain the uncertainty rather than claim it passed. It is aimed at developers who want these checks applied during coding work.

Written from the project's SKILL.md and checked against it.

What it can do

  • Secret handlingChecks changed paths and diffs for accidental secrets before commits or publishes.
  • Staged change reviewInspects git status and staged files, and unstages unwanted files without discarding local changes.
  • Push target checkConfirms the remote URL, branch and refspec before pushing.
  • Destructive Git guardInspects what a force push, reset, clean or branch deletion would overwrite or remove.
  • Docker build reviewChecks build context, .dockerignore, Dockerfile and Compose files for secret exposure.
  • Dependency reviewChecks package source, maintenance, licensing and advisories before adding a dependency.

What you need

  • Git repository
  • Docker, for container build and publish checks
  • The project's declared package manager

Try asking

  • Run a safety check before I commit these changes
  • Check my staged files for secrets before I push
  • Review this Dockerfile before I build and publish the image

Good to know

  • Guidance only, not a tool permission or approval gate.
  • The sfw firewall is optional and is not installed automatically.
  • Checks that cannot be completed are reported as uncertain, not passed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: libs/talon/deepagents_talon/defaults/skills/safety/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB

Alternatives to safety

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

safety: common questions

Does this skill block commits or pushes?

No. The source says it is guidance, not a tool permission or automatic approval gate, and it respects the repository's existing approval controls.

When should the safety checks run?

Before commits, pushes, container builds or publishes, dependency additions, and explicit safety reviews, rather than as a session-wide prerequisite.

Does it require the sfw firewall?

No. The source describes sfw as optional, and the assistant should not install it automatically or bypass a required check.

How do I install safety?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is safety free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is safety safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to safety?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

safety Install

Add to stack

Loading.