[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ED1FC8X481GASJMZ024RGT":3,"skill-same:01M7ED1FC8X481GASJMZ024RGT":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7ED1FC8X481GASJMZ024RGT","blog-chart",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fblog-chart\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# blog-chart\n\n# Blog Chart: Built-In SVG Data Visualization\n\nGenerates dark-mode-compatible inline SVG charts for blog posts. Invoked\ninternally by `blog-write` and `blog-rewrite` when chart-worthy data is\nidentified. Not a standalone user-facing command.\n\n**Styling source of truth:** `references\u002Fvisual-media.md`\n\n## Input Format\n\nThe writer or researcher passes a chart request:\n\n```\nChart Request:\n- Type: horizontal bar\n- Title: \"AI Citation Sources by Platform\"\n- Data: ChatGPT 43.8%, Perplexity 6.6%, Google AI Overviews 2.2%, Reddit 7.15%\n- Source: Ahrefs, December 2025\n- Platform: mdx (or html)\n```\n\n## Chart Type Selection\n\nSelect based on the data pattern. Diversity is mandatory - never repeat a\ntype within one post.\n\n| Data Pattern | Best Chart Type |\n|-------------|-----------------|\n| Before\u002Fafter comparison | Grouped bar chart |\n| Ranked factors \u002F correlations | Lollipop chart |\n| Parts of whole \u002F market share | Donut chart |\n| Trend over time | Line chart |\n| Percentage improvement | Horizontal bar chart |\n| Distribution \u002F range | Area chart |\n| Multi-dimensional scoring | Radar chart |\n\n## Styling Rules (Non-Negotiable)\n\nAll charts must work on both dark and light backgrounds:\n\n```\nText elements:     fill=\"currentColor\"\nGrid lines:        stroke=\"currentColor\" opacity=\"0.08\"\nAxis lines:        stroke=\"currentColor\" opacity=\"0.3\"\nBackground:        transparent (no fill on root SVG)\nSubtitle text:     fill=\"currentColor\" opacity=\"0.45\"\nSource text:        fill=\"currentColor\" opacity=\"0.35\"\nLabel text:        fill=\"currentColor\" opacity=\"0.8\"\n```\n\n### Color Palette\n\n| Color | Hex | Use Case |\n|-------|-----|----------|\n| Orange | `#f97316` | Primary \u002F highest value |\n| Sky Blue | `#38bdf8` | Secondary \u002F comparison |\n| Purple | `#a78bfa` | Tertiary \u002F special category |\n| Green | `#22c55e` | Quaternary \u002F positive indicator |\n\nFor text inside colored elements: `fill=\"white\"` with `fontWeight=\"800\"`.\n\n## Standard SVG Shell (HTML)\n\n```xml\n\u003Csvg\n  viewBox=\"0 0 560 380\"\n  style=\"max-width: 100%; height: auto; font-family: 'Inter', system-ui, sans-serif\"\n  role=\"img\"\n  aria-label=\"Chart description with key data point\"\n>\n  \u003Ctitle>Chart Title\u003C\u002Ftitle>\n  \u003Cdesc>Description for screen readers with all key data points and source\u003C\u002Fdesc>\n\n  \u003C!-- Chart content -->\n\n  \u003Ctext x=\"280\" y=\"372\" text-anchor=\"middle\" font-size=\"10\" fill=\"currentColor\" opacity=\"0.35\">\n    Source: Source Name (Year)\n  \u003C\u002Ftext>\n\u003C\u002Fsvg>\n```\n\n## JSX\u002FMDX Shell (camelCase attributes)\n\n```jsx\n\u003Csvg\n  viewBox=\"0 0 560 380\"\n  style={{maxWidth: '100%', height: 'auto', fontFamily: \"'Inter', system-ui, sans-serif\"}}\n  role=\"img\"\n  aria-label=\"Chart description\"\n>\n  \u003Ctitle>Chart Title\u003C\u002Ftitle>\n  \u003Cdesc>Description for screen readers\u003C\u002Fdesc>\n\n  {\u002F* Chart content *\u002F}\n\n  \u003Ctext x=\"280\" y=\"372\" textAnchor=\"middle\" fontSize=\"10\" fill=\"currentColor\" opacity=\"0.35\">\n    Source: Source Name (Year)\n  \u003C\u002Ftext>\n\u003C\u002Fsvg>\n```\n\n## JSX Attribute Conversion (Required for MDX)\n\n| HTML | JSX |\n|------|-----|\n| `stroke-width` | `strokeWidth` |\n| `stroke-dasharray` | `strokeDasharray` |\n| `stroke-linecap` | `strokeLinecap` |\n| `text-anchor` | `textAnchor` |\n| `font-size` | `fontSize` |\n| `font-weight` | `fontWeight` |\n| `font-family` | `fontFamily` |\n| `class` | `className` |\n| `style=\"...\"` | `style={{...}}` |\n\n## Chart Type Construction\n\n### Horizontal Bar Chart\n\nBest for: percentage improvements, single-metric comparisons.\n\n1. Define chart area: x=80, y=40, width=440, height=280\n2. Calculate bar height: `chartHeight \u002F dataCount - gap` (gap=8)\n3. Calculate bar width: `(value \u002F maxValue) * chartWidth`\n4. Position bars: `y = chartY + index * (barHeight + gap)`\n5. Label on left (right-aligned at x=75): category name\n6. Value label at end of bar: percentage or number\n7. Source text at bottom center\n\n### Grouped Bar Chart\n\nBest for: before\u002Fafter, A vs B comparisons.\n\n1. Define groups along Y axis, bars within each group\n2. Use 2 colors (primary + secondary) for the two series\n3. Add legend at top: colored square + label for each series\n4. Gap between groups > gap within groups\n\n### Donut Chart\n\nBest for: parts of whole, market share.\n\n1. Center: cx=280, cy=180, outer radius=140, inner radius=80\n2. Calculate arc segments using cumulative angles\n3. Each segment: `\u003Cpath d=\"M... A... L... A... Z\" fill=\"color\" \u002F>`\n4. Center text: total or key label\n5. Legend below chart with color squares + labels + values\n\n### Line Chart\n\nBest for: trends over time.\n\n1. X axis: time periods, evenly spaced\n2. Y axis: value range with 4-5 grid lines\n3. Draw grid lines: `stroke=\"currentColor\" opacity=\"0.08\"`\n4. Plot data points: `\u003Ccircle cx=... cy=... r=\"4\" fill=\"color\" \u002F>`\n5. Connect with: `\u003Cpolyline points=\"...\" fill=\"none\" stroke=\"color\" strokeWidth=\"2\" \u002F>`\n6. Optional: area fill below line with `opacity=\"0.1\"`\n\n### Lollipop Chart\n\nBest for: ranked factors, correlations.\n\n1. Horizontal orientation (like bar chart but with circles)\n2. Thin line from axis to data point: `stroke=\"currentColor\" opacity=\"0.15\" strokeWidth=\"1\"`\n3. Circle at data point: `r=\"6\"` with fill color\n4. Value label next to circle\n5. Categories on Y axis (left-aligned)\n\n### Area Chart\n\nBest for: distribution, cumulative data.\n\n1. Same as line chart but with filled area below\n2. Area fill: `\u003Cpath d=\"M... L... L... Z\" fill=\"color\" opacity=\"0.15\" \u002F>`\n3. Line on top: `stroke=\"color\" strokeWidth=\"2\" fill=\"none\"`\n4. Grid lines behind the area\n\n### Radar Chart\n\nBest for: multi-dimensional scoring (5-7 axes).\n\n1. Center: cx=280, cy=190\n2. Draw concentric polygons for grid (3-4 levels)\n3. Calculate axis endpoints at equal angles\n4. Plot data points on each axis proportional to value\n5. Connect data points with filled polygon: `fill=\"color\" opacity=\"0.2\" stroke=\"color\"`\n6. Label each axis at the outer edge\n\n## Output Format\n\nWrap every chart in a `\u003Cfigure>` element:\n\n**HTML:**\n```html\n\u003Cfigure>\n  \u003Csvg viewBox=\"0 0 560 380\" style=\"max-width: 100%; height: auto; font-family: 'Inter', system-ui, sans-serif\" role=\"img\" aria-label=\"[description]\">\n    \u003Ctitle>[Chart Title]\u003C\u002Ftitle>\n    \u003Cdesc>[Full description with data points for screen readers]\u003C\u002Fdesc>\n    \u003C!-- chart content -->\n    \u003Ctext x=\"280\" y=\"372\" text-anchor=\"middle\" font-size=\"10\" fill=\"currentColor\" opacity=\"0.35\">\n      Source: [Source Name] ([Year])\n    \u003C\u002Ftext>\n  \u003C\u002Fsvg>\n\u003C\u002Ffigure>\n```\n\n**MDX:**\n```mdx\n\u003Cfigure className=\"chart-container\" style={{margin: '2.5rem 0', textAlign: 'center', padding: '1.5rem', borderRadius: '12px'}}>\n  \u003Csvg viewBox=\"0 0 560 380\" style={{maxWidth: '100%', height: 'auto', fontFamily: \"'Inter', system-ui, sans-serif\"}} role=\"img\" aria-label=\"[description]\">\n    \u003Ctitle>[Chart Title]\u003C\u002Ftitle>\n    \u003Cdesc>[Full description]\u003C\u002Fdesc>\n    {\u002F* chart content with camelCase attributes *\u002F}\n    \u003Ctext x=\"280\" y=\"372\" textAnchor=\"middle\" fontSize=\"10\" fill=\"currentColor\" opacity=\"0.35\">\n      Source: [Source Name] ([Year])\n    \u003C\u002Ftext>\n  \u003C\u002Fsvg>\n\u003C\u002Ffigure>\n```\n\n## Quality Checklist (Verify Before Returning)\n\n- [ ] No hardcoded text colors (all use `currentColor`)\n- [ ] No white\u002Flight backgrounds (transparent or none)\n- [ ] Source attribution text present at bottom\n- [ ] `role=\"img\"` and `aria-label` present on `\u003Csvg>`\n- [ ] `\u003Ctitle>` and `\u003Cdesc>` present inside `\u003Csvg>`\n- [ ] Chart type not already used in this post\n- [ ] If MDX: all attributes camelCased (no hyphens in attribute names)\n- [ ] Data values match the source data exactly\n- [ ] Color palette uses only approved colors\n- [ ] ViewBox is `0 0 560 380` (standard) or justified alternative\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fproductivity\u002Fblog-chart","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill blog-chart",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill blog-chart",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill blog-chart","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fblog-chart\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",276,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fblog-chart\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]