Sync Course English
Workflow
- Work from
D:\cube\cuberoot.me\core. - Fetch
https://api.cuberoot.me/v1/teaching/trialwith caching disabled and select records whoseneedsEnglishSyncistrue. - If the endpoint does not expose
needsEnglishSync, report that migration 0134 and the teaching API must be deployed before syncing. If no records are pending, report that English is already current. - Translate each pending record's
titleZh,outcomeZh,shotsZh, andscriptZhinto natural spoken English. - Preserve every array's order and item count exactly. Keep production directions as directions, preserve proper names, and do not add or remove claims.
- Use consistent cubing terms: 层先法 is beginner method, 公式 is algorithm, 指法 is finger tricks, 预判 is lookahead, 打乱 is scramble, and 观察 is inspection. Preserve CubeRoot, WCA, CFOP, OLL, PLL, and F2L.
- Read
X-Admin-Keyfrom the repository-root.password.mdwithout printing it. Send each translation withPUT https://api.cuberoot.me/v1/teaching/trial/:lessonId/english, including the fetchedcontentRevisionassourceRevision. - If a write returns
409, refetch that lesson, translate the latest Chinese content, and retry once. Do not overwrite a newer Chinese edit with an older translation. - Fetch the records again. Require every processed record to have
needsEnglishSyncequal tofalse, then report the processed lesson IDs and count.
This is a database-only content sync. Do not edit source files or create a commit unless the schema or API itself needs repair. Never write the administrator key to source, logs, output, or this skill.