Xpersona
M

MAL-Updater

CLAWHUB · Unverified

Multi-provider anime → MyAnimeList sync and recommendations skill with guarded auth, review-queue triage, health checks, bootstrap auditing, and user-systemd...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s176y11yv9na3nw5afgpj7d13583g123:mal-updater
  1. Install using `clawhub skill install s176y11yv9na3nw5afgpj7d13583g123:mal-updater` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/kklouzal/mal-updater before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kklouzal-mal-updater/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: mal-updater
description: Multi-provider anime → MyAnimeList sync and recommendations skill with guarded auth, review-queue triage, health checks, bootstrap auditing, and user-systemd daemon support. Currently supports Crunchyroll and HIDIVE as source providers. Use when installing, auditing, operating, or troubleshooting MAL-Updater on an OpenClaw host.
metadata: {"openclaw":{"emoji":"📺","homepage":"https://github.com/kklouzal/mal-updater","os":["linux"],"requires":{"anyBins":["python3","python"]},"primaryEnv":"MAL_UPDATER_MAL_CLIENT_ID"}}
---

# MAL-Updater

Treat `{baseDir}` as the skill root. This repository is the skill package.

## Core model

- Keep business logic in the repo-local Python CLI.
- Keep runtime state outside the skill tree under the workspace runtime root `.MAL-Updater/` unless the operator explicitly overrides paths.
- Do not assume host-specific absolute paths, IPs, or preexisting local copies under `~/.openclaw/workspace/skills/`.
- For new installs or portability audits, start with `bootstrap-audit` before doing any live auth or sync work.
- Prefer the long-lived **user-systemd daemon** over timers or OpenClaw cron for unattended operation.

## Bootstrap / onboarding workflow

1. `cd {baseDir}`
2. Run `PYTHONPATH=src python3 -m mal_updater.cli bootstrap-audit`
3. Read `{baseDir}/references/bootstrap-onboarding.md`
4. Use the audit output to:
   - verify required binaries
   - check whether provider-specific optional transport/runtime extras are missing
   - confirm the external runtime layout under `.MAL-Updater/`
   - identify which user-provided secrets/app settings are still missing for MAL and any enabled source providers
   - verify the secrets location is outside version control and suitable for restrictive local permissions
   - decide whether the repo-owned user-systemd daemon can be installed on this host
5. If bootstrap is incomplete, guide the user through the missing steps instead of pretending install is finished.
6. Prompt for provider credentials only when the workflow reaches that provider's bootstrap step; do not request Crunchyroll or HIDIVE secrets preemptively if the user has not chosen or enabled that provider yet.

## How to access backend data / operator surfaces

For the most common operator/data tasks, use the repo-local CLI from `{baseDir}`:

### Read-only inspection
- `PYTHONPATH=src python3 -m mal_updater.cli status`
- `PYTHONPATH=src python3 -m mal_updater.cli bootstrap-audit`
- `PYTHONPATH=src python3 -m mal_updater.cli service-status`
- `PYTHONPATH=src python3 -m mal_updater.cli service-run-once`
- `PYTHONPATH=src python3 -m mal_updater.cli health-check --format summary`

### Recommendations / recommendation-related data
- `PYTHONPATH=src python3 -m mal_updater.cli recommend --limit 20`
- `PYTHONPATH=src python3 -m mal_updater.cli recommend --limit 20 --flat`
- `PYTHONPATH=src python3 -m mal_updater.cli recommend-refresh-metadata`

### Review queue / mapping triage
- `PYTHONPATH=sr

README.md

# MAL-Updater

MAL-Updater is a **skill-first** OpenClaw repository for conservative **multi-provider anime → MyAnimeList sync and recommendations**, with mapping review, guarded apply runs, and unattended maintenance. Current source providers: **Crunchyroll** and **HIDIVE**.

This repository is the skill package.

## Repository contract

- `SKILL.md` at the repo root is the canonical skill entrypoint.
- The Python CLI under `src/mal_updater/` contains the real business logic.
- Runtime state lives **outside** the skill tree under the workspace runtime root `.MAL-Updater/` by default.
- The repo keeps code, references, scripts, templates, tests, and supporting artifacts bundled so third parties can audit the whole artifact.
- Background work now centers on a **long-lived user-level systemd daemon**, not user timers or OpenClaw cron.

## Default runtime layout

MAL-Updater externalizes runtime state to the workspace root:

- `.MAL-Updater/config/`
- `.MAL-Updater/secrets/`
- `.MAL-Updater/data/`
- `.MAL-Updater/state/`
- `.MAL-Updater/cache/`

Override paths only when the operator explicitly wants a different layout.

## First commands on a new install

```bash
cd <repo-root>
PYTHONPATH=src python3 -m mal_updater.cli bootstrap-audit
PYTHONPATH=src python3 -m mal_updater.cli init
PYTHONPATH=src python3 -m mal_updater.cli status
```

Use `bootstrap-audit --summary` when you only need a terse onboarding checklist. The default JSON now also includes provider readiness, blocking/non-blocking onboarding counts, and explicit recommended commands for automation-friendly consumers.

## What bootstrap-audit covers

- resolved skill root, workspace root, and runtime root
- runtime path layout
- dependency checks (`python3`, `flock`, `systemctl`, optional provider/runtime extras)
- MAL client id / token presence
- Crunchyroll credentials / staged auth-state presence
- HIDIVE credentials / staged auth-state presence
- current MAL redirect URI
- whether the repo-owned **user-systemd daemon service** can be installed on this host

## Bootstrap / onboarding flow

1. Run `bootstrap-audit`
2. Create the external runtime dirs and SQLite DB with `init`
3. Create the MyAnimeList app and configure the redirect URI reported by `status`
4. Stage the MAL client id in `.MAL-Updater/secrets/`
5. Run `mal-auth-login` to persist MAL access/refresh tokens
6. For each source provider you want enabled, stage that provider's credentials in `.MAL-Updater/secrets/`
7. Run the provider bootstrap command at the point the audit/onboarding flow says that provider is ready:
   - Crunchyroll: `provider-auth-login --provider crunchyroll` (or the compatibility wrapper `crunchyroll-auth-login`)
   - HIDIVE: `provider-auth-login --provider hidive`
8. Install the unattended daemon with `scripts/install_user_systemd_units.sh` when the host supports user systemd

Normal unattended operation now assumes **all credentialed providers stay enabled** and are swept by separate background fetch lanes 

_meta.json

{
  "ownerId": "kn75n7hs2dg3361ff6nmvcs1g1839m7v",
  "slug": "mal-updater",
  "version": "0.1.6",
  "publishedAt": 1774802567656
}

references/AUTOMATION.md

# Automation

MAL-Updater now uses a **long-lived user-systemd daemon** rather than timer-driven one-shot jobs as the primary unattended model.

## Daemon model

The installed service runs:

```bash
python3 -m mal_updater.cli --project-root <repo-root> service-run
```

That foreground process owns its own internal loop cadence and recurring lanes for:

- MAL token refresh
- exact-approved sync passes
- recurring health-check/report generation
- API request logging / budget awareness

## User systemd install

Repo-owned templates live in `ops/systemd-user/`.

Install the daemon with:

```bash
cd <repo-root>
scripts/install_user_systemd_units.sh
```

Important:
- the committed `.service` file is a template, not a host-bound final unit
- the installer renders the current repo root and service env path into the installed copy
- this keeps the repo portable while still producing a valid host-specific user daemon

Useful variants:

```bash
scripts/install_user_systemd_units.sh --dry-run
scripts/install_user_systemd_units.sh --no-enable
scripts/install_user_systemd_units.sh --start-service
```

## Direct service commands

```bash
cd <repo-root>
PYTHONPATH=src python3 -m mal_updater.cli install-service
PYTHONPATH=src python3 -m mal_updater.cli service-status
PYTHONPATH=src python3 -m mal_updater.cli service-status --format summary
PYTHONPATH=src python3 -m mal_updater.cli restart-service
PYTHONPATH=src python3 -m mal_updater.cli service-run-once
```

`service-status` is now the main structured observability surface for unattended debugging. In addition to user-systemd enabled/active state, it reports:

- recent daemon loop timing (`last_loop_at`)
- per-lane task summaries from `service-state.json` (including last decision time plus last-run start/finish/duration when available)
- persisted budget backoff details, including whether a lane is cooling down at `warn` or `critical` level, whether the active cooldown policy came from task-level vs provider-level budget settings, and which learned projection source (configured / smoothed / percentile / auto-bursty percentile) the daemon is currently trusting for pre-run request budgeting
- persisted failure-backoff details for task errors, including retry countdown, last failure reason, and consecutive-failure streaks for auth-fragile provider lanes
- health-check-driven auth recovery hints: repeated auth-style provider fetch failures recorded in daemon state now surface as explicit re-bootstrap recommendations (`crunchyroll-auth-login` / `provider-auth-login --provider hidive`) instead of only opaque backoff residue
- health-driven full-refresh escalation: when the latest `latest-health-check.json` artifact recommends `refresh_full_snapshot` for a provider, the next unattended provider fetch lane upgrades itself to `--full-refresh` once so partial-coverage residue is repaired without waiting for the periodic cadence window
- current API-usage snapshot when available
- recent `service.log` tail lines
- parsed `

references/bootstrap-onboarding.md

# Bootstrap / onboarding

Use this when MAL-Updater is being installed, reviewed for portability, or prepared on a new OpenClaw instance.

## Goal

Turn this repo into a working MAL-Updater installation without storing runtime state inside the skill tree.

Default runtime layout lives under the workspace root:
- `.MAL-Updater/config/`
- `.MAL-Updater/secrets/`
- `.MAL-Updater/data/`
- `.MAL-Updater/state/`
- `.MAL-Updater/cache/`

Override only when the operator explicitly wants a different layout.

## First command

```bash
cd {baseDir}
PYTHONPATH=src python3 -m mal_updater.cli bootstrap-audit
```

Use `--summary` for terse line-oriented output.

## What bootstrap-audit tells you

The default JSON output is intended to be automation-friendly: it includes per-provider readiness, missing capability buckets, blocking vs non-blocking onboarding counts, and explicit `recommended_commands` entries when MAL-Updater can suggest an exact next CLI action.

- resolved skill root, workspace root, and runtime root
- runtime path layout
- whether `python3`, `flock`, `systemctl`, and optional provider/runtime extras are available
- whether MAL client id / MAL auth tokens exist
- whether Crunchyroll credentials / staged Crunchyroll auth state exist
- whether HIDIVE credentials / staged HIDIVE auth state exist
- whether the user-level systemd daemon can be installed
- the current MAL redirect URI that the user must configure in their MAL app

## Required user-facing bootstrap steps

### 1. Dependency check

- Require `python3`
- Require `flock` for the wrapper scripts the daemon still reuses for some guarded lanes
- Treat `curl_cffi` as strongly recommended for live Crunchyroll auth/fetch reliability
- Treat `systemctl` as required only for the unattended user-systemd daemon path

If missing:
- explain what is missing
- remediate if safe and available
- otherwise tell the user exactly what must be installed

### 2. Initialize runtime dirs / DB

```bash
cd {baseDir}
PYTHONPATH=src python3 -m mal_updater.cli init
```

This creates the external runtime tree and SQLite database.

### 3. MAL app setup

The user must create a MyAnimeList app and configure the redirect URI reported by:

```bash
cd {baseDir}
PYTHONPATH=src python3 -m mal_updater.cli status
```

Specifically use `mal.redirect_uri`.

Then store the MAL client id in the runtime secrets dir.

### 4. MAL OAuth bootstrap

```bash
cd {baseDir}
PYTHONPATH=src python3 -m mal_updater.cli mal-auth-login
```

This persists MAL access/refresh tokens under the runtime secrets dir.

### 5. Source provider credentials

Before staging secrets, verify the runtime secrets dir is outside version control and has appropriately restrictive local permissions for the user account.

Prompt for source-provider credentials only when that provider is actually being enabled.

#### Crunchyroll

Stage the user’s Crunchyroll username/password in the runtime secrets dir, then run:

```bash
cd {baseDir}
PYTHONPATH=src python3 -m mal_upda

Sponsored

Ads related to MAL-Updater and adjacent AI workflows.