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

data-loss-gate

Skill by garrytan

Data Loss Gate is an agent skill that stops an AI assistant before bulk deletes and other data-loss operations. It shows a recoverability card and waits for an explicit user yes. It is for people running agents with shell access or gbrain.

  • Score 94
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install data-loss-gate

Built from the published package, never by AI.

git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/data-loss-gate ~/.claude/skills/data-loss-gate

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

Step-by-step: install data-loss-gate in Claude Code

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

About

Data Loss Gate is an agent skill that fires before destructive operations. Shell-level cases include rm -rf, git rm and bulk sed. Brain-level cases include bulk forget, page-delete sweeps, purge-deleted, source removal and raw-SQL truncation. The agent inspects the actual target first, then presents a recoverability card that lists what would be lost and alternatives to deletion.

The agent must wait for an explicit "yes" or "do it" from the user. Words like "ok" or "sure" do not count. Confirmed deletions are logged under Data Deletions in the daily notes. The source calls this a routing convention, not an enforced operation boundary, so it depends on the agent following it. It is aimed at people who run AI agents that could delete data.

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

What it can do

  • Recoverability cardShows what would be deleted, the count, size, location and what can be recovered before running.
  • Explicit yes gateRequires a clear "yes" or "do it" from the user before a destructive step proceeds.
  • Target inspectionChecks backlinks, graph edges, git history or file contents before proposing a deletion.
  • Purge handlingRequires a separate go for each gbrain purge and runs purges one page at a time.
  • Deletion loggingRecords confirmed deletions under Data Deletions in daily/notes with timestamp and recovery path.

What you need

  • gbrain for brain-level operations

Try asking

  • Show me the recoverability card before you delete these old pages.
  • Before running rm -rf on the cache folder, list what it would remove.
  • Run a dry run of purge-deleted and wait for my yes before purging.

Good to know

  • It is a routing convention, not an operation-boundary enforcement.
  • Nothing in the gbrain runtime blocks a delete if the skill does not load.
  • A purge removes pages permanently and gbrain restore cannot undo it.
  • The --confirm-destructive flag confirms the agent, not the user.

Security check

A

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

Checked automatically: skills/data-loss-gate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB
  • routing-eval.jsonl1 KB

Alternatives to data-loss-gate

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

data-loss-gate: common questions

Does this skill block deletions automatically?

No. The source says it is a routing convention, and a well-behaved agent must follow it. Nothing in the gbrain runtime mechanically blocks a delete if the skill never loads.

What counts as consent to delete?

Only an explicit "yes" or "do it" from the user counts. The source says "ok", "sure" and "go ahead" do not.

Can a deleted gbrain page be recovered?

Page deletes are soft and can be restored with gbrain restore until they are purged. A purge removes the page for good, and the source says gbrain restore cannot undo it.

How do I install data-loss-gate?

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

Is data-loss-gate free?

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

Is data-loss-gate safe to use?

It scores 94 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 data-loss-gate?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

data-loss-gate Install

Add to stack

Loading.