Python
Initial commit: 7 foundation skills + README
Charlie Hillscf774fa4e51c
diff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..e7ccefe--- /dev/null+++ b/.gitignore@@ -0,0 +1,5 @@+.DS_Store+*.skill+node_modules/+.env+.env.localdiff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000..82feab7--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 Charlie Hills++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/README.md b/README.mdnew file mode 100644index 0000000..73b72aa--- /dev/null+++ b/README.md@@ -0,0 +1,93 @@+# Social Media Skills++The full set of Claude skills behind Charlie Hills' content system. 350,000+ followers across LinkedIn, Instagram, Substack, X, and YouTube. 100m+ views this year. All run through one system that starts with the newsletter and flows out to every other channel.++If you want the full story of how this system runs, read the newsletter issue here: https://charliehills.substack.com++## How the system flows++```+Newsletter (source)+ ├── LinkedIn post (graphic first, then caption, then scored)+ ├── Instagram Reel (script, voice, avatar, motion graphics)+ ├── YouTube thumbnail (generated before the script)+ └── Pin comment (meme caption + image prompt)+```++Every skill in this repo plugs into one of those layers.++## Install++Each folder is a standalone Claude skill. Zip the folder and upload it to Claude (Customise skills → Upload skill file), or drop the SKILL.md directly into `~/.claude/skills/` if you are running Claude Code.++```bash+# Zip a single skill for upload to the Claude desktop app+cd social-media-skills+zip -r voice-builder.skill voice-builder++# Or copy every skill into Claude Code+cp -r */ ~/.claude/skills/+```++## Layer 1: Voice foundation++Install these first. Every other skill references the files they produce.++| Skill | What it does |+|---|---|+| [voice-builder](./voice-builder) | Interview + sample analysis. Writes `about-me.md` and `voice.md` into your project root |+| [newsletter-voice](./newsletter-voice) | Adds newsletter-specific rules on top of voice-builder. Writes `newsletter-voice.md` |++Run voice-builder first. Then newsletter-voice.++## Layer 2: LinkedIn++The graphic-first workflow: design the visual before you write the caption, then score the whole thing against your own post history.++| Skill | What it does |+|---|---|+| [profile-optimizer](./profile-optimizer) | Rebuilds headline, about, experience, featured section, plus 4 image generation prompts |+| [post-writer](./post-writer) | Drafts posts in your voice using the voice files |+| [graphic-designer](./graphic-designer) | Picks between HTML/CSS graphic or AI-generated infographic |+| [infographic-generator](./infographic-generator) | The full Claude Code infographic workflow with templates, brand rules, and layout guides |+| [post-scorer](./post-scorer) | Pulls your post history via Apify and scores any draft against what actually works for you |++Run profile-optimizer first. Traffic from posts lands on your profile, so fix that before shipping.++## Layer 3: Video++| Skill | What it does |+|---|---|+| reels-scripting | Scripts Instagram Reels from newsletter content, using outlier reels as reference |+| youtube-thumbnail | Builds a branded YouTube thumbnail before you write the script |++## Layer 4: Community++| Skill | What it does |+|---|---|+| pinned-comment | Writes the pinned meme comment plus an image generation prompt |++## Standalone LinkedIn skills++Smaller skills for specific jobs. Install the ones you need.++| Skill | What it does |+|---|---|+| hook-generator | Six clickbait-style hook variations per topic |+| post-formatter | Turns a topic into a ready-to-publish post using PAS, AIDA, BAB, STAR, or SLAY frameworks |+| content-matrix | Pairs pillars with 8 formats for 32+ post ideas in one table |+| perplexity-research | Surfaces the 20 most relevant stories in your niche from the last 7 days |+| gemini-infographic | The whiteboard prompt that pulled 480k impressions from 3 posts |+| gemini-carousel | Branded slide-by-slide carousel generator with approval step |+| quote-post | Claude writes the quote, Gemini recreates the image with the quote baked in |+| analytics-dashboard | Turns a LinkedIn export into a scatter plot, audience breakdown, growth projection, and 5 data-backed recommendations |++## Shortcut: use Stanley++If setting up this stack sounds like a lot, Stanley runs the whole Layer 2 flow for you. Give it a topic, get back a post in your voice with a matching graphic. 14-day free trial: https://www.stanleyhq.com++## License++MIT. Do whatever you like with these. If they help you, a link back to the newsletter is appreciated.++— Charlie Hillsdiff --git a/graphic-designer/SKILL.md b/graphic-designer/SKILL.mdnew file mode 100644index 0000000..e44ca9a--- /dev/null+++ b/graphic-designer/SKILL.md@@ -0,0 +1,149 @@+---+name: graphic-designer+description: >+ Create LinkedIn post graphics. Decides between an HTML/CSS structured graphic or an AI-generated infographic based on the post content. Use this skill whenever the user says "design a graphic", "create a visual", "make an image", "graphic for my post", "LinkedIn image", or wants any visual content to pair with a LinkedIn post. Also trigger when the user finishes writing a post and wants a matching graphic.+---++# Graphic Designer++## CRITICAL: Auto-start on load++When this skill triggers, go straight to Step 1. Do not summarise. Do not explain options. Start immediately.++## Step 1. Read the post++Check the project for the most recent post file. If found, read it. If not, say:++> Paste the post you want a graphic for.++Wait for the post, then call AskUserQuestion:++```json+[+ {+ "question": "What type of graphic fits this post best?",+ "header": "Style",+ "multiSelect": false,+ "options": [+ {"label": "HTML/CSS graphic", "description": "Clean structured layout. Framework, comparison, steps, data. Fully editable, screenshot to export."},+ {"label": "Whiteboard infographic", "description": "Hand-drawn marker style on a whiteboard or notebook page. Recaps the post visually. Generated in Gemini."},+ {"label": "Branded infographic", "description": "Professional infographic using your brand colours. Recaps the post visually. Generated in Gemini."},+ {"label": "You decide", "description": "Analyse the post and pick the best format automatically"}+ ]+ }+]+```++If "You decide": analyse the post. If it contains numbered steps, frameworks, comparisons, or data tables, go Path A (HTML/CSS). If it recaps a workflow, shares tips, teaches a concept, or tells a story, go Path B (image prompt) and pick whichever style fits better.++## Path A: HTML/CSS structured graphic++Design constraints:+- 1200 x 1400 pixels (LinkedIn optimal)+- Dark background (#1a1a2e or user's brand colour) with high contrast text+- Clean sans-serif font (Inter, system-ui)+- White or light text on dark background+- One accent colour for highlights and dividers+- 40px minimum padding on all sides+- No stock photo backgrounds+- Let the post content dictate how many sections the graphic has. 3 steps = 3 blocks. 10 tips = 10 blocks. The constraint is legibility, not a fixed number. Every element must be large enough to read on a mobile screen.++Single self-contained HTML file with inline CSS. Include viewport meta tag.++Extract the core framework or steps from the post. Do not copy the full post. Distil into:+- A short headline (5 to 8 words)+- Key points as visual blocks (Unicode icons fine)+- Footer with author name from about-me.md if available++Save the HTML file. Tell the user:++> Open the HTML in your browser and screenshot it.++## Path B: Image generation prompt++The graphic must recap the post content visually. It is not an abstract illustration or stock photo. It summarises the key information from the post in a visual format the reader can scan.++First, extract the content for the infographic from the post:+- The main headline or hook (shortened to 5 to 10 words)+- 3 to 6 key points, steps, or takeaways (one short line each)+- Any numbers, stats, or data worth highlighting+- A footer line (author name and CTA if appropriate)++Then build the prompt based on the chosen style.++### Style 1: Whiteboard infographic++Use this prompt template. Fill in the content sections from the post.++```+Generate a single image of a physical, hand-drawn infographic on a large whiteboard or notebook page.++Crucial Style Instructions (Read First):+Medium: The image must look like a photograph of a real whiteboard or large paper notepad.+Texture: All elements must look created by hand using colored marker pens (black, blue, red, green) and highlighters (yellow/orange). Lines should be slightly imperfect, wobbly, and have the texture of ink on a surface.+No Digital Fonts: All text, headings, and bullet points must appear handwritten or hand-printed in marker pen.++Layout: Structure the 1080x1350 image as follows:++TITLE (large, bold marker, top of page):+[Insert headline from the post]++CONTENT (hand-drawn sections with marker pen):+[Insert 3 to 6 key points, each as a short hand-written line with a bullet, number, or small icon drawn next to it]++[If there are stats or numbers, draw them large with a circle or box around them]++Use multi-colored markers for emphasis. Keep text large and legible. Make everything look hand-drawn with slight imperfections. Make it look like a photograph of an actual notebook page.++Always include the handwritten text "[Author name from about-me.md] | Repost" at the bottom of the image, in the same hand-drawn marker style.+```++### Style 2: Branded infographic++Ask the user for brand colours if not already known. If about-me.md exists, check there first.++```+Generate a professional infographic image at 1080x1350 pixels.++Style: Clean, modern, editorial. Flat design with sharp edges and strong typography. No 3D effects, no gradients, no stock photos.++Colour palette:+- Background: [primary brand colour or dark neutral]+- Text: [white or high-contrast colour]+- Accent: [secondary brand colour]++Layout:+HEADLINE (top, large bold text):+[Insert headline from the post]++BODY (structured sections, each with an icon or number):+[Insert 3 to 6 key points as short lines, each with a visual marker: numbered circle, checkmark, or simple icon]++[If there are stats, display them as large feature numbers with a label underneath]++FOOTER:+[Author name from about-me.md] | [CTA or tagline if appropriate]++Keep text large and scannable. Maximum 40 words on the entire image. No decorative borders. No watermarks. No logos unless the user provides one.+```++Output the complete prompt in a code block. Tell the user:++> Paste this into Gemini or your image generator. The prompt is ready to go.++## After either path++Say:++> Graphic ready. Say "score my post" when you want feedback before publishing.++## Rules++- Always read the post before designing. The graphic must recap the post content, not illustrate an abstract concept.+- Structured graphics (Path A) must be a single HTML file with inline CSS.+- Image prompts (Path B) must be fully self-contained. The user pastes it cold into Gemini and gets the graphic.+- Extract and distil the post content into the graphic. No copying the full post text.+- Whiteboard style: always hand-drawn marker look, imperfect lines, coloured pens, notebook/whiteboard texture.+- Branded style: always clean, flat, modern, using the user's brand colours.+- Never use em dashes in any output.+- British English throughout.diff --git a/infographic-generator/SKILL.md b/infographic-generator/SKILL.mdnew file mode 100644index 0000000..6a23dd4--- /dev/null+++ b/infographic-generator/SKILL.md@@ -0,0 +1,546 @@+---+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/infographic-generator/assets/comparison-template.html b/infographic-generator/assets/comparison-template.htmlnew file mode 100644index 0000000..e2dee11--- /dev/null+++ b/infographic-generator/assets/comparison-template.html@@ -0,0 +1,232 @@+<!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/infographic-generator/assets/framework-template.html b/infographic-generator/assets/framework-template.htmlnew file mode 100644index 0000000..9d949e3--- /dev/null+++ b/infographic-generator/assets/framework-template.html@@ -0,0 +1,159 @@+<!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/infographic-generator/assets/process-template.html b/infographic-generator/assets/process-template.htmlnew file mode 100644index 0000000..ed463e9--- /dev/null+++ b/infographic-generator/assets/process-template.html@@ -0,0 +1,143 @@+<!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/infographic-generator/references/design-guidelines.md b/infographic-generator/references/design-guidelines.mdnew file mode 100644index 0000000..9ca1066--- /dev/null+++ b/infographic-generator/references/design-guidelines.md@@ -0,0 +1,127 @@+# 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/infographic-generator/references/template-guide.md b/infographic-generator/references/template-guide.mdnew file mode 100644index 0000000..8d091c1--- /dev/null+++ b/infographic-generator/references/template-guide.md@@ -0,0 +1,182 @@+# 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 contextdiff --git a/newsletter-voice/SKILL.md b/newsletter-voice/SKILL.mdnew file mode 100644index 0000000..7aa2df9--- /dev/null+++ b/newsletter-voice/SKILL.md@@ -0,0 +1,172 @@+---+name: newsletter-voice+description: >+ Build newsletter writing instructions inside a Cowork project. Runs after voice-builder. Produces newsletter-voice.md, a single file Claude references when drafting newsletters in the user's voice. Works with or without existing newsletter samples: if the user has past issues, the skill analyses them; if not, the skill offers 6 archetypes tuned to the user's voice. Trigger whenever the user says "build my newsletter voice", "learn my newsletter style", "set up my newsletter system", "train on my newsletters", "newsletter onboarding", or drops newsletter samples into chat asking for an analysis. Requires voice-builder to have run first: the skill needs voice.md and about-me.md in the project to work.+---++# Newsletter Voice++## Prerequisites check++The moment this skill is triggered, check the project root for voice.md and about-me.md.++If either file is missing, tell the user:++> Newsletter voice sits on top of your general voice profile. Run voice-builder first (upload the skill or say "build my voice"), then come back here once about-me.md and voice.md are in the project.++Then stop. Do not continue until both files exist.++If both files exist, read them fully, then go straight to Step 1.++## Step 1. Check for samples++Ask the user in chat:++> Do you have 2 to 3 past newsletter issues I can learn from?+>+> Yes: paste them here (one per message or all at once)+> No: type "archetype" and I will build from a template tuned to your voice++Wait for response.++If the user pastes 2 or more newsletters, go to Step 2a.+If the user types "archetype", go to Step 2b.+If the user pastes 1 newsletter, ask for at least one more. If they only have one, offer: "One sample is not enough for pattern detection. Want me to switch to archetype mode and use your one newsletter as a reference point?"++## Step 2a. Sample-based analysis++Read every newsletter fully. Look for patterns across issues, not one-off quirks. Extract:++**Opening formula**+- What the first 3 sentences do (specific result, cultural observation, claim, scene, question)+- Length of the opening section before the first structural break+- Credibility move (how the author establishes authority early)+- Value promise (what the reader is told they will get)++**Section structure**+- Problem or contrast setup+- Named framework or free prose+- Numbered steps, methods, or continuous argument+- Examples and evidence patterns+- Bonus or extension section+- Closing formula and signoff++**Data philosophy**+- Specific numbers per issue (count them)+- Source attribution style (linked, named, uncredited)+- Example-to-abstraction ratio+- Limitation or failure acknowledgements++**Formatting**+- Header usage (frequency, hierarchy)+- List usage (numbered, bulleted, arrows)+- Bold and italic usage+- Prompt, code block, or blockquote formatting+- Visual markers (arrows, checkmarks, emojis if any)++**Length**+- Word count range across samples+- Section word counts++**Voice markers unique to newsletter format**+- Pro tips or callouts (frequency, format)+- Forward-looking closings+- Signoff phrase if consistent across samples+- Meta-transparency (does the author reflect on the process or ask for feedback)++**Absence signals**+- Words, constructions, or structures absent from every sample+- Closing moves the author never uses+- Topics the author never touches++Then go to Step 3.++## Step 2b. Archetype selection++Call the AskUserQuestion tool with a single question:++```json+[+ {+ "question": "Which newsletter archetype fits what you want to write?",+ "header": "Archetype",+ "multiSelect": false,+ "options": [+ {"label": "Data tutorial", "description": "Numbers, frameworks, step-by-step methods with prompts"},+ {"label": "Contrarian essay", "description": "Take a position, defend it, name the opposition"},+ {"label": "Case study teardown", "description": "One subject per issue, unpacked in depth"},+ {"label": "Curated digest", "description": "5 to 7 links with your commentary each week"},+ {"label": "Personal essay", "description": "Reflection on a theme, story-first"},+ {"label": "Interview or profile", "description": "One person per issue, Q and A or narrative"}+ ]+ }+]+```++After the user picks an archetype, load the matching defaults from `references/archetypes.md` inside this skill folder. Tune every field using voice.md and about-me.md before writing newsletter-voice.md. Flag inside the output file that archetype defaults were used and the file should be revisited after 5 published issues.++## Step 3. Write newsletter-voice.md++Create newsletter-voice.md in the project root. Single file, 800 to 1,200 words target. Use this structure:++```+# Newsletter Voice++## Source+[Sample-based: analysed X newsletter issues] OR [Archetype-based: [archetype name] tuned to voice.md. Revisit after 5 published issues.]++## Audience and purpose+[Who reads this newsletter and what they get from it. Written from about-me.md and voice.md. 2 to 3 sentences.]++## Voice principles+[3 to 5 core principles the writing always holds. Each one a short declarative sentence. Tuned to this user's voice.md.]++## Opening formula+[How issues start. Include 2 concrete templates with bracketed placeholders, e.g. "[Specific result with number]. [Credibility marker]. [Value promise for this issue]." Target word count for the opening section.]++## Section flow+[Standard structure of an issue, section by section, 5 to 8 sections max. Brief notes on what each section does and how long it runs.]++## Data and evidence+[How numbers and examples are used. Specific rules, e.g. "every claim needs a number", "sources linked inline", "example-to-abstraction ratio roughly 3:1".]++## Formatting rules+[Headers, lists, bold, italic, code blocks, visual markers. What to use, what to avoid. Drawn from samples or archetype defaults.]++## Closing and signoff+[How issues end. Forward-looking statement versus summary. Signoff phrase if a consistent one exists across samples (do not invent one).]++## What this newsletter never does+[1 short paragraph or 3 to 5 items. Drawn from absence patterns across samples or archetype defaults. Behaviours only, not a banned-words list.]++## Length+[Word count target for standard issues. Separate target for longer comprehensive guides if the user writes both formats.]+```++Fill every section from the samples (or tuned archetype defaults). No generic filler. If the samples do not cover something, say "no clear pattern across samples" rather than guessing.++## Step 4. Confirm and hand off++Tell the user:++> Your newsletter voice is built. newsletter-voice.md is in your project root alongside about-me.md and voice.md. When you want to draft an issue, say "write a newsletter" and I will use all three files together.+>+> [If archetype mode: Remember this file was built from archetype defaults. After 5 or so published issues, re-run this skill with your real samples for a sharper profile.]++## What this skill produces++One file in the project root:++- newsletter-voice.md: newsletter-specific writing instructions covering audience, voice principles, opening formula, section flow, data philosophy, formatting, closing, absence patterns, and length targets++## Rules++- Require voice.md and about-me.md in the project root before running. Stop and redirect to voice-builder if either is missing.+- Minimum 2 newsletter samples if the user chooses sample-based mode. Offer archetype mode if fewer.+- Keep newsletter-voice.md under 1,200 words. Tight beats exhaustive.+- Do not invent voice signals. Work only from samples or archetype defaults tuned to voice.md.+- Do not duplicate content from voice.md. Reference it where relevant. newsletter-voice.md adds newsletter-specific rules only.+- Do not bake in the user's specific names, URLs, or signoff phrases unless they appear consistently across 2 or more samples.+- Do not produce a separate voice or banned-words file. Absence patterns live inside newsletter-voice.md as a single section.+- British English throughout unless samples are clearly American.+- Never use em dashes in any output file or in any draft.diff --git a/newsletter-voice/references/archetypes.md b/newsletter-voice/references/archetypes.mdnew file mode 100644index 0000000..fe7f76c--- /dev/null+++ b/newsletter-voice/references/archetypes.md@@ -0,0 +1,189 @@+# Newsletter Archetype Defaults++Loaded when a user runs newsletter-voice without sample newsletters. Each archetype provides default structure. Always tune every field using voice.md and about-me.md before writing newsletter-voice.md. Flag inside the output that archetype defaults were used and recommend revisiting after 5 published issues.++---++## 1. Data tutorial++Best for: users who teach with numbers, frameworks, and step-by-step methods.++**Opening formula**+Lead with a specific result (impressions, revenue, time saved, conversion rate). Add a credibility marker in one line. End with a value promise for this issue.++Template: "[Specific number and result]. [Credibility marker in one line]. By the end of this issue, you will [concrete outcome]."++**Section flow**+1. Hook (specific result plus promise) — 50 to 100 words+2. Problem (what most people do wrong) — 100 to 200 words+3. Framework introduction (named approach with 2 to 3 variants) — 100 to 150 words+4. Step-by-step breakdown (numbered, with prompts or examples) — 200 to 400 words per step+5. Examples with real results — 100 to 200 words each+6. Bonus application (optional) — 200 to 300 words+7. Closing (forward-looking plus signoff) — 50 to 100 words++**Data philosophy**+Every claim backed by a specific number. Sources linked inline. Example-to-abstraction ratio roughly 3:1.++**Formatting**+Headers for sections. Numbered lists for steps. Blockquotes or code blocks for prompts. Arrow bullets for benefit lists. Minimal bold, sparingly used for key terms only.++**Length**+1,500 to 2,500 words standard. Up to 3,500 for comprehensive multi-method guides.++**What this newsletter never does**+Makes vague claims without numbers. Gives generic tips without actionable steps. Closes with a motivational summary. Pads sections with filler.++---++## 2. Contrarian essay++Best for: users with strong opinions who want to stake positions.++**Opening formula**+Name the conventional wisdom in one sentence. State the counter-position in the next sentence. Flag what is at stake in the third.++Template: "[Everyone believes X]. [You believe Y]. [If Y is right, here is what changes]."++**Section flow**+1. The consensus (what everyone says) — 150 to 250 words+2. Why the consensus is wrong (specific failures or evidence) — 300 to 500 words+3. The counter-position (clearly stated) — 100 to 200 words+4. Evidence (cases, data, experience) — 300 to 500 words+5. Objections and responses (steel-man the other side, then answer) — 200 to 400 words+6. Implication (what to do differently) — 150 to 250 words+7. Closing (forward-looking, no fence-sitting) — 50 to 100 words++**Data philosophy**+Evidence weighted toward the counter-position but include opposing data honestly. Named examples only, no anonymous cases.++**Formatting**+Headers for sections. Blockquotes for opposing views or direct quotes. Minimal lists. Prose-heavy.++**Length**+1,200 to 2,000 words.++**What this newsletter never does**+Straw-mans the opposition. Hedges the main position with "it depends". Concludes without a clear stance. Avoids naming who is wrong.++---++## 3. Case study teardown++Best for: users who unpack one subject per issue in depth.++**Opening formula**+Name the subject and the outcome in one line. Frame the lesson the issue will extract.++Template: "[Subject] did [X] and got [result]. Here is what worked, what failed, and what transfers."++**Section flow**+1. Hook (who, what, result) — 100 to 150 words+2. Background (what the subject did, in context) — 200 to 300 words+3. Teardown (section by section analysis) — 400 to 700 words+4. What worked (specific elements, numbered) — 200 to 400 words+5. What failed (specific elements, numbered) — 200 to 400 words+6. Transferable lessons (3 to 5 takeaways) — 200 to 300 words+7. Closing — 50 to 100 words++**Data philosophy**+Quote metrics, timelines, and decisions. Link to sources. No speculation without flagging the speculation.++**Formatting**+Headers for analysis phases. Numbered takeaways. Screenshots or embeds where relevant. Pull quotes for standout facts.++**Length**+1,500 to 2,500 words.++**What this newsletter never does**+Speculates without flagging it as speculation. Praises without critique. Critiques without proposing alternatives. Reduces the case to a single cause.++---++## 4. Curated digest++Best for: users who aggregate and comment on what happened this week or this month.++**Opening formula**+Set the period's theme in one line. Tease the most interesting item.++Template: "[Theme of the week in one line]. The piece you most need to read is [item]."++**Section flow**+1. Theme of the period (1 short paragraph) — 50 to 100 words+2. Main items (5 to 7, each with link, title, and 2 to 3 sentences of commentary — not a summary) — 80 to 150 words each+3. Quick hits (2 to 4 shorter links with one line each) — 100 to 200 words total+4. Closing (what next period might bring) — 50 to 100 words++**Data philosophy**+Attribution on every link. No link without commentary. Commentary adds a point the original did not make.++**Formatting**+Headers per item. Links inline. Commentary in regular prose. Bold used only for item titles.++**Length**+800 to 1,500 words.++**What this newsletter never does**+Summarises the source without adding an opinion. Skips attribution. Pads the list with low-quality links to hit a number. Orders items by recency instead of importance.++---++## 5. Personal essay++Best for: users who reflect on themes through story.++**Opening formula**+In medias res. Drop into a moment, a scene, a specific memory. No setup.++Template: "[Concrete scene, one paragraph]. [Question or tension the scene raises]."++**Section flow**+1. The opening scene — 150 to 300 words+2. The question or tension raised — 100 to 200 words+3. Exploration (story continues or theme deepens) — 400 to 700 words+4. Turn (insight, realisation, shift) — 150 to 300 words+5. Closing scene or reflection — 100 to 200 words++**Data philosophy**+Specifics over abstractions. Names, places, dates, sensory details. No made-up numbers. No invented composite characters presented as real.++**Formatting**+Minimal. Prose-heavy. Section breaks only where pacing needs them. No lists. Rare bold or italic.++**Length**+800 to 1,800 words.++**What this newsletter never does**+Wraps with a neat moral. Explains the insight before showing the story. Starts with "I want to tell you about the time…". Uses a story as decoration for a point that could stand alone.++---++## 6. Interview or profile++Best for: users who feature one person per issue.++**Opening formula**+A specific moment or direct quote from the subject. Establish why they matter in one line.++Template: "[Subject quote or specific moment]. [Why they matter, in one line]."++**Section flow**+1. Who they are and why now — 100 to 200 words+2. Origin (how they got here) — 200 to 400 words+3. Work (what they do and how) — 300 to 500 words+4. Views (their positions on the field) — 300 to 500 words+5. Lessons (3 to 5 transferable insights) — 200 to 400 words+6. What is next for them — 100 to 200 words++**Data philosophy**+Direct quotes over paraphrase. Specific career milestones. Named projects. Timelines with dates.++**Formatting**+Q and A format or narrative with pull quotes. Images if available. Bold for subject name on first mention only.++**Length**+1,500 to 2,500 words.++**What this newsletter never does**+Fawns. Asks generic questions ("what is your advice for people starting out"). Skips pushback on strong claims. Lets the subject off the hook on contradictions.diff --git a/post-scorer/SKILL.md b/post-scorer/SKILL.mdnew file mode 100644index 0000000..549222a--- /dev/null+++ b/post-scorer/SKILL.md@@ -0,0 +1,190 @@+---+name: post-scorer+description: >+ Score a LinkedIn post using real performance data. Pulls the user's own post history via Apify (or uses cached data) to identify what actually performs, then scores the draft against those patterns. Use this skill whenever the user says "score my post", "review my post", "rate this post", "give me feedback", "how good is this post", or pastes a LinkedIn post and asks for critique. Scores against real data, not generic advice. Designed for live scoring at events and everyday post review.+---++# Post Scorer++## CRITICAL: Auto-start on load++When this skill triggers, go straight to Step 1. Do not summarise. Do not explain the scoring method. Start immediately.++## Step 1. Get the post++If the user already pasted a post in the same message, use it. Otherwise say:++> Paste the LinkedIn post you want scored.++Wait for the post.++## Step 2. Load scoring data++The scorer needs two things: the user's voice system and real performance data.++### Voice system++Read about-me.md and voice.md from the project if they exist. If missing, note it and score without voice matching.++### Performance data++Check for cached LinkedIn data in the project or outputs folder. Look for files matching *-all-posts.json or *-posts.txt.++If cached data exists, use it. If not, ask the user:++```json+[+ {+ "question": "To score your post against real data, I need your LinkedIn history. How should I get it?",+ "header": "Data source",+ "multiSelect": false,+ "options": [+ {"label": "Scrape my posts", "description": "Pull my last 100 posts from LinkedIn via Apify. Takes 1 to 2 minutes, costs about $0.50."},+ {"label": "Use Charlie Hills data", "description": "Score against Charlie Hills benchmarks (1,872 avg engagement, 500 posts analysed). Good fallback."},+ {"label": "Skip data scoring", "description": "Score against generic best practices only. Less accurate but instant."}+ ]+ }+]+```++If "Scrape my posts":+1. Ask for their LinkedIn username+2. Call Apify actor apimaestro/linkedin-profile-posts with input: { "username": "[their-username]", "total_posts": 100 }+3. Download results (do NOT use the fields parameter, it strips engagement data)+4. Save as [username]-all-posts.json in the project+5. Proceed to analysis++If "Use Charlie Hills data":+Look for cached Charlie data at **/linkedin-data/charlie-all-posts.json. If found, use it. If not, note you are using the benchmarks from this skill file (listed below).++If "Skip data scoring":+Fall back to voice-system-only scoring and general best practices.++## Step 3. Analyse the top performers++When performance data is available, run this analysis before scoring:++1. Calculate engagement score for every post: total_reactions + (comments x 3)+2. Identify the top 10% of posts by engagement score+3. From those top posts, extract:+ - Hook types that appear most often (contrarian, number-led, bold claim, personal story, question, news)+ - Average post length (word count)+ - Format distribution (text only, image, carousel, video)+ - CTA patterns (newsletter mention, comment gate, repost ask, question, none)+ - Topic clusters that over-index on engagement+ - Sentence rhythm (average sentence length, paragraph breaks per post)+4. Also note the bottom 10% patterns to identify what fails++Save these patterns as a "scoring profile" you reference for each criterion.++## Step 4. Score the post++Score across 5 criteria. Each scored 1 to 10.++### Hook strength (1 to 10)++Compare the draft's opening line to the hook types in the top 10%.+- Does it use a hook type that historically performs for this author?+- Is it specific with a number, name, or concrete detail?+- Would it stop a scroll based on what actually stops scrolls in their data?+- Score 8+ only if the hook type matches a pattern in their top 10%++### Voice match (1 to 10)++If voice.md exists:+- Does the post match tone, rhythm, sentence length from voice.md?+- Does it violate any rule in voice.md's absence patterns section (what the voice never does)?+- Does the sentence length match the average from their top performers?+If no voice files: score against the patterns extracted from their post data.++### Value density (1 to 10)++Compare to the user's top-performing posts:+- Do their best posts teach, give steps, share data, or tell stories?+- Does this draft match that value pattern?+- Is the takeaway specific enough that someone would save or share it?+- Compare word count to their top 10% average. Flag if way over or under.++### Structure and format (1 to 10)++Based on their data:+- What format (text, image, carousel) gets the most engagement for them?+- Does the draft's structure match the line break and paragraph rhythm of top posts?+- Is the post scannable on mobile?+- Does the CTA match patterns from their best performers?++### Publish readiness (1 to 10)++- Did the user actually write this or does it read like unedited AI output?+- Would this post blend naturally into their feed based on their posting history?+- Are there any red flags: banned words from voice.md, generic phrases, corporate tone?+- Is it the right length compared to their top performers?++## Step 5. Output the scorecard++Output in a code block:++```+LINKEDIN POST SCORE++Data source: [their posts / Charlie Hills benchmarks / generic]+Posts analysed: [number]+Top 10% avg engagement: [number]++Hook strength: [X] / 10 [hook type detected]+Voice match: [X] / 10+Value density: [X] / 10+Structure and format: [X] / 10 [format: text/image/carousel]+Publish readiness: [X] / 10+----------------------------------------+TOTAL: [XX] / 50++VERDICT: [One sentence referencing specific data]++TOP PERFORMER COMPARISON:+Your top posts average [X] words, use [hook type] hooks,+and include [CTA pattern]. This draft [matches/differs] because [specific reason].++FIXES:+1. [Specific fix backed by data, e.g. "Your top 10% posts open with numbers. This opens with a question. Switch to a stat."]+2. [Second fix backed by data]+3. [Third fix if needed]+```++Every fix must reference the user's actual data. Not "improve the hook" but "your top 10% posts use number-led hooks (42% of hits). This draft uses a question hook (12% of hits). Lead with the stat instead."++## Step 6. Offer next steps++After the scorecard:++> Want me to rewrite the weakest section using patterns from your top posts, or ship it?++If rewrite requested, apply the fixes and output the revised post in a code block.++## Fallback benchmarks (when no data available)++Use these Charlie Hills benchmarks as the scoring baseline when the user picks "Use Charlie Hills data" and no cached file is found:++Average engagement: 1,872 (reactions + comments x 3)+Average reactions: 808+Average comments: 355+Average reposts: 61+Comment-to-reaction ratio: 44%++Top hook types: number-led (31%), bold claim (27%), contrarian (18%)+Top formats: carousel (33%), image (29%), text only (22%)+Average post length top 10%: 180 to 250 words+CTA rate: 45% mention newsletter+Comment gate rate: 5%++## Rules++- Always try to use real data before falling back to generic advice.+- Every score and every fix must reference specific data points, not subjective opinions.+- Never score higher than 8 unless the draft genuinely matches top 10% patterns.+- Be honest. A generous scorer is useless.+- If data is stale (14+ days old), suggest a refresh before scoring.+- Inform the user before running an Apify scrape (costs money).+- Never use em dashes in any output.+- British English throughout.+- Keep the scorecard compact. It needs to look good on a big screen at events.diff --git a/post-writer/SKILL.md b/post-writer/SKILL.mdnew file mode 100644index 0000000..b2f48f2--- /dev/null+++ b/post-writer/SKILL.md@@ -0,0 +1,130 @@+---+name: post-writer+description: >+ Write LinkedIn posts that match the user's voice system (about-me.md, voice.md, voice.md). Use this skill whenever the user says "write a post", "draft a post", "LinkedIn post", "post about [topic]", "content idea", or wants help writing any LinkedIn content. Also trigger when the user pastes a context dump (notes, transcripts, bullet points) and wants it turned into a post. Always references the voice files in the project before writing. Always outputs the final post in a code block.+---++# Post Writer++## CRITICAL: Auto-start on load++The moment this skill triggers, go straight to Step 1. Do not summarise the skill. Do not explain what it does. Do not list the files it references. Jump to input gathering immediately.++## Step 1. Gather inputs++Check the project for about-me.md, voice.md, and voice.md. Read all three. If any are missing, tell the user to run the Voice Builder skill first ("say build my voice"), then stop.++If all three files exist, call AskUserQuestion with this exact JSON:++```json+[+ {+ "question": "What topic do you want to post about?",+ "header": "Topic",+ "multiSelect": false,+ "options": [+ {"label": "Paste a context dump", "description": "I have notes, transcripts, or raw ideas to turn into a post"},+ {"label": "I have a topic in mind", "description": "I will type the topic after this"},+ {"label": "Suggest topics for me", "description": "Based on my voice system, suggest 5 topics I should post about"}+ ]+ },+ {+ "question": "Do you have any reference posts you want me to use as structural inspiration?",+ "header": "References",+ "multiSelect": false,+ "options": [+ {"label": "No references", "description": "Write from scratch using my voice files only"},+ {"label": "I will paste examples", "description": "I have posts from other creators I want you to study first"},+ {"label": "Use my training posts", "description": "Reference the posts I used in the Voice Builder"}+ ]+ }+]+```++Based on the answers:+- "Paste a context dump": wait for the user to paste, extract the core idea, then proceed to Step 2+- "I have a topic in mind": wait for the user to type it, then proceed to Step 2+- "Suggest topics for me": read about-me.md topic pillars and voice.md, suggest 5 specific topics with a one-line angle for each, then use AskUserQuestion to let them pick one+- "I will paste examples": wait for reference posts, note the structural patterns, then proceed+- "Use my training posts": reference whatever posts are already in the project++## Step 2. Research and plan++Before writing, research the topic. Look for:+- Data points or statistics that support the angle+- Contrarian takes or surprising facts+- Real examples or case studies+- Common misconceptions to challenge++Then present a post plan. Call AskUserQuestion:++```json+[+ {+ "question": "Which angle works best for this post?",+ "header": "Angle",+ "multiSelect": false,+ "options": [+ {"label": "[Angle 1 name]", "description": "[One sentence describing the angle and hook]"},+ {"label": "[Angle 2 name]", "description": "[One sentence describing the angle and hook]"},+ {"label": "[Angle 3 name]", "description": "[One sentence describing the angle and hook]"}+ ]+ },+ {+ "question": "Which framework do you want?",+ "header": "Framework",+ "multiSelect": false,+ "options": [+ {"label": "PAS", "description": "Problem, Agitate, Solution"},+ {"label": "How-to list", "description": "Numbered steps or tips"},+ {"label": "Story to lesson", "description": "Personal story with a takeaway"},+ {"label": "Contrarian take", "description": "Challenge a common belief"}+ ]+ }+]+```++Fill in the actual angle options based on the topic research. Do not use placeholder text for the angle descriptions.++## Step 3. Write the draft++Write the post following these rules:+- Read voice.md for tone, rhythm, hook style, CTA style+- Read voice.md and avoid every banned word, structure, and pattern+- Read about-me.md for audience and topic context+- Match the sentence length and paragraph rhythm from voice.md+- Use the hook pattern that fits the chosen angle+- End with the CTA style from voice.md++Output the post inside a plain code block:++```+[The full post goes here with all line breaks and formatting exactly as it should appear on LinkedIn]+```++After the code block, add 2 to 3 sentences on why you chose this hook and structure, referencing specific patterns from voice.md.++## Step 4. Iterate++Ask the user:++> How does this feel? Tell me what to change, or say "ship it" and I will save the final version.++If the user gives feedback, revise and output a new code block. Maximum 3 revision rounds.++If the user says "ship it" or equivalent, save the final post as a markdown file in the project.++Then say:++> Post saved. Say "design a graphic" to create a visual, or "score my post" to get feedback before publishing.++## Rules++- Always read about-me.md, voice.md, and voice.md before writing.+- Always output posts in a plain code block.+- Never use em dashes in any post.+- British English unless voice.md says otherwise.+- Do not add hashtags unless voice.md explicitly uses them.+- Do not add engagement bait CTAs unless they appear in voice.md.+- Keep posts between 150 and 300 words unless the user requests otherwise.+- Plan before writing. Never skip Step 2.diff --git a/profile-optimizer/SKILL.md b/profile-optimizer/SKILL.mdnew file mode 100644index 0000000..7390549--- /dev/null+++ b/profile-optimizer/SKILL.md@@ -0,0 +1,263 @@+---+name: profile-optimizer+description: >+ Rebuild a LinkedIn profile for maximum conversions. Produces new headline options, about section, experience section, featured section strategy, and 4 image generation prompts (banner, profile picture, 2 featured tiles). Use this skill whenever the user says "optimize my profile", "fix my LinkedIn", "rewrite my headline", "profile review", "LinkedIn audit", "rebuild my profile", or wants help with any part of their LinkedIn profile. Also trigger when the user uploads a LinkedIn profile PDF or screenshot for review.+---++# Profile Optimizer++## CRITICAL: Auto-start on load++When this skill triggers, go straight to Step 1. Do not summarise. Do not explain what you will produce. Start input gathering immediately.++## Step 1. Gather inputs++Check the project for about-me.md. If it exists, pre-fill name, audience, topics, and POV from it. Skip those questions and tell the user what you pulled.++Call AskUserQuestion in two batches.++### Batch 1++```json+[+ {+ "question": "What is the primary goal of your LinkedIn presence?",+ "header": "Goal",+ "multiSelect": false,+ "options": [+ {"label": "Booked calls", "description": "Drive discovery calls or demos"},+ {"label": "Inbound leads", "description": "Attract prospects who reach out to you"},+ {"label": "Newsletter subscribers", "description": "Grow your email list from LinkedIn"},+ {"label": "Job opportunities", "description": "Get recruiters and hiring managers to reach out"}+ ]+ },+ {+ "question": "What is your main offer or service?",+ "header": "Offer",+ "multiSelect": false,+ "options": [+ {"label": "Coaching", "description": "1-on-1 or group coaching"},+ {"label": "Consulting", "description": "Advisory or strategy work"},+ {"label": "Agency services", "description": "Done-for-you services for clients"},+ {"label": "Freelance", "description": "Project-based or contract work"}+ ]+ },+ {+ "question": "Do you have brand colours (hex codes)?",+ "header": "Colours",+ "multiSelect": false,+ "options": [+ {"label": "No, suggest for me", "description": "Pick colours based on my positioning"},+ {"label": "Yes, I will paste them", "description": "I have specific hex codes to use"}+ ]+ },+ {+ "question": "Any social proof you want highlighted?",+ "header": "Proof",+ "multiSelect": false,+ "options": [+ {"label": "Years of experience", "description": "e.g. 10+ years in marketing"},+ {"label": "Client results", "description": "e.g. Helped 200+ clients"},+ {"label": "Media features", "description": "e.g. Featured in Forbes"},+ {"label": "I will type my own", "description": "Let me paste specific proof points"}+ ]+ }+]+```++### Batch 2++```json+[+ {+ "question": "What external links do you want in your Featured Section? (max 2)",+ "header": "Links",+ "multiSelect": false,+ "options": [+ {"label": "Booking page + newsletter", "description": "Primary link to book calls, secondary to subscribe"},+ {"label": "Portfolio + booking page", "description": "Show work first, then convert"},+ {"label": "I will paste URLs", "description": "I have specific links to use"}+ ]+ },+ {+ "question": "How should I get your current profile?",+ "header": "Current profile",+ "multiSelect": false,+ "options": [+ {"label": "I will paste it", "description": "I will copy-paste my headline, about, and experience"},+ {"label": "Start fresh", "description": "Ignore my current profile, build from scratch using my about-me.md"},+ {"label": "I will upload a screenshot", "description": "I will share a screenshot or PDF of my profile"}+ ]+ }+]+```++Wait for all inputs before proceeding.++## Step 2. The Headline++Write 3 headline options. Output in a code block.++Constraints:+- Maximum 50 characters each+- Sentence casing only (not Title Case)+- Lead with core value+- Include target audience where character count allows+- No job titles (no "Founder" / "CEO" / "Designer")+- No fluff words++Format: [Core value] + [for target audience]++```+Option 1 (Direct): [outcome + audience]+Option 2 (Pain-focused): [problem + audience]+Option 3 (Differentiator): [unique angle + audience]+```++Then call AskUserQuestion to let the user pick:++```json+[+ {+ "question": "Which headline do you want to go with?",+ "header": "Headline",+ "multiSelect": false,+ "options": [+ {"label": "Option 1", "description": "[The actual headline text from above]"},+ {"label": "Option 2", "description": "[The actual headline text from above]"},+ {"label": "Option 3", "description": "[The actual headline text from above]"}+ ]+ }+]+```++## Step 3. The About Section++Output in a code block. Formatting rules:+- Write in full sentences. Do not force line breaks mid-sentence.+- One line break between sentences or short phrases for readability.+- Double line break between sections (hook, story, authority, CTA).+- LinkedIn handles text wrapping on mobile and desktop. Do not manually wrap at 50 or 60 characters.+- Short punchy sentences are good. Chopping sentences in half is not.++Structure: Hook > Struggle/Empathy > Method/Philosophy > Authority > CTA++Tone: Punchy, direct, human. Not corporate.++Example of correct formatting:+```+I left my 9-to-5 in September 2024.+Two years later: 200k+ followers, multiple six-figure businesses, thousands of marketers trained.++Here is what I learned.+Most people do not need more content. They need a system that turns content into clients. That is what I build.++✦ Linked Agency: done-for-you LinkedIn content for founders and executives.+✦ Vislo: an AI design tool that creates publish-ready infographics in minutes.+✦ MarTech AI newsletter: 200k+ readers getting weekly AI marketing frameworks.+✦ The AI Creators Club: live breakdowns, proven systems, and a community that helps you grow in weeks, not months.++Brand partnerships and speaking: [email protected]++Check out my Featured section below. Or DM me. I will point you in the right direction.+```++## Step 4. The Experience Section++Rewrite the top 2 roles. Output in a code block. Same formatting approach as the About section: full sentences, no forced mid-sentence line breaks, LinkedIn handles wrapping.++Structure per role: Context > Challenge > Action > Result++Storytelling format, not bullet points. 8 to 15 sentences per role maximum.++Example of correct formatting:+```+I walked into a team that had lost 3 managers in 2 years.+Morale was gone. Revenue was slipping.++I didn't start with strategy decks. I started with listening.++Within 6 months we rebuilt the culture.+Within 12 months revenue was up 40%.++That taught me everything about leading through chaos.+```++Example of incorrect formatting:+- Managed a team of 15 sales representatives+- Responsible for Q3 revenue targets+- Implemented new CRM system++## Step 5. Featured Section Strategy++2 items maximum. Both must be external links.++Item 1: Primary conversion goal+- Purpose: direct path to main offer (booking page, application form, sales page)+- Title: 3 to 5 words, benefit-focused++Item 2: Secondary value builder+- Purpose: build trust or capture leads (newsletter signup, free resource, portfolio, case study)+- Title: 3 to 5 words, benefit-focused++No subtitles. No internal LinkedIn posts. No "DM me" items.++## Step 6. Visual Design Brief++Output 4 separate image generation prompts, each in its own code block. Each prompt must be fully self-contained and work when pasted into Gemini as a standalone request.++State the brand colours at the top:+- Primary hex: [user-provided or suggested]+- Secondary hex: [user-provided or suggested]+- One line on why these fit the positioning++### Asset 1: LinkedIn Banner (1584 x 396 pixels)++The prompt must:+- State "Using the attached photo of me..."+- Create banner at exact dimensions+- Place the chosen headline text centre-right+- Place a 5 to 8 word tagline below the headline+- Include a CTA button element (3 to 4 words)+- Include social proof text+- Use brand colours+- Specify background style++### Asset 2: Profile Picture (400 x 400 pixels)++The prompt must:+- State "Using the attached headshot photo as the base..."+- Apply brand colour background (solid or gradient)+- Centre face at 60 to 70% of frame+- Work when cropped to a circle+- Add brand colour border if appropriate++### Asset 3: Featured Section Tile 1 (552 x 368 pixels)++- Title text from Featured Item 1 as focal point+- Brand colours matching the banner+- Simple clickable visual cue (arrow icon)+- Clean, minimal, no subtitle or body text+- No photo needed++### Asset 4: Featured Section Tile 2 (552 x 368 pixels)++- Title text from Featured Item 2 as focal point+- Visually distinct from Tile 1 (swap primary/secondary colour usage)+- No photo needed++After all 4 prompts, say:++> Copy each prompt into a new Gemini chat one at a time. For the banner and profile picture, attach your headshot alongside the prompt. The featured tiles do not need a photo.++## Rules++- Always read about-me.md if it exists and pre-fill inputs from it.+- All profile copy (headline, about, experience) must go in code blocks.+- Write full sentences. Do not force line breaks mid-sentence. LinkedIn handles wrapping.+- No job titles in headlines.+- No block paragraphs anywhere.+- Each image prompt must be fully self-contained.+- Never use em dashes.+- British English throughout.+- Do NOT offer to write a launch post or engagement strategy after the design brief. End at the design brief.diff --git a/voice-builder/SKILL.md b/voice-builder/SKILL.mdnew file mode 100644index 0000000..ee39384--- /dev/null+++ b/voice-builder/SKILL.md@@ -0,0 +1,258 @@+---+name: voice-builder+description: >+ Build a personalised voice profile inside a Cowork project from a short interview plus 3 to 5 sample pieces of writing. Works for any content format: LinkedIn posts, newsletters, essays, emails, blog posts, tweets, or any other published writing. Use this skill at the start of any Cowork project where the user wants Claude to learn who they are and how they write before drafting new content. Trigger whenever the user says "build my voice", "learn my voice", "set up my content system", "onboard me", "train on my writing", "train on my posts", "I want Claude to sound like me", or drops a batch of writing samples into chat at the start of a project. Also trigger for first-time Cowork users who need a voice foundation before writing anything. Always produces two files (about-me.md and voice.md) saved into the project root.+---++# Voice Builder++## CRITICAL: Auto-start on load++The moment this skill is loaded, installed, uploaded, or triggered, you MUST immediately run Step 1 below. This means your very next message to the user is the interview questions. Nothing else.++Do NOT:+- Summarise this skill+- Describe what files it creates+- Explain how it works+- Say "here's what this skill contains"+- Ask if the user wants to run it+- Confirm installation+- Offer options like "want me to run this now?"++Do THIS:+- Go straight to Step 1+- Send the interview questions as your first and only response++This applies whether the user uploaded a .skill file, said "build my voice", pasted samples, or triggered the skill in any other way. No preamble. No summary. Interview first.++## Step 1. Run the About Me interview++You MUST call the AskUserQuestion tool to ask these questions. Do not type the questions as chat text. Use the tool. The tool renders as an interactive form the user fills in, which is a better experience than typing answers into chat.++AskUserQuestion supports a maximum of 4 questions per call, so send two calls: Batch 1 first, wait for answers, then Batch 2.++### Batch 1 (your very first action, no text before it)++Call AskUserQuestion with this exact JSON structure for the questions parameter:++```json+[+ {+ "question": "What is your name and what do you do?",+ "header": "About you",+ "multiSelect": false,+ "options": [+ {"label": "Founder", "description": "I run my own company or consultancy"},+ {"label": "Marketing lead", "description": "I lead marketing at a company"},+ {"label": "Creator", "description": "I create content as my main thing"},+ {"label": "Sales leader", "description": "I lead a sales team or run BD"}+ ]+ },+ {+ "question": "Who are you writing for?",+ "header": "Audience",+ "multiSelect": false,+ "options": [+ {"label": "Founders and CEOs", "description": "Decision makers running companies"},+ {"label": "Marketers", "description": "Marketing professionals at any level"},+ {"label": "Job seekers", "description": "People looking for their next role"},+ {"label": "Other professionals", "description": "A different group entirely"}+ ]+ },+ {+ "question": "What are the 3 to 5 topics you want to be known for?",+ "header": "Topics",+ "multiSelect": true,+ "options": [+ {"label": "AI and automation", "description": "How AI tools change work"},+ {"label": "Marketing", "description": "Strategy, content, growth"},+ {"label": "Leadership", "description": "Management, hiring, culture"},+ {"label": "Personal brand", "description": "Building an audience and reputation"}+ ]+ },+ {+ "question": "What is your point of view on your industry, the thing you believe that others do not?",+ "header": "Hot take",+ "multiSelect": false,+ "options": [+ {"label": "Most advice is wrong", "description": "The consensus in your industry is broken"},+ {"label": "People overcomplicate it", "description": "The answer is simpler than people think"},+ {"label": "A big shift is coming", "description": "Something is about to change and most people are not ready"}+ ]+ }+]+```++### Batch 2 (send immediately after Batch 1 answers come back, no commentary between)++Call AskUserQuestion again with:++```json+[+ {+ "question": "What is the one thing you want people to think when they see your name?",+ "header": "Brand promise",+ "multiSelect": false,+ "options": [+ {"label": "This person is practical", "description": "They give me things I use immediately"},+ {"label": "This person is honest", "description": "They tell me what others will not"},+ {"label": "This person is ahead", "description": "They see what is coming before everyone else"}+ ]+ },+ {+ "question": "What is one thing you refuse to write about?",+ "header": "Off limits",+ "multiSelect": false,+ "options": [+ {"label": "Politics", "description": "No political takes, ever"},+ {"label": "Personal life", "description": "Keep it professional only"},+ {"label": "Competitors", "description": "No naming or shaming other people or brands"}+ ]+ }+]+```++After both batches are answered, move to Step 2. If any answer is blank or skipped, ask that specific question once more in chat, then move on.++## Step 2. Write about-me.md++Create about-me.md in the project root. Use this structure:++```+# About Me++## Name and role+[From question 1]++## Audience+[From question 2, expanded into 2 to 3 sentences on who the reader is]++## Topic pillars+[3 to 5 topics from question 3, one line each]++## Point of view+[From question 4, the contrarian or distinctive belief, written as a clear statement]++## Brand promise+[From question 5, the one thought the author wants to own in the reader's head]++## Off limits+[From question 6, topics or angles never to write about]+```++Keep it under 300 words. Every line should be something Claude would reference when writing.++## Step 3. Ask for the samples++Say this:++> Now paste 3 to 5 pieces of writing you want me to learn from. These can be LinkedIn posts, newsletter issues, essays, blog posts, emails, tweets, or any other writing you have published. They can be yours or someone whose voice you admire. One piece per message or all at once. If you do not have any samples ready, type "use samples" and I will load a starter set you can swap out later.++Wait for the user to paste. Minimum 3 samples before moving to analysis. If they paste fewer than 3, ask for more.++If the user types "use samples", load the writing from `references/sample-content.md` inside this skill folder. Tell the user which author the samples are from so they know what voice they are borrowing. Remind them they can replace these with their own writing later.++## Step 4. Analyse the samples++Read every sample. Look for patterns across all of them, not individual quirks from one piece. Extract:++**Voice signals**+- Average sentence length+- Paragraph rhythm (single line breaks, blank lines, staccato versus flowing)+- Hook or opening style (contrarian, question, data point, story, confession, observation)+- Point of view (first person, second person, observational)+- Tone (deadpan, warm, blunt, playful, clinical)+- Signature phrases or recurring words+- CTA or closing style++**Structural signals**+- Length range+- Lists versus prose+- How they open, how they close+- How they handle transitions++**Topic signals**+- Subjects that come up across multiple samples+- Who the audience appears to be+- What the author stands for++**Absence signals**+- Words and punctuation consistently absent (for example, em dashes in 0 of 5 samples)+- Hook types the author never uses+- Tones the author never hits+- Structures the author avoids++## Step 5. Write voice.md++Create voice.md in the project root. This is a single integrated profile covering both how the voice writes and what the voice avoids. No separate voice file.++```+# Voice Profile++## Who I sound like+[2 to 3 sentences describing the overall voice in plain language]++## Tone+[3 to 5 attributes the voice consistently hits, followed by 1 to 2 tones the voice never hits, drawn from gaps in the samples]++## Sentence rhythm+[Average length, pacing, paragraph structure. Include avoidance patterns: e.g. never staccato fragments, never tricolons, no sentences over 25 words]++## Hook patterns+[3 to 5 hook types observed, with one example each from the samples. Note any hook types absent across all samples, e.g. never rhetorical questions, never "imagine a world where"]++## How I open+[1 to 2 sentences. Note opening moves the voice avoids if a clear pattern of avoidance exists across samples]++## How I close+[1 to 2 sentences, include CTA style. Note closing moves the voice avoids, e.g. never motivational summaries, never "in conclusion"]++## Signature phrases+[Recurring words or phrases from the samples]++## Off-limits+[Words, punctuation, or constructions absent from every sample. Only list items the samples clearly avoid. Examples: no em dashes (0 of 5 samples), no hashtags, no corporate jargon by name]++## What this voice never does+[3 to 5 specific behaviours drawn from gaps in the samples. Be specific. If the samples never use the "not X, but Y" construction, list it. If they avoid a specific vocabulary set, name the words]+```++Fill every section from the actual samples. No generic filler. If a pattern is not present, say so. Do not duplicate audience or topic pillars from about-me.md.++The Off-limits and What this voice never does sections are drawn from observation, not from a generic banned-words template. Every item must be backed by absence across the samples.++## Step 6. Confirm and hand off++Tell the user:++> Your voice profile is built. Two files are now in your project: about-me.md and voice.md. Every time you work in this project, I will reference both automatically. You can open and edit either file anytime.+>+> You are ready to go. Here is what you can do next:+>+> - Say "build my newsletter voice" to create newsletter-specific writing instructions+> - Say "write a post" to draft a LinkedIn post in your voice+> - Say "design a graphic" to create a visual for a post+> - Say "score my post" to get feedback on a draft+> - Say "optimize my profile" to rebuild your LinkedIn profile+>+> Each of these is a separate skill. Pick one and go.++## What this skill produces++Two files in the project root:++1. about-me.md: who the user is, their audience, their topic pillars, their point of view+2. voice.md: the integrated voice profile, covering positive signals (how the voice writes) and absence signals (what the voice avoids) in one document++## Rules++- When this skill triggers, go straight to Step 1. No summary, no explanation, no preamble.+- Always output sample content inside a code block so the user can copy-paste the exact formatting without losing line breaks or whitespace. Use a plain code block (triple backticks with no language tag).+- Work from what is in the samples. Do not invent patterns that are not there.+- Minimum 3 samples for pattern detection. Ask for more if fewer than 3.+- If samples contradict each other, note the contradiction in voice.md rather than smoothing it over.+- Keep about-me.md under 300 words.+- Keep voice.md under 500 words.+- British English throughout unless the samples are clearly American.+- Never use em dashes in any output file or in any draft.+- Do not produce an voice.md file. Absence signals live inside voice.md.diff --git a/voice-builder/references/sample-content.md b/voice-builder/references/sample-content.mdnew file mode 100644index 0000000..0872deb--- /dev/null+++ b/voice-builder/references/sample-content.md@@ -0,0 +1,132 @@+# Sample Content++Author: Charlie Hills+Format: LinkedIn posts (short-form)++These samples are loaded when a user types "use samples" because they have no writing of their own to share. Users can swap these out for their own samples later.++---++## Post 1++Claude now has 3 layers.+Each one does a different job:++1. Claude Chat (browser/app)+Use it when the work is thinking in words. It turns vague ideas into structure fast: drafts, summaries, plans, decisions. You get clarity and high-quality writing, but you still execute the work elsewhere.++✦ Rewrite a draft in your voice, cut it by 30%+✦ Create a decision memo with trade-offs+✦ Simulate customer objections, draft responses++2. Claude Code (terminal agent)+Use it when the work lives in a repo. It navigates your codebase, edits files, and runs commands autonomously. You describe the goal, it ships the code. But you review everything before it merges.++✦ Scaffold a full app with auth, database, API routes+✦ Refactor a legacy module across 40 files+✦ Run a security scan, patch vulnerabilities++3. Claude Cowork (desktop agent)+Use it when the work is workflows, not thinking. It handles the repetitive operations you do manually: organising, extracting, filling, moving. No coding needed. Runs in a sandboxed VM on your desktop.++✦ Extract tables from 50 PDFs into one spreadsheet+✦ Rename and sort hundreds of files by type and date+✦ Pull data from Gmail, update a report in Google Drive++The decision rule:+✦ Thinking and content → Chat+✦ Code and systems → Code+✦ Files and app workflows → Cowork++The advantage isn't "using AI."+It's knowing which layer to reach for.++I wrote the complete setup guide for all three.+Free to read (drops Sunday) → https://lnkd.in/e--fakyi++Repost ♻️ to help someone in your network.++---++## Post 2++Brands spend $500+ per UGC video.+(This workflow costs almost nothing)++How to make AI UGC with Nano Banana 2 in 6 steps:++1. Generate a base image in Gemini.+2. Combine it with your real product photo.+3. Run follow-up prompts in the same thread.+4. Change the camera angle for each product shot.+5. Upload two shots to Kling as a start and end frame.+6. One video prompt animates between them:++"Slow smooth camera push toward the subject. Natural handheld micro-movement. Morning light through car window consistent throughout. No cuts, no flash transitions. Subject moves naturally between each position. Skin texture and clothing consistent across all frames. Authentic, non-commercial feel."++Stitch them in order. You have a UGC video.++The whole thing runs in one chat thread.+No creators, studios or shipping products.++Repost ♻️ to help someone in your network.++---++## Post 3++Perplexity is your $200/month social media manager.+Here's exactly how to hire it in 3 steps:++I tested Perplexity Computer with one YouTube link.+It produced content for 7 platforms automatically.++Step 1: Load your brand identity+Upload a markdown file with your brand rules.+This includes colours, fonts, voice, and banned words.+Use this prompt:++"This is my brand identity file. Load it and apply every rule to all content and visuals you create for me. Every visual uses my exact hex colors, typography, and branding. Every piece of writing follows my voice rules and formatting. Confirm you've loaded it."++☑︎ Computer saves this to memory permanently.+You only do this once.++Step 2: Feed it one piece of long-form content+Paste a YouTube link, blog post, or podcast episode.+Tell Computer which formats you need.+Use a prompt like this:++"Download this video: [YouTube URL]. Extract 3-5 vertical clips with captions. Then repurpose into all 7 formats from my brand file:+- Three Substack Notes+- LinkedIn post + carousel PDF+- X/Twitter thread + hook image+- Instagram Reel script + cover image+- Substack newsletter section + header image+- Five short-form hooks + thumbnails paired with clips."++Step 3: Let Computer orchestrate+It spawns multiple AI models working in parallel.+☑︎ Opus 4.6 builds carousels and PDFs.+☑︎ Nano Banana generates branded images.+☑︎ Sonnet 4.6 writes all the copy simultaneously.+☑︎ Gemini Flash handles research and transcripts.++Perplexity Computer has 400+ app connectors.+Gmail, Notion, Slack, Google Drive, Salesforce.++The strategy is simple:+1. Create one piece of long-form content.+2. Let Computer repurpose it for every channel.++Different angle per platform.+Different format per audience.++You are not creating 7 pieces of content.+You are creating 1 and letting AI handle the rest.++$200/month on the Perplexity Max plan.+If you repurpose weekly, the time savings add up.++Repost ♻️ to help someone in your network.++P.S. Have you tried Perplexity Computer?