← ClaudeAtlas

codeck-exportlisted

Publisher role. Exports deck to PDF or PPTX with post-export QA. Use whenever the user says "export", "to PDF", "to PPTX", "PowerPoint", "print", "download", "save as PDF", "convert", or wants to convert a finished deck to PDF or PPTX.
hiyeshu/codeck · ★ 208 · Data & Documents · score 84
Install: claude install-skill hiyeshu/codeck
# codeck export Minimum conversation, maximum output. Export the deck to the user's format. ## Step 1: Status ```bash DECK_DIR="$HOME/.codeck/projects/$(basename "$(pwd)")" mkdir -p "$DECK_DIR" bash "$HOME/.claude/skills/codeck/scripts/status.sh" "$DECK_DIR" ``` Gate check: if no assembled HTML exists (`./*-r*.html`), suggest running `/codeck-design` first. ## Step 2: Format - A) HTML — open in browser, press F for fullscreen, arrow keys to navigate. Zero dependencies. (recommended) - B) PDF — email attachments, printing - C) PPTX — corporate requirements - D) All ## 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: ```bash npx playwright install chromium 2>/dev/null || true ``` ```javascript 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: '12