Skills

Subject Audit

Review AnimeGarden animation resource-to-Bangumi Subject bindings for a specified time...

Install

npx skills add yjl9903/AnimeGarden --skill subject-audit -g -a claude-code -y
Repository
yjl9903/AnimeGarden1.4k
Category
Design
Updated
3d ago
License
AGPL-3.0
Context cost
Mediumabout 1,500 tokens
Runs scripts
Yes, review before use

What it does

Review AnimeGarden animation resource-to-Bangumi Subject bindings for a specified time range, identify missing or incorrect bindings, and report evidence-backed Subject search improvements. Use for manager-side audits; online binding corrections are optional and require explicit user confirmation.

AnimeGarden Subject Audit

Review every animation resource in a requested time range, determine which registered Bangumi Subject it most likely belongs to, and assess both its current binding and the target Subject's search coverage. The current subjectId and search configuration are evidence about system state rather than the basis for attribution.

The standard path produces a read-only audit report. An optional confirmed step can apply reliable target Subject IDs to current online resources before the report is finalized.

Read references/audit-rules.md for the attribution standard, search diagnosis, and report format.

Workflow

1. Collect the audit evidence

Create a fresh task-scoped temporary directory and run from this skill directory:

node scripts/fetch-resources.mjs --start <ISO timestamp> --end <ISO timestamp> --output <tmp-dir>/resources.jsonl
node scripts/fetch-subjects.mjs --output <tmp-dir>/subjects.jsonl

The first file contains all animation resources in the interval and their current subjectId; the second contains the complete registered Subject index. Confirm the declared counts, then review the resource file in manageable batches until every record has been assessed.

2. Attribute every resource

Identify the work, installment, and episode from the complete release context. For an existing binding, evaluate the bound Subject alongside other plausible registered Subjects. For an unbound resource, search the registry using the title forms suggested by the release.

Weigh the evidence that is informative for that resource: names and aliases, season or part context, episode progression, publication timing, related Subjects, and neighboring releases. Their relevance varies by title family, so attribution follows the explanation that best fits the whole release context. Record uncertainty when the evidence does not support one clear Subject.

Read the whole SKILL.md on GitHub

More in Design