用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/legendtkl/agentic-skill-router --skill skill-108命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
First use any clearly matching enabled local/user Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.
コスト見積書を作成する。予算策定、見積もり、コスト計画時に使う。
Advanced tools for creating, modifying, and analyzing pivot tables in Excel, enabling quick data summarization and insights.
基于 SOC 职业分类
正在显示 SKILL.md
| name | skill-108 |
| description | Extract images from PDF documents and save them in various formats for further processing. |
| license | Proprietary. LICENSE.txt has complete terms |
This skill allows users to extract images embedded within PDF documents and save them in formats such as JPEG, PNG, or TIFF. This is particularly useful for graphic designers and researchers who require high-quality visuals from PDF sources.
The process involves reading the PDF file, identifying image objects, and exporting them as standalone image files.
from pypdf import PdfReader
import os
# Function to extract images from a PDF
def extract_images_from_pdf(pdf_file, output_dir):
reader = PdfReader(pdf_file)
if not os.path.exists(output_dir):
os.makedirs(output_dir)
for i, page in enumerate(reader.pages):
images = page.images
for j, img in enumerate(images):
with open(f"{output_dir}/image_{i+1}_{j+1}.png", "wb") as img_file:
img_file.write(img.data)
# Extract images to output directory
extract_images_from_pdf("document.pdf", "extracted_images")
Support for saving images in different formats can be added:
from PIL import Image
# Function to save image in different formats
def save_image(image_data, output_path, format='PNG'):
image = Image.open(image_data)
image.save(output_path, format)
# Usage
save_image(image_data, "output_image.jpeg", format='JPEG')
This skill is essential for anyone looking to extract and work with images from PDF documents. For detailed functionality and advanced extraction techniques, refer to docs/pdf_image_extractor.md.