Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

pptx-creatorPPTX creator 搜索

Agent Skill

pptx-creator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

256

周安装

11

GitHub Stars

公开资料未说明

下载量

90
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pptx-creator(PPTX creator 搜索)
来源仓库:https://github.com/hoangvantuan/claude-plugin
仓库路径:skills/pptx-creator
安装命令:
npx skills add https://github.com/hoangvantuan/claude-plugin --skill pptx-creator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hoangvantuan/claude-plugin --skill pptx-creator

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 建议确认权限范围和维护状态,注意是否会触发联网或文件读写操作。
  • pptx-creator 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

PPTX Creator

Tạo presentation đẹp, chuyên nghiệp với hỗ trợ font tiếng Việt.

Quick Reference

ItemSpec
LibraryPptxGenJS (Node.js)
LayoutLAYOUT_16x9 (10" x 5.625")
Colors6-char hex WITHOUT # — PptxGenJS sẽ lỗi nếu có #
Default FontBe Vietnam Pro (body) + Montserrat (title)
Custom FontUser có thể chỉ định font riêng qua titleFont/bodyFont
Theme Keysprimary, secondary, accent, light, bg, titleFont, bodyFont
TypographyTitle 36 → Heading 24 → Body 18 → Footnote 14 (tỷ lệ ~1.5x)
Page Badgex: 9.3", y: 5.1" (all slides except Cover)

Setup

npm install -g pptxgenjs
npm install -g react-icons react react-dom sharp  # for icons
pip install "markitdown[pptx]"                     # for QA text extraction
# Optional (visual QA): brew install libreoffice poppler

Vietnamese font: Download Be Vietnam Pro — hỗ trợ dấu tiếng Việt tốt, chuyên nghiệp.


Workflow (7 Steps)

Step 1: Understand Requirements

  • Topic, audience, purpose, tone
  • Number of slides (typical: 8-15)
  • Content depth and key messages

Step 2: Select Color Palette + Fonts

Priority order:

  1. Series mode — check series-config.json in working/parent directory. If found, load and skip Steps 2-3. Chi tiết: references/series-mode.md
  2. User custom — nếu user cung cấp bộ màu hoặc font riêng, dùng trực tiếp.
  3. Catalog — chọn từ bảng có sẵn trong references/design-system.md.
# Auto-detect series
ls series-config.json ../series-config.json 2>/dev/null

Custom palette: map hex codes vào 5 theme keys theo brightness (darkest → lightest). Custom font: gán titleFont/bodyFont, cảnh báo nếu không hỗ trợ Vietnamese. Chi tiết: references/design-system.md.

Step 3: Select Design Mood + Style

3a. Design Mood — xác định cảm xúc và tính cách. Read references/design-system.md:

  • Corporate Authority — trang trọng, data-driven
  • Startup Energy — táo bạo, aspirational
  • Editorial Elegance — tinh tế, magazine-like
  • Playful Creative — vui tươi, colorful
  • Minimal Zen — tối giản cực đoan
  • Bold Brutalist — mạnh mẽ, high-contrast
  • Warm Storytelling — gần gũi, narrative
  • Data Dashboard — analytical, structured

Mood guides every design decision: layout choice, density, visual elements, title style.

3b. Style Recipe — corner radius và spacing. Read references/design-system.md:

  • Sharp (0-0.05") — data-dense reports, corporate
  • Soft (0.08-0.12") — balanced, professional (default)
  • Rounded (0.15-0.25") — marketing, product
  • Pill (0.3-0.5") — premium, brand

Step 3.5: Generate Visual Assets (Nên làm khi có AI image tool)

Nếu có image generation tool, tạo assets nâng cao visual cho Cover/Summary slides. Read references/design-system.md.

mkdir -p slides/assets

Prompt gợi ý: "[Description], [color palette hex codes], 1920x1080, no text, no objects, suitable as presentation background"

Save vào slides/assets/, reference trong slide code bằng path: "./assets/filename.jpg".

Step 3.7: Declare System & Confirm (BẮT BUỘC)

Trước khi plan outline, viết tóm tắt design system cho user xem rồi chờ confirm. Bước này tốn 30 giây nhưng tránh được kịch bản generate xong 12 slides mới biết user không thích mood.

Format declaration (5 dòng):

- Palette: <tên hoặc hex codes> (lý do chọn: <1 câu>)
- Mood: <tên mood> + Style Recipe: <Sharp/Soft/Rounded/Pill>
- Font: <titleFont> + <bodyFont>
- Số slide dự kiến: <N> (cover + toc + N-3 content + summary)
- Visual motif: <element lặp xuyên deck, ví dụ: pill badge, side border, icon circle>

Hỏi user: "Confirm system này hay muốn đổi gì?" Nếu user OK → tiếp Step 4. Nếu không → quay lại Step 2-3.

Step 4: Plan Slide Outline

Classify EVERY slide as one of 5 types. Read references/slide-types.md:

  1. Cover — Opening slide, dramatic title
  2. Table of Contents — Navigation, 3-5 sections
  3. Section Divider — Transition between sections
  4. Content — Main content (9 subtypes: 4a-4i)
  5. Summary — Closing, takeaways, CTA

Không lặp cùng layout trên slides liên tiếp, tạo visual variety. Bắt buộc điền Outline Rhythm Table (3 trục: tone, density, scale) ở references/slide-types.md trước khi sang Step 5. Đọc anti-AI slop patterns song song.

Step 5: Generate Slide JS Files

Create 1 JS file per slide in slides/ directory. Each exports a synchronous createSlide(pres, theme) function.

Read references/pptxgenjs-api.md for API reference and critical pitfalls.

Step 5a: Showcase Checkpoint (BẮT BUỘC khi deck > 5 slides)

Đừng batch hết slides ngay. Trước tiên generate 2 slides showcase đại diện cho design system:

  1. Cover slide (định cảm giác mở deck).
  2. Slide content phức tạp nhất trong outline (thường là 4d Big Stat, 4g Asymmetric Hero, hoặc 4h Staggered Cards).

Compile chỉ 2 slide này thành showcase.pptx, chạy Visual QA mini (Step 7 rút gọn: convert PDF, screenshot, check overlap + contrast + Vietnamese diacritics). Báo user: "Đây là 2 slide showcase, mood/palette/typography đã đúng ý chưa?"

Nếu user OK → generate phần còn lại (có thể song song subagents). Nếu không → fix system rồi mới batch. Tránh được kịch bản phải làm lại 13 lần thay vì 2 lần.

Skip checkpoint khi: deck ≤ 5 slides, hoặc đang dùng Series Mode (style đã chốt từ trước).

Layout Helper (dùng cho content slides — tránh overlap)

Import scripts/layout-helpers.js để tính toán vị trí tự động:

const { calcStack, calcColumns, calcGrid, estimateTextHeight, assertBounds,
        SAFE_AREA, TITLE_AREA, PAGE_BADGE } = require('../scripts/layout-helpers');

Quy tắc:

  1. Không hardcode y positions cho stacked elements — dùng calcStack(count, itemHeight) (sẽ throw nếu vượt safe area)
  2. Không hardcode column positions — dùng calcColumns(count) hoặc calcGrid(cols, rows)
  3. Vietnamese text cao hơn ASCII ~30% — dùng estimateTextHeight(lineCount, fontSize)

Layout Budget — max items per pattern:

PatternMax itemsitemHGapTotal
Icon rows (4a)3-40.85"0.15"2.85" ✓
Stat callouts (4d)31.1"0.2"3.7" ✓
Staggered cards (4h)31.0"0.1"3.2" ✓
TOC items50.65"0.1"3.65" ✓
Columns (4b/4e)2-3 colsfull height0.2" gapauto

Kiểm tra trước khi code: N × itemH + (N-1) × gap ≤ 3.8" (SAFE_AREA.h). Nếu vượt → giảm N hoặc tách 2 slides.

Slide File Template

const pptxgen = require("pptxgenjs");
const { calcStack, calcColumns, SAFE_AREA, TITLE_AREA, PAGE_BADGE } = require('../scripts/layout-helpers');

const slideConfig = {
  type: 'content',  // cover | toc | divider | content | summary
  index: 3,
  title: 'Slide Title'
};

function createSlide(pres, theme) {
  const slide = pres.addSlide();
  slide.background = { color: theme.bg };

  // -- YOUR SLIDE CONTENT HERE --
  // Title: fontSize 36, fontFace theme.titleFont, bold true
  // Body: fontSize 18-20, fontFace theme.bodyFont

  // Page badge (skip for cover)
  slide.addShape(pres.shapes.OVAL, {
    ...PAGE_BADGE, fill: { color: theme.accent }
  });
  slide.addText(String(slideConfig.index), {
    ...PAGE_BADGE,
    fontSize: 12, fontFace: theme.bodyFont,
    color: "FFFFFF", bold: true,
    align: "center", valign: "middle"
  });

  return slide;
}

// Standalone preview
if (require.main === module) {
  const pres = new pptxgen();
  pres.layout = 'LAYOUT_16x9';
  const theme = {
    primary: "264653", secondary: "2a9d8f",
    accent: "e9c46a", light: "f4a261", bg: "FAFAFA",
    titleFont: "Montserrat", bodyFont: "Be Vietnam Pro"
  };
  createSlide(pres, theme);
  pres.writeFile({ fileName: `slide-${String(slideConfig.index).padStart(2, '0')}-preview.pptx` });
}

module.exports = { createSlide, slideConfig };

Up to 5 slides can be generated concurrently via subagents. Each subagent receives the theme object and slide type specification.

Step 6: Compile into Final PPTX

Copy scripts/compile.js into slides/ directory. Adjust SLIDE_COUNT, pres.author, pres.title, and theme object.

Run: cd slides && node compile.js

Step 7: QA (Required)

Content QA:

python -m markitdown output/presentation.pptx
python -m markitdown output/presentation.pptx | grep -iE "xxxx|lorem|ipsum|placeholder|TODO"

Visual QA (use subagent with fresh eyes):

# Convert to images for visual inspection
soffice --headless --convert-to pdf output/presentation.pptx --outdir output/
pdftoppm -jpeg -r 150 output/presentation.pdf output/slide

Subagent checklist: overlapping elements, low contrast, uneven gaps, insufficient margins (<0.5"), misaligned columns, placeholder content, font rendering issues.

Anti-AI Slop Check: scan for repeated layouts, generic titles, missing visual variety → references/design-system.md.

Design Quality Review (5 câu, mỗi câu 1 dòng):

Visual QA bắt lỗi kỹ thuật. Design Quality Review bắt lỗi "đẹp nhưng generic". Sau khi pass Visual QA, tự trả lời 5 câu:

  1. Identity test: Bỏ hết logo, page badge và text content. Slide còn nhận ra là deck của topic này không, hay có thể thuộc bất kỳ deck nào?
  2. Rhythm test: Click xuyên 3 slide bất kỳ liên tiếp. Có cảm giác "mỗi slide một nhịp" không, hay tất cả cùng một layout?
  3. Density test: Mỗi slide có đúng 1 core message không? Slide nào cần 2 câu để tóm tắt nội dung → tách 2 slides.
  4. Mood alignment test: Slide có đang phản ánh mood đã chọn ở Step 3 không? Ví dụ chọn Minimal Zen mà slide có 5 decorative shapes là sai.
  5. Hallmark test: Có accent line dưới title không? Có 3 icon cards đều nhau hàng ngang không? Có "Cảm ơn!" slide trống không? Bất kỳ "yes" nào → fix.

Câu nào fail → quay lại slide đó, fix. Không deliver deck có ≥1 fail.

Verification loop: Generate → Visual QA → Design Quality Review → Fix → Re-verify.


Critical Rules (Summary)

Chi tiết + ví dụ cho mỗi rule: references/design-system.md

  1. Vietnamese diacritics — text không dấu gây hiểu sai nghĩa và thiếu chuyên nghiệp. Luôn viết đầy đủ dấu, verify bằng markitdown sau compile.
  2. Hex colors không có # — PptxGenJS corrupt file nếu có #. Dùng "FF0000" không phải "#FF0000". Xem thêm: references/pptxgenjs-api.md
  3. Không reuse option objects — PptxGenJS mutates chúng. Tạo object mới mỗi lần.
  4. Body text tối thiểu 18pt — 14-16pt quá nhỏ cho presentation. Chi tiết typography scale: references/design-system.md
  5. Vietnamese text cao hơn ASCII ~30% — size text boxes generously, limit 4-5 bullets hoặc 3 content blocks/slide. Dùng fit: true khi text có thể tràn. Chi tiết: references/design-system.md
  6. Color contrast — dark bg → white text ("FFFFFF"), light bg → dark text ("222222"). Check contrast của SHAPE fill, không phải slide bg. Chi tiết: references/design-system.md
  7. Visual element mỗi slide — image, chart, icon, hoặc shape. Không để slide chỉ có text — thiếu visual hierarchy.
  8. Left-align body text — center chỉ cho titles. Không dùng accent line dưới titles (dấu hiệu AI-generated).

Series Mode

Khi tạo nhiều presentations cùng series (training Part 1, 2, 3), dùng series-config.json để giữ style nhất quán. Nếu phát hiện file này, load và skip Steps 2-3.

Chi tiết format, directory structure, ví dụ: references/series-mode.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.93%
按下载量换算33

Claude

31.54%
按下载量换算28

Cursor

17.31%
按下载量换算16

Gemini CLI

9.98%
按下载量换算9

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills