本文へ移動
cccskills
無料GitHub で公開

codeck-export

Internal publisher module for /codeck. Exports deck to PDF or PPTX with post-export QA. User-facing export requests should enter through /codeck; this skill defines the export behavior.

インストール方法を見る

含まれるファイル(70)

  • SKILL.md8.1 KB
  • pdf/forms.md11.6 KB
  • pdf/LICENSE.txt1.4 KB
  • pdf/reference.md16.3 KB
  • pdf/scripts/check_bounding_boxes.py2.7 KB
  • pdf/scripts/check_fillable_fields.py268 B
  • pdf/scripts/convert_pdf_to_images.py1008 B
  • pdf/scripts/create_validation_image.py1.2 KB
  • pdf/scripts/extract_form_field_info.py4.2 KB
  • pdf/scripts/extract_form_structure.py3.9 KB
  • pdf/scripts/fill_fillable_fields.py3.7 KB
  • pdf/scripts/fill_pdf_form_with_annotations.py3.2 KB
  • pptx/editing.md6.7 KB
  • pptx/LICENSE.txt1.4 KB
  • pptx/pptxgenjs.md12.5 KB
  • pptx/scripts/__init__.py0 B
  • pptx/scripts/add_slide.py6.7 KB
  • pptx/scripts/clean.py9.4 KB
  • pptx/scripts/office/helpers/__init__.py0 B
  • pptx/scripts/office/helpers/merge_runs.py5.4 KB
  • pptx/scripts/office/helpers/simplify_redlines.py5.6 KB
  • pptx/scripts/office/pack.py4.9 KB
  • pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd1.9 KB
  • pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd2.5 KB
  • pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd2.8 KB
  • pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd1.3 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd73.2 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd6.8 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd50.1 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd624 B
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd148.5 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd1.2 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd8.7 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd14.4 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd81.7 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd1.2 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd7.2 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd6.2 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd1.2 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd880 B
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd2.5 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd3.4 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd7.3 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd22.8 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd1.3 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd236.6 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd25.5 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd24.7 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd535 B
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd5.6 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd3.9 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd167.4 KB
  • pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd4.5 KB
  • pptx/scripts/office/schemas/mce/mc.xsd3.1 KB
  • pptx/scripts/office/schemas/microsoft/wml-2010.xsd25.9 KB
  • pptx/scripts/office/schemas/microsoft/wml-2012.xsd3.7 KB
  • pptx/scripts/office/schemas/microsoft/wml-2018.xsd901 B
  • pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd1.7 KB
  • pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd1002 B
  • pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd600 B
  • pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd745 B
  • pptx/scripts/office/soffice.py5.2 KB
  • pptx/scripts/office/unpack.py4.0 KB
  • pptx/scripts/office/validate.py3.6 KB
  • pptx/scripts/office/validators/__init__.py336 B
  • pptx/scripts/office/validators/base.py31.9 KB
  • pptx/scripts/office/validators/docx.py16.0 KB
  • pptx/scripts/office/validators/pptx.py9.6 KB
  • pptx/scripts/office/validators/redlining.py8.7 KB
  • pptx/scripts/thumbnail.py8.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

<!-- [INPUT]: Depends on latest assembled HTML, MEMORY.md, tasks/tasks.md, and threads/threads.md. [OUTPUT]: Provides PDF/PPTX exports and export QA notes. [POS]: skills/codeck-export lane; publishes the reviewed deck from room state to final artifacts. [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md -->

codeck export — @export lane

Minimum conversation, maximum output. Export the deck to the user's format.

@export owns PDF/PPTX output and export QA.

Write boundaries:

  • May write final PDF/PPTX files in the user's project directory
  • May write export QA notes to $DECK_DIR/review.md or $DECK_DIR/MEMORY.md
  • May update $DECK_DIR/roles/export.md, $DECK_DIR/tasks/tasks.md, and $DECK_DIR/channel/YYYY-MM-DD.md
  • Must not edit deck.md, DESIGN.md, custom.css, slides.html, or speech.md
  • Export defects that require source changes become proposals in $DECK_DIR/threads/threads.md

Step 1: Status

DECK_DIR="$HOME/.codeck/projects/$(basename "$(pwd)")"
CODECK_SKILL_DIR="${CODECK_SKILL_DIR:-}"
if [ -z "$CODECK_SKILL_DIR" ]; then
  for d in \
    "${CLAUDE_PLUGIN_ROOT}/skills/codeck" \
    "$HOME"/.claude/plugins/cache/*/codeck/*/skills/codeck \
    "$HOME"/.codex/plugins/cache/*/codeck/*/skills/codeck \
    "$HOME/.agents/skills/codeck" \
    "$HOME/.codex/skills/codeck" \
    "$HOME/.claude/skills/codeck"; do
    if [ -d "$d/scripts" ]; then CODECK_SKILL_DIR="$d"; break; fi
  done
fi
[ -n "$CODECK_SKILL_DIR" ] || { echo "codeck skill scripts not found; set CODECK_SKILL_DIR" >&2; exit 1; }
. "$CODECK_SKILL_DIR/scripts/resolve-dirs.sh"
mkdir -p "$DECK_DIR"
mkdir -p "$DECK_DIR/channel" "$DECK_DIR/tasks" "$DECK_DIR/threads" "$DECK_DIR/roles"
bash "$CODECK_SKILL_DIR/scripts/init-room.sh" "$DECK_DIR"
bash "$CODECK_SKILL_DIR/scripts/status.sh" "$DECK_DIR"

Read $DECK_DIR/MEMORY.md, active rows in $DECK_DIR/tasks/tasks.md, and open rows in $DECK_DIR/threads/threads.md. Do not read channel/YYYY-MM-DD.md unless debugging history.

Gate check: if no assembled HTML exists (./*-r*.html), run /codeck to generate/rebuild the deck first.

Before export, claim the work ticket:

@orchestrator
Owner: @export. Task: export latest HTML and run export QA.

@export
I claim the export pass. I will write PDF/PPTX outputs and record any source defects as threads.

Append the exchange to today's channel file and update tasks/tasks.md.

Step 2: Format

Export Format is one allowed Decision Ask moment under /codeck.

Use the shared /codeck Decision Ask Policy. Skip Decision Ask when the user names a target:

  • PDF, print, save as PDF → export PDF
  • PPTX, PowerPoint, slides file → export PPTX
  • all, both → export PDF and PPTX

If the user only says "export", create a non-blocking D-YYYYMMDD-NN decision in threads/threads.md and render once:

codeck needs the export format.

Current read: HTML already exists as the audience preview.

I suggest PDF because it preserves the visual layout and is easiest to share.

A) PDF (recommended)
B) PPTX
C) PDF + PPTX

If the user does not answer or structured AskUser UI is unavailable, export PDF and write assumed default to MEMORY.md.

Do not offer HTML as an export choice. HTML is the preview/source artifact.

Step 3: Export

Find the HTML file (./*-r*.html in the user's project directory), derive baseName.

HTML

Already exists. Open in browser, F for fullscreen, arrows to navigate.

PDF — print from HTML

Use Playwright for WYSIWYG PDF:

npx playwright install chromium 2>/dev/null || true
import { chromium } from 'playwright';
import { resolve } from 'path';
import { readdirSync } from 'fs';
import { pathToFileURL } from 'url';

const html = readdirSync('.').find(f => /-r\d+\.html$/.test(f));
const baseName = html.replace('.html', '');
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto(pathToFileURL(resolve(html)).toString(), { waitUntil: 'networkidle' });
await page.emulateMedia({ media: 'screen' });
await page.pdf({
  path: `${baseName}.pdf`,
  printBackground: true,
  preferCSSPageSize: true,
  margin: { top: '12mm', right: '12mm', bottom: '12mm', left: '12mm' }
});
await browser.close();
console.log(`done: ${baseName}.pdf`);

Poster assets

.media-poster elements in slides.html are video/audio placeholders. Original file paths are in the caption and deck.md asset manifest.

Default: keep placeholders in export. If user says "embed video", extract path from caption, use slide.addMedia({ path: "..." }) for PPTX.

PPTX — from HTML

Option A (recommended): LibreOffice

CODECK_SKILL_DIR="${CODECK_SKILL_DIR:-}"
if [ -z "$CODECK_SKILL_DIR" ]; then
  for d in \
    "${CLAUDE_PLUGIN_ROOT}/skills/codeck" \
    "$HOME"/.claude/plugins/cache/*/codeck/*/skills/codeck \
    "$HOME"/.codex/plugins/cache/*/codeck/*/skills/codeck \
    "$HOME/.agents/skills/codeck" \
    "$HOME/.codex/skills/codeck" \
    "$HOME/.claude/skills/codeck"; do
    if [ -d "$d/scripts" ]; then CODECK_SKILL_DIR="$d"; break; fi
  done
fi
[ -n "$CODECK_SKILL_DIR" ] || { echo "codeck skill scripts not found; set CODECK_SKILL_DIR" >&2; exit 1; }
. "$CODECK_SKILL_DIR/scripts/resolve-dirs.sh"
[ -n "${CODECK_EXPORT_DIR:-}" ] || { echo "codeck-export not found; set CODECK_EXPORT_DIR" >&2; exit 1; }
EXPORT_SCRIPTS="$CODECK_EXPORT_DIR/pptx/scripts"
python "$EXPORT_SCRIPTS/office/soffice.py" --headless --convert-to pdf ./*-r*.html
python "$EXPORT_SCRIPTS/office/soffice.py" --headless --convert-to pptx ./*-r*.html

Option B (fallback): screenshot embed

If soffice unavailable, use Playwright to screenshot each page, then PptxGenJS to embed screenshots as slides. Read $CODECK_EXPORT_DIR/pptx/pptxgenjs.md for the API.

Step 4: QA (required for PDF/PPTX)

Assume the export has problems. Find them.

PDF

Check: pages complete (no truncation), backgrounds render, fonts display correctly.

PPTX

Generate thumbnails:

CODECK_SKILL_DIR="${CODECK_SKILL_DIR:-}"
if [ -z "$CODECK_SKILL_DIR" ]; then
  for d in \
    "${CLAUDE_PLUGIN_ROOT}/skills/codeck" \
    "$HOME"/.claude/plugins/cache/*/codeck/*/skills/codeck \
    "$HOME"/.codex/plugins/cache/*/codeck/*/skills/codeck \
    "$HOME/.agents/skills/codeck" \
    "$HOME/.codex/skills/codeck" \
    "$HOME/.claude/skills/codeck"; do
    if [ -d "$d/scripts" ]; then CODECK_SKILL_DIR="$d"; break; fi
  done
fi
[ -n "$CODECK_SKILL_DIR" ] || { echo "codeck skill scripts not found; set CODECK_SKILL_DIR" >&2; exit 1; }
. "$CODECK_SKILL_DIR/scripts/resolve-dirs.sh"
[ -n "${CODECK_EXPORT_DIR:-}" ] || { echo "codeck-export not found; set CODECK_EXPORT_DIR" >&2; exit 1; }
EXPORT_SCRIPTS="$CODECK_EXPORT_DIR/pptx/scripts"
python "$EXPORT_SCRIPTS/thumbnail.py" ./*-r*.pptx

Convert to images for detailed check:

python "$EXPORT_SCRIPTS/office/soffice.py" --headless --convert-to pdf ./*-r*.pptx
pdftoppm -jpeg -r 150 *.pdf slide-check

Use subagent to visually inspect screenshots. Focus on: overlapping elements, text overflow, uneven spacing, low-contrast text, differences from HTML original.

Fix loop

  1. Find issue → adjust export params or HTML
  2. Re-export → re-screenshot → re-check
  3. Until one full check finds no new issues

At least one fix-verify cycle before declaring done.

If QA finds a source defect, do not edit source files directly. Add a thread with the affected artifact and suggested owner, then hand off to @design or @review.

After export:

  1. Update MEMORY.md Active Context, Latest Channel Summary, Task Index, and Artifacts.
  2. Mark the @export task done in tasks/tasks.md.
  3. Append the handoff to today's channel file.

Step 5: Done

Export done. Output: {baseName}.pdf / {baseName}.pptx

@export I exported the latest HTML, ran QA, and recorded output paths in memory.

Speech script: /codeck speech script. Overview: /codeck.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

codeck

無料

codeck entry point. Scans local files for materials, shows pipeline dashboard with diagnostic intelligence, guides user to the next step. Use when the user says "codeck", "new deck", "make a presentation", "make a deck", "new slides", "build a presentation", "export", "speech", "script", or wants to start or continue a presentation project. /codeck is the user-facing entry; legacy sub-skills are internal modules.

日本語の概要は準備中です。原文の説明を表示しています。

hiyeshu/codeck1982026年8月8日 更新

Designer role. Reads deck.md, generates a single HTML presentation file with CSS design system + JS slide engine + per-slide content. Accepts visual references (URLs, screenshots, design specs) and extracts design signals to inform the isomorphic mapping. Use whenever the user says "design slides", "generate deck", "generate the deck", "build slides", "visual style", "reference this style", "like this design", "design", "generate slides", "visual style", "reference this style", or wants to turn an outline into actual slides.

日本語の概要は準備中です。原文の説明を表示しています。

hiyeshu/codeck1982026年8月8日 更新

Editor role. Reads local materials, asks narrative questions, plans story arc. Outputs $DECK_DIR/deck.md as the sole content source. Use whenever the user says "outline", "plan slides", "organize materials", "structure", "table of contents", "narrative", or wants to structure content into a presentation.

日本語の概要は準備中です。原文の説明を表示しています。

hiyeshu/codeck1982026年8月8日 更新

Reviewer role. Opens rendered HTML, inspects every slide visually, fixes problems in custom.css or slides.html and rebuilds through build-html.sh. Use whenever the user says "review", "QA", "check slides", "inspect", "audit", "proofread", or wants feedback on a rendered deck.

日本語の概要は準備中です。原文の説明を表示しています。

hiyeshu/codeck1982026年8月8日 更新

Internal speech module for /codeck. Reads deck content, asks about style and duration only when missing, generates a verbatim speech transcript with stage directions. Outputs $DECK_DIR/speech.md.

日本語の概要は準備中です。原文の説明を表示しています。

hiyeshu/codeck1982026年8月8日 更新

hiyeshu のスキルをすべて見る

このスキルの問題を報告する