LeoYeAI/agent-master-skills / skills/anygen-slide-generator
anygen-slide
VerifiedUse this skill any time the user wants to create, design, or produce slide presentations — as standalone files or embedded content. This includes: pitch decks, slide decks, keynote presentations, training materials, project proposals, quarterly reviews, weekly report slides, investor pitches, product launches, team kickoffs, business plans, onboarding decks, strategy presentations, sales pitches, conference talks, and any request involving 'slides' or 'PPT'. Also trigger when: user says 做PPT, 做个汇报, 写个演示文稿, 季度汇报, 竞品分析报告(要PPT), 产品发布会, 培训材料, 周报. If slides, decks, or presentations need to be produced, use this skill.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 16.9 KB |
| _meta.json | config | 650 B |
| scripts/anygen.py | script | 35.8 KB |
| scripts/auth.py | script | 1000 B |
| scripts/fileutil.py | script | 2.1 KB |
| skill.md | markdown | 4.6 KB |
scripts/fileutil.py
View on GitHub"""File I/O utilities for AnyGen — validation, encoding, read/write helpers."""
import base64
import json
from pathlib import Path
def validate_file(file_path):
"""Validate file path before upload. Returns (Path, error_msg)."""
path = Path(file_path).expanduser().resolve()
if not path.exists():
return None, f"File not found: {file_path}"
if not path.is_file():
return None, f"Not a regular file: {file_path}"
return path, None
def read_file_bytes(file_path):
"""Validate and read file contents. Returns (filename, bytes, size) or raises ValueError."""
path, err = validate_file(file_path)
if err:
raise ValueError(err)
with open(path, "rb") as f:
content = f.read()
return path.name, content, len(content)
def encode_file(file_path):
"""Encode file to base64 for legacy upload."""
path, err = validate_file(file_path)
if err:
raise ValueError(err)
with open(path, "rb") as f:
content = f.read()
suffix = path.suffix.lower()
mime_types = {
".pdf": "application/pdf",
".png": "image/png",
".jpg": "image/jpeg",
".jpeg": "image/jpeg",
".gif": "image/gif",
".txt": "text/plain",
".doc": "application/msword",
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
".ppt": "application/vnd.ms-powerpoint",
".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
}
mime_type = mime_types.get(suffix, "application/octet-stream")
return {
"file_name": path.name,
"file_type": mime_type,
"file_data": base64.b64encode(content).decode("utf-8"),
}
def read_json(file_path):
"""Read and parse a JSON file."""
with open(file_path, "r") as f:
return json.load(f)
def write_json(file_path, data):
"""Write data to a JSON file."""
with open(file_path, "w") as f:
json.dump(data, f, indent=2, ensure_ascii=False)
def write_bytes(file_path, content):
"""Write binary content to a file."""
with open(file_path, "wb") as f:
f.write(content)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |