bds-backup

bds-backup is a skill for Claude Code from seungyeop-lee/beads-starter. It costs 26 tokens per session (933 once invoked), scanned A, original, MIT.

A backup and restore procedure for a repository's Beads issue database, using Dolt, a database system. It runs only when explicitly requested.

In plain words
What is it for?
Use it to back up one repository's Beads database to another location or restore that repository from a specified backup.
Why use it?
It keeps database data safe outside the machine and makes recovery possible if the local copy is lost. It also avoids accidentally changing the database without confirmation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the beads-starter plugin — 4 skills shipped together , and of beads-starter-always-on

Good fit Use it to back up one repository's Beads database to another location or restore that repository from a specified backup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seungyeop-lee/beads-starter/bds-backup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add seungyeop-lee/beads-starter --skill bds-backup
Clone the repo
git clone --depth 1 https://github.com/seungyeop-lee/beads-starter

Made for: Claude Code.

Or install beads-starter, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bds-backup

README.md
[![agentmods](https://agentmods.dev/badge/skills/seungyeop-lee/beads-starter/bds-backup/github.svg)](https://agentmods.dev/skills/seungyeop-lee/beads-starter/bds-backup)
Your own site
<a href="https://agentmods.dev/skills/seungyeop-lee/beads-starter/bds-backup"><img src="https://agentmods.dev/badge/skills/seungyeop-lee/beads-starter/bds-backup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bds-backup

Your own site · 80×15
<a href="https://agentmods.dev/skills/seungyeop-lee/beads-starter/bds-backup"><img src="https://agentmods.dev/badge/skills/seungyeop-lee/beads-starter/bds-backup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 933 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00933
Opus 5.5 $0.00010 $0.00373
Sonnet 5.5 $0.00005 $0.00187
Haiku 4.5 $0.00003 $0.00093

Measured 2d ago against content hash 9e83ca104f2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bds-backup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

on-demand/skills/bds-backup/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Beads Backup

Back up this repository's beads database to a location off this machine, or restore it from such a backup.

On Activation

Decide from the user's request whether this is a backup or a restore. If unclear, ask.

Run read-only checks without asking. Ask for confirmation before commands that change the database, the backup destination, or the machine: show the commands first, then ask.

Facts Under This Preset

These hold for the beads-starter preset (bd init --shared-server ...). Rely on them; do not hedge about them.

  • bd backup works in shared-server mode. Auto-backup is off, so a backup happens only when bd backup sync runs.
  • A backup covers only the current repository's database, not other projects on the shared server. Back up each repository separately.
  • A restore replaces only the current repository's database. Other projects' databases and the shared server itself are untouched.
  • .beads/ is gitignored, so git holds no copy of the issues and nothing records the backup path on another machine. The user must remember the path.
  • bd backup restore without a path reads .beads/backup/, not the configured destination. Always pass the path.
  • Restore always needs --force, because the database exists as soon as bd init has run. --force replaces the whole database: every change since the backup's last sync is lost.
  • After a restore, the backup's path is registered as the destination. No bd backup init is needed afterwards.

Backup

  1. Run bd backup status.
  2. If a destination is configured, confirm with the user that it is still the right one. Otherwise ask where to store the backup. It must be a directory that survives losing this machine and sits outside the repository: an external drive or a synced folder (e.g., ~/Dropbox/beads-backup/<repo>). Never pick the path yourself. Do not use a DoltHub URL: bd backup restore reads only a directory.
  3. If the destination is new or changed, run bd backup init <path>.
  4. Run bd backup sync, then bd backup status to confirm the sync time.
  5. Tell the user the path and that they must remember it; a restore on a new machine needs it. Remind them that later changes are not backed up until they run bd backup sync again.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 50 lines · 26 tokens per session scan A 9e83ca104f2a

Subscribe to this mod's changes

bds-backup is a skill published in the GitHub repository seungyeop-lee/beads-starter (1 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 933 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.

Related

Other skills, from other repositories