Manages data synchronization for the bgmx project, including Bangumi subject updates and calendar maintenance.

Install

mkdir -p .claude/skills/bgmx && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16396" && unzip -o skill.zip -d .claude/skills/bgmx && rm skill.zip

Installs to .claude/skills/bgmx

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Maintain bgmx project data workflows only when the user explicitly invokes $bgmx or explicitly asks Codex to maintain bgmx data. Covers syncing Bangumi subject data, manually creating Bangumi subject revisions, syncing yuc.wiki seasonal calendars, and switching the active online calendar season.
296 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Sync Bangumi subject data
  • Create manual Bangumi subject revisions
  • Sync yuc.wiki seasonal calendars
  • Switch the active online calendar season
  • Inspect current state before writing to server

How it works

The skill uses the bgmx CLI to perform data maintenance tasks, including syncing data from external sources and managing revisions, with safeguards for production writes.

Inputs & outputs

You give it
User request for bgmx data maintenance (e.g., sync Bangumi subjects, update calendar)
You get back
Updated Bangumi subject data, created subject revisions, or synchronized/switched seasonal calendars

When to use bgmx

  • Refreshing Bangumi subject data
  • Updating active seasonal calendars
  • Managing subject revisions
  • Validating API state

About this skill

bgmx

Overview

Use this skill for routine bgmx data maintenance. Treat commands that include --update-server, --update-active, subject revision, or direct bgmw HTTP writes as production-affecting unless the user points at a local --base-url.

Use bgmx ... in examples. If bgmx is unavailable, use npx --yes bgmx ....

Workflow

  1. Confirm the CLI is available:
    command -v bgmx >/dev/null 2>&1 && bgmx --version || npx --yes bgmx --version
    
  2. Inspect current state before writing:
    • Identify the target API: production default https://bgm.animes.garden/ or a local/dev --base-url.
    • For server updates, create or confirm a .env file in the current working directory with SECRET=<value>. Prefer .env; do not pass secrets directly on the command line.
  3. Use read-only commands first when possible:
    • bgmx subject <subject_id>
    • bgmx calendar --season <yyyy-MM>
  4. After writing, run the narrow verification command for the affected workflow and summarize the command output.

Sync Bangumi Subjects

Use this when the user asks to refresh bgmx subject data from Bangumi.

  • Pull and update all Bangumi subject data:
    bgmx sync bangumi --update-server
    
  • Save fetched data without writing the server by running from a directory without SECRET in .env:
    bgmx sync bangumi
    
  • Useful options:
    • --out-dir <directory> writes local Bangumi JSON data.
    • --log <file> records unknown subjects and update errors.
    • --concurrency <number> and --retry <number> control fetch behavior.

After syncing, inspect the log for unknown subjects and failures. If the user asks for a release or PR, mention the sync count and any error count.

Create Subject Revisions

Use revisions for manual corrections to a bgmx subject's search behavior. The CLI is interactive.

  1. Inspect the subject:
    bgmx subject <subject_id>
    
  2. Create a revision:
    bgmx subject revision <subject_id>
    
  3. Choose one of the supported fields:
    • search.include
    • search.exclude
    • search.keywords
    • search.before
    • search.after
  4. For set fields, choose set.add, set.delete, or field.set. For before/after, enter a parseable datetime.
  5. Verify the result:
    bgmx subject revision list <subject_id>
    

Prefer small, targeted revisions. Do not edit database rows directly unless the user explicitly asks for a migration or repair.

Sync And Switch Calendar

Use this section only for calendar update work: importing a yuc.wiki season, resolving Bangumi subject ids, uploading the calendar, marking a season active, or cancelling an active season.

Update And Activate A Calendar

  1. Generate an initial yuc calendar session file in a draft directory without .env, so it cannot upload. Use an explicit session file name so it can be reviewed and edited:
    bgmx sync yuc \
      --year 2026 \
      --month 7 \
      --session yuc-2026-07.yaml
    
  2. Read the generated session file. Find every calendar item whose id is missing or -1.
  3. Infer missing Bangumi subject ids using the available tools:
    • Query bgmx subjects first when useful: bgmx subject <subject_id>.
    • Use bgmc/Bangumi search for candidate subjects.
    • Use web search when title aliases, season naming, or release metadata are ambiguous.
    • Prefer the exact seasonal subject, not the franchise/root subject.
  4. Update the session file with resolved Bangumi subject ids.
  5. Report the complete calendar before uploading. Include every animation in the season and its Bangumi subject id, grouped by weekday and web/ONA.
  6. Wait for the user to confirm the reported calendar.
  7. Upload the confirmed calendar and mark the season active:
    bgmx sync yuc \
      --year 2026 \
      --month 7 \
      --session yuc-2026-07.yaml \
      --update-server \
      --update-active true
    
  8. Verify the uploaded season:
    bgmx calendar --season 2026-07
    

Calendar seasons use yyyy-MM where MM is 01, 04, 07, or 10. sync yuc derives this season from explicit --year and --month; when both are omitted and --session is set, it derives them from the session file name, with or without the hyphen between year and month.

Cancel An Active Calendar

Use this when the user asks to deactivate a season without deleting its calendar data.

  1. Confirm the target season:
    bgmx calendar --season 2026-07
    
  2. Mark it inactive:
    bgmx sync yuc \
      --year 2026 \
      --month 7 \
      --session yuc-2026-07.yaml \
      --update-server \
      --update-active false
    
  3. Verify active calendar state:
    bgmx calendar
    bgmx calendar --season 2026-07
    

When not to use it

  • When the user does not explicitly invoke $bgmx
  • When the user does not explicitly ask to maintain bgmx data
  • When direct database row edits are not explicitly requested

Limitations

  • Only maintain bgmx project data workflows when explicitly invoked.
  • Treats commands with `--update-server`, `--update-active`, or direct HTTP writes as production-affecting.
  • Requires explicit user confirmation for calendar uploads.

How it compares

This skill provides a structured CLI workflow for bgmx data maintenance, ensuring safe and verifiable updates, unlike manual data manipulation.

Compared to similar skills

bgmx side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
bgmx (this skill)01moReviewIntermediate
apify-ultimate-scraper03moReviewIntermediate
calculator77moReviewBeginner
maintainx-data-handling11moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

apify-ultimate-scraper

Anhvu1107

ALWAYS use this when the request matches Apify Ultimate Scraper: AI-driven data extraction from 55+ Actors across all major platforms.

00

calculator

Code-and-Sorts

Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.

715

maintainx-data-handling

jeremylongshore

Data synchronization, ETL patterns, and data management for MaintainX. Use when syncing data between MaintainX and other systems, building ETL pipelines, or managing data consistency. Trigger with phrases like "maintainx data sync", "maintainx etl", "maintainx export", "maintainx data migration", "maintainx data pipeline".

12

segment-cdp

davila7

Expert patterns for Segment Customer Data Platform including Analytics.js, server-side tracking, tracking plans with Protocols, identity resolution, destinations configuration, and data governance best practices. Use when: segment, analytics.js, customer data platform, cdp, tracking plan.

212

databuddy

databuddy-analytics

Integrate Databuddy analytics into applications using the SDK or REST API. Use when implementing analytics tracking, feature flags, custom events, Web Vitals, error tracking, LLM observability, or querying analytics data programmatically.

110

analytics-pipeline

dadbodgeoff

Real-time analytics with Redis counters, periodic PostgreSQL flush, and time-series aggregation. High-performance event tracking without database bottlenecks.

15

Search skills

Search the agent skills registry