Skip to content

Free, open source blog writer for Claude Code. Researches current sources, writes answer-first posts for Google and AI answers, has an independent reviewer score each one out of 100 and ships only after five delivery gates. 32 skills, 30 /blog commands, 5 agents. Active development at AI-Marketing-Hub/claude-blog; public releases ship here.

feat: built-in SVG charts, image verification, readability checks (v1.1.0)

Danield4dfc7bd93e2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2c3bfa2..b8ba3c3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [1.1.0] - 2026-02-18
+
+### Added
+- **Built-in SVG chart generation** (`blog-chart` sub-skill) — eliminates external `/svg` dependency
+ - Supports 7 chart types: horizontal bar, grouped bar, donut, line, lollipop, area, radar
+ - Dark-mode compatible, accessible (WCAG), platform-aware (HTML/JSX auto-detection)
+- **Image URL verification** in researcher agent — validates HTTP 200 before embedding
+- **Mid-writing readability check** in writer agent — self-checks Flesch targets before returning
+- **Image density guidelines** by content type in visual-media.md
+
+### Changed
+- claude-blog is now fully self-contained — no external skill dependencies required
+- Integration section updated to list companion skills as optional
+- Installer scripts updated for 13 sub-skills
+
+### Removed
+- External `/svg` / `/svg-chart` skill dependency
+
## [1.0.0] - 2026-02-18
### Added
diff --git a/README.md b/README.md
index 6d7f8d3..e7c2f53 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ Strategy, briefs, calendars, writing, optimization, schema, repurposing, and ful
![Claude Code Skill](https://img.shields.io/badge/Claude_Code-Skill-blueviolet)
![License: MIT](https://img.shields.io/badge/License-MIT-green)
![Python 3.12+](https://img.shields.io/badge/Python-3.12%2B-blue)
-![Sub-Skills](https://img.shields.io/badge/Sub--Skills-12-orange)
+![Sub-Skills](https://img.shields.io/badge/Sub--Skills-13-orange)
---
@@ -81,8 +81,9 @@ Every article targets both Google rankings and AI citation platforms:
### Visual Media
- Pixabay/Unsplash/Pexels image sourcing with alt text
-- SVG chart generation via `/svg-chart` (bar, lollipop, donut, line, area)
+- Built-in SVG chart generation (bar, grouped bar, lollipop, donut, line, area, radar)
- Image density targets by content type
+- Image URL verification (HTTP 200 check before embedding)
### Platform Support
Next.js/MDX, Astro, Hugo, Jekyll, WordPress, Ghost, 11ty, Gatsby, and static HTML.
@@ -119,7 +120,7 @@ claude-blog/
│ ├── news-analysis.md
│ ├── data-research.md
│ └── faq-knowledge.md
-├── skills/ # 12 sub-skills
+├── skills/ # 13 sub-skills
│ ├── blog-write/SKILL.md
│ ├── blog-rewrite/SKILL.md
│ ├── blog-analyze/SKILL.md
@@ -131,7 +132,8 @@ claude-blog/
│ ├── blog-schema/SKILL.md
│ ├── blog-repurpose/SKILL.md
│ ├── blog-geo/SKILL.md
-│ └── blog-audit/SKILL.md
+│ ├── blog-audit/SKILL.md
+│ └── blog-chart/SKILL.md # Internal: SVG chart generation
├── agents/ # 4 specialized agents
│ ├── blog-researcher.md
│ ├── blog-writer.md
@@ -177,11 +179,12 @@ Windows (PowerShell):
## Integration
-Works with the broader Claude Code skill ecosystem:
+Chart generation is built-in — no external dependencies required for full functionality.
+
+**Optional companion skills** (for deeper analysis of published pages):
| Skill | Integration |
|-------|-------------|
-| `/svg` or `/svg-chart` | Generate SVG data visualizations for blog posts |
| `/seo` | Deep SEO analysis of published blog pages |
| `/seo-schema` | Schema markup validation and generation |
| `/seo-geo` | AI citation optimization audit |
diff --git a/agents/blog-researcher.md b/agents/blog-researcher.md
index 0d684e9..0931f08 100644
--- a/agents/blog-researcher.md
+++ b/agents/blog-researcher.md
@@ -45,11 +45,28 @@ sources.
1. Search Pixabay first: `site:pixabay.com [topic keywords]`
2. Fallback to Unsplash: `site:unsplash.com [topic keywords]`
3. Fallback to Pexels: `site:pexels.com [topic keywords]`
-3. For each image:
+4. For each image:
- Extract the direct CDN URL
- Write a descriptive alt text sentence
- Note relevance to the blog topic
+### Image URL Verification (Required -- Never Skip)
+
+After finding each candidate image URL:
+
+1. Verify it's a direct image file URL (ends in .jpg, .jpeg, .png, .webp, or is a CDN URL)
+ - Pixabay page URLs (`pixabay.com/photos/...`) are NOT image URLs
+ - Unsplash photo pages (`unsplash.com/photos/...`) are NOT image URLs
+2. If you have a page URL, extract the direct image URL:
+ - WebFetch the page and look for the `og:image` meta tag -- this is the most reliable source
+ - Pixabay CDN pattern: `https://cdn.pixabay.com/photo/YYYY/MM/DD/HH/MM/filename.jpg`
+ - Unsplash CDN pattern: `https://images.unsplash.com/photo-<id>?w=1200&h=630&fit=crop&q=80`
+3. Verify the URL resolves: `curl -sI "<url>" | head -1`
+ - Must return HTTP 200 (or 301/302 -- follow redirect and use final URL)
+ - If 403/404: discard and find replacement
+4. Mark each image as Verified (HTTP 200) or Unverified in your output table
+5. Never include more than 1 Unverified image in a research packet
+
### When Analyzing Competition
1. Search for the target keyword
diff --git a/agents/blog-writer.md b/agents/blog-writer.md
index e62de08..4004a66 100644
--- a/agents/blog-writer.md
+++ b/agents/blog-writer.md
@@ -139,6 +139,22 @@ To avoid AI-detectable writing:
"dive into", "game-changer", "navigate the landscape", "revolutionize",
"seamlessly", "cutting-edge", "harness the power of", "leverage" (as verb)
+## Post-Draft Readability Check
+
+After completing the full draft, before returning content:
+
+1. Self-check readability:
+ - Count average sentence length (target: 15-20 words)
+ - Verify no paragraph exceeds 100 words (hard limit)
+ - Check for passive voice clusters -- rewrite to active
+ - Replace jargon with plain alternatives where possible
+2. If `analyze_blog.py` is accessible, run a quick check:
+ `python3 ~/.claude/skills/blog/scripts/analyze_blog.py <draft_file> --category content`
+3. If readability sub-score is below 4/6, revise before returning:
+ - Split sentences over 25 words
+ - Break paragraphs over 60 words
+ - Convert passive to active voice
+
## Quality Self-Check
Before returning content, verify:
@@ -156,3 +172,6 @@ Before returning content, verify:
- [ ] No known AI-detectable phrases
- [ ] Citation capsules in major sections
- [ ] Internal linking zones marked
+- [ ] Every embedded image URL was verified by the researcher (Verified column = Yes)
+- [ ] No page URLs used as image src -- only direct CDN/image file URLs
+- [ ] Image alt text is a full descriptive sentence (not just keywords)
diff --git a/blog/SKILL.md b/blog/SKILL.md
index a68aa57..ca6af70 100644
--- a/blog/SKILL.md
+++ b/blog/SKILL.md
@@ -6,7 +6,7 @@ description: >
(December 2025 Core Update, E-E-A-T) and AI citations (GEO/AEO). Writes,
rewrites, analyzes, outlines, audits, and repurposes blog content with
answer-first formatting, sourced statistics, Pixabay/Unsplash/Pexels images,
- SVG charts via /svg skill, JSON-LD schema generation, and freshness signals.
+ built-in SVG chart generation, JSON-LD schema generation, and freshness signals.
Supports any platform (WordPress, Next.js MDX, Hugo, Ghost, Astro, Jekyll,
11ty, Gatsby, HTML). Use when user says "blog", "write blog", "blog post",
"blog strategy", "content brief", "editorial calendar", "analyze blog",
@@ -99,7 +99,7 @@ Every blog post targets these 6 optimization pillars:
|--------|--------|---------------|
| Answer-First Formatting | +340% AI citations | Every H2 opens with 40-60 word stat-rich paragraph |
| Real Sourced Data | E-E-A-T trust | Tier 1-3 sources only, inline attribution |
-| Visual Media | Engagement + citations | Pixabay/Unsplash images + SVG charts via `/svg` |
+| Visual Media | Engagement + citations | Pixabay/Unsplash images + built-in SVG chart generation |
| FAQ Schema | +28% AI citations | Structured FAQ with 40-60 word answers |
| Content Structure | AI extractability | 50-150 word chunks, question headings, proper H hierarchy |
| Freshness Signals | 76% of top citations | Updated within 30 days, dateModified schema |
@@ -194,6 +194,7 @@ Templates are in `templates/` and contain section structure, markers, and checkl
| `blog-repurpose` | Cross-platform repurposing (social, email, YouTube, Reddit) |
| `blog-geo` | AI citation readiness audit with 0-100 GEO score |
| `blog-audit` | Full-site blog health assessment with parallel subagents |
+| `blog-chart` | Generate inline SVG data visualization charts with dark-mode styling |
## Agents
@@ -239,16 +240,20 @@ Standard execution order for `/blog write`:
For `/blog analyze`, only steps 1 and 6 run (read + score).
For `/blog audit`, step 6 runs in parallel across all posts in the directory.
-## Integration with Other Skills
+### Internal Workflows (Not User-Facing Commands)
-- **`/svg` or `/svg-chart`**: Generate dark-mode SVG charts for data visualization
-- **`/seo`**: Deep SEO analysis of published blog pages
-- **`/seo-schema`**: Schema markup validation and generation
-- **`/seo-geo`**: AI citation optimization audit
+The `blog-chart` sub-skill is invoked internally by `blog-write` and `blog-rewrite`
+when chart-worthy data is identified. It is not a standalone slash command.
+Users do not need to call it directly.
-Use `/svg` inline during `blog-write` when data points warrant a chart. The blog skill
-automatically identifies chart-worthy data (3+ comparable metrics, trend data, before/after
-comparisons) and calls `/svg` to generate inline SVG with dark-mode styling.
+## Integration
+
+Chart generation is built-in — no external dependencies required for full functionality.
+
+**Optional companion skills** (for deeper analysis of published pages):
+- `/seo` — Full SEO audit of published blog pages
+- `/seo-schema` — Schema markup validation and generation
+- `/seo-geo` — AI citation optimization audit
## Anti-Patterns (Never Do These)
diff --git a/blog/references/visual-media.md b/blog/references/visual-media.md
index 1a9a36f..55b21cc 100644
--- a/blog/references/visual-media.md
+++ b/blog/references/visual-media.md
@@ -21,9 +21,9 @@ Search for a wide, high-quality image relevant to the topic:
Unsplash resize: `?w=1200&h=630&fit=crop&q=80`
Pixabay/Pexels: use original if wide enough, or crop.
-### Option 2: Generated SVG Cover (via /svg)
+### Option 2: Generated SVG Cover (via blog-chart)
-For branded or data-driven covers, generate via `/svg`:
+For branded or data-driven covers, generate via `blog-chart`:
- Text-on-gradient with title and key statistic
- Dark-mode compatible (use `currentColor` where possible)
- Include blog name/author subtle branding
@@ -248,9 +248,10 @@ CSS variable pattern for inline SVG dark mode:
---
-## SVG Chart Integration via /svg Skill
+## SVG Chart Integration (Built-In)
-Generate data visualizations using the `/svg` or `/svg-chart` skill.
+Charts are generated by the `blog-chart` sub-skill. The writer identifies chart-worthy
+data during the writing process and delegates chart generation internally.
### Chart Type Selection Guide
@@ -363,21 +364,20 @@ For text inside colored elements: `fill="white"` with `fontWeight="800"`.
</figure>
```
-### Invoking /svg-chart
-
-When generating charts, provide:
-1. **Exact data values** with sources
-2. **Chart type** (ensure diversity)
-3. **Dark-mode styling requirements** (copy from above)
-4. **Platform format**: standard SVG or JSX-compatible
-5. **Save location**: `/tmp/chart-<descriptive-name>.svg`
-
-After generation:
-1. Read the generated SVG file
-2. Verify `currentColor` usage (no hardcoded text colors)
-3. Verify no white/light backgrounds
-4. If MDX: verify camelCase attributes
-5. Embed in content within figure wrapper
+### Invoking blog-chart
+
+When generating charts, pass to the `blog-chart` sub-skill:
+1. **Chart type** (ensure diversity — never repeat within a post)
+2. **Title** for the chart
+3. **Exact data values** with sources
+4. **Source attribution** (name and year)
+5. **Platform format**: html or mdx
+
+The sub-skill returns complete SVG wrapped in a `<figure>`. Verify before embedding:
+1. `currentColor` usage (no hardcoded text colors)
+2. No white/light backgrounds
+3. If MDX: camelCase attributes
+4. Source attribution present
### Common Pitfalls
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index c2c0081..fbd7fa1 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -186,7 +186,7 @@ Code's context as a CLI tool. Provides:
|
+-- Presents outline for user approval
|
- +-- Invokes: /svg-chart (2-4 charts)
+ +-- Invokes: blog-chart (2-4 charts, built-in)
|
+-- Spawns: blog-writer agent
| |
diff --git a/docs/COMMANDS.md b/docs/COMMANDS.md
index 81231ce..cc1a941 100644
--- a/docs/COMMANDS.md
+++ b/docs/COMMANDS.md
@@ -46,7 +46,7 @@ AI citation platforms.
1. **Topic clarification** -- Asks for audience, keyword, word count, platform
2. **Research** -- Spawns `blog-researcher` agent to find 8-12 statistics and images
3. **Outline** -- Generates structured outline, presents for approval
-4. **Chart generation** -- Creates 2-4 SVG charts via `/svg-chart`
+4. **Chart generation** -- Creates 2-4 SVG charts via built-in `blog-chart`
5. **Content writing** -- Spawns `blog-writer` agent for the full article
6. **Quality check** -- Verifies all 6 optimization pillars
7. **Delivery** -- Saves file and presents summary
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md
index 4d93be8..b319639 100644
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@ -102,7 +102,7 @@ irm https://raw.githubusercontent.com/AgriciDaniel/claude-blog/main/install.ps1
| No answer-first formatting | -20 pts max | Add a 40-60 word stat paragraph at the start of every H2 section |
| Fabricated statistics | -8 pts + Critical flag | Replace every unsourced number with a real stat from a tier 1-3 source |
| Missing images | -4 to -7 pts | Add 3-5 images from Pixabay/Unsplash with descriptive alt text |
-| Missing charts | -5 to -8 pts | Generate 2-4 SVG charts via `/svg-chart` (diverse types) |
+| Missing charts | -5 to -8 pts | Generate 2-4 SVG charts via built-in `blog-chart` (diverse types) |
| No FAQ section | -4 pts | Add 3-5 FAQ items with 40-60 word answers containing statistics |
| Long paragraphs (>100 words) | -8 pts | Split into 40-55 word paragraphs |
| Missing `lastUpdated` | -4 pts | Add `lastUpdated: "YYYY-MM-DD"` to frontmatter |
@@ -345,7 +345,7 @@ Hugo site uses YAML (`---` delimiters), add to `hugo.toml`:
**Causes**:
- **Research phase**: WebSearch calls for statistics and images can take
30-60 seconds depending on the topic
-- **Chart generation**: Each `/svg-chart` invocation adds 10-20 seconds
+- **Chart generation**: Each `blog-chart` invocation adds 10-20 seconds
- **Large context**: Loading many reference files increases processing time
**Mitigation**:
diff --git a/install.ps1 b/install.ps1
index 7442ee5..807b477 100644
--- a/install.ps1
+++ b/install.ps1
@@ -49,7 +49,7 @@ function Main {
New-Item -ItemType Directory -Force -Path (Join-Path $SkillDir "blog" "scripts") | Out-Null
New-Item -ItemType Directory -Force -Path $AgentDir | Out-Null
- foreach ($skill in @("blog-write", "blog-rewrite", "blog-analyze", "blog-brief", "blog-calendar", "blog-strategy", "blog-outline", "blog-seo-check", "blog-schema", "blog-repurpose", "blog-geo", "blog-audit")) {
+ foreach ($skill in @("blog-write", "blog-rewrite", "blog-analyze", "blog-brief", "blog-calendar", "blog-strategy", "blog-outline", "blog-seo-check", "blog-schema", "blog-repurpose", "blog-geo", "blog-audit", "blog-chart")) {
New-Item -ItemType Directory -Force -Path (Join-Path $SkillDir $skill) | Out-Null
}
@@ -118,7 +118,7 @@ function Main {
Write-Color White "Installed:"
Write-Color Green " Main skill: blog/ (orchestrator + 12 references + 12 templates)"
- Write-Color Green " Sub-skills: 12 commands"
+ Write-Color Green " Sub-skills: 13 (12 commands + 1 internal)"
Write-Color Green " Agents: 4 specialists"
Write-Color Green " Scripts: analyze_blog.py"
Write-Color White ""
diff --git a/install.sh b/install.sh
index ca2f7fa..04a71a4 100755
--- a/install.sh
+++ b/install.sh
@@ -43,7 +43,7 @@ main() {
mkdir -p "${SKILL_DIR}/blog/references"
mkdir -p "${SKILL_DIR}/blog/templates"
mkdir -p "${SKILL_DIR}/blog/scripts"
- for skill in blog-write blog-rewrite blog-analyze blog-brief blog-calendar blog-strategy blog-outline blog-seo-check blog-schema blog-repurpose blog-geo blog-audit; do
+ for skill in blog-write blog-rewrite blog-analyze blog-brief blog-calendar blog-strategy blog-outline blog-seo-check blog-schema blog-repurpose blog-geo blog-audit blog-chart; do
mkdir -p "${SKILL_DIR}/${skill}"
done
mkdir -p "${AGENT_DIR}"
@@ -104,7 +104,7 @@ main() {
echo ""
echo " Installed:"
echo " Main skill: blog/ (orchestrator + references + templates)"
- echo " Sub-skills: 12 commands"
+ echo " Sub-skills: 13 (12 commands + 1 internal)"
echo " Agents: 4 specialists"
echo " Scripts: analyze_blog.py"
echo ""
diff --git a/skills/blog-brief/SKILL.md b/skills/blog-brief/SKILL.md
index b7776db..9236520 100644
--- a/skills/blog-brief/SKILL.md
+++ b/skills/blog-brief/SKILL.md
@@ -126,7 +126,7 @@ what the searcher wants]
- **Format**: [Markdown/MDX/HTML]
- **H2 sections**: [6-8]
- **Images**: 3-5 from Pixabay/Unsplash
-- **Charts**: 2-4 via /svg-chart (diverse types)
+- **Charts**: 2-4 via built-in blog-chart (diverse types)
- **FAQ items**: 3-5
## Recommended Title
diff --git a/skills/blog-chart/SKILL.md b/skills/blog-chart/SKILL.md
new file mode 100644
index 0000000..8658fb6
--- /dev/null
+++ b/skills/blog-chart/SKILL.md
@@ -0,0 +1,252 @@
+---
+name: blog-chart
+description: >
+ Generate dark-mode-compatible inline SVG data visualization charts for blog
+ posts. Supports horizontal bar, grouped bar, donut, line, lollipop, area,
+ and radar charts with automatic platform detection (HTML vs JSX/MDX).
+ Enforces chart type diversity, accessible markup (role=img, aria-label),
+ source attribution, and transparent backgrounds. Use when user says
+ "blog chart", "generate chart", "data visualization", "svg chart",
+ "blog graph", "visualize data", or when the blog-write workflow identifies
+ chart-worthy data points (3+ comparable metrics, trends, before/after data).
+allowed-tools:
+ - Read
+ - Write
+ - Edit
+ - Bash
+ - Grep
+---
+
+# Blog Chart -- Built-In SVG Data Visualization
+
+Generates dark-mode-compatible inline SVG charts for blog posts. Invoked
+internally by `blog-write` and `blog-rewrite` when chart-worthy data is
+identified. Not a standalone user-facing command.
+
+**Styling source of truth:** `references/visual-media.md`
+
+## Input Format
+
+The writer or researcher passes a chart request:
+
+```
+Chart Request:
+- Type: horizontal bar
+- Title: "AI Citation Sources by Platform"
+- Data: ChatGPT 43.8%, Perplexity 6.6%, Google AI Overviews 2.2%, Reddit 7.15%
+- Source: Ahrefs, December 2025
+- Platform: mdx (or html)
+```
+
+## Chart Type Selection
+
+Select based on the data pattern. Diversity is mandatory — never repeat a
+type within one post.
+
+| Data Pattern | Best Chart Type |
+|-------------|-----------------|
+| Before/after comparison | Grouped bar chart |
+| Ranked factors / correlations | Lollipop chart |
+| Parts of whole / market share | Donut chart |
+| Trend over time | Line chart |
+| Percentage improvement | Horizontal bar chart |
+| Distribution / range | Area chart |
+| Multi-dimensional scoring | Radar chart |
+
+## Styling Rules (Non-Negotiable)
+
+All charts must work on both dark and light backgrounds:
+
+```
+Text elements: fill="currentColor"
+Grid lines: stroke="currentColor" opacity="0.08"
+Axis lines: stroke="currentColor" opacity="0.3"
+Background: transparent (no fill on root SVG)
+Subtitle text: fill="currentColor" opacity="0.45"
+Source text: fill="currentColor" opacity="0.35"
+Label text: fill="currentColor" opacity="0.8"
+```
+
+### Color Palette
+
+| Color | Hex | Use Case |
+|-------|-----|----------|
+| Orange | `#f97316` | Primary / highest value |
+| Sky Blue | `#38bdf8` | Secondary / comparison |
+| Purple | `#a78bfa` | Tertiary / special category |
+| Green | `#22c55e` | Quaternary / positive indicator |
+
+For text inside colored elements: `fill="white"` with `fontWeight="800"`.
+
+## Standard SVG Shell (HTML)
+
+```xml
+<svg
+ viewBox="0 0 560 380"
+ style="max-width: 100%; height: auto; font-family: 'Inter', system-ui, sans-serif"
+ role="img"
+ aria-label="Chart description with key data point"
+>
+ <title>Chart Title</title>
+ <desc>Description for screen readers with all key data points and source</desc>
+
+ <!-- Chart content -->
+
+ <text x="280" y="372" text-anchor="middle" font-size="10" fill="currentColor" opacity="0.35">
+ Source: Source Name (Year)
+ </text>
+</svg>
+```
+
+## JSX/MDX Shell (camelCase attributes)
+
+```jsx
+<svg
+ viewBox="0 0 560 380"
+ style={{maxWidth: '100%', height: 'auto', fontFamily: "'Inter', system-ui, sans-serif"}}
+ role="img"
+ aria-label="Chart description"
+>
+ <title>Chart Title</title>
+ <desc>Description for screen readers</desc>
+
+ {/* Chart content */}
+
+ <text x="280" y="372" textAnchor="middle" fontSize="10" fill="currentColor" opacity="0.35">
+ Source: Source Name (Year)
+ </text>
+</svg>
+```
+
+## JSX Attribute Conversion (Required for MDX)
+
+| HTML | JSX |
+|------|-----|
+| `stroke-width` | `strokeWidth` |
+| `stroke-dasharray` | `strokeDasharray` |
+| `stroke-linecap` | `strokeLinecap` |
+| `text-anchor` | `textAnchor` |
+| `font-size` | `fontSize` |
+| `font-weight` | `fontWeight` |
+| `font-family` | `fontFamily` |
+| `class` | `className` |
+| `style="..."` | `style={{...}}` |
+
+## Chart Type Construction
+
+### Horizontal Bar Chart
+
+Best for: percentage improvements, single-metric comparisons.
+
+1. Define chart area: x=80, y=40, width=440, height=280
+2. Calculate bar height: `chartHeight / dataCount - gap` (gap=8)
+3. Calculate bar width: `(value / maxValue) * chartWidth`
+4. Position bars: `y = chartY + index * (barHeight + gap)`
+5. Label on left (right-aligned at x=75): category name
+6. Value label at end of bar: percentage or number
+7. Source text at bottom center
+
+### Grouped Bar Chart
+
+Best for: before/after, A vs B comparisons.
+
+1. Define groups along Y axis, bars within each group
+2. Use 2 colors (primary + secondary) for the two series
+3. Add legend at top: colored square + label for each series
+4. Gap between groups > gap within groups
+
+### Donut Chart
+
+Best for: parts of whole, market share.
+
+1. Center: cx=280, cy=180, outer radius=140, inner radius=80
+2. Calculate arc segments using cumulative angles
+3. Each segment: `<path d="M... A... L... A... Z" fill="color" />`
+4. Center text: total or key label
+5. Legend below chart with color squares + labels + values
+
+### Line Chart
+
+Best for: trends over time.
+
+1. X axis: time periods, evenly spaced
+2. Y axis: value range with 4-5 grid lines
+3. Draw grid lines: `stroke="currentColor" opacity="0.08"`
+4. Plot data points: `<circle cx=... cy=... r="4" fill="color" />`
+5. Connect with: `<polyline points="..." fill="none" stroke="color" strokeWidth="2" />`
+6. Optional: area fill below line with `opacity="0.1"`
+
+### Lollipop Chart
+
+Best for: ranked factors, correlations.
+
+1. Horizontal orientation (like bar chart but with circles)
+2. Thin line from axis to data point: `stroke="currentColor" opacity="0.15" strokeWidth="1"`
+3. Circle at data point: `r="6"` with fill color
+4. Value label next to circle
+5. Categories on Y axis (left-aligned)
+
+### Area Chart
+
+Best for: distribution, cumulative data.
+
+1. Same as line chart but with filled area below
+2. Area fill: `<path d="M... L... L... Z" fill="color" opacity="0.15" />`
+3. Line on top: `stroke="color" strokeWidth="2" fill="none"`
+4. Grid lines behind the area
+
+### Radar Chart
+
+Best for: multi-dimensional scoring (5-7 axes).
+
+1. Center: cx=280, cy=190
+2. Draw concentric polygons for grid (3-4 levels)
+3. Calculate axis endpoints at equal angles
+4. Plot data points on each axis proportional to value
+5. Connect data points with filled polygon: `fill="color" opacity="0.2" stroke="color"`
+6. Label each axis at the outer edge
+
+## Output Format
+
+Wrap every chart in a `<figure>` element:
+
+**HTML:**
+```html
+<figure>
+ <svg viewBox="0 0 560 380" style="max-width: 100%; height: auto; font-family: 'Inter', system-ui, sans-serif" role="img" aria-label="[description]">
+ <title>[Chart Title]</title>
+ <desc>[Full description with data points for screen readers]</desc>
+ <!-- chart content -->
+ <text x="280" y="372" text-anchor="middle" font-size="10" fill="currentColor" opacity="0.35">
+ Source: [Source Name] ([Year])
+ </text>
+ </svg>
+</figure>
+```
+
+**MDX:**
+```mdx
+<figure className="chart-container" style={{margin: '2.5rem 0', textAlign: 'center', padding: '1.5rem', borderRadius: '12px'}}>
+ <svg viewBox="0 0 560 380" style={{maxWidth: '100%', height: 'auto', fontFamily: "'Inter', system-ui, sans-serif"}} role="img" aria-label="[description]">
+ <title>[Chart Title]</title>
+ <desc>[Full description]</desc>
+ {/* chart content with camelCase attributes */}
+ <text x="280" y="372" textAnchor="middle" fontSize="10" fill="currentColor" opacity="0.35">
+ Source: [Source Name] ([Year])
+ </text>
+ </svg>
+</figure>
+```
+
+## Quality Checklist (Verify Before Returning)
+
+- [ ] No hardcoded text colors (all use `currentColor`)
+- [ ] No white/light backgrounds (transparent or none)
+- [ ] Source attribution text present at bottom
+- [ ] `role="img"` and `aria-label` present on `<svg>`
+- [ ] `<title>` and `<desc>` present inside `<svg>`
+- [ ] Chart type not already used in this post
+- [ ] If MDX: all attributes camelCased (no hyphens in attribute names)
+- [ ] Data values match the source data exactly
+- [ ] Color palette uses only approved colors
+- [ ] ViewBox is `0 0 560 380` (standard) or justified alternative
diff --git a/skills/blog-rewrite/SKILL.md b/skills/blog-rewrite/SKILL.md
index ce7e104..6acfedf 100644
--- a/skills/blog-rewrite/SKILL.md
+++ b/skills/blog-rewrite/SKILL.md
@@ -4,7 +4,7 @@ description: >
Rewrite and optimize existing blog posts for Google rankings (December 2025
Core Update, E-E-A-T) and AI citations (GEO/AEO). Replaces fabricated statistics
with sourced data, applies answer-first formatting, adds Pixabay/Unsplash
- images, generates SVG charts via /svg skill, injects FAQ schema, performs
+ images, generates built-in SVG charts, injects FAQ schema, performs
AI content detection, adds citation capsules and information gain markers,
and updates freshness signals. Works with any blog format (MDX, markdown, HTML).
Use when user says "rewrite blog", "optimize blog", "update blog",
@@ -96,10 +96,16 @@ Wait for user approval before proceeding.
- Identify data suitable for visualization
- Select diverse chart types
-### Phase 3: Chart Generation (If Needed)
+### Phase 3: Chart Generation (Built-In)
-Generate charts via `/svg-chart` if the post needs more visual elements.
-See `references/visual-media.md` for requirements.
+When the post needs more visual elements, invoke the `blog-chart` sub-skill:
+
+1. Select chart type using the diversity rule (no repeated types per post)
+2. Pass: chart type, title, data values, source, platform format
+3. Embed the returned SVG directly within a `<figure>` wrapper
+4. Target 2-4 charts per 2,000-word post
+
+See `references/visual-media.md` for chart type selection and styling rules.
### Phase 4: Content Rewrite
@@ -117,7 +123,7 @@ Apply changes in this order:
- Fix meta description: fact-dense, 150-160 chars, includes 1 statistic
- Add `coverImage` + `coverImageAlt` + `ogImage` if missing
- Search Pixabay/Unsplash/Pexels for wide hero image (1200x630)
- - Or generate custom SVG via `/svg` (text-on-gradient with key stat)
+ - Or generate custom SVG cover via `blog-chart` (text-on-gradient with key stat)
- Verify tags/categories are appropriate
#### 4c. Apply Answer-First Formatting
diff --git a/skills/blog-write/SKILL.md b/skills/blog-write/SKILL.md
index a2fc9c5..c728140 100644
--- a/skills/blog-write/SKILL.md
+++ b/skills/blog-write/SKILL.md
@@ -4,7 +4,7 @@ description: >
Write new blog articles from scratch optimized for Google rankings and AI
citations. Generates full articles with template selection, answer-first
formatting, TL;DR box, information gain markers, citation capsules, sourced
- statistics, Pixabay/Unsplash images, SVG charts via /svg skill, FAQ schema,
+ statistics, Pixabay/Unsplash images, built-in SVG chart generation, FAQ schema,
internal linking zones, and proper heading hierarchy. Supports MDX, markdown,
and HTML output.
Use when user says "write blog", "new blog post", "create article",
@@ -85,7 +85,7 @@ Spawn a `blog-researcher` agent (or do inline research with WebSearch):
- Alternative: `site:unsplash.com [topic] wide`
- Fallback: `site:pexels.com [topic] wide banner`
- Target dimensions: 1200x630 (OG-compatible) or 1920x1080
- - Or generate a custom SVG cover via `/svg` (text-on-gradient with key stat)
+ - Or generate a custom SVG cover via `blog-chart` (text-on-gradient with key stat)
- See `references/visual-media.md` for cover image sizing details
3. **Find 3-5 inline images** from open-source platforms:
- **Pixabay** (preferred): Search `site:pixabay.com [topic keywords]`
@@ -157,17 +157,16 @@ adapt this skeleton to match the template's section structure:
Present the outline to the user for approval before writing.
-### Phase 4: Chart Generation
+### Phase 4: Chart Generation (Built-In)
-Generate 2-4 SVG charts using `/svg-chart` skill.
+When the researcher identifies chart-worthy data (3+ comparable metrics, trend data,
+before/after comparisons):
-For each chart, invoke `/svg-chart` with:
-- Exact data values with sources
-- Chart type (ensure diversity — never repeat a type)
-- If platform is MDX: request JSX-compatible SVG (camelCase attributes)
-- Save location: `/tmp/chart-<descriptive-name>.svg`
-
-After generation, read the SVG and prepare for embedding.
+1. Select chart type using the diversity rule (no repeated types per post)
+2. Invoke `blog-chart` sub-skill with: chart type, title, data values, source, platform format
+3. Embed the returned SVG directly in the post within a `<figure>` wrapper
+4. Target 2-4 charts per 2,000-word post
+5. Distribute charts evenly — never cluster them
See `references/visual-media.md` for chart type selection and styling rules.
diff --git a/uninstall.ps1 b/uninstall.ps1
index cdd2bf0..88b1965 100644
--- a/uninstall.ps1
+++ b/uninstall.ps1
@@ -26,7 +26,7 @@ function Main {
$subSkills = @(
"blog-write", "blog-rewrite", "blog-analyze", "blog-brief",
"blog-calendar", "blog-strategy", "blog-outline", "blog-seo-check",
- "blog-schema", "blog-repurpose", "blog-geo", "blog-audit"
+ "blog-schema", "blog-repurpose", "blog-geo", "blog-audit", "blog-chart"
)
foreach ($skill in $subSkills) {
$skillPath = Join-Path $SkillDir $skill
diff --git a/uninstall.sh b/uninstall.sh
index df08b00..d2de785 100755
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -18,7 +18,7 @@ main() {
fi
# Remove sub-skills
- for skill in blog-write blog-rewrite blog-analyze blog-brief blog-calendar blog-strategy blog-outline blog-seo-check blog-schema blog-repurpose blog-geo blog-audit; do
+ for skill in blog-write blog-rewrite blog-analyze blog-brief blog-calendar blog-strategy blog-outline blog-seo-check blog-schema blog-repurpose blog-geo blog-audit blog-chart; do
if [ -d "${SKILL_DIR}/${skill}" ]; then
rm -rf "${SKILL_DIR}/${skill}"
echo " Removed: ${SKILL_DIR}/${skill}/"