Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fumadocs-article-importer

БесплатноБез исполняемых скриптовНе проверен

Import external articles into a Fumadocs project with automatic multi-language translation (en, zh, fr), AI-powered classification into 8 categories, image…

foreveryhот foreveryh★ 18 звёзд на GitHub16 установок в других каталогах

Об этом скилле

Fumadocs Article Importer

Automate importing external articles into a Fumadocs project with tri-language support (English, Chinese, French), auto-classification, and proper MDX formatting.

Prerequisites

Before using this skill, verify:

  • Fumadocs project is initialized in the current directory
  • Jina MCP is configured for article fetching (highly recommended)
    • Repository: https://github.com/jina-ai/MCP
    • Provides 15 tools for content extraction, search, and processing
    • See "MCP Configuration" section below for setup
    • Alternative: Jina API access (via curl)
  • Translator Skill is available for professional translation
    • Located in .claude/skills/translator/
    • Provides professional translation using Claude's native capabilities
    • Automatically activated when translation is needed
    • No external dependencies or configuration required
  • curl is installed for image downloads
  • Write access to content/docs/ and public/images/ directories

⚠️ CRITICAL REQUIREMENTS

1. Must Use withAllImages: true Parameter

For image processing to work, you MUST use withAllImages: true in Step 2:

Tool: read_url
Parameters:
  - url: {article_url}
  - withAllImages: true  // ← MANDATORY for image extraction

Why this matters:

  • Without withAllImages: true: Jina returns text only, no images
  • With withAllImages: true: Jina returns text + images array
  • If you skip this parameter, ALL image processing will be silently skipped
  • See Step 2, Sub-step 4 for mandatory validation check

What happens if you forget:

// WRONG - Won't extract images
const response = await mcp.read_url(url);  // Missing withAllImages!
console.log(response.images);  // ❌ undefined

// CORRECT - Will extract images
const response = await mcp.read_url(url, { withAllImages: true });
console.log(response.images);  // ✅ [img1, img2, ...]

2. Image Storage Strategy (Choose One)

You have two options for handling images. Choose before starting Step 4:

Option A: Download Images to Local (Default)

What: Download image files to public/images/docs/{slug}/

When to use:

  • Source website doesn't support CORS (see CORS testing below)
  • You want offline availability (images work without internet)
  • You want control over image versions (won't change unexpectedly)
  • Source images might be deleted or moved

Pros:

  • ✅ Works 100% of the time (no CORS issues)
  • ✅ Images always available (offline)
  • ✅ Full control over image files
  • ✅ Faster loading (no external HTTP requests)

Cons:

  • ⚠️ Uses local storage space (adds 10KB-500KB per image)
  • ⚠️ Increases import time (needs to download each image)
  • ⚠️ Adds complexity (need to manage local files)

Example in MDX:

![MCP Diagram](/images/docs/skills-explained/mcp-architecture.png)

Option B: Use External Image URLs (No Download)

What: Keep original URLs in the article (don't download)

When to use:

  • Source website supports CORS (tested with 200 + CORS headers)
  • You want to save storage space
  • You want faster import process
  • You're okay with external dependencies
  • Source images are stable and unlikely to be deleted

How to test if external URLs work:

# Test 1: Does the URL return 200?
curl -I "https://example.com/image.png"
# Expected: HTTP/2 200

# Test 2: Does it support CORS?
curl -I "https://example.com/image.png" | grep -i "access-control"
# Expected: access-control-allow-origin: *
# Or: access-control-allow-origin: https://your-domain.com

Pros:

  • ✅ No storage overhead (no local files)
  • ✅ Faster import (skip download step)
  • ✅ Simpler process (no file management)
  • ✅ Images auto-update if source changes

Cons:

  • ❌ Requires CORS support (will break in browser if not)
  • ❌ Requires internet connection (offline doesn't work)
  • ❌ Source might delete/move images (breaks your article)
  • ❌ Slower page loads (external HTTP requests)

Example in MDX:

![MCP Diagram](https://cdn.example.com/mcp-architecture.png)

Real-World Example: Claude.com Images

Test results for https://claude.com/blog/skills-explained:

# Test MCP diagram image
curl -I "https://cdn.prod.website-files.com/68a44d4040f98a4adf2207b6/69141f0993d68ff4c536f316_619a5262.png"

# Response includes:
# HTTP/2 200
# access-control-allow-origin: *

Result: ✅ Claude.com images support CORS (can use external URLs)

Decision for Claude.com articles: Use Option B (External URLs) - no download needed

Decision for unknown sources: Use Option A (Download) - safer

3. Validation Check Added in v2.0

Step 2 now includes a mandatory validation (Sub-step 4) that:

  • Checks if response.images exists
  • Throws clear error if missing
  • Prevents silent failures
  • Provides exact fix instructions

Always verify images were extracted before proceeding!

MCP Configuration

This skill works best with:

  1. Jina MCP - For article fetching
Полный SKILL.md на GitHub

Установить fumadocs-article-importer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHANGELOG_v2.0.mdLICENSE.txtREADME.mdassets/frontmatter-template.yamlreferences/category-icons.jsonreferences/category-translations.jsonreferences/classification-rules.mdreferences/fumadocs-components.mdreferences/jina-mcp-setup.mdreferences/meta-json-best-practices.mdreferences/translation-prompts.mdreferences/translator-mcp-setup.md

FAQ

Что делает скилл fumadocs-article-importer?

Import external articles into a Fumadocs project with automatic multi-language translation (en, zh, fr), AI-powered classification into 8 categories, image processing, and MDX conversion. Use this skill when the user wants to import an article from a URL into their Fumadocs documentation site.

Как установить скилл fumadocs-article-importer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fumadocs-article-importer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить fumadocs-article-importer с