# Auto Blog Cover

> Automates the process of creating and setting blog post covers. Reads a markdown file, generates a cover image based on title/subtitle, uploads it, and updates the file's frontmatter (e.g., banner_img).

- Skill: `crossoverjie/auto-blog-cover` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add crossoverjie/auto-blog-cover`
- Raw SKILL.md: https://api.skillmd.com/api/skills/crossoverjie/auto-blog-cover/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- License: Apache-2.0
- Author: crossoverjie (https://skillmd.com/u/crossoverjie)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/crossoverjie/auto-blog-cover

---


# Auto Blog Cover Skill

An end-to-end workflow automation for blog writers. It connects parsing, generation, uploading, and editing into a single command.

## Prerequisites

1.  **Dependencies**:
    ```bash
    pip install -r skills/auto-blog-cover/requirements.txt
    ```
2.  **Related Skills**: Requires `cover-generator` and `image-uploader` to be present and configured.

## Usage

```bash
python3 skills/auto-blog-cover/auto_blog_cover.py <path_to_markdown_file> [options]
```

### Options

*   `filepath`: Path to the markdown post (Required).
*   `--title`: Manually specify title (overrides file content).
*   `--subtitle`: Manually specify subtitle.
*   `--theme`: Color theme (`random`, `dark`, `light`, `blue`).
*   `--fields`: Comma-separated Frontmatter fields to update. Default: `banner_img,index_img`.

### Examples

**Auto-detect everything:**
```bash
python3 skills/auto-blog-cover/auto_blog_cover.py content/posts/my-new-post.md
```

**Override text (AI assisted scenario):**
```bash
python3 skills/auto-blog-cover/auto_blog_cover.py _posts/2024-02-01-ai.md \
  --title "AI Evolution" \
  --subtitle "From Function Call to MCP"
```

**Custom fields for different blog engine:**
```bash
python3 skills/auto-blog-cover/auto_blog_cover.py post.md --fields "cover_image,og_image"
```

