agentleFS
hmislkhmislk/hmis/.claude/skills/restore-local-db/SKILL.md

restore-local-db

Skill236 starsChanged 3 months agoGPL-3.0View on GitHub

Refresh a LOCAL MySQL database from a PRODUCTION dump, safely. Use when asked to "restore <db> locally from prod", "get a fresh copy of coop/ruhunu for testing", "load this dump into my local database", or "back up prod and restore it locally". Two entry points: (1) name one or more databases and the skill dumps them from the Azure VM, downloads, and restores; (2) point at an existing dump file and the skill only restores. Works for ANY database, not just coop/ruhunu. Hard guardrails prevent ever writing to the Azure production databases: it refuses to run while any SSH tunnel is open and asserts the MySQL target is the local instance before every destructive step.

  • Reads credentials
  • Deletes or force-pushes

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 4 are distinctive, and 15 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 15

    Very specific

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

Licensed with conditions — read it at the source. We count its rules but don't quote them. Read them on GitHub.

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Does it work?

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

Reviews can't be read right now.

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.