cankun-blog-preview
Installation
SKILL.md
Generate one Cankun blog preview
Treat one article slug, including its English and Chinese MDX pair, as the complete transaction. Never turn a single-article request into an archive-wide regeneration.
Preflight
- Confirm the workspace is
cankun-blogand contains:content/files/content/preview-image-prompts.mdpublic/images/scripts/optimize-previews.ts
- Resolve exactly one target slug. If the user did not name it, select it only when exactly one English MDX article lacks preview metadata; otherwise ask which article.
- Inspect
git statusand preserve unrelated changes. - Check whether the target already has a preview PNG or WebP. Overwrite it only when the user explicitly asked to refresh, replace, remake, or restyle it; otherwise report the existing asset and stop.
- Remember that
bun run previewsscans everypublic/images/**/*-preview.png. Check for unrelated stale sources before running it; stop and report a scope conflict if the command would regenerate another article's WebP.
Read the sources of truth
Read the target English article fully. Read its Chinese pair when present so the alternative text can be localized accurately.