oil-oil/oil-cover
Video cover & thumbnail skill for Claude Code & Codex. 帮你用视频画面做小红书和 B 站封面。
What it solves
Creating a polished video cover usually means manually grabbing a frame, editing in an image tool, and resizing for each platform. oil-cover automates that: it scans a video locally to find sharp, promising frames, uses a multimodal model to pick the best one semantically, and then generates final covers in three aspect ratios — 3:4 (vertical, for Xiaohongshu), 4:3 (general or Bilibili home page), and 16:9 (widescreen) — all in a single pipeline. It also supports title design, optional creator avatar compositing, and automatic product-logo matching for AI tools like Claude, Codex, Cursor, Gemini, and GitHub.
How it works
There are two execution modes.
Script mode (default): You run scripts/generate_oil_cover.py with a video path (or a screenshot/image path) plus an optional title and topic. The script uses local multi-threaded scanning to quickly score and filter out high-quality candidate frames without uploading the whole video. Those candidates (plus subtitles and prompts) are sent to a ZenMux API — using google/gemini-3.8-flash for frame selection and analysis, and gpt-image-2.5-flare for image generation. The output is generated in parallel for the three aspect ratios, with optional avatar compositing done locally, and progress is saved to a state file (.oil-cover/generation_state.json by default).
Agent-autonomous mode: An agent with built-in image-generation tools (e.g., Codex with its image_gen tool) can read the SOP in references/agent-native-flow.md and perform frame selection, analysis, and image generation itself — no ZenMux key needed.
A detailed visual specification (references/cover-rules.md) covers composition, background layers, typography, accent elements, automatic quality checks, and prompt skeletons. The tool also locks a given title into the analysis and all aspect-ratio prompts, and it matches product logos from a built-in asset library. If no credible asset exists, it falls back to using the product name and real interface screenshots for recognition.
Who it’s for
Content creators, video marketers, or anyone who publishes videos on platforms like Xiaohongshu, Bilibili, or YouTube and wants consistent, high-quality covers without manual design work. It’s also useful for developers who want to integrate cover generation into a pipeline, or for AI agents that need to produce covers autonomously.
Highlights
- Local frame selection: multi-threaded scanning and scoring pick high-definition candidate frames; the whole video is never uploaded.
- Three aspect ratios generated in parallel by default — 3:4, 4:3, and 16:9 — with flexible options for single or combined outputs (e.g.,
--aspect bothfor 3:4 + 4:3). - Built-in visual rules: complete coverage of composition, background layers, typography, and automatic quality checks.
- Automatic product-logo matching for common AI products (Claude, Codex, Cursor, Gemini, GitHub, etc.).
- Two execution modes: scripted (high fidelity, reproducible, requires a ZenMux key) or agent-native (zero external dependencies, no key).
Related
- Project
- Project
- Project
- Project