article-migrator

Migrate articles from external platforms into a blog system with HTML conversion and WebP images.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/yuanshenjian-cn/yuanshenjian-cn --skill article-migrator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: article-migrator
Source: https://github.com/yuanshenjian-cn/yuanshenjian-cn/tree/main/.opencode/skills/article-migrator
Command: npx skills add https://github.com/yuanshenjian-cn/yuanshenjian-cn --skill article-migrator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the complex process of migrating articles from external platforms (like Yuque, Notion) into your current blog system, handling content conversion, image processing, and metadata generation.

Core Features & Use Cases

  • Content Conversion: Transforms HTML content, adjusts heading levels, and cleans up inline styles.
  • Image Management: Downloads images from external URLs, converts them to WebP, and places them in the correct directory structure.
  • Metadata Generation: Automatically creates frontmatter with titles, dates, tags derived from directory structure, and generates a concise summary (brief).
  • Use Case: You have a collection of articles exported from Yuque. This Skill can process them, convert their formatting, optimize images, and prepare them for seamless integration into your Next.js blog.

Quick Start

Use the article-migrator skill to migrate articles from the default 'old-posts' directory.

Frequently Asked Questions about article-migrator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate articles from external platforms into a blog system?

To migrate articles, this Skill automates HTML content conversion, image downloading with WebP optimization, and frontmatter generation. It handles various source formats from platforms like Yuque or Notion and ensures image path integrity for your blog.

How do I convert HTML articles and optimize images for a Next.js blog?

Converting HTML articles involves transforming content, adjusting heading levels, and cleaning inline styles. This Skill downloads external images, converts them to WebP, and places them in the correct directory structure for Next.js integration.

Can I automatically generate frontmatter with tags and summaries during article migration?

Yes, you can automatically generate frontmatter during article migration. This Skill creates frontmatter with titles, dates, and tags derived from the directory structure, while also generating a concise summary brief for the article.

Does the article migrator support content exported from Yuque and Notion?

Yes, the article migrator supports content exported from external platforms like Yuque and Notion. It processes these various source formats to prepare them for seamless integration into your current blog system.

What is the best way to handle external image links when migrating blog content?

The best way to handle external image links is to download them, convert them to WebP format, and place them in the correct local directory. This Skill ensures image path integrity to prevent broken links after migration.

Why does my migrated article have broken image paths?

Broken image paths occur when external URLs are not localized. This Skill prevents this by downloading external images, converting them to WebP, and maintaining correct directory structure and path integrity during the migration process.