Logo Ppt Deck

Ppt Deck

Tổ chức
SourceWeft
ppt-deck

Generate, edit, and read PowerPoint presentations. Create polished decks from scratch with PptxGenJS, edit existing PPTX/POTX via XML workflows, or extract text with markitdown. Triggers: PPT, PPTX, POTX, PowerPoint, presentation, slide, deck, slides.

Tổng quan

Nhà phát hànhSourceWeft
Kho mãSourceWeft
Tên kỹ năngppt-deck
Sao
305
Bản fork
25
Tệp đi kèm
22
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 22 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được SourceWeft công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ppt Deck trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/SourceWeft/SourceWeft/tree/main/packages/builtin-skill-ppt-deck
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SourceWeft/SourceWeft.git /tmp/SourceWeft
mkdir -p .claude/skills
cp -r /tmp/SourceWeft/packages/builtin-skill-ppt-deck .claude/skills/ppt-deck
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ppt Deck trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ppt Deck ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ppt Deck với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

PPTX Generator & Editor

Create native editable PPTX decks in SourceWeft's sandbox. Keep the default path short: route the task, read only the one reference that applies, write one generation script, run one generation phase, run one QA phase, then publish.

From-scratch decks must feel like finished presentations, not documents split across slides. Use topic-specific visual direction and varied slide structures, but do not use this skill's examples as a fixed template.

Runtime Options

When <skill_runtime_config name="ppt-deck"> is present in the runtime context, treat those values as user-selected generation constraints:

  • slideCount: target number of slides for the finished deck.
  • language: main deck language; auto means infer from the user's request.
  • visualDensity: how much information each slide should carry.
  • stylePreset: visual direction for layout, typography, and tone.

When stylePreset is set, map it to a design-system theme preset:

stylePresetTheme presetPalette anchor
autoPick by topic via the Topic-to-Preset Map in design-system.md—
executiveExecutive Strategycharcoal/navy + gold accent
productProduct Launchlaunch navy + coral accent
academicAcademic Explainerdeep teal + warm cream surfaces
trainingLearning Studioblackboard green + sticky yellow
minimalMinimal Focuswhite + ink + one topic accent
editorialEditorial Printpaper white + ink + serif display

With auto, keep the default reading path. With any other value, read the mapped preset's section in design-system.md and apply its palette, motif, background rhythm, and layout mix; the user picked it, so it outranks topic-based preset selection.

Follow these options unless they conflict with higher-priority system rules or the user's latest explicit request.

Quick Reference

TaskWhat to do
Read or analyze a PPTXUse python3 -m markitdown <deck.pptx>
Edit an existing deck/templateRead editing.md
Create a deck from scratchRead pptxgenjs.md

Default create-from-scratch work should read only pptxgenjs.md. Default template/editing work should read only editing.md. Read optional references only when the request or a concrete failure requires them:

  • pitfalls.md: after a real syntax, runtime, output-path, rendering, or QA failure.
  • visual-quality.md: when first render is weak or the user asks for polished, executive, or visual redesign quality.
  • design-system.md and slide-types.md: when visual direction or layout selection is genuinely stuck.
  • background-recipes.md: for large visual fields, background-heavy decks, or custom background recipes.
  • asset-strategy.md: for photos, screenshots, logos, icons, or generated/procedural assets.

Create From Scratch

  1. Read pptxgenjs.md.
  2. Draft the storyboard in the response as a compact per-slide asset plan: for each slide, name its role and a visual: decision — generated (needs a real generated image: cover hero, editorial illustration, topic texture), procedural (native shapes, diagram, icon system, or shaped layout), or chart (native data chart). Keep it to a few lines. Do not create separate planning files, QA ledgers, or manifest files unless the user asks.
  3. Produce the generated imagery the plan committed to. Every from-scratch deck MUST include at least one real generated image — normally a cover hero — unless the user asked for a minimal or outline deck, or the topic is purely data/diagrammatic. For each slide the plan marked visual: generated, you MUST call generate_image (at most 3 images total per deck), then stage each result into the sandbox with prepare_sandbox_workspace using { artifactId, sandboxPath } entries, and reference the staged files in deck.js with addImage and real pixel dimensions. Procedural shapes and icon glyphs are NOT a substitute for a generated visual. Fall back to procedural SVG/PNG only after a generate_image call actually fails, and when you do, remove that slide's image promise instead of leaving it missing.
  4. Create one deck builder script as a Workfile, then prepare it into the sandbox workspace according to the sandbox runtime rules.
  5. Run one generation execute: confirm the prepared builder exists, run node --check, then run the builder.
  6. Run one QA execute: extract content with markitdown, run File QA with scripts/validate_pptx.py, convert the PPTX to PDF with LibreOffice, render images with pdftoppm, create the preview image contract from the first rendered slide, then print explicit stage markers, QA_IMAGE_COUNT, PREVIEW_IMAGE_PATH, and the discovered slide image paths.
  7. Call review_deck_visuals with the slide image paths from final QA; repair severe verdicts once as described in the QA section.
  8. Use the actual generated PPTX path for QA and publishing.
  9. Fix concrete issues only. If QA passes, publish without an extra repair loop.
  10. Publish with the configured artifact publisher using the actual generated PPTX path and the PREVIEW_IMAGE_PATH from final QA.

Build a coherent narrative with one point per slide. Prefer process diagrams, comparisons, concept maps, data views, framework canvases, case/example slides, mixed-media layouts, recap matrices, and principle/quote posters over ordinary title-and-bullet pages.

Edit Existing Decks

  1. Read editing.md.
  2. Extract readable text with markitdown.
  3. Inspect slide structure before changing it.
  4. Preserve useful formatting, images, and layout logic unless the user asks for a redesign.
  5. Make the smallest reliable edit that satisfies the request.
  6. Run content QA, File QA, and review_deck_visuals on the final file. For template-derived decks, pass --original to validate_pptx.py.
  7. Publish only the final edited PPTX. When the deck being edited is an artifact SourceWeft already published, pass its id as republishArtifactId so the edit lands as a new version of the same artifact instead of creating a duplicate. Only user-uploaded or otherwise unpublished decks publish as new artifacts.

For source-grounded decks, use the available source tools first and keep factual claims traceable to the user's provided material.

Hard Gotchas

These corrupt files or make PowerPoint refuse the deck. Follow them even if you only read this SKILL.md:

  • Hex colors: 6 digits, no #, no 8-digit alpha in the hex string.
  • Shadows: opacity 0-1, never bake alpha into color; offset must be >= 0.
  • Do not reuse PptxGenJS option objects across add* calls; clone fresh ones.
  • Keep charts native with addChart. On stacked/percentStacked bar or column charts, never use dataLabelPosition: "outEnd" — use ctr, inEnd, or inBase. Combo/secondary-axis charts need matching valAxes and catAxes.
  • Put long or quoted natural-language text in a DATA object and pass txt(DATA.key) into drawing calls.
  • Prefer QA-safe fonts for body text: Arial, Calibri, Cambria, Times New Roman, Courier New, plus Microsoft YaHei for Chinese. Do not default to Aptos.
  • Read the actual slide dimensions before laying out content: PptxGenJS LAYOUT_16x9 is 10 × 5.625 inches; LAYOUT_WIDE is 13.333 × 7.5. Do not mix coordinates between layouts. Keep all text and data inside the chosen slide, including total bands and footers; File QA rejects text/data elements that cross the slide boundary.

Design Guardrails

  • Do not create plain white bullet decks unless the user asks for a rough outline.
  • Do not default to generic blue unless it fits the topic.
  • Do not repeat title-and-bullet layouts across the deck.
  • Do not use title underline accents as the main visual system.
  • Do not use decorative color bars, header/footer stripes, sidebar stripes, or card edge stripes. Separate regions with background tint, shadow, icon badges, or split fields instead.
  • Do not default to cream/beige backgrounds. When no brand palette is given, use white (FFFFFF) or a topic-specific dominant color. Cream is allowed only as an intentional theme surface (for example Learning Studio or Academic Explainer), never as a lazy default.
  • Every content slide needs a meaningful visual structure: native diagram, comparison, timeline, process, chart, image, icon system, or shaped layout.
  • Use strong contrast, comfortable margins, and varied but coherent layouts.
  • If slide text promises a portrait, photo, blackboard, chart, screenshot, notebook, logo, or diagram, the final PPTX must visibly include it or the promise must be removed.

QA

Use the exact path printed by the deck builder.

Generation phase:

bash
test -f "<prepared sandbox builder path>"
node --check "<prepared sandbox builder path>"
node "<prepared sandbox builder path>"

QA phase:

bash
set -e
PPTX_ARTIFACT_PATH="<path printed by deck.js>"
QA_DIR="<sandbox QA directory>"
VALIDATE_PPTX="/skills/ppt-deck/scripts/validate_pptx.py"
mkdir -p "$QA_DIR"

echo "===CONTENT_QA==="
python3 -m markitdown "$PPTX_ARTIFACT_PATH" > "$QA_DIR/content.txt"
python3 -m markitdown "$PPTX_ARTIFACT_PATH" | grep -iE '\bx{3,}\b|lorem|ipsum|placeholder|\bTODO\b|\[insert|this.*(page|slide).*layout' || true

echo "===FILE_QA==="
python3 "$VALIDATE_PPTX" "$PPTX_ARTIFACT_PATH"

echo "===PPTX_TO_PDF==="
soffice --headless --convert-to pdf --outdir "$QA_DIR" "$PPTX_ARTIFACT_PATH"
PDF_PATH="$(find "$QA_DIR" -maxdepth 1 -type f -iname '*.pdf' | head -n 1)"
test -s "$PDF_PATH"
echo "PDF_PATH=$PDF_PATH"

echo "===PDF_TO_JPG==="
pdftoppm -jpeg -r 150 "$PDF_PATH" "$QA_DIR/slide"
find "$QA_DIR" -maxdepth 1 -type f -name 'slide*.jpg' | sort > "$QA_DIR/slide-images.txt"
QA_IMAGE_COUNT="$(wc -l < "$QA_DIR/slide-images.txt" | tr -d ' ')"
echo "QA_IMAGE_COUNT=$QA_IMAGE_COUNT"
test "$QA_IMAGE_COUNT" -gt 0
cat "$QA_DIR/slide-images.txt"
PREVIEW_SOURCE_PATH="$(head -n 1 "$QA_DIR/slide-images.txt")"
test -s "$PREVIEW_SOURCE_PATH"
cp "$PREVIEW_SOURCE_PATH" "$QA_DIR/preview.jpg"
echo "PREVIEW_IMAGE_PATH=$QA_DIR/preview.jpg"

After the QA execute completes, call review_deck_visuals with the image paths from $QA_DIR/slide-images.txt, in deck order. This judges the rendered slides with the workspace's vision model against the deck rubric (overflow, overlap, low contrast, decorative stripes, cream defaults, bullet-only pages, missing promised visuals, repeated layouts):

  • Severe issues: fix the deck builder, then rerun generation + QA once.
  • Minor issues and deck findings: fix them if a repair round is happening anyway; otherwise note them in the publish qa summary.
  • passed: false or {skipped, reason}: visual QA did not pass. Record the actual reason in the publish qa summary, set visualChecked: false, and never claim that visual review passed or that there is no overflow. Missing or failed batches are incomplete review, not approval. File QA must still pass before publishing; fix any known clipped or overlapping content first.

The slides preview image is the first slide image rendered from the final PPTX during final QA. Always provide the printed PREVIEW_IMAGE_PATH to the configured artifact publisher; do not use a preview image from an earlier render or an unverified intermediate PPTX.

Do not assume a fixed filename such as slide-01.jpg; use the files returned by find. The QA log must make the conversion visible with ===CONTENT_QA===, ===FILE_QA===, ===PPTX_TO_PDF===, ===PDF_TO_JPG===, QA_IMAGE_COUNT=<n>, and PREVIEW_IMAGE_PATH=<path>. Do not publish when File QA fails, QA_IMAGE_COUNT is zero, PREVIEW_IMAGE_PATH is missing, or review_deck_visuals reported severe issues that have not been repaired, or a slide the storyboard marked visual: generated is missing its staged generated image in the final deck. A skipped visual QA does not block publishing, but its reason must appear in the publish qa summary.

Do not run file against slide JPGs on the happy path. If a concrete debugging failure needs MIME diagnostics, make that optional and non-blocking, and use the discovered slide image paths from $QA_DIR/slide-images.txt instead of any fixed QA directory.

If PPTX_ARTIFACT_PATH is missing or invalid, run one fallback discovery command:

bash
find "<sandbox task directory>" -type f -iname '*.pptx'

If fallback finds exactly one PPTX, use it for QA and publishing. Otherwise rerun the deck program with the required stdout protocol instead of guessing.

Toolcall Discipline

  • Treat roughly 12 visible tool calls as the normal create-flow budget.
  • Treat roughly 18 visible tool calls as the budget for one real repair loop.
  • If visible tool calls approach 20, compress remaining work into the next decisive generation, QA, or publish action; report a blocker only when a concrete dependency or repeated failure prevents progress.
  • Combine related shell steps into one execute per phase.
  • Do not separately run repeated ls, file, which, identify, or generic environment probes on the happy path.
  • Do not read optional references on the happy path.

Failure Policy

  • Syntax failure: inspect the exact error, patch deck.js once, then rerun the generation phase once.
  • Runtime failure: read pitfalls.md only after a concrete generation failure.
  • File QA failure: fix chart options or package structure in the generator, then regenerate; do not hand-edit packed XML to silence validate.
  • QA failure: patch only affected slides/layouts, then rerun QA once.
  • If review_deck_visuals returns severe verdicts (overflow, overlap, clipped or unreadable content, stripes through text), fix the deck builder first and rerender the affected slides or the full deck before publishing. One repair round, then publish with remaining findings recorded in the qa summary.
  • Optional inspection tool missing: record a warning; do not probe repeatedly.
  • Do not redesign slides while repairing syntax or sandbox path problems.

Dependencies

The sandbox image preinstalls Node.js, npm, Python 3, LibreOffice, poppler-utils, CJK fonts, pptxgenjs, sharp, react, react-dom, and react-icons. File QA uses /skills/ppt-deck/scripts/validate_pptx.py from this skill bundle.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ppt Deck làm được gì?

Generate, edit, and read PowerPoint presentations. Create polished decks from scratch with PptxGenJS, edit existing PPTX/POTX via XML workflows, or extract text with markitdown. Triggers: PPT, PPTX, POTX, PowerPoint, presentation, slide, deck, slides.

Vì sao nên dùng Ppt Deck trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ppt Deck là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ppt Deck trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/SourceWeft/SourceWeft/tree/main/packages/builtin-skill-ppt-deck. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ppt Deck?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ppt Deck với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ppt Deck với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ppt Deck có miễn phí không?

Kỹ năng này được SourceWeft phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇