zcbot/skills/ppt/templates/charts
caoqianming 0e02cff6c6 feat(ppt): 对齐网格锁+错位/单调质检(d1285247 陶瓷 deck 复盘,bump 0.37.0)
复盘 25 页陶瓷 deck 三类缺陷:跨页左基线漂移+并排块顶差 2-12px 的
"想对齐没对齐"、5 页同为图标卡网格的单调、标题语义不兑现(架构画成
横条列表)。修四层:
- spec_lock 新增 layout_grid 锁段(margin_x/content_top/footer_y/gutter),
  strategist 派生、executor 每页吸附、checker 强制
- executor-base §3 网格对齐纪律(同 top 同高等 gutter、打破网格 >=16px、
  同行文字 >=0.3em 禁贴字)
- svg_quality_checker 新增 check 14:兄弟卡片近失对齐 2-12px error
  (底对齐/中心对齐/chart-plot-area 内数据柱三类豁免,71 charts 回归
  误报清零)、layout_grid 偏离 2-15px error、gap 不等 warning、无锁
  项目跨页左缘聚类漂移 warning、版式指纹单调门(>=3 同指纹 warn、
  >=4 或过半 error;仅对 NN_ 编号 deck 页聚合)
- 策略纪律:同一版式原型整本 <=2 次 + 标题语义必须被图形兑现

顺手修 comparison_columns 模板胶囊 5px 错位。
新增 tests/test_svg_alignment_check.py 21 项;全量 153 过。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 12:16:42 +08:00
..
CHART_STYLE_GUIDE.md
README.md
agenda_list.svg
arc_anchored_list.svg
area_chart.svg
bar_chart.svg
basic_table.svg
box_plot_chart.svg
bubble_chart.svg
bullet_chart.svg
butterfly_chart.svg
charts_index.json
chevron_chain_with_tail.svg
chevron_process.svg
circular_stages.svg
client_server_flow.svg
comparison_columns.svg feat(ppt): 对齐网格锁+错位/单调质检(d1285247 陶瓷 deck 复盘,bump 0.37.0) 2026-07-03 12:16:42 +08:00
comparison_table.svg
concentric_circles.svg
consulting_table.svg
donut_chart.svg
dual_axis_line_chart.svg
dumbbell_chart.svg
feature_matrix_table.svg
financial_statement_table.svg
fishbone_diagram.svg
funnel_chart.svg
gantt_chart.svg
gauge_chart.svg
grouped_bar_chart.svg
harvey_balls_table.svg
heatmap_chart.svg
horizontal_bar_chart.svg
hub_inward_arrows.svg
hub_spoke.svg
icon_grid.svg
isometric_stairs.svg
journey_map.svg
kpi_cards.svg
labeled_card.svg
layered_architecture.svg
line_chart.svg
matrix_2x2.svg
mind_map.svg
module_composition.svg
numbered_steps.svg
pareto_chart.svg
pie_chart.svg
pipeline_with_stages.svg
process_flow.svg
progress_bar_chart.svg
project_schedule_table.svg
pros_cons_chart.svg
pyramid_chart.svg
pyramid_isometric.svg
quadrant_bubble_scatter.svg
quadrant_text_bullets.svg
radar_chart.svg
roadmap_vertical.svg
sankey_chart.svg
scatter_chart.svg
segmented_wheel.svg
snake_flow.svg
stacked_area_chart.svg
stacked_bar_chart.svg
team_roster.svg
timeline.svg
top_down_tree.svg
treemap_chart.svg
venn_diagram.svg
vertical_list.svg
vertical_pillars.svg
waterfall_chart.svg
word_cloud.svg

README.md

SVG Visualization Template Library

This directory contains the standardized SVG visualization templates used by PPT Master — charts, infographics, process diagrams, relationship diagrams, and strategic frameworks. The directory name charts/ is kept for backward compatibility; the library scope is broader than charts.

Source of truth

charts_index.json is the single source of truth for the library: total count + one selection-rule summary per template (format: "Pick for X. Skip if Y (use other_key)."). Both human readers and AI roles read it in full — there is no category/keyword sub-index. Selection is done by semantic match against the summary list in one pass.

To browse the library, open charts_index.json and scan the charts block top-to-bottom; each entry's summary answers "when do I pick this, when do I skip" directly.

Style rules

See CHART_STYLE_GUIDE.md for color palette, typography, and SVG authoring conventions all templates must follow.

Usage

Before generating a chart page, open the corresponding <key>.svg file to read its structure and layout. Files are named after the key field in charts_index.json (e.g. bar_chart.svg, quadrant_bubble_scatter.svg). Templates are named by visual structure, not by business-model name — keywords like SWOT, BCG, PEST, OKR, Porter's Five Forces, Value Chain are matched via each template's summary field.