Token导航 LogoToken导航

Agent Skill · 前端设计

slides-build(幻灯片构建)

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

slides-build 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 4,944。

总安装 768周安装 32GitHub Stars 2下载 256核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mpuig/agent-slides --skill slides-build

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

slides-build 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。通过 npx skills add 命令从指定仓库安装并使用。

安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。建议结合原始 README 核验具体用法和功能边界。

来源仓库内路径:skills/slides-build

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/mpuig/agent-slides --skill slides-build;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

slides-build 怎么安装?

在终端执行 npx skills add https://github.com/mpuig/agent-slides --skill slides-build。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

slides-build 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

slides-build 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

slides-build 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

slides-build 用的人多吗?

公开数据是累计安装 768 次,近一周安装 32 次,下载 256 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

slides-build 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
slides-build

幻灯片构建 · 本页

7682只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Slides Build

You are a presentation strategist and slide engineer. Your job is to translate business intent into a compelling, visually rich deck that an executive would present without changes.

Generate a complete deck from user intent + extracted template contracts.

When to Use

  • User wants to create a new presentation
  • User provides a brief, topic, or content outline

Prerequisites

/slides-extract must have run first. These artifacts must exist in the project directory (e.g., output/<project>/):

  • resolved_manifest.json — merged template contract (primary reference)
  • base_template.pptx — clean template
  • design-profile.json — rendering and lint config
  • content_layout.json, archetypes.json, template_layout.json — also generated but merged into resolved manifest

Before rendering, always run slides preflight to verify that the project directory, profile paths, icon pack, asset roots, and optional dependencies are all valid.

References

FileWhen to loadContent
references/storytelling.mdAlways — before planning (Step 1)Pyramid Principle, SCQA, WWWH, action titles, isomorphism, MECE
references/content-density.mdAlways — before generating ops (Step 2)Visual hierarchy, content area fill, split-panel composition, card patterns
references/layout-patterns.mdAlways — before generating ops (Step 2)Concrete ops patterns: cards, badges, KPI rows, callout boxes, timelines
references/operations.mdAlways — during ops generation (Step 2)Full operation reference with params
references/common-mistakes.mdAlways — during QA (Step 5)25 ranked mistakes with fixes, pre-generation checklist
references/chart-patterns.mdOnly if plan includes chart slidesGray-first color strategy, chart type selection, chart+KPI combos, waterfall
references/framework-patterns.mdOnly if plan includes SCQA hero, matrix, pyramid, or org chart slidesSCQA hero, 2x2 matrix, Harvey balls, pyramid, org chart
references/process-patterns.mdOnly if plan includes process flow, timeline, or Gantt slidesChevron flow, stage gates, Gantt bars, multi-track workstreams

Loading strategy: Always load storytelling + content-density + layout-patterns + operations before generating ops. After completing the plan in Step 1, check which slide archetypes are in the plan — only then load the conditional references that match. Load common-mistakes during QA. This saves ~450 lines of context for decks that don't need charts, frameworks, or process diagrams.

Process

Step 1) Input intake

Read references/storytelling.md before planning. Apply WWWH, Pyramid Principle, SCQA, and isomorphism when structuring the deck.

Capture/confirm these fields:

  • Audience
  • Decision objective
  • Core recommendation
  • Scope constraints (time, geography, budget, BU)
  • Target slide count

If any of the first 4 are missing, ask concise clarifying questions (max 5).

Font size contract (lock during planning):

ElementSizeWeightColor
Action title24ptBoldDark (333333)
Subheader / card title14-16ptBoldBrand (primary_color_hex) or 29BA74
Body text14ptRegular333333 or 575757
Label / caption12ptRegular575757
Source line9ptRegular999999 or 666666
KPI number28-36ptBold29BA74

Lock these sizes before generating ops. Consistent sizes across slides are more important than perfect sizes on individual slides.

Slide count convention: N slides = N *content* slides. Title slide, disclaimer, and end/closing slides are always added but don't count toward the target. Example: "15 slides" = 15 content + title + disclaimer + end = 18 total.

Step 2) Generate slides.json

Generate slides.json from user intent + resolved_manifest.json.

  • Use the current agent model to generate slides-specific content on every run.
  • Never hardcode topic content.
  • Before generating ops, read resolved_manifest.json for each archetype's resolved_layouts — title method, body method, geometry, color zones, editable regions are pre-resolved.
Comprehension gate

After reading resolved_manifest.json, confirm you can answer:

  • Which layout will each archetype use? Name the layout for at least the first 5 archetypes. (Note: archetypes is a dict keyed by archetype ID, not a list — iterate with for aid, arch in archetypes.items())
  • Which layouts are split-panel? What are the editable regions?
  • What is the primary_color_hex from the design profile?

If any answer is unclear, re-read before generating ops.

Conditional reference loading

After completing the plan, scan SlidePlan.visual_hint and archetype_id values to decide which additional references to load:

  • Charts (add_bar_chart, add_pie_chart, KPI+chart combos) → load references/chart-patterns.md
  • Frameworks (SCQA hero, 2x2 matrix, Harvey balls, pyramid, org chart) → load references/framework-patterns.md
  • Processes (chevron flow, stage gates, Gantt, workstreams, timelines with phases) → load references/process-patterns.md

Skip references that don't match any planned slide. This keeps context lean for simple text+shape decks.

slides.json structure:

{
  "plan": {
    "deck_title": "...",
    "brief": "...",
    "audience": "...",
    "objective": "...",
    "slides": [
      {
        "slide_number": 1,
        "story_role": "opening",
        "archetype_id": "title_slide",
        "action_title": "..."
      }
    ]
  },
  "ops": {
    "operations": [
      {"op": "add_slide", "layout_name": "..."},
      {"op": "set_semantic_text", "slide_index": 0, "role": "title", "text": "..."}
    ]
  }
}

SlidePlan fields: slide_number (required), story_role (required), archetype_id (required), action_title (required), plus optional key_points, visual_hint, source_note.

DeckPlan fields: deck_title (required), brief (required), slides (required), plus optional audience, objective, assumptions.

Use uvx --from agent-slides slides docs schema:slides-document for full schema, uvx --from agent-slides slides docs method:render for operation inventory.

Ops Generation Rules

Read references/content-density.md and references/layout-patterns.md before writing ops.

Placeholder awareness:

  • Check if the layout has a TITLE (1) placeholder before using set_semantic_text role=title. Layouts like "Agenda Full Width Overview" and "End" have zero placeholders — use add_text with coordinates and font_color from color_zones.
  • Use set_semantic_text role=body only when the layout has a BODY (2) placeholder (e.g., "Title and Text"). Otherwise use add_text.
  • For "Title and Text" layout: use set_semantic_text for both title and body — inherits template formatting.

Speaker notes (mandatory for key slides):

  • Use add_notes on exec summary, recommendation, and data-heavy slides.

Visual hierarchy (mandatory for rich slides):

  • Each content slide: 3+ add_text ops — heading (18-22pt bold), body (15-16pt), secondary (14pt gray 575757).
  • Use primary_color_hex from design profile as font_color for subheadings/accent text.
  • Use font_color: "575757" for captions and supporting details.

Split-panel composition:

  • Left panel (colored): big accent text (24-36pt bold, white), callout numbers, category labels.
  • Right panel: repeating header+body pairs — header 20-22pt bold, body 15pt.
  • Place action title as first add_text on right panel at T=0.7.

Callout numbers:

  • Big callout numbers (36pt bold) in colored panels with label underneath (18pt).

Shape ops for visual structure (mandatory for rich slides):

  • add_rounded_rectangle: card backgrounds (place BEFORE text ops).
  • add_rectangle: thin accent bars (height ~0.06").
  • add_oval (equal w/h): number badges.
  • add_line_shape: dividers, timeline connectors, separators.
  • add_rounded_rectangle with border_color: insight callout boxes.
  • See references/layout-patterns.md for patterns.

Icons:

  • Use add_icon on card/column layouts. Place at size: 0.75 on cards, size: 0.55 as accents.
  • Use color: "FFFFFF" on dark backgrounds, omit for theme colors on light.
  • Built-in: generic_circle, generic_square. Template-extracted icons are available when icon_pack_dir is set in the design profile — check the extraction report for available names.

Charts:

  • add_bar_chart for comparisons, add_line_chart for trends, add_pie_chart/add_doughnut_chart for composition.
  • add_bar_chart orientation: "column" (default) or "bar" — never "vertical" or "horizontal".
  • Follow with styling: set_chart_title, set_chart_legend, set_chart_data_labels, set_chart_series_style.
  • set_chart_data_labels accepts number_format. set_chart_data_labels_style does NOT — only position, font_size, show_legend_key, number_format_is_linked.
  • Set fill_color_hex per series to match template palette.
  • Series format: [["Series Name", [v1, v2,...]],...].

Tables:

  • add_table with rows as 2D string array. Height ~0.5-0.6in/row.
  • Leave 0.5" between table bottom and footer text.

Source lines:

  • Every data slide: font_size: 9, font_color: "666666" or "999999", at top: 6.8.

Body placeholder clearing (mandatory):

  • On "Title and Text" layouts using add_text instead of set_semantic_text role=body: MUST add {"op": "set_semantic_text", "slide_index": N, "role": "body", "text": " "}.

Font color vs. background contrast (mandatory):

  • Never font_color: "FFFFFF" on light backgrounds (F2F2F2, FFFFFF).
  • Check color_zones[].bg_color before choosing colors.

Structural slides (mandatory):

  • Include disclaimer slide (second-to-last). Layout already has legal text — just add_slide.
  • end_slide (last) — minimal: deck title and brief line.
  • Agenda layouts with fixed labels — don't duplicate via add_text.

Document properties:

  • set_core_properties with title, author, subject.

Step 3) Preflight (required)

Run a project preflight before any render attempt:

uvx --from agent-slides slides preflight --project-dir . --profile design-profile.json --compact

If preflight reports missing artifacts, broken profile paths, or dependency issues, fix those before continuing.

Step 4) Dry-run (required)

uvx --from agent-slides slides render --slides-json @slides.json --profile design-profile.json --dry-run --compact

Step 5) Render

uvx --from agent-slides slides render --slides-json @slides.json --profile design-profile.json --output output.pptx --compact

Step 6) QA gate (required)

Read references/common-mistakes.md and review the pre-generation checklist.

uvx --from agent-slides slides qa output.pptx --profile design-profile.json \
  --slides-json @slides.json --out qa.json --compact

Review the output against the 25 ranked common mistakes. Note both issues found AND positive findings (things the deck does well).

Placeholder Rules

  • Never use set_placeholder_text with guessed indices. Use set_semantic_text with role (title, subtitle, body) for standard placeholders.
  • Only use set_placeholder_text with exact idx from inspect or template_layout.json.

Split-Panel Layout Rules

For layouts where the title placeholder sits in a side panel (not at the top):

  1. Set set_semantic_text title to " " to clear the placeholder.
  2. Place the slide title as add_text at the top of the RIGHT panel (T=0.7).
  3. Place left-panel content only in editable_above / editable_below areas.
  4. Use color_zones[].text_color for font_color on all add_text ops.

Check resolved_manifest.json -> archetype -> resolved_layouts -> title_region to determine if a layout is split-panel.

Anti-patterns (what NOT to do)

  • Don't generate ops without reading resolved_manifest.json first — layout names, geometry, and color zones must come from the contract
  • Don't guess placeholder indices — use set_semantic_text with role or exact idx from inspect
  • Don't use font_color: "FFFFFF" on light backgrounds or "333333" on dark backgrounds
  • Don't duplicate fixed labels on agenda or structural layouts
  • Don't skip the dry-run — it catches schema/op errors before rendering
  • Don't add visual elements to title, disclaimer, or end slides

Error Handling

On any slides error, run uvx --from agent-slides slides docs method:preflight, uvx --from agent-slides slides docs method:render, or uvx --from agent-slides slides docs schema:slides-document to verify the current contract before retrying.

Acceptance Criteria

  1. Output PPTX exists.
  2. qa.json reports "ok": true.
  3. No unresolved-token or contract-critical issues.
  4. slides preflight reports "ok": true before render.
  5. All content slides have action titles (complete sentences).

平台分布

Codex

38.03%
按下载量换算97

Claude

30.07%
按下载量换算77

Cursor

19.46%
按下载量换算50

Gemini CLI

8.78%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills