batocera-maintenance

batocera-maintenance is a skill for Claude Code from t3chnaztea/batocera-skills. It costs 117 tokens per session (1,074 once invoked), scanned A, original, MIT.

A maintenance guide for Batocera, a Linux system used to run retro games on arcade cabinets. It covers boot services, scheduled work, backups, and major-version upgrades.

In plain words
What is it for?
Use it to run scripts at startup or intervals, back up /userdata to another computer over SSH, inspect services, and upgrade between Batocera versions.
Why use it?
It prevents common maintenance approaches from failing, such as using cron where Batocera does not run it, and helps protect cabinet data during upgrades.

Skill for Claude Code

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

Part of the batocera plugin — 6 skills shipped together

Good fit Use it to run scripts at startup or intervals, back up /userdata to another computer over SSH, inspect services, and upgrade between Batocera versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/t3chnaztea/batocera-skills/batocera-maintenance
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 t3chnaztea/batocera-skills --skill batocera-maintenance
Clone the repo
git clone --depth 1 https://github.com/t3chnaztea/batocera-skills

Made for: Claude Code.

Or install batocera, the plugin that ships this one along with the rest of its 6 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 batocera-maintenance

README.md
[![agentmods](https://agentmods.dev/badge/skills/t3chnaztea/batocera-skills/batocera-maintenance/github.svg)](https://agentmods.dev/skills/t3chnaztea/batocera-skills/batocera-maintenance)
Your own site
<a href="https://agentmods.dev/skills/t3chnaztea/batocera-skills/batocera-maintenance"><img src="https://agentmods.dev/badge/skills/t3chnaztea/batocera-skills/batocera-maintenance/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 batocera-maintenance

Your own site · 80×15
<a href="https://agentmods.dev/skills/t3chnaztea/batocera-skills/batocera-maintenance"><img src="https://agentmods.dev/badge/skills/t3chnaztea/batocera-skills/batocera-maintenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,074 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.00117 $0.01074
Opus 5 $0.00059 $0.00537
Sonnet 5 $0.00023 $0.00215
Haiku 4.5 $0.00012 $0.00107

Measured 11d ago against content hash f8f2389a429c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

batocera-maintenance 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 11d 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.

skills/batocera-maintenance/SKILL.md · 101 lines

How it starts

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

Batocera Maintenance

Keeping the cabinet healthy: running things at boot and on a schedule, backing up what matters, and surviving version upgrades. Assumes the connection pattern and filesystem model from batocera-ops.

There is no crond — use a boot service

Batocera does not run a general-purpose crond. Don't write a crontab and assume it fires; it won't. The mechanism for "run this at boot / on a schedule" is a boot service.

Since v43, the entry point is /userdata/system/services/custom_service (it replaced /userdata/system/custom.sh; the upgrade auto-converts an existing custom.sh). A service is a script Batocera runs at boot with a start argument. Enable/inspect services:

SSHB "batocera-services list"
SSHB "cat /userdata/system/services/custom_service"

Scheduling without cron: the boot-loop pattern

To run something periodically, the service launches a background loop that sleeps and re-checks. This is how the cabinet does hourly/daily/monthly work with no cron:

# inside custom_service, on the 'start' case:
(
  while true; do
    # hourly re-assert (e.g. CPU governor; see batocera-tuning)
    /etc/init.d/S18governor start 2>/dev/null

    # once-a-day / once-a-month gating: compare a stamp file to `date`
    stamp=/userdata/system/.last-monthly-backup
    if [ "$(cat "$stamp" 2>/dev/null)" != "$(date +%Y-%m)" ]; then
      /userdata/system/tools/backup-to-remote.sh && date +%Y-%m > "$stamp"
    fi

    sleep 3600
  done
) &

Key ideas:

  • Catch-up, not clock-exact. Gate on "has this period's job run yet?" (compare a stamp to date +%Y-%m or %Y-%m-%d), not on "is it exactly 3 AM?". A cabinet that's powered off at 3 AM would never run a clock-exact job; the stamp approach runs it on the first boot of the new period instead.
  • Idempotent body. The loop may re-enter; the gated job must be safe to skip when already done this period.
  • Don't park schedulable scripts in /userdata/system/scripts/ — ES invokes executables there as game event hooks (see batocera-ops → emulationstation). Put tools in /userdata/system/tools/ or similar and call them from the service.

Read the full file on GitHub · 101 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 101 lines · 117 tokens per session scan A f8f2389a429c

Subscribe to this mod's changes

batocera-maintenance is a skill published in the GitHub repository t3chnaztea/batocera-skills (4 stars, last pushed 19d ago), licensed MIT. It adds 117 tokens to every session and 1,074 once invoked, about $0.0006 per session on Opus 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-08-31.

Related

Other skills, from other repositories

chief-strategy-officer

Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…

cbrock84/headcount · 93 tokens

seo-strategy

Audits and improves organic search performance — technical health, site architecture, internal linking, structured data, and the content decisions that determine what can rank. Use this to run an SEO audit, diagnose why pages are not ranking or were deindexed, plan a site's URL and navigation structure, add structured…

cbrock84/headcount · 74 tokens

financial-statement-analysis

Reads a set of financial statements and establishes what changed and why — fluctuation analysis against prior period and against budget, profitability, liquidity, solvency and efficiency ratios, benchmarking, and the non-GAAP measures presented alongside them. Use this to interpret results, review a counterparty's or…

cbrock84/headcount · 93 tokens

youtube-producer

Plans, packages, and scripts long-form video for retention and channel growth — idea selection, titles and thumbnails, script structure, and diagnosing why a video or channel underperforms. Use this for video ideas, packaging, scripting, a retention teardown, or channel strategy — including when someone describes a…

cbrock84/headcount · 86 tokens

estimating-and-contingency

Produces a cost or effort estimate someone can defend — decomposing the work, choosing between analogous, parametric and bottom-up methods, documenting the basis and its assumptions, expressing confidence as a range, and sizing contingency and management reserve separately. Use this to build an estimate, challenge one…

cbrock84/headcount · 87 tokens

chief-revenue-officer

Owns the revenue engine end to end: sales, monetization, pricing, customer success, retention, and partnerships. Use this for pricing and packaging decisions, sales strategy and coverage, forecast and pipeline health, churn and expansion, partner and channel strategy, or when marketing-sourced demand is not…

cbrock84/headcount · 80 tokens