SkillsGrove
SkillsGrove/ドキュメント作成/CamelKing1997/editable-leadership-pptx/editable-leadership-pptx

editable-leadership-pptx

インストール

$npx skills add https://github.com/CamelKing1997/editable-leadership-pptx --skill editable-leadership-pptx
$git clone --depth 1 https://github.com/CamelKing1997/editable-leadership-pptx.git /tmp/editable-leadership-pptx && mkdir -p ~/.claude/skills && cp -r /tmp/editable-leadership-pptx/. ~/.claude/skills/editable-leadership-pptx
この Agent Skill をインストールしてください:https://github.com/CamelKing1997/editable-leadership-pptx/tree/392d4043f63c38aaae748fbeea34ae563d114925/ — まず SKILL.md とスクリプトを読み、安全であることを確認してから、私のスキルフォルダにインストールしてください。

概要

原文の説明 · Apache-2.0Use when creating or revising a PPT, PowerPoint, presentation deck, leadership deck, or executive progress deck as an editable 16:9 `.pptx` with repo-backed evidence, minimal text, restrained white-first visuals, and screenshot-based layout QA.
以下の SKILL.md は CamelKing1997/editable-leadership-pptx(コミット 392d404)から Apache-2.0 ライセンスに基づいて転載しています。本文は変更しておらず、ファイル先頭のメタデータのみ省略し、画像はリンクとして表示し、非常に長いファイルは途中までの表示としています。Copyright owner or entity authorized by。ライセンス:LICENSE.txt。表示しているのは指示ファイルのみです。スクリプト等は元のリポジトリをご覧ください。

Editable Leadership PPTX | Codex PPT Skill

Overview

Create leadership decks as fully editable 16:9 .pptx files. Authoring implementation is flexible: use an existing repo generator, PptxGenJS, Python, or a mixed pipeline, but keep the delivered deck editable, reproducible, and visually strong.

Assume most decks in this workflow are grounded in a live project repo. Pull evidence from code, configs, experiments, model outputs, logs, metrics, and derived analysis before writing slide copy.

Load these references as needed:

Bundled Resources

All resources are vendored locally — this skill has no runtime dependency on the external slides skill.

PptxGenJS Helpers (assets/pptxgenjs_helpers/)

Self-contained JS library (v1.2.0) for slide authoring:

Module Capabilities
text.js autoFontSize, calcTextBox, calcTextBoxHeightSimple — accurate text measurement via skia-canvas + fontkit
layout.js warnIfSlideHasOverlaps, warnIfSlideElementsOutOfBounds, alignSlideElements, distributeSlideElements
layout_builders.js addImageTextCard, addCardRow, addThreeLevelTree — composite layout helpers
image.js imageSizingCrop, imageSizingContain, getImageDimensions — crop/contain/metadata
code.js codeToRuns — syntax-highlighted code blocks via PrismJS
latex.js latexToSvgDataUri — LaTeX → SVG via MathJax
svg.js svgToDataUri, sanitizeSvg
util.js safeOuterShadow

JS dependencies: pptxgenjs, skia-canvas, linebreak, fontkit, prismjs, mathjax-full.

Review & Validation Scripts

Script Location Purpose
validate_deck.py scripts/ One-command QA: render + montage + overflow + font + tiles → summary.json
review_deck.py scripts/ Fast visual review: render + montage by default, with optional overflow/font/tile checks
render_slides.py scripts/slides/ PPTX/PDF → per-slide PNG
create_montage.py scripts/slides/ Contact sheet from slide PNGs
slides_test.py scripts/slides/ Overflow / out-of-bounds detection
detect_font.py scripts/slides/ Missing vs. substituted font classification
ensure_raster_image.py scripts/slides/ SVG/EMF/HEIC/PDF/EPS → PNG conversion

Bootstrap Script

scripts/bootstrap_slides_tooling.py copies helpers and/or the full local review stack from this skill's bundled resources into a task workspace:

python scripts/bootstrap_slides_tooling.py path/to/workspace --all
python scripts/bootstrap_slides_tooling.py path/to/workspace --with-helpers
python scripts/bootstrap_slides_tooling.py path/to/workspace --with-review-scripts

System Requirements

Python: pdf2image, Pillow, numpy, python-pptx. System tools: LibreOffice/soffice, Poppler. Optional: Inkscape, ImageMagick, Ghostscript, heif-convert.

If the environment is not ready yet, load references/environment-setup.md and follow the install and verification commands before running render-based QA.

Low-Token Operating Mode

Optimize for speed and fewer clarification turns:

  • Infer first from existing decks, templates, filenames, reports, repo structure, commit history, and generated assets before asking questions.
  • Ask only for missing inputs that materially change the deck outcome.
  • Keep clarification to one short round unless a blocker remains.
  • If a prior approved deck or company template exists, preserve its geometry, theme rhythm, and page logic first, then improve.
  • If the visual direction is already clear, skip exploratory loops and build directly.

Workflow

  1. Inspect the request and determine whether you are creating a new deck, revising an existing one, or replacing a weak HTML or screenshot-based deck with an editable .pptx.

  2. Intake confirmation (new deck only, infer first). Before designing slides, infer as much as possible from the available materials. Ask the user only for missing items that materially change the deck. Use one short round of questions at most unless a blocker remains.

    • Time range: infer from the latest report, repo activity, filenames, or previous deck; ask only if still ambiguous
    • Audience level: default to leadership / business stakeholders; ask only if technical proof depth is unclear
    • Must-include topics: derive from repo evidence and current delta; ask only for hard constraints or politically mandatory topics
    • Reference material: infer from nearby decks, templates, style guides, or requested paths; ask for a file path only if no usable reference is present
    • Expected length: infer from the previous deck, the reporting cadence, and the amount of delta; default to 10–15 slides if not specified

    If any answer changes the defaults in step 6 (audience, aspect ratio, background style), carry those overrides forward.

  3. Work in a task-local build directory. Do not overwrite the requested final deck path until rendering and validation pass.

  4. Read the current source materials before designing slides:

    • previous deck
    • current report or notes
    • repo evidence
    • any existing PPT build script or generator
  5. If revising an existing deck, render the current deck first so you can compare geometry, rhythm, and problem areas visually.

  6. Lock the deck contract up front:

    • audience defaults to leadership or business stakeholders (override with intake answer if different)
    • output defaults to editable 16:9 .pptx
    • most slides default to white background and flat layout
    • cover and closing slides may use a darker branded background if deliberate and clean
  7. Choose the authoring path that best preserves editability and visual quality. Do not force a language or library if another path will produce a stronger editable deck.

  8. Extract only the delta since the last report. If historical callback is necessary, keep it to one setup slide.

  9. Derive evidence before writing copy:

    • inspect project structure, experiment outputs, model artifacts, evaluation scripts, and metrics files
    • compute or regenerate key comparisons when the needed evidence is not already materialized
    • prefer charts and diagrams generated from repo-backed facts over prose summaries
  10. Draft sample slides only when the visual direction or page structure is not yet locked:

    • if the deck is new and style is uncertain, draft up to three sample slides:
      • one business progress slide
      • one chart-heavy evidence slide
      • one technical explanation slide, only if technical proof is required
    • if an approved deck, template, or strong company visual language already exists, skip samples and move directly into full-deck production
  11. Build or revise the deck:

    • set fonts explicitly
    • keep a stable spacing system across titles, captions, charts, and margins
    • keep titles, body copy, dividers, labels, timelines, and status text as native PowerPoint elements
    • top-align content boxes that may grow
    • place images intentionally: crop when the image should fill the frame, contain when preserving the full figure matters
    • prefer native PowerPoint charts for simple visuals that should remain editable
    • render only complex charts, saliency plots, and architecture diagrams as images or SVG when native objects would be weaker
    • when using PptxGenJS, load references/pptxgenjs-helpers.md and bootstrap the helper bundle into the task workspace if needed
    • if using PptxGenJS, use autoFontSize, calcTextBox, and related helpers instead of fit or autoFit
    • if using PptxGenJS, use bullet options instead of literal bullet glyphs
    • if using PptxGenJS, use imageSizingCrop or imageSizingContain for image placement
    • if using PptxGenJS, use codeToRuns() for syntax-highlighted code and latexToSvgDataUri() for equations when those elements are needed
    • if using PptxGenJS, include overlap and out-of-bounds diagnostics in the authoring source and resolve all unintentional warnings before delivery
  12. Validate with real render output, not only the editor:

    • if required tools are missing, install them using references/environment-setup.md before continuing
    • use scripts/review_deck.py for fast visual iteration
    • use scripts/validate_deck.py for the full QA chain before delivery
    • export slides to PNG
    • build a montage or contact sheet for deck-level review
    • run an overflow or out-of-bounds check for dense decks
    • detect missing or substituted fonts when typography matters
    • normalize odd image formats before placement if source assets are SVG, EMF, HEIC, PDF, or similar
  13. Review in this order:

    • story and page order
    • visual style
    • chart readability
    • wording and jargon level
    • screenshot-based layout QA: full-slide screenshots first, then local crops or tiles for dense areas
    • overflow, overlap, clipping, spacing, font, and asset issues
  14. Deliver the .pptx, the authoring source, and any generated assets needed to rebuild the deck.

Authoring Rules

  • Editable output is mandatory. Do not rasterize full slides just to get the look right.
  • Keep text, simple layout elements, separators, callouts, and straightforward charts editable whenever practical.
  • Treat slide text as presentation support, not a document. Large paragraphs are prohibited.
  • Default to evidence-first storytelling. Build charts, timelines, architecture visuals, and before/after comparisons from project files, code paths, experiment outputs, metrics, model checkpoints, logs, or derived analysis instead of filling space with prose.
  • Use business language for leadership audiences. Translate jargon unless the page exists to prove a technical point.
  • If you introduce a new model, algorithm, or architecture, include real evidence:
    • why the change was made
    • one concrete visual or chart
    • paper citations when external architecture is referenced
  • Use charts to make the point obvious from a distance. Hidden labels, conflicting scales, decorative dual axes, or annotation collisions are defects.
  • Screenshot review is mandatory. Do not trust code inspection alone for visual QA.
  • Do not promote working files to the final destination until render, screenshot QA, overflow checks, and font checks have passed.

Internalized Slides Capabilities

This skill internally carries the reusable slides capabilities needed for high-quality editable PPT authoring:

  • vendored pptxgenjs_helpers for text measurement, layout helpers, crop/contain, SVG, LaTeX, code highlighting, and overlap diagnostics
  • vendored review scripts for render, montage, overflow detection, font inspection, and asset rasterization
  • local wrapper scripts for one-command deck review and workspace bootstrap

Always use these bundled resources instead of depending on the external slides skill.

Apple-Keynote Aesthetic

When premium visual quality matters, load references/apple-keynote-aesthetic.md and apply its rules before claiming a deck looks polished. Treat Apple-like quality as a strict review target, not a vague inspiration word.

Recreate Or Edit Existing Slides

When revising or rebuilding from a reference deck or PDF:

  • Render the source deck or reference PDF first so you can compare slide geometry visually.
  • Match the original aspect ratio before rebuilding layout.
  • Preserve editability where possible: text should stay text, and simple charts should stay native charts.
  • If a reference slide uses raster artwork, use scripts/slides/ensure_raster_image.py to generate debug PNGs from vector or odd image formats before placing them.

Screenshot QA

After every meaningful rebuild:

  1. Export full-slide screenshots for the entire deck.
  2. Build a contact sheet or review slides one by one for global balance.
  3. For every dense chart page, architecture page, or page that previously failed review, generate local crops or tiles covering the top, middle, bottom, and crowded regions.
  4. Use those images to check:
    • text or annotations covering charts
    • labels cut off by shape or canvas boundaries
    • nodes or arrows clipped at panel edges
    • objects extending off the slide
    • distorted aspect ratios after image placement
    • mismatched axis scales that weaken the intended comparison
    • visually empty dead zones caused by poor balance
    • template artifacts, ghost text, or broken background layers
    • card, caption, or title collisions after content updates
  5. Fix the source layout and regenerate. Do not patch only in exported images.

Recommended command:

python scripts/validate_deck.py path/to/deck.pptx --strict

Validation Commands

python scripts/bootstrap_slides_tooling.py path/to/workspace --all
python scripts/review_deck.py path/to/deck.pptx
python scripts/review_deck.py path/to/deck.pptx --deep
python scripts/validate_deck.py path/to/deck.pptx --strict

Red Flags

  • The deck repeats the prior report instead of showing new progress.
  • A slide contains dense paragraphs or looks like speaker notes pasted into boxes.
  • Visual weight comes from filled cards instead of typography, spacing, and evidence.
  • A model name appears without a one-line business reason and a supporting visual.
  • A chart was hand-waved instead of being generated from project, code, model, or experiment data.
  • The .pptx exists but key text, shapes, or simple layout elements are no longer editable.
  • Layout review was done from code or the PPT editor alone without full-slide screenshots and local crops.
  • A chart needs explanation because the key contrast is not visually obvious.
  • Fixes are attempted across story, style, copy, and layout in the same pass.
ライセンス全文を見る(Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright (c) Microsoft Corporation.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
NOTICE を見る
This repository is a community-maintained Codex skill project.

It includes:

- original repository content specific to the `editable-leadership-pptx` workflow
- vendored and/or adapted helper code and review utilities derived from the Codex `slides` skill workflow

Relevant bundled areas include:

- `assets/pptxgenjs_helpers/`
- `scripts/slides/`

Some bundled source files retain upstream copyright notices, including
`Copyright (c) OpenAI`. Those notices should be preserved in redistributed
or modified copies where applicable.

`LICENSE.txt` contains the Apache License 2.0 text included for applicable
vendored resources in this repository.

Use of the names `Codex`, `OpenAI`, and `slides` in this repository is
descriptive only and does not imply affiliation, sponsorship, or endorsement.