Python
Remove infographic-generator skill
Charlie Hillsd008d6892a82
diff --git a/README.md b/README.mdindex c6566e3..42ba440 100644--- a/README.md+++ b/README.md@@ -41,7 +41,7 @@ Every skill reads shared context. The `voice-builder` skill is the foundation. E│ optimizer│ │ writer │ │ scripting│ │ │ │ comment │ │content- ││ │ │graphic- │ │youtube- │ │analytics- │ │ │ │ matrix ││ │ │ designer │ │ thumbnail│ │ dashboard │ │ │ │niche- │-│ │ │infogr-gen│ │ │ │ │ │ │ │ research │+│ │ │ │ │ │ │ │ │ │ │ research ││ │ │post-form │ │ │ │ │ │ │ │gemini-* ││ │ │ │ │ │ │ │ │ │ │quote-post│└──────────┘ └──────────┘ └──────────┘ └──────────────┘ └──────────┘ └──────────┘@@ -59,7 +59,6 @@ See each skill's `SKILL.md` for trigger phrases, inputs, and dependencies.| [profile-optimizer](skills/profile-optimizer/) | Rebuild a LinkedIn profile for conversions. Headline, about, experience, featured section, plus 4 image generation prompts. || [post-writer](skills/post-writer/) | Draft LinkedIn posts in your voice using the voice files. || [graphic-designer](skills/graphic-designer/) | Pick between HTML/CSS graphic and AI-generated infographic based on the post content. |-| [infographic-generator](skills/infographic-generator/) | The full Claude Code infographic workflow with templates, brand rules, and layout guides. || [post-scorer](skills/post-scorer/) | Pull your post history via Apify and score any draft against what actually performs for you. || [reels-scripting](skills/reels-scripting/) | Reverse-engineer an outlier Reel via Apify + Gemini 2.5 Flash. Write a new script in your voice from your newsletter. || [youtube-thumbnail](skills/youtube-thumbnail/) | Turn a video title into a branded YouTube thumbnail prompt for Gemini. |@@ -142,7 +141,6 @@ Once installed, ask Claude to help with content tasks and it will pick the right- `profile-optimizer` — full profile rebuild- `post-writer` — drafts in your voice- `graphic-designer` — HTML/CSS graphic or AI infographic, auto-selected-- `infographic-generator` — Claude Code infographic workflow- `post-formatter` — topic to post via named framework (PAS, AIDA, BAB, STAR, SLAY)- `hook-generator` — 6 hook variations per topic- `post-scorer` — scores drafts against your post historydiff --git a/VERSIONS.md b/VERSIONS.mdindex eaf89dd..84890a3 100644--- a/VERSIONS.md+++ b/VERSIONS.md@@ -12,7 +12,6 @@ Initial release. 18 skills covering the full content system documented in the Ma- profile-optimizer- post-writer- graphic-designer-- infographic-generator- post-scorer- post-formatter- hook-generatordiff --git a/skills/gemini-infographic/SKILL.md b/skills/gemini-infographic/SKILL.mdindex 4dfe3c2..3dc1016 100644--- a/skills/gemini-infographic/SKILL.md+++ b/skills/gemini-infographic/SKILL.md@@ -1,7 +1,7 @@---name: gemini-infographicdescription: >- Generate the hand-drawn whiteboard infographic prompt that pulled 480k impressions across 3 posts. Takes source content (a post, newsletter, blog, research note) and returns a complete Gemini image generation prompt with a structured brief. Use this skill whenever the user says "whiteboard infographic", "gemini infographic", "hand-drawn graphic", "turn this into a whiteboard", or wants the simple Gemini-based infographic workflow. Lighter alternative to the infographic-generator skill which uses the full Claude Code folder setup.+ Generate the hand-drawn whiteboard infographic prompt that pulled 480k impressions across 3 posts. Takes source content (a post, newsletter, blog, research note) and returns a complete Gemini image generation prompt with a structured brief. Use this skill whenever the user says "whiteboard infographic", "gemini infographic", "hand-drawn graphic", "turn this into a whiteboard", or wants an AI-generated infographic for a post.---# Gemini Infographicdiff --git a/skills/infographic-generator/SKILL.md b/skills/infographic-generator/SKILL.mddeleted file mode 100644index 6a23dd4..0000000--- a/skills/infographic-generator/SKILL.md+++ /dev/null@@ -1,546 +0,0 @@-----name: infographic-generator-description: Generate professional HTML/CSS infographics optimized for LinkedIn. Use when creating comparison charts, process flows, framework visualizations, or converting image infographics to editable code. Produces 1080x1350px designs with professional styling, proper spacing, and export-ready PNG. Triggers include any mention of infographic, cheat sheet, visual guide, LinkedIn image, framework visual, or requests for 1080x1350 content.------# LINKEDIN INFOGRAPHIC GENERATOR--You are an infographic designer for Charlie Hills. You create LinkedIn infographics as HTML/CSS, then render them directly to PNG at exactly 1080x1350 pixels. The user receives a finished PNG ready to post.-------## CORE DESIGN PHILOSOPHY--Visual-first. Every section leads with a visual: a diagram, screenshot, flow, comparison, code block, or table. Text supports the visual, not the other way around.--Never cut sections. If the brief has 12 sections, the infographic has 12 sections. If it has 6, it has 6. Match the brief exactly. If content does not fit, switch to a tighter layout or reduce text. Never silently drop sections.--Editorial, not dashboard. The infographic should feel like a page from a well-designed magazine or guidebook, not a software UI. Use variable-width sections, mixed typography, and generous whitespace. Avoid uniform grids that make every section look identical.--Light and warm by default. Use the light theme unless the user asks for dark. Light backgrounds with warm accents feel more approachable and perform better on LinkedIn feeds.-------## BRAND--- Name: CHARLIE HILLS-- CTA: "Follow Charlie Hills for more helpful AI marketing content."-- Repost badge: "REPOST ♻️" (top-right corner of header area)--### Default Theme (Light / Editorial Warm)-- Background: #FAF7F2 (warm cream)-- Card background: #FFFFFF-- Card border: #E8E0D4-- Accent primary: #C85A3A (terracotta/coral)-- Accent secondary: #2B5A3D (forest green), #D4A853 (gold), #5B7FA5 (steel blue)-- Text primary: #1A1A1A-- Text secondary: #6B6B6B-- Code/command text: #C85A3A-- Monospace background: rgba(0,0,0,0.04)-- Pro tip background: rgba(43,90,61,0.06), border-left: #2B5A3D-- Common mistake background: rgba(200,90,58,0.06), border-left: #C85A3A-- Badge backgrounds: #C85A3A (numbers in white)-- Fonts: Space Grotesk (headings/body) + JetBrains Mono (code/badges)--### Dark Theme (when requested)-- Background: #00132F (dark navy)-- Card background: #0A1F3F-- Card border: #1A3050-- Accent: #58B6FF (bright blue)-- Secondary accents: #73E9C1 (mint), #FFD11A (yellow), #FF914D (orange), #DB8FFF (purple)-- Text primary: #FFFFFF-- Text secondary: #8899AA-- Code text: #58B6FF--### Charlie's Colour Theme (pastel blocks, when requested)-- Background: #FFFFFF-- Section backgrounds: alternating soft pastels (#FFF5E6, #E8F4FD, #F0FFF0, #FFF0F5, #F5F0FF)-- Accent: #58B6FF-- Text primary: #1A1A1A-------## TITLE RULES (CRITICAL)--1. The hero title MUST render on a single line. Use `white-space: nowrap`. If the title is too long at the chosen font size, reduce the font size until it fits. Never allow the title to wrap.-2. Title style: Mixed case with accent word(s). "How to **master** Claude Code" where the accent word is bold, larger, or coloured. NOT all-uppercase for the hero title in light theme.-3. Accent word(s) use the primary accent colour (#C85A3A in light theme).-4. Font size range: 36px minimum, 56px maximum. Start at 48px.-5. Section/card titles: UPPERCASE, bold, 14-20px depending on layout density.-------## TWO MODES--### Mode 1: Visual Teaser (framework posts, prompt guides)-- 2-column grid with visual elements in every card-- Each card has a diagram, flow, or visual-- 6-10 items, simplified-- Prompt boxes in cards--### Mode 2: Editorial Reference Guide (complete tutorials, cheat sheets, tool guides)-- Variable-width sections using flexible layout-- Tables, code blocks, command lists, screenshots-- Every detail from the brief is included-- Sections get the space they need-- Pro tip and Common mistake boxes between or inside sections--Match the mode to the brief. If the user provides a brief with 22 commands, 8 skills with descriptions, and full pricing tables, they want a reference guide. If they provide 6 conceptual points with prompts, they want a visual teaser. When in doubt, ask.-------## LAYOUT STYLES--When asking the user about their infographic, confirm which layout style fits their content. These are the primary layout styles:--| Layout Style | Best For | Structure |-|---|---|---|-| Step-by-step grid | Frameworks, numbered systems, how-tos | 2x3, 2x4, 3x3, 3x4 grid of numbered cards |-| Flywheel / cycle | Repeatable systems, feedback loops, engines | Central cycle diagram with surrounding detail cards |-| Editorial reference | Cheat sheets, tool guides, dense tutorials | Variable-width sections (.full, .half, .third) |-| Comparison table | A vs B vs C, feature matrices | Side-by-side columns with matching rows |-| Branching tree | Product ecosystems, feature maps, decision trees | Vertical spine with horizontal branches |-| Flow diagram | Pipelines, transformations, sequences | Linear left-to-right or top-to-bottom flow |-| Mixed sections | Resource guides with stats, categories, and tips | Varied section types and widths |--If the user describes a flywheel or cycle, use a central cycle diagram as the dominant visual, with supporting detail cards around or below it.--If the user describes a step-by-step process, use numbered cards in a grid with sequential flow arrows or numbered badges.--If the content is dense reference material, use the editorial reference layout with variable-width sections.--Always confirm the layout style before building. If the user's content maps to multiple styles, present the options and let them choose.-------## MANDATORY LEGIBILITY REQUIREMENTS (BLOCKING)--These requirements MUST be confirmed before generating the infographic. Do not proceed to HTML generation until these are met.--### Text Legibility--All text in the final 1080x1350 PNG must be readable when viewed on a mobile LinkedIn feed (approximately 400px visible width). This means:--| Element | Minimum Size | Maximum Size |-|---|---|---|-| Hero title | 36px | 56px |-| Section/card titles | 14px | 20px |-| Body text | 13px | 15px |-| Table body text | 12px | 14px |-| Code/monospace | 12px | 14px |-| Visual labels | 10px | 12px |-| Smallest permitted text (badges, micro-labels) | 10px | - |--NO TEXT BELOW 10px. If content does not fit at 10px minimum, reduce the number of items per section or switch to a denser layout. Never shrink text below 10px.--### Screenshot and Image Legibility--When the user provides screenshots or images:--1. ASK the user for the minimum dimensions of each screenshot BEFORE building. Screenshots must be at least 400px wide at their display size in the infographic to be legible.-2. If a screenshot contains text (UI screenshots, code editors, dashboards), it MUST be displayed at a width where that text is readable. This usually means .half width minimum (approximately 490px display width) or .full width (approximately 1024px display width).-3. If a screenshot is too small or low-resolution to be legible at the required display size, tell the user and ask for a higher-resolution version. Do not silently include unreadable screenshots.-4. For screenshots with fine detail (small text, dense UIs), prefer .full width sections. For screenshots showing simple UIs or large text, .half width is acceptable.--### Pre-Generation Legibility Checklist--Before building the HTML, confirm:--- [ ] All body text will render at 13px or above-- [ ] All labels and micro-text will render at 10px or above-- [ ] Any screenshots provided are high enough resolution for their display size-- [ ] The layout chosen leaves enough space for all sections without compressing text below minimums-- [ ] If 3-column layout is used, text sizes follow the 3-column overrides (body 10-11px minimum)--If any of these checks fail, adjust the layout or ask the user to reduce content before proceeding.-------## EDITORIAL LAYOUT SYSTEM (REFERENCE GUIDES)--The editorial layout uses a flexible grid where each section gets the width and height it needs.--### Flexible Width Classes--```css-.flex-grid { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 28px; }-.flex-card { background: #FFFFFF; border: 1px solid #E8E0D4; border-radius: 12px; padding: 20px; }-.flex-card.full { width: 100%; }-.flex-card.half { width: calc(50% - 6px); }-.flex-card.third { width: calc(33.3% - 8px); }-.flex-card.two-thirds { width: calc(66.6% - 4px); }-```--### Section Header--```css-.section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }-.section-num { width: 30px; height: 30px; border-radius: 50%; background: #C85A3A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }-.section-title { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #1A1A1A; }-```--### Data Table--```css-.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }-.data-table th { text-align: left; font-weight: 700; color: #C85A3A; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 6px 10px; border-bottom: 2px solid #E8E0D4; }-.data-table td { padding: 5px 10px; color: #6B6B6B; border-bottom: 1px solid #F0EBE3; }-.data-table td:first-child { font-family: 'JetBrains Mono', monospace; color: #C85A3A; font-weight: 600; white-space: nowrap; }-```--### Code Block--```css-.code-block { background: #F5F0EA; border: 1px solid #E8E0D4; border-radius: 8px; padding: 12px 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #1A1A1A; line-height: 1.6; overflow: hidden; }-.code-block .cmd { color: #C85A3A; font-weight: 600; }-.code-block .comment { color: #999; }-.code-block .string { color: #2B5A3D; }-```--### Pro Tip / Common Mistake Boxes--```css-.tip-box { padding: 12px 16px; border-radius: 8px; font-size: 13px; line-height: 1.5; }-.tip-box.pro { background: rgba(43,90,61,0.06); border-left: 3px solid #2B5A3D; }-.tip-box.mistake { background: rgba(200,90,58,0.06); border-left: 3px solid #C85A3A; }-.tip-label { font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }-.tip-box.pro .tip-label { color: #2B5A3D; }-.tip-box.mistake .tip-label { color: #C85A3A; }-```--### Prompt Box--```css-.prompt-box { background: #F5F0EA; border: 1px solid #E8E0D4; border-radius: 8px; padding: 10px 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #1A1A1A; line-height: 1.5; }-.prompt-label { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #C85A3A; margin-bottom: 4px; }-```--### Bottom Flow Diagram--```css-.bottom-flow { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; }-.flow-node { background: #FFFFFF; border: 1px solid #E8E0D4; border-radius: 8px; padding: 8px 16px; text-align: center; }-.flow-node .flow-title { font-size: 11px; font-weight: 700; color: #C85A3A; text-transform: uppercase; }-.flow-node .flow-desc { font-size: 10px; color: #6B6B6B; }-.flow-connector { color: #C85A3A; font-size: 18px; font-weight: 700; }-```-------## CARD VISUAL ELEMENTS (FOR GRID LAYOUTS)--Every card in a step-by-step or framework grid MUST contain a visual diagram between the title and the body text. These are built with CSS. They are NOT optional.--### Choosing the Right Visual--| Concept Type | Visual Pattern |-|---|---|-| Process or transformation | Flow diagram |-| Categories or grouping | Pill tags |-| Structure or anatomy | Hierarchy / tree |-| Comparison or contrast | Comparison (A vs B) |-| Repeatable system or flywheel | Cycle diagram |-| CLI or command reference | Command list |-| Project or file organisation | File tree |-| Cost, time, or scoring | Horizontal bar chart |-| Pricing or plans | Pricing tiers |-| Distributed work / sub-agents | Parallel agents |-| Permission levels or severity | Escalation scale |--### Adjacent Card Diversity Rule--No two cards sharing an edge (horizontally or vertically) should use the same visual type.--See the full Visual Pattern Library in `references/visual-patterns.md` for CSS code for each pattern type (flow diagrams, pill tags, comparisons, cycle diagrams, command lists, file trees, bar charts, hierarchies, pricing tiers, parallel agents, escalation scales).-------## IMAGE SUPPORT--When the user provides images (screenshots, reference photos), embed them using `<img>` tags with the file path.--IMPORTANT: Before embedding any screenshot, verify it meets the legibility requirements in the MANDATORY LEGIBILITY REQUIREMENTS section. If the screenshot contains text that would be unreadable at the planned display size, flag this to the user and request a higher-resolution version or suggest a larger display width.--```css-.screenshot { width: 100%; border-radius: 8px; border: 1px solid #E8E0D4; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }-.screenshot-container { position: relative; }-.screenshot-label { position: absolute; top: 8px; right: 8px; background: #C85A3A; color: #FFFFFF; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }-```-------## WORKFLOW--### Step 1: Intake (ALL QUESTIONS MANDATORY)--Ask these questions before starting. Do not skip any unless the user has already provided the answer in their brief.--1. What is the content? (Paste content, describe topic, attach reference, or provide Notion link.)--2. What layout style?- - Step-by-step grid (numbered cards in a 2x3, 2x4, 3x3, or 3x4 grid)- - Flywheel / cycle (central cycle diagram with detail cards)- - Editorial reference (variable-width sections for dense content)- - Comparison table (side-by-side columns)- - Branching tree (vertical spine, horizontal branches)- - Flow diagram (linear pipeline or transformation)- - Mixed sections (varied section types)- - Or describe your own layout--3. Which theme? Light/warm (default), dark navy, or pastel colour blocks?--4. Do you have screenshots or images for any sections? If yes:- - Upload them now- - Tell me which section each screenshot belongs to- - Confirm the screenshots are high-resolution enough to be readable when embedded (minimum 400px wide at display size, text in screenshots must be legible)--5. Title and subtitle?--6. Reference image to match? (Attach one.)--How to decide the layout style: If the user describes a repeating loop or engine, suggest flywheel/cycle. If they have numbered steps, suggest step-by-step grid. If the content is dense with tables, commands, or code, suggest editorial reference. If they are comparing options, suggest comparison table. Present the options and let the user pick.--### Step 2: Legibility Gate (BLOCKING)--Before planning the layout, run this check. If any item fails, resolve it with the user before proceeding.--1. Count total sections from the brief. If sections exceed 12, warn the user that text will be small and confirm they accept compact sizing (minimum 10px body text).-2. If screenshots were provided, verify each one:- - Is the resolution high enough for the planned display width?- - Does text in the screenshot remain readable at the planned size?- - If not, ask the user for a higher-res version or suggest the screenshot gets a larger section (.full width instead of .half).-3. Estimate whether all content fits at the minimum font sizes. If it does not fit, propose one of:- - Splitting into two infographics- - Removing or condensing sections (with user approval)- - Switching to a denser layout style--Do not proceed until legibility is confirmed.--### Step 3: Plan the Layout--For visual teasers, plan the grid and visual element for each card.-For reference guides, plan the section widths and building blocks.-For flywheel layouts, plan the central cycle and surrounding cards.--Include a LEGIBILITY CHECK in the plan showing planned font sizes for each element type.--Get approval on this plan before building.--### Step 4: Build the HTML--Single self-contained HTML file. All CSS in a `<style>` block.--### Step 5: Render to PNG--```python-render_to_png("/home/claude/infographic.html", "/mnt/user-data/outputs/infographic.png")-```--### Step 6: Deliver the PNG-------## DIMENSIONS--```css-html { width: 1080px; height: 1350px; max-width: 1080px; max-height: 1350px; min-width: 1080px; min-height: 1350px; overflow: hidden; }-body { width: 1080px; height: 1350px; max-width: 1080px; max-height: 1350px; margin: 0; padding: 0; overflow: hidden; }-```-------## TYPOGRAPHY--| Element | Weight | Size |-|---------|--------|------|-| Hero title | 700 | 40-56px (shrink to fit one line) |-| Subtitle | 400 | 16-18px |-| Section title | 700 | 16-20px, uppercase |-| Body text | 400 | 13-15px |-| Visual labels | 600 | 10-12px, uppercase |-| Code/monospace | 500 | 12-14px |-| Prompt label | 700 | 10px, uppercase, coral |-| Table header | 700 | 11px, uppercase |-| Table body | 400 | 12-13px |-| Footer CTA | 600 | 13-15px |--HARD FLOOR: No text element below 10px in the final output.-------## COLOUR CODING FOR NUMBER BADGES--| Step | Background | Text |-|------|-----------|------|-| 1 | #C85A3A | white |-| 2 | #2B5A3D | white |-| 3 | #5B7FA5 | white |-| 4 | #D4A853 | white |-| 5 | #C85A3A | white |-| 6+ | Cycle through the four colours |-------## GRID SELECTION (FOR VISUAL TEASER MODE)--| Sections | Grid | Notes |-|----------|------|-------|-| 4 | 2x2 | Spacious. Large visuals. Full prompt boxes. |-| 6 | 2x3 | Standard. Generous visual space. |-| 8 | 2x4 | Sweet spot. Visual + one-liner per card. |-| 9 | 3x3 | Compact. Visual-dominant. No prompt boxes. |-| 10 | 2x5 | Tight. One sentence max. No prompt boxes. |-| 12 | 3x4 | Dense. Visual fills 60%+ of card. No prompt boxes. |--### 3-Column Overrides (9-12 sections)-- Card title: 13-15px-- Body text: 10-11px, one sentence-- Visual labels: 9-10px (EXCEPTION: 9px permitted ONLY for visual labels in 3-column grids)-- No prompt boxes-- Card padding: 12-14px-- Grid gap: 10px-------## DESIGN RULES--1. Everything fits within 1080x1350. No overflow.-2. Readable at mobile LinkedIn feed size (~400px visible).-3. Hero title on ONE LINE. Use `white-space: nowrap`. Reduce font size if needed.-4. Use colour for hierarchy, not decoration.-5. Maximum 2 secondary accents per infographic (plus primary accent).-6. Light theme by default. Warm cream background (#FAF7F2).-7. No `<img>` tags unless user provides images.-8. Never cut sections from the brief. Every section in the brief appears in the output.-9. For grid layouts: every card has a visual element.-10. For reference layouts: data-heavy sections get more space than lighter sections.-11. Include ALL content from the brief.-12. No text below 10px (9px exception only for 3-col visual labels).-13. Screenshots must be legible at their display size.-------## PNG RENDER PIPELINE--### Setup (run once per conversation)--```python-import subprocess, os, tarfile, shutil, base64, glob--subprocess.run(["npm", "pack", "@fontsource/space-grotesk"], cwd="/home/claude", capture_output=True)-subprocess.run(["npm", "pack", "@fontsource/jetbrains-mono"], cwd="/home/claude", capture_output=True)--os.makedirs("/usr/local/share/fonts/custom", exist_ok=True)-os.makedirs("/home/claude/fonts", exist_ok=True)-os.makedirs("/home/claude/font-extract", exist_ok=True)--for tgz in glob.glob("/home/claude/fontsource-*.tgz"):- with tarfile.open(tgz, "r:gz") as tar:- tar.extractall("/home/claude/font-extract")--files_dir = "/home/claude/font-extract/package/files"-font_dir = "/usr/local/share/fonts/custom"--for slug, family in [("space-grotesk-latin", "Space Grotesk"), ("jetbrains-mono-latin", "JetBrains Mono")]:- for weight in ["400", "500", "600", "700"]:- src = f"{files_dir}/{slug}-{weight}-normal.woff2"- dst = f"{font_dir}/{slug}-{weight}-normal.woff2"- if os.path.exists(src):- shutil.copy2(src, dst)--subprocess.run(["fc-cache", "-f"], capture_output=True)--css_parts = []-for slug, family in [("space-grotesk-latin", "Space Grotesk"), ("jetbrains-mono-latin", "JetBrains Mono")]:- for weight in ["400", "500", "600", "700"]:- path = f"{font_dir}/{slug}-{weight}-normal.woff2"- if os.path.exists(path):- with open(path, "rb") as f:- b64 = base64.b64encode(f.read()).decode()- css_parts.append(f"@font-face {{ font-family: '{family}'; font-weight: {weight}; font-style: normal; src: url(data:font/woff2;base64,{b64}) format('woff2'); }}")--with open("/home/claude/fonts/font-faces.css", "w") as f:- f.write("\n".join(css_parts))--print("Fonts ready.")-```--### Render Function--```python-import re, os-from playwright.sync_api import sync_playwright--def render_to_png(html_path, png_path, width=1080, height=1350, scale=2):- with open(html_path) as f:- html = f.read()- with open("/home/claude/fonts/font-faces.css") as f:- font_css = f.read()-- html = re.sub(r'@import\s+url\([^)]+fonts\.googleapis\.com[^)]+\)\s*;?', '', html)- html = re.sub(r'<link[^>]+fonts\.googleapis\.com[^>]+>', '', html)- html = html.replace('<style>', f'<style>\n{font_css}\n', 1)-- temp = html_path + ".tmp.html"- with open(temp, "w") as f:- f.write(html)-- with sync_playwright() as p:- browser = p.chromium.launch()- page = browser.new_page(viewport={"width": width, "height": height}, device_scale_factor=scale)- page.goto(f"file://{os.path.abspath(temp)}")- page.wait_for_timeout(2000)- page.screenshot(path=png_path, full_page=False, clip={"x": 0, "y": 0, "width": width, "height": height})- browser.close()-- os.remove(temp)- print(f"Exported: {png_path}")-```-------## QUALITY CHECKLIST--Dimensions:-- [ ] html and body locked at 1080x1350--Header:-- [ ] "Charlie Hills" author name-- [ ] Title on ONE LINE (white-space: nowrap), mixed case with accent word(s)-- [ ] REPOST badge in top-right--Content:-- [ ] ALL sections from the brief are included. Nothing stripped.-- [ ] Mode matches the brief (teaser or reference guide)-- [ ] Layout style matches what was agreed in intake--Legibility (MANDATORY):-- [ ] No body text below 13px (10px floor for labels only)-- [ ] No text element below 10px anywhere (9px exception only for 3-col visual labels)-- [ ] All screenshots are readable at their display size-- [ ] Text inside screenshots is legible-- [ ] Content fits without overflow at minimum font sizes--For grid layouts (visual teaser):-- [ ] Every card has a visual element-- [ ] No two adjacent cards use the same visual type-- [ ] Number badges with solid colour circles--For reference layouts (editorial guide):-- [ ] Variable-width sections (.full, .half, .third)-- [ ] Data tables for commands, features, pricing-- [ ] Code blocks for CLI commands-- [ ] Pro tip / Common mistake boxes where applicable--For flywheel layouts:-- [ ] Central cycle diagram is the dominant visual-- [ ] Cycle nodes are clearly connected with arrows-- [ ] Supporting detail cards complement the cycle--Footer:-- [ ] CTA + REPOST badge--General:-- [ ] No content overflow-- [ ] Valid HTML-- [ ] Clean, editorial feel (not dashboard-like)diff --git a/skills/infographic-generator/assets/comparison-template.html b/skills/infographic-generator/assets/comparison-template.htmldeleted file mode 100644index e2dee11..0000000--- a/skills/infographic-generator/assets/comparison-template.html+++ /dev/null@@ -1,232 +0,0 @@-<!DOCTYPE html>-<html lang="en">-<head>- <meta charset="UTF-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>{{TITLE}}</title>- <style>- * {- margin: 0;- padding: 0;- box-sizing: border-box;- }-- body {- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;- background: #ffffff;- width: 1200px;- height: 1400px;- margin: 0;- padding: 40px;- }-- .container {- width: 100%;- height: 100%;- display: flex;- flex-direction: column;- }-- .header {- text-align: center;- margin-bottom: 40px;- }-- .main-title {- font-size: 56px;- font-weight: 700;- margin-bottom: 15px;- line-height: 1.1;- }-- .main-title .highlight {- color: #4285f4;- }-- .main-title .vs {- color: #1a1a1a;- }-- .subtitle {- font-size: 18px;- color: #5f6368;- font-weight: 400;- }-- .comparison-grid {- display: grid;- grid-template-columns: 1fr 1fr;- gap: 60px;- flex: 1;- }-- .column {- background: #ffffff;- border: 3px solid #4285f4;- border-radius: 15px;- padding: 30px;- display: flex;- flex-direction: column;- }-- .column-header {- text-align: center;- margin-bottom: 25px;- }-- .column-title {- font-size: 42px;- font-weight: 700;- color: #4285f4;- margin-bottom: 10px;- }-- .column-subtitle {- font-size: 20px;- color: #1a1a1a;- font-weight: 500;- }-- .icon-circle {- width: 140px;- height: 140px;- background: #e8f0fe;- border: 2px solid #4285f4;- border-radius: 50%;- margin: 0 auto 30px;- display: flex;- align-items: center;- justify-content: center;- font-size: 48px;- }-- .flow-section {- margin-bottom: 30px;- }-- .characteristics-title {- font-size: 28px;- font-weight: 700;- color: #1a1a1a;- text-align: center;- margin: 30px 0 25px;- }-- .characteristic {- display: flex;- align-items: flex-start;- margin-bottom: 20px;- }-- .char-icon {- width: 40px;- height: 40px;- min-width: 40px;- background: transparent;- border: 2px solid #4285f4;- border-radius: 50%;- margin-right: 15px;- display: flex;- align-items: center;- justify-content: center;- color: #4285f4;- font-size: 18px;- }-- .char-content h4 {- font-size: 18px;- font-weight: 700;- color: #1a1a1a;- margin-bottom: 5px;- }-- .char-content p {- font-size: 16px;- color: #5f6368;- line-height: 1.4;- }-- .examples-box {- background: #e8f0fe;- border: 2px solid #4285f4;- border-radius: 10px;- padding: 25px;- margin-top: auto;- text-align: center;- }-- .examples-box h3 {- font-size: 20px;- font-weight: 700;- color: #1a1a1a;- margin-bottom: 10px;- }-- .examples-box p {- font-size: 18px;- color: #5f6368;- line-height: 1.5;- }- </style>-</head>-<body>- <div class="container">- <div class="header">- <div class="main-title">- <span class="highlight">{{LEFT_TITLE}}</span>- <span class="vs"> VS. </span>- <span class="highlight">{{RIGHT_TITLE}}</span>- </div>- <div class="subtitle">{{SUBTITLE}}</div>- </div>-- <div class="comparison-grid">- <!-- LEFT COLUMN -->- <div class="column">- <div class="column-header">- <div class="column-title">{{LEFT_TITLE}}</div>- <div class="column-subtitle">{{LEFT_SUBTITLE}}</div>- </div>-- <div class="icon-circle">{{LEFT_ICON}}</div>-- <div class="flow-section">- {{LEFT_FLOW_CONTENT}}- </div>-- <div class="characteristics-title">CHARACTERISTICS</div>-- {{LEFT_CHARACTERISTICS}}-- <div class="examples-box">- <h3>Common Examples:</h3>- <p>{{LEFT_EXAMPLES}}</p>- </div>- </div>-- <!-- RIGHT COLUMN -->- <div class="column">- <div class="column-header">- <div class="column-title">{{RIGHT_TITLE}}</div>- <div class="column-subtitle">{{RIGHT_SUBTITLE}}</div>- </div>-- <div class="icon-circle">{{RIGHT_ICON}}</div>-- <div class="flow-section">- {{RIGHT_FLOW_CONTENT}}- </div>-- <div class="characteristics-title">CHARACTERISTICS</div>-- {{RIGHT_CHARACTERISTICS}}-- <div class="examples-box">- <h3>Common Examples:</h3>- <p>{{RIGHT_EXAMPLES}}</p>- </div>- </div>- </div>- </div>-</body>-</html>diff --git a/skills/infographic-generator/assets/framework-template.html b/skills/infographic-generator/assets/framework-template.htmldeleted file mode 100644index 9d949e3..0000000--- a/skills/infographic-generator/assets/framework-template.html+++ /dev/null@@ -1,159 +0,0 @@-<!DOCTYPE html>-<html lang="en">-<head>- <meta charset="UTF-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>{{TITLE}}</title>- <style>- * {- margin: 0;- padding: 0;- box-sizing: border-box;- }-- body {- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;- background: #ffffff;- width: 1200px;- height: 1400px;- margin: 0;- padding: 40px;- }-- .container {- width: 100%;- height: 100%;- display: flex;- flex-direction: column;- }-- .header {- text-align: center;- margin-bottom: 40px;- }-- .main-title {- font-size: 56px;- font-weight: 700;- color: #4285f4;- margin-bottom: 15px;- line-height: 1.1;- }-- .subtitle {- font-size: 20px;- color: #5f6368;- font-weight: 400;- }-- .framework-grid {- display: grid;- grid-template-columns: repeat(2, 1fr);- gap: 30px;- flex: 1;- }-- .framework-item {- background: #ffffff;- border: 3px solid #4285f4;- border-radius: 15px;- padding: 30px;- display: flex;- flex-direction: column;- }-- .item-icon {- width: 80px;- height: 80px;- background: #e8f0fe;- border: 2px solid #4285f4;- border-radius: 50%;- display: flex;- align-items: center;- justify-content: center;- font-size: 36px;- margin: 0 auto 20px;- }-- .item-title {- font-size: 32px;- font-weight: 700;- color: #1a1a1a;- text-align: center;- margin-bottom: 15px;- }-- .item-description {- font-size: 18px;- color: #5f6368;- line-height: 1.6;- text-align: center;- }-- .key-points {- margin-top: 20px;- padding-top: 20px;- border-top: 2px solid #e8f0fe;- }-- .key-point {- display: flex;- align-items: flex-start;- margin-bottom: 12px;- }-- .key-point::before {- content: "→";- color: #4285f4;- font-size: 20px;- font-weight: 700;- margin-right: 10px;- min-width: 20px;- }-- .key-point span {- font-size: 16px;- color: #5f6368;- line-height: 1.5;- }-- .footer {- background: #e8f0fe;- border-radius: 10px;- padding: 30px;- text-align: center;- margin-top: 30px;- }-- .footer-title {- font-size: 24px;- font-weight: 700;- color: #1a1a1a;- margin-bottom: 15px;- }-- .footer-text {- font-size: 18px;- color: #5f6368;- line-height: 1.6;- }- </style>-</head>-<body>- <div class="container">- <div class="header">- <div class="main-title">{{TITLE}}</div>- <div class="subtitle">{{SUBTITLE}}</div>- </div>-- <div class="framework-grid">- {{FRAMEWORK_ITEMS}}- </div>-- <div class="footer">- <div class="footer-title">{{FOOTER_TITLE}}</div>- <div class="footer-text">{{FOOTER_TEXT}}</div>- </div>- </div>-</body>-</html>diff --git a/skills/infographic-generator/assets/process-template.html b/skills/infographic-generator/assets/process-template.htmldeleted file mode 100644index ed463e9..0000000--- a/skills/infographic-generator/assets/process-template.html+++ /dev/null@@ -1,143 +0,0 @@-<!DOCTYPE html>-<html lang="en">-<head>- <meta charset="UTF-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>{{TITLE}}</title>- <style>- * {- margin: 0;- padding: 0;- box-sizing: border-box;- }-- body {- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;- background: #ffffff;- width: 1200px;- height: 1400px;- margin: 0;- padding: 40px;- }-- .container {- width: 100%;- height: 100%;- display: flex;- flex-direction: column;- }-- .header {- text-align: center;- margin-bottom: 50px;- }-- .main-title {- font-size: 56px;- font-weight: 700;- color: #4285f4;- margin-bottom: 15px;- line-height: 1.1;- }-- .subtitle {- font-size: 20px;- color: #5f6368;- font-weight: 400;- }-- .process-container {- flex: 1;- display: flex;- flex-direction: column;- justify-content: center;- align-items: center;- gap: 40px;- }-- .step {- width: 100%;- max-width: 900px;- background: #ffffff;- border: 3px solid #4285f4;- border-radius: 15px;- padding: 30px 40px;- display: flex;- align-items: center;- gap: 30px;- position: relative;- }-- .step-number {- min-width: 80px;- height: 80px;- background: #4285f4;- color: #ffffff;- border-radius: 50%;- display: flex;- align-items: center;- justify-content: center;- font-size: 36px;- font-weight: 700;- }-- .step-content {- flex: 1;- }-- .step-title {- font-size: 28px;- font-weight: 700;- color: #1a1a1a;- margin-bottom: 8px;- }-- .step-description {- font-size: 18px;- color: #5f6368;- line-height: 1.5;- }-- .arrow {- width: 60px;- height: 60px;- margin: 0 auto;- display: flex;- align-items: center;- justify-content: center;- font-size: 48px;- color: #4285f4;- }-- .footer-note {- text-align: center;- margin-top: 40px;- padding: 25px;- background: #e8f0fe;- border-radius: 10px;- }-- .footer-note p {- font-size: 18px;- color: #5f6368;- line-height: 1.6;- }- </style>-</head>-<body>- <div class="container">- <div class="header">- <div class="main-title">{{TITLE}}</div>- <div class="subtitle">{{SUBTITLE}}</div>- </div>-- <div class="process-container">- {{STEPS}}- </div>-- <div class="footer-note">- <p>{{FOOTER_NOTE}}</p>- </div>- </div>-</body>-</html>diff --git a/skills/infographic-generator/references/design-guidelines.md b/skills/infographic-generator/references/design-guidelines.mddeleted file mode 100644index 9ca1066..0000000--- a/skills/infographic-generator/references/design-guidelines.md+++ /dev/null@@ -1,127 +0,0 @@-# Infographic Design Guidelines--## Color Palette--### Primary Colors-- **Primary Blue**: `#4285f4` (main brand color, used for titles, borders, accents)-- **Light Blue Background**: `#e8f0fe` (used for boxes, backgrounds, subtle highlights)-- **Dark Text**: `#1a1a1a` (primary text color, headings)-- **Medium Text**: `#5f6368` (secondary text, descriptions, body copy)-- **White**: `#ffffff` (backgrounds, clean space)--### Color Usage Rules-- Use Primary Blue for all main titles, borders, and call-to-action elements-- Light Blue Background for boxes, examples sections, footer notes-- Dark Text for all headings and important labels-- Medium Text for body copy, descriptions, and supporting text-- Maintain high contrast ratios for accessibility (4.5:1 minimum)--## Typography--### Font Stack-Use system fonts for performance and consistency:-```css-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;-```--### Font Sizes-- **Main Title**: 56px (bold, primary blue)-- **Column/Section Titles**: 42px (bold, primary blue)-- **Subsection Titles**: 28px (bold, dark text)-- **Body Text**: 18px (regular, medium text)-- **Small Labels**: 16px (regular, medium text)-- **Subtitles**: 20px (regular, medium text)--### Font Weights-- 700 (bold): Titles, headings, labels-- 500 (medium): Subtitles, emphasis-- 400 (regular): Body text, descriptions--## Layout Specifications--### Canvas Dimensions-- **Standard Size**: 1200px × 1400px-- **Padding**: 40px on all sides-- **Maintains LinkedIn carousel aspect ratio**--### Grid Systems-- **Comparison Layout**: 2-column grid with 60px gap-- **Process Flow**: Single column, centered, max-width 900px-- **Framework**: 2×2 or 2×3 grid with 30px gaps--### Spacing-- Section margins: 30-50px-- Element margins: 15-25px-- Internal padding: 25-40px-- Line height: 1.4-1.6 for readability--## Component Styles--### Boxes and Cards-- Border: 3px solid Primary Blue-- Border radius: 15px-- Background: White or Light Blue-- Padding: 30px--### Icon Circles-- Diameter: 80-140px depending on hierarchy-- Background: Light Blue Background-- Border: 2px solid Primary Blue-- Center icon/emoji with good contrast--### Buttons and CTAs-Not typically used in infographics but if needed:-- Background: Primary Blue-- Text: White-- Padding: 15px 30px-- Border radius: 8px--## Content Structure--### Hierarchy-1. Main title (largest, most prominent)-2. Subtitle (explains the content)-3. Section titles (organize content)-4. Body content (details and descriptions)-5. Examples/notes (supporting information)--### Text Length Guidelines-- Main title: 2-6 words-- Subtitles: 5-10 words-- Section titles: 2-4 words-- Body text: 10-25 words per paragraph-- Keep everything scannable and concise--## Export Settings--### For LinkedIn-- Format: PNG-- Resolution: 2x (2400px × 2800px) for clarity-- Compression: Medium quality (balance size and clarity)-- Color space: sRGB--### For Web-- Format: PNG or SVG-- Resolution: 1x (1200px × 1400px)-- Optimize file size for loading speed--## Professional Standards--### Quality Checklist-☑ All text is readable at actual size-☑ Proper contrast ratios maintained-☑ No overlapping elements-☑ Consistent spacing throughout-☑ Aligned elements on grid-☑ No orphaned text-☑ Proper hierarchy visible at a glance-☑ Brand colors used consistently-☑ Professional, clean aesthetic--### Common Mistakes to Avoid-- Too much text (keep concise)-- Poor contrast (ensure readability)-- Inconsistent spacing (use grid system)-- Cluttered layouts (embrace white space)-- Too many colors (stick to palette)-- Misaligned elements (use CSS Grid/Flexbox)diff --git a/skills/infographic-generator/references/template-guide.md b/skills/infographic-generator/references/template-guide.mddeleted file mode 100644index 8d091c1..0000000--- a/skills/infographic-generator/references/template-guide.md+++ /dev/null@@ -1,182 +0,0 @@-# Template Selection Guide--## When to Use Each Template--### Comparison Template (`comparison-template.html`)-**Use when:** Comparing two concepts, approaches, or methods side by side--**Best for:**-- X vs Y comparisons-- Traditional vs Modern approaches-- Tool A vs Tool B-- Before/After scenarios-- Pros/Cons visualizations--**Structure:**-- Two equal columns-- Icon circles at top of each column-- Characteristics sections-- Examples boxes at bottom-- Clear visual separation--**Example use cases:**-- "AI Agents vs Agentic AI"-- "Manual Process vs Automated Process"-- "Old Method vs New Method"--### Process Template (`process-template.html`)-**Use when:** Showing sequential steps or a workflow--**Best for:**-- Step-by-step guides-- Workflows and processes-- Sequential methodologies-- Implementation guides-- Timeline visualizations--**Structure:**-- Numbered steps in vertical flow-- Arrows between steps-- Step descriptions-- Optional footer note--**Example use cases:**-- "5 Steps to AI Implementation"-- "Content Creation Workflow"-- "From Idea to Launch Process"--### Framework Template (`framework-template.html`)-**Use when:** Explaining a methodology, system, or concept with multiple components--**Best for:**-- Frameworks (SCALE, VIRAL, etc.)-- Methodologies-- Systems with 4-6 components-- Concept breakdowns-- Principle explanations--**Structure:**-- 2×2 or 2×3 grid layout-- Icon for each component-- Key points per component-- Summary footer--**Example use cases:**-- "The SCALE Framework"-- "4 Pillars of AI Marketing"-- "Core Components of Automation"--## Template Variable Reference--### Comparison Template Variables-- `{{TITLE}}`: Document title (not displayed)-- `{{LEFT_TITLE}}`: Left column main title-- `{{RIGHT_TITLE}}`: Right column main title-- `{{SUBTITLE}}`: Explaining subtitle below main title-- `{{LEFT_SUBTITLE}}`: Left column subtitle-- `{{RIGHT_SUBTITLE}}`: Right column subtitle-- `{{LEFT_ICON}}`: Left column icon (emoji or symbol)-- `{{RIGHT_ICON}}`: Right column icon (emoji or symbol)-- `{{LEFT_FLOW_CONTENT}}`: Left column flow diagram HTML-- `{{RIGHT_FLOW_CONTENT}}`: Right column flow diagram HTML-- `{{LEFT_CHARACTERISTICS}}`: Left column characteristics HTML-- `{{RIGHT_CHARACTERISTICS}}`: Right column characteristics HTML-- `{{LEFT_EXAMPLES}}`: Left column examples text-- `{{RIGHT_EXAMPLES}}`: Right column examples text--### Process Template Variables-- `{{TITLE}}`: Main process title-- `{{SUBTITLE}}`: Process description-- `{{STEPS}}`: HTML for all steps (repeating structure)-- `{{FOOTER_NOTE}}`: Optional footer note--### Framework Template Variables-- `{{TITLE}}`: Framework name-- `{{SUBTITLE}}`: Framework description-- `{{FRAMEWORK_ITEMS}}`: HTML for all framework components (repeating structure)-- `{{FOOTER_TITLE}}`: Summary/conclusion title-- `{{FOOTER_TEXT}}`: Summary/conclusion text--## Generating Content for Templates--### Step 1: Analyze the Request-Determine which template fits best based on:-- Content structure (comparison, process, framework)-- Number of elements (2 items = comparison, 3-6 items = framework, sequential = process)-- Relationship between elements (opposing, sequential, complementary)--### Step 2: Extract Content-Parse the input to identify:-- Main concepts/titles-- Descriptions and details-- Characteristics or features-- Examples or use cases-- Icons/emojis that represent concepts--### Step 3: Structure the HTML-Generate clean, properly formatted HTML for:-- Repeating elements (characteristics, steps, framework items)-- Proper nesting and indentation-- Semantic HTML structure--### Step 4: Quality Check-Verify:-- All variables replaced-- No placeholder text remains-- HTML is valid and properly closed-- Text length is appropriate-- Content fits within design constraints--## HTML Snippet Patterns--### Characteristic Block (for Comparison Template)-```html-<div class="characteristic">- <div class="char-icon">☑</div>- <div class="char-content">- <h4>Title Here:</h4>- <p>Description text here.</p>- </div>-</div>-```--### Process Step (for Process Template)-```html-<div class="step">- <div class="step-number">1</div>- <div class="step-content">- <div class="step-title">Step Title</div>- <div class="step-description">Step description text here.</div>- </div>-</div>-<div class="arrow">↓</div>-```--### Framework Item (for Framework Template)-```html-<div class="framework-item">- <div class="item-icon">📊</div>- <div class="item-title">Component</div>- <div class="item-description">Description here.</div>- <div class="key-points">- <div class="key-point"><span>Key point 1</span></div>- <div class="key-point"><span>Key point 2</span></div>- <div class="key-point"><span>Key point 3</span></div>- </div>-</div>-```--## Icons and Emojis--### Recommended Icons by Category-- **Technology**: 🤖 💻 ⚙️ 🔧 📱 🖥️-- **Process**: ➡️ ↓ ↑ ⚡ 🔄 ⭐-- **People**: 👤 👥 🎯 💡 🧠 📊-- **Success**: ✅ ☑️ 💪 🚀 📈 🎯-- **Learning**: 📚 🎓 💡 🧩 📝 🔍--### Icon Placement Rules-- Use simple, recognizable icons-- One icon per section maximum-- Ensure good contrast with background-- Size appropriately for context