Backup Runner
Skill0 starsChanged 29 days agoApache-2.0View on GitHub
Back up the working folder with shell tar — dated .tar.gz in a backups/ subfolder, junk excluded, archive verified by listing and file-count comparison, keeping the last N (default 5) with rotation only after the new archive verifies.
- Deletes or force-pushes
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- Contact DeduperSkill
- Csv CleanerSkill
- Expense CategorizerSkill
- Invoice ProcessorSkill
- Json WranglerSkill
- Log AnalyzerSkill
- Pdf ExtractorSkill
- Report Chart BuilderSkill
- Spreadsheet AnalyzerSkill
- Survey SummarizerSkill
- delegate-agentSkill
- Approval Request TriageSkill
- Channel BroadcastSkill
- Dependency AuditorSkill
- Memory KeeperSkill
- Repo OnboarderSkill
- Scheduled Job DoctorSkill
- Web Form FillerSkill
- Web ScraperSkill
- Website MonitorSkill
- Brain Dump To TasksSkill
- Calendar Day PlannerSkill
- Daily BriefingSkill
- Email TriageSkill
- Follow Up TrackerSkill
- Meeting MinutesSkill
- Recurring Digest SetupSkill
- Standup ReporterSkill
- Task Board GroomerSkill
- Weekly ReviewSkill
- Arxiv Paper ScannerSkill
- Comparison MatrixSkill
- Competitor WatchSkill
- Deep Research BriefSkill
- Fact CheckerSkill
- News DigestSkill
- People Company BriefSkill
- Product Price ScoutSkill
- Stock Price CheckerSkill
- Trending Topic DigestSkill
- Senior Software EngineerSkill
- Skill CreatorSkill
- Social CommentsSkill
- Social CoreSkill
- Social DMSkill
- Social EngageSkill
- Social HealthSkill
- Social InsightSkill
- Social ProspectSkill
- Social WatchSkill
- Blog Post WriterSkill
- Documentation WriterSkill
- Email DrafterSkill
- Executive SummarySkill
- Press Release WriterSkill
- Proposal WriterSkill
- Release Notes WriterSkill
- Social Media RepurposerSkill
- Tone RewriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Create a verified, dated archive of the working folder in backups/, then rotate old archives — never deleting anything outside backups/.
- Very specific: line 22
Create the archive from the source dir via shell:
- Very specific: line 25
Verify the new archive, both checks required before any rotation: a.
- Very specific: line 28
If verification fails: delete only the bad new archive in backups/, report the failure, and do not rotate — the previous archives are the …
- Distinctive: line 49
If the source is unexpectedly huge (archive step very slow or the count is >100k files), stop and confirm scope with the user rather than …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Backup Runner
Create a verified, dated archive of the working folder in backups/, then rotate old archives — never deleting anything outside backups/.
Inputs
- Source — default: the working folder root (a subfolder if the user names one).
- Keep count N — how many archives to retain. Default: 5.
- Extra excludes — optional user-named paths to skip, added to the standard junk list.
Steps
- Confirm the
shelltool is available. If it is off, stop and tell the user to enable the shell tool for this agent —tararchiving needs it; there is no file-tool fallback for a real backup. - Prepare:
shellmkdir -p backups, then build the archive namebackups/backup-<YYYY-MM-DD-HHMM>.tar.gz(real current date-time). - Create the archive from the source dir via
shell:tar -czf backups/backup-<stamp>.tar.gz --exclude='./backups' --exclude='./node_modules' --exclude='./.git' --exclude='./.venv' --exclude='./venv' --exclude='*.log' --exclude='./dist' --exclude='./__pycache__' <extra excludes> .Excluding./backupsitself is mandatory — never archive old backups into new ones. - Verify the new archive, both checks required before any rotation:
a.
tar -tzf backups/backup-<stamp>.tar.gz > /dev/nullexits 0 (readable, not corrupt), andtar -tzf ... | grep -cv '/$'gives the archived file count. b. Expected count:find . -type f -not -path './backups/*' -not -path './node_modules/*' -not -path './.git/*' -not -path './.venv/*' -not -path './venv/*' -not -name '*.log' -not -path './dist/*' -not -path './__pycache__/*' | wc -l(mirror any extra excludes). Counts must match; a small delta is only acceptable if you can name the exact files that changed mid-run. - If verification fails: delete only the bad new archive in
backups/, report the failure, and do not rotate — the previous archives are the only good copies. - Rotate only after verification passes:
ls -1t backups/backup-*.tar.gzand identify archives beyond the newest N. The first time a rotation would ever delete anything, list the candidate files and ask the user before deleting; record their standing OK withmemory_write(backup rotation approved, keep last <N> | <YYYY-MM-DD>), and on later runsmemory_searchfor that approval before deleting silently. Delete only matchingbackups/backup-*.tar.gzfiles. - Report: archive path, size (
du -h), archived file count, verification result, and what was rotated out.
Output format
Backup complete — <source>
Archive: backups/backup-<stamp>.tar.gz (<size>)
Files: <archived count> archived · expected <count> · verified OK
Rotation: kept last <N>; removed <list or "nothing">On failure: Backup FAILED at <step> — <error>. Previous archives untouched.
Rules
- Never delete anything outside
backups/, and inside it only files matchingbackup-*.tar.gz. Norm -rf, no wildcards outside that pattern. - Rotation strictly after the new archive verifies — a failed backup must never cost an old one.
- First-ever rotation delete requires the user's explicit OK (step 6); scheduled runs before that OK exists keep everything and flag that
backups/is growing. - Junk exclude list is the default (node_modules, .git, venvs,
*.log, dist, pycache, backups itself); the user can add excludes but sources are never modified — this skill only creates archives. - If the source is unexpectedly huge (archive step very slow or the count is >100k files), stop and confirm scope with the user rather than filling the disk.
- Local-first: archives stay in the working folder's
backups/; no uploads anywhere.
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
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.

