Command Palette

Search for a command to run...

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

rich-document-creator

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

Use this skill whenever the user wants to create rich, visually compelling documents, presentations, or PDFs — especially when they mention images, charts…

CodeAndCanvasLabsот CodeAndCanvasLabs★ 16 звёзд на GitHub

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

Rich Document Creator

Creates professional, image-rich documents across PPTX, DOCX, and PDF formats.

Quick Decision Guide

What they want Format Guide
Slides / presentation / deck PPTX pptx-guide.md
Report / letter / memo / Word doc DOCX docx-guide.md
PDF brochure / handout / polished doc PDF pdf-guide.md
Multiple formats at once All Generate each in sequence

When to skip this skill. If the user just wants a plain document — markdown notes, a text-only report, a basic table-only doc — daemora's built-in create_document tool is faster (one call, no install). Use this skill only when the document needs real images, custom layouts, or visual design that markdown can't express.


Step 1: Plan Content First

Before writing any code, plan the document structure:

  1. Identify the topic — extract key subject matter, goals, and audience from the user's request
  2. Decide slide/section count — use the table below as a baseline
  3. List key themes — what major points need to be made?
  4. Pick a visual style — color palette, font, image style (see design guide in each format file)

Slide / Section Count Guide

Document Type Recommended Count
Short presentation (intro/overview) 8–12 slides
Standard presentation 12–18 slides
Comprehensive presentation 18–25 slides
Short report / memo (DOCX/PDF) 3–6 sections
Full report 6–12 sections

Always err on the side of MORE content, not less. A thin 5-slide deck looks unfinished.


Step 2: Source Images

This is the key differentiator of this skill. Every document must include real images.

All downloads land under the project's data directory. Use ./data/images/ (create it once with mkdir -p ./data/images) so the artifacts survive the run and are easy to find.

Image Sourcing Workflow

There is no dedicated image-search tool — use one of these three paths, in this order:

Path 1 — Direct image URL (fastest, no API key). Some hosts return a real image straight from a keyword URL. Try first:

mkdir -p ./data/images

# Unsplash (keyword-driven, returns a real photo)
curl -L --max-time 20 --user-agent "Mozilla/5.0" \
  -o ./data/images/hero.jpg \
  "https://source.unsplash.com/1600x900/?renewable,energy,solar"

# Lorem Picsum (random, good for abstract / texture backgrounds)
curl -L --max-time 20 -o ./data/images/bg1.jpg \
  "https://picsum.photos/1600/900?random=1"

# Always verify the file is a real image, not an HTML error page
file ./data/images/hero.jpg     # expect "JPEG image data" or "PNG image data"
ls -lh ./data/images/hero.jpg   # expect > 20 KB

Path 2 — web_search then download. Use this when you want a specific image (a known landmark, branded product, news photo, etc.). web_search is text-only — it returns page URLs and descriptions, not images directly. So:

web_search({
  query: "<subject> <visual style> site:unsplash.com OR site:commons.wikimedia.org",
  count: 8
})

Good query patterns:

  • "neural network visualization site:unsplash.com"
  • "solar farm aerial photo site:commons.wikimedia.org"
  • "open office team collaboration stock photo"
  • "data dashboard screenshot site:pexels.com"

Then web_fetch the most promising result page, extract the actual image URL (look for og:image, the largest <img> src, or a download link), and curl it the same way as Path 1.

Path 3 — Generated placeholder (fallback). If both paths above fail or the image is purely decorative, generate one with Pillow via execute_command:

from PIL import Image, ImageDraw

def create_placeholder(width, height, text, color1, color2, output_path):
    img = Image.new('RGB', (width, height), color1)
    draw = ImageDraw.Draw(img)
    for y in range(height):
        ratio = y / height
        r = int(int(color1[1:3], 16) * (1-ratio) + int(color2[1:3], 16) * ratio)
        g = int(int(color1[3:5], 16) * (1-ratio) + int(color2[3:5], 16) * ratio)
        b = int(int(color1[5:7], 16) * (1-ratio) + int(color2[5:7], 16) * ratio)
        draw.line([(0, y), (width, y)], fill=(r, g, b))
    draw.text((width//2, height//2), text, fill="white", anchor="mm")
    img.save(output_path)
    return output_path

create_placeholder(1280, 720, "Section Visual", "#1a3a5c", "#0d7377", "./data/images/hero.jpg")

Image Rules

  • Always try Path 1 first — it's a single curl, no extra search/fetch steps.
  • Each major slide/section needs at least one image — never ship a deck with no visuals.
  • Match image content to slide topic — keywords in the URL or query should reflect the slide's actual subject.
  • Always verify with file ./data/images/<name>.jpg before embedding — a 200-byte HTML error page silently breaks pptxgenjs/docx/reportlab.
  • Download before embedding — every renderer below lo
Полный SKILL.md на GitHub

Установить rich-document-creator в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/docx-guide.mdreferences/pdf-guide.mdreferences/pptx-guide.md

FAQ

Что делает скилл rich-document-creator?

Use this skill whenever the user wants to create rich, visually compelling documents, presentations, or PDFs — especially when they mention images, charts, design quality, or need professional output. Triggers include: "create a presentation", "make slides", "build a deck", "write a report with images", "generate a PDF brochure", "make a Word document with visuals", "create a pitch deck", "make a professional presentation on X topic", "generate slides about Y", "create a document with good design", "make a pptx", "make a docx", "make a pdf". This skill is essential for multi-format document creation (PPTX, DOCX, PDF) with real images sourced from the web. It is also the go-to skill for any presentation with more than 5 slides, any document requiring images or charts, and any request explicitly mentioning visual quality. Always prefer this skill over individual pptx/docx/pdf skills when images, design quality, or multi-format output is involved.

Как установить скилл rich-document-creator?

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

Скилл rich-document-creator запускает скрипты?

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

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

Сравнить rich-document-creator с