agentleFS
camoacamoa/vibe-config/skills/safe-delete/SKILL.md

safe-delete

Skill1 starsChanged 23 days agoMITView on GitHub

Use when the person asks to reset, wipe, start over or delete a DDEV Drupal site. Picks the right kind of reset, runs only the safe one, and hands the person the exact command for the destructive one.

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. getsentry/skillet★ 13same name
    2. mfang0126/openclaw-skills★ 4same name
    3. nadavnaveh/skills★ 2same name
    4. stepanenkoviktor0110-boop/ai-dev-methodology★ 2same name
    5. ZhiqiZeying/claude-code-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Undo recent changes: Run ddev snapshot restore --latest, or ddev snapshot restore <name> for a named snapshot.

    line 10

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Safe delete

There are three kinds of reset. Pick the mildest one that does the job.

  1. Undo recent changes. Run ddev snapshot restore --latest, or ddev snapshot restore <name> for a named snapshot. The agent may run this itself.
  2. A fresh install that keeps config. Use the backend-setup skill. Do this only on a site made from the vibe-config-backend template, and only after a snapshot. Tell the person that content will be lost. This skill carries no fresh-install command of its own. Never delete the project to get a fresh install.
  3. Delete the DDEV project. This is only the person's, through the delete script, skills/safe-delete/scripts/safe-delete.sh in this repository.

On any other site, offer only the restore and the delete.

What a snapshot covers

A snapshot covers the database only. It does not cover sites/default/files, code or exported config. Say so before the person relies on one.

Hard rules

  • The agent never runs ddev delete and never runs the script itself.
  • The agent never fakes a terminal (a pseudo-terminal, script, piped input) to get past the script's confirmation. The script refuses without a real terminal on purpose.
  • The agent hands the person the exact command to run in their own terminal. Before handing it over, the agent replaces the script path with its absolute path on this machine, because the person runs it from the DDEV project folder:
skills/safe-delete/scripts/safe-delete.sh [--no-snapshot] [--remove-folder PATH] PROJECT

The script prints what it will delete, asks the person to type the project name, takes a snapshot, then deletes. Exit 0 means deleted. Exit 2 means a usage error, no terminal, a wrong name or a refused folder. Exit 1 means a ddev call failed.

Warning: a snapshot named seed comes back

A snapshot named seed reloads on the next start of a project with the same name. After a delete and a restart under that name, the seed data returns instead of an empty or fresh site. On a restart with an empty database, a snapshot named seed loads instead of a fresh install. Tell the person before they delete.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.