Skip to content

yzsp-studio/mediakit-shared-suite / ppt

飞书幻灯片:创建和编辑幻灯片。创建演示文稿、读取幻灯片内容、管理幻灯片页面(创建、删除、读取、局部替换)。当用户需要创建或编辑幻灯片、读取或修改单个页面时使用。

FileKindSize
SKILL.mdskill md40.1 KB
references/cli/lark-slides-add-slide.mdmarkdown7.3 KB
references/cli/lark-slides-create.mdmarkdown10.5 KB
references/cli/lark-slides-delete-slide.mdmarkdown2.7 KB
references/cli/lark-slides-history.mdmarkdown6.9 KB
references/cli/lark-slides-media-upload.mdmarkdown5.5 KB
references/cli/lark-slides-replace-slide.mdmarkdown14.8 KB
references/cli/lark-slides-screenshot.mdmarkdown5.4 KB
references/cli/lark-slides-update-slide.mdmarkdown11.6 KB
references/cli/lark-slides-xml-presentation-slide-get.mdmarkdown3.6 KB
references/cli/lark-slides-xml-presentation-slide-replace.mdmarkdown7.3 KB
references/cli/lark-slides-xml-presentations-get.mdmarkdown9.4 KB
references/refine/academic-research.mdmarkdown7.3 KB
references/refine/brand-storytelling.mdmarkdown8.3 KB
references/refine/business-pitch.mdmarkdown8.0 KB
references/refine/business-review.mdmarkdown8.3 KB
references/refine/fallback.mdmarkdown7.8 KB
references/refine/learning-and-training.mdmarkdown8.5 KB
references/refine/strategy-and-analysis.mdmarkdown8.1 KB
references/refine/technical-presentation.mdmarkdown8.1 KB
references/style/academic-research.mdmarkdown18.5 KB
references/style/brand-storytelling.mdmarkdown34.1 KB
references/style/business-pitch.mdmarkdown12.2 KB
references/style/business-review.mdmarkdown19.6 KB
references/style/fallback.mdmarkdown8.7 KB
references/style/learning-and-training.mdmarkdown20.8 KB
references/style/slide-taxonomy.mdmarkdown13.6 KB
references/style/strategy-and-analysis.mdmarkdown8.4 KB
references/style/technical-presentation.mdmarkdown15.6 KB
references/workflow/error-handling.mdmarkdown9.6 KB
references/workflow/local-compat.mdmarkdown5.3 KB
references/workflow/slides-editing.mdmarkdown34.6 KB
references/workflow/template-editing-main.mdmarkdown36.6 KB
references/workflow/template-editing-organizer.mdmarkdown24.4 KB
references/workflow/validation-visual.mdmarkdown7.1 KB
references/workflow/validation-xml.mdmarkdown31.9 KB
references/workflow/windows-compat.mdmarkdown6.3 KB
references/xml/fonts.mdmarkdown7.6 KB
references/xml/iconpark-index.jsonconfig729.4 KB
references/xml/iconpark.mdmarkdown2.1 KB
references/xml/slides_chart_demo.xmlconfig69.2 KB
references/xml/slides_xml_schema_definition.xmlconfig228.6 KB
references/xml/xml-schema-quick-ref.mdmarkdown34.7 KB
scripts/atomize_svg_to_slide.pyscript80.2 KB
scripts/atomize_svg_to_slide_test.pyscript5.5 KB
scripts/color_contrast_check.pyscript36.4 KB
scripts/color_contrast_check_test.pyscript28.9 KB
scripts/embed_svg_validator.pyscript56.7 KB
scripts/embed_svg_validator_test.pyscript18.2 KB
scripts/gen_svg_charts.pyscript48.8 KB
scripts/gen_svg_relations.pyscript42.6 KB
scripts/iconpark_tool.pyscript12.1 KB
scripts/iconpark_tool_test.pyscript7.7 KB
scripts/lint_inspect.pyscript23.3 KB
scripts/lint_inspect_test.pyscript13.2 KB
scripts/parse_template.pyscript114.0 KB
scripts/purge_deck.pyscript11.4 KB
scripts/safe_update_slide.pyscript21.0 KB
scripts/svg_lib/_baseline.pyscript50.9 KB
scripts/svg_lib/_boxplot_skin.pyscript21.5 KB
scripts/svg_lib/_common.pyscript46.6 KB
scripts/svg_lib/charts/__init__.pyscript853 B
scripts/svg_lib/charts/_shared.pyscript8.6 KB
scripts/svg_lib/charts/boxplot.pyscript26.9 KB
scripts/svg_lib/charts/calheat.pyscript45.7 KB
scripts/svg_lib/charts/candle.pyscript39.1 KB
scripts/svg_lib/charts/event_timeline.pyscript66.6 KB
scripts/svg_lib/charts/funnel.pyscript54.6 KB
scripts/svg_lib/charts/gantt.pyscript53.6 KB
scripts/svg_lib/charts/marimekko.pyscript26.9 KB
scripts/svg_lib/charts/matrix_heat.pyscript52.3 KB
scripts/svg_lib/charts/nested_donut.pyscript61.2 KB
scripts/svg_lib/charts/percent_grid.pyscript38.6 KB
scripts/svg_lib/charts/pyramid.pyscript44.8 KB
scripts/svg_lib/charts/quadrant.pyscript76.8 KB
scripts/svg_lib/charts/ridge.pyscript28.7 KB
scripts/svg_lib/charts/sankey.pyscript48.9 KB
scripts/svg_lib/charts/violin.pyscript37.2 KB
scripts/svg_lib/charts/waterfall.pyscript52.3 KB
scripts/svg_lib/svg_palettes.pyscript52.7 KB
scripts/svg_relation_lib/__init__.pyscript2.0 KB
scripts/svg_relation_lib/_viewbox.pyscript10.5 KB
scripts/svg_relation_lib/attributes/__init__.pyscript1.4 KB
scripts/svg_relation_lib/attributes/_resolver.pyscript1.3 KB
scripts/svg_relation_lib/attributes/_test_attrs.pyscript11.8 KB
scripts/svg_relation_lib/attributes/_test_pipeline.pyscript12.5 KB
scripts/svg_relation_lib/attributes/apply.pyscript5.3 KB
scripts/svg_relation_lib/attributes/category.pyscript1.5 KB
scripts/svg_relation_lib/attributes/confidence.pyscript1.5 KB
scripts/svg_relation_lib/attributes/directional.pyscript1.4 KB
scripts/svg_relation_lib/attributes/highlight.pyscript1.6 KB
scripts/svg_relation_lib/attributes/signed.pyscript1.7 KB
scripts/svg_relation_lib/attributes/size.pyscript1.3 KB
scripts/svg_relation_lib/attributes/status.pyscript2.1 KB
scripts/svg_relation_lib/attributes/temporal.pyscript2.5 KB
scripts/svg_relation_lib/attributes/typed.pyscript1.6 KB
scripts/svg_relation_lib/attributes/weighted.pyscript1.4 KB
scripts/svg_relation_lib/chrome.pyscript9.1 KB
scripts/svg_relation_lib/engine.pyscript11.5 KB
scripts/svg_relation_lib/layouts/__init__.pyscript383 B
scripts/svg_relation_lib/layouts/bloom_v2.pyscript37.9 KB
scripts/svg_relation_lib/layouts/c4_container_v2.pyscript35.1 KB
scripts/svg_relation_lib/layouts/column_stack.pyscript5.3 KB
scripts/svg_relation_lib/layouts/fishbone_v2.pyscript38.1 KB
scripts/svg_relation_lib/layouts/hub_fanout.pyscript15.5 KB
scripts/svg_relation_lib/layouts/osi_stack_v2.pyscript32.8 KB
scripts/svg_relation_lib/layouts/vertical_chain.pyscript4.5 KB
scripts/svg_relation_lib/palettes.pyscript8.9 KB
scripts/svg_relation_lib/palettes_ext.pyscript17.2 KB
scripts/svg_relation_lib/presets/__init__.pyscript297 B
scripts/svg_relation_lib/presets/_chrome.pyscript1.6 KB
scripts/svg_relation_lib/presets/hero_embed_01_AL_fishbone_v2.pyscript21.7 KB
scripts/svg_relation_lib/presets/hero_embed_02_PY_pmf_v2.pyscript16.5 KB
scripts/svg_relation_lib/presets/hero_embed_03_BL_bloom_v2.pyscript44.0 KB
scripts/svg_relation_lib/presets/hero_embed_04_J1_osi_v2.pyscript46.2 KB
scripts/svg_relation_lib/presets/hero_embed_05_MP_mindmap_v2.pyscript28.6 KB
scripts/svg_relation_lib/presets/hero_embed_07_TX_taxonomy_v2.pyscript64.7 KB
scripts/svg_relation_lib/presets/hero_embed_08_KP_kpi_v2.pyscript79.5 KB
scripts/svg_relation_lib/presets/hero_embed_09_E2_5why_v2.pyscript39.4 KB
scripts/svg_relation_lib/presets/hero_embed_10_CS_c4_v2.pyscript173.5 KB
scripts/svg_relation_lib/presets/hero_embed_32_CU2_curriculum_v2.pyscript66.1 KB
scripts/svg_relation_lib/presets/hero_embed_49_FT_faulttree_v2.pyscript69.4 KB
scripts/svg_relation_lib/render.pyscript28.0 KB
scripts/svg_relation_lib/render/render_bl_bloom_tests.pyscript8.2 KB
scripts/svg_relation_lib/render/render_cu2_curriculum_variants.pyscript19.6 KB
scripts/svg_relation_lib/render/render_e2_5why_variants.pyscript8.9 KB
scripts/svg_relation_lib/render/render_ft_faulttree_variants.pyscript12.8 KB
scripts/svg_relation_lib/render/render_j1_osi_tests.pyscript12.0 KB
scripts/svg_relation_lib/render/render_py_pmf_variants.pyscript13.0 KB
scripts/svg_relation_lib/render/render_tx_taxonomy_variants.pyscript17.6 KB
scripts/svg_relation_lib/schemas/__init__.pyscript280 B
scripts/svg_relation_lib/schemas/graph.pyscript1.5 KB
scripts/svg_relation_lib/schemas/tree.pyscript11.2 KB
scripts/svg_relation_lib/skeletons.pyscript15.3 KB
scripts/svg_relation_lib/skins/__init__.pyscript1.3 KB
scripts/svg_relation_lib/skins/_base.pyscript10.0 KB
scripts/svg_relation_lib/skins/annual_report_ivory.pyscript9.1 KB
scripts/svg_relation_lib/skins/art_deco.pyscript27.1 KB
scripts/svg_relation_lib/skins/arxiv_clean.pyscript9.1 KB
scripts/svg_relation_lib/skins/arxiv_pastel.pyscript9.0 KB
scripts/svg_relation_lib/skins/bain_scarlet.pyscript9.0 KB
scripts/svg_relation_lib/skins/bauhaus_primary.pyscript9.2 KB
scripts/svg_relation_lib/skins/bcg_forest.pyscript9.0 KB
scripts/svg_relation_lib/skins/bloomberg_amber.pyscript9.2 KB
scripts/svg_relation_lib/skins/blueprint_grid.pyscript9.6 KB
scripts/svg_relation_lib/skins/boardroom_navy.pyscript29.9 KB
scripts/svg_relation_lib/skins/chalkboard_slate.pyscript9.0 KB
scripts/svg_relation_lib/skins/coursera_indigo.pyscript9.0 KB
scripts/svg_relation_lib/skins/couture_noir.pyscript33.0 KB
scripts/svg_relation_lib/skins/deloitte_lime.pyscript8.9 KB
scripts/svg_relation_lib/skins/duolingo_cream.pyscript20.4 KB
scripts/svg_relation_lib/skins/editorial.pyscript6.4 KB
scripts/svg_relation_lib/skins/editorial_atelier.pyscript60.7 KB
scripts/svg_relation_lib/skins/editorial_atelier_lark.pyscript19.6 KB
scripts/svg_relation_lib/skins/editorial_atelier_tokens.mdmarkdown13.6 KB
scripts/svg_relation_lib/skins/engineering_kraft.pyscript9.0 KB
scripts/svg_relation_lib/skins/goldman_slate.pyscript9.1 KB
scripts/svg_relation_lib/skins/hermes_orange.pyscript9.0 KB
scripts/svg_relation_lib/skins/ib_editorial.pyscript28.9 KB
scripts/svg_relation_lib/skins/journal_ivory.pyscript29.7 KB
scripts/svg_relation_lib/skins/khan_teal.pyscript9.0 KB
scripts/svg_relation_lib/skins/luxury_manual.pyscript20.4 KB
scripts/svg_relation_lib/skins/manuscript_sepia.pyscript9.1 KB
scripts/svg_relation_lib/skins/mbb_consulting.pyscript32.8 KB
scripts/svg_relation_lib/skins/medical_chart.pyscript22.6 KB
scripts/svg_relation_lib/skins/monocle_ecru.pyscript9.1 KB
scripts/svg_relation_lib/skins/napkin.pyscript6.3 KB
scripts/svg_relation_lib/skins/notebook_grid.pyscript9.2 KB
scripts/svg_relation_lib/skins/oxford_indigo.pyscript9.1 KB
scripts/svg_relation_lib/skins/pitch_bauhaus.pyscript9.1 KB
scripts/svg_relation_lib/skins/pitch_ivory.pyscript18.7 KB
scripts/svg_relation_lib/skins/pitch_midnight.pyscript9.1 KB
scripts/svg_relation_lib/skins/pitch_neon.pyscript32.2 KB
scripts/svg_relation_lib/skins/pitch_sunset.pyscript9.1 KB
scripts/svg_relation_lib/skins/registry.pyscript8.5 KB
scripts/svg_relation_lib/skins/riso_duotone.pyscript9.0 KB
scripts/svg_relation_lib/skins/roland_terracotta.pyscript9.0 KB
scripts/svg_relation_lib/skins/saas_product.pyscript38.6 KB
scripts/svg_relation_lib/skins/strategic_briefing.pyscript31.3 KB
scripts/svg_relation_lib/skins/swiss_grid.pyscript8.9 KB
scripts/svg_relation_lib/skins/symposium_ash.pyscript9.2 KB
scripts/svg_relation_lib/skins/technical_whitepaper.pyscript23.7 KB
scripts/svg_relation_lib/skins/terminal_matrix.pyscript9.2 KB
scripts/svg_relation_lib/skins/wabi_sabi.pyscript9.3 KB
scripts/svg_relation_lib/skins/wsj_broadsheet.pyscript9.1 KB
scripts/sxsd_validator.pyscript38.4 KB
scripts/template_lint_all.pyscript48.1 KB
scripts/xml_inspect.pyscript19.8 KB
scripts/xml_inspect_test.pyscript17.7 KB
scripts/xml_lint.pyscript226.8 KB
scripts/xml_lint_test.pyscript346.9 KB

scripts/svg_relation_lib/render/render_cu2_curriculum_variants.py

View on GitHub
#!/usr/bin/env python3
"""Regenerate 4 CU2_curriculum variants into step2_codified.

Variants:
  - baseline: 6-module engineering academy (default BASELINE_MODULES) + KPIs
              + milestones + sidebar + reading guide
  - dense:    8-module data-science bootcamp (SQL → capstone)
              · 8 weeks × 2-block · rich topics
  - sparse:   4-module UX foundations track (research → ship)
              · fewer modules · fewer topics per module
  - minimal:  5-module ops track · no sidebar · no reading guide
"""
from __future__ import annotations

import os
import sys

HERE = os.path.dirname(os.path.abspath(__file__))
if HERE not in sys.path:
    sys.path.insert(0, HERE)

from svg_relation_lib.presets.hero_embed_32_CU2_curriculum_v2 import (  # type: ignore  # noqa: E402
    render_hero_embed_cu2_curriculum_v2,
    build_curriculum_data,
)


OUT_DIR = os.path.abspath(os.path.join(
    HERE, "..", "..", "final_svg_relation",
    "32_CU2_curriculum", "step2_codified",
))


def _write(name: str, svg: str) -> None:
    os.makedirs(OUT_DIR, exist_ok=True)
    path = os.path.join(OUT_DIR, name)
    with open(path, "w", encoding="utf-8") as f:
        f.write(svg)
    print(f"wrote {path}  ({len(svg):,} chars)")


# ═════════════════════════════════════════════════════════════════
# DENSE · 8-module data-science bootcamp · 16 week
# ═════════════════════════════════════════════════════════════════

DENSE_MODULES = [
    {
        "code": "D01", "title": "SQL & data",
        "subtitle": "Postgres · dbt",
        "kind": "core", "hue": "navy",
        "duration": "18 h",
        "topics": [
            "Relational model",
            "Window funcs",
            "dbt models",
            "Lineage & catalog",
        ],
        "assessment": "SQL lab",
        "assessment_note": "6-question set",
        "prereq": "— none —",
        "prereq_note": "entry point",
        "weight": 0.55,
    },
    {
        "code": "D02", "title": "Python DS",
        "subtitle": "pandas · numpy",
        "kind": "core", "hue": "navy",
        "duration": "18 h",
        "topics": [
            "pandas idioms",
            "numpy vectorise",
            "matplotlib",
            "notebook hygiene",
        ],
        "assessment": "Notebook set",
        "assessment_note": "3 EDA notebooks",
        "prereq": "D01 · SQL",
        "prereq_note": "SQL joins req",
        "weight": 0.65,
    },
    {
        "code": "D03", "title": "Statistics",
        "subtitle": "inference · A/B",
        "kind": "core", "hue": "navy",
        "duration": "20 h",
        "topics": [
            "Hypothesis test",
            "A/B experiments",
            "Confidence int",
            "Bayesian priors",
        ],
        "assessment": "Stat set",
        "assessment_note": "peer review",
        "prereq": "D02 · Python",
        "prereq_note": "pandas fluency",
        "weight": 0.70,
    },
    {
        "code": "D04", "title": "ML fund",
        "subtitle": "sklearn · trees",
        "kind": "core", "hue": "navy",
        "duration": "22 h",
        "topics": [
            "Regression",
            "Gradient boost",
            "Cross-val eval",
            "Feature engr",
        ],
        "assessment": "Kaggle comp",
        "assessment_note": "leaderboard",
        "prereq": "D03 · Stats",
        "prereq_note": "inference basics",
        "weight": 0.80,
    },
    {
        "code": "D05", "title": "Deep learn",
        "subtitle": "PyTorch · CNN",
        "kind": "elective", "hue": "green",
        "duration": "22 h",
        "topics": [
            "PyTorch autograd",
            "CNN vision",
            "RNN sequence",
            "Transformer 101",
        ],
        "assessment": "Model card",
        "assessment_note": "eval on holdout",
        "prereq": "D04 · ML",
        "prereq_note": "sklearn base",
        "weight": 0.85,
    },
    {
        "code": "D06", "title": "LLM & RAG",
        "subtitle": "LangChain · vec",
        "kind": "elective", "hue": "green",
        "duration": "20 h",
        "topics": [
            "Prompt engr",
            "RAG arch",
            "Vector stores",
            "LLM evaluation",
        ],
        "assessment": "RAG app",
        "assessment_note": "OSS demo",
        "prereq": "D05 · DL",
        "prereq_note": "Transformer OK",
        "weight": 0.88,
    },
    {
        "code": "D07", "title": "MLOps",
        "subtitle": "MLflow · Airflow",
        "kind": "elective", "hue": "green",
        "duration": "18 h",
        "topics": [
            "Experiment track",
            "Pipeline orches",
            "Model registry",
            "Drift monitor",
        ],
        "assessment": "Deploy demo",
        "assessment_note": "live model",
        "prereq": "D04 + D05",
        "prereq_note": "ML + DL req",
        "weight": 0.75,
    },
    {
        "code": "D08", "title": "Capstone",
        "subtitle": "ship a product",
        "kind": "capstone", "hue": "gold_p",
        "duration": "40 h",
        "topics": [
            "Scoping & data",
            "Model & eval",
            "Deploy monitor",
            "Demo & retro",
        ],
        "assessment": "Panel jury",
        "assessment_note": "written report",
        "prereq": "all core + 1",
        "prereq_note": "D01-04 must",
        "weight": 1.00,
    },
]

DENSE_KPIS = [
    {"kicker": "MODULES", "value": "8",
     "note": "4 core · 3 elect · 1 caps", "hue": "navy"},
    {"kicker": "DURATION", "value": "16 wk",
     "note": "178 h contact · project sprints", "hue": "green"},
    {"kicker": "MILESTONES", "value": "5",
     "note": "gates every 2-3 module", "hue": "gold_p"},
    {"kicker": "COHORT", "value": "32",
     "note": "analysts → ML engineers", "hue": "navy"},
]

DENSE_WEEK_TICKS = [
    "W1-W2", "W3-W4", "W5-W6", "W7-W8",
    "W9-W10", "W11-W12", "W13-W14", "W15-W16",
]

DENSE_MILESTONES = [
    {"at_module": 2, "label": "GATE 1", "kind": "gate"},
    {"at_module": 4, "label": "GATE 2", "kind": "gate"},
    {"at_module": 6, "label": "GATE 3", "kind": "gate"},
    {"at_module": 7, "label": "GATE 4", "kind": "gate"},
    {"at_module": 8, "label": "DEMO DAY", "kind": "demo"},
]

DENSE_OUTCOMES = [
    {"code": "LO1", "title": "Query production data",
     "body": "Write correct SQL · pandas transforms · at scale."},
    {"code": "LO2", "title": "Ship a ML model",
     "body": "Train, evaluate, and deploy a supervised model."},
    {"code": "LO3", "title": "Operate MLOps",
     "body": "Track experiments, monitor drift, retrain on schedule."},
    {"code": "LO4", "title": "Present findings",
     "body": "Write reports, defend model choices, communicate risk."},
]

DENSE_SIDEBAR_STATS = [
    {"label": "PASS THRESHOLD", "value": "4 / 5 gates"},
    {"label": "CAPSTONE WEIGHT", "value": "35 %"},
    {"label": "MENTOR HOURS", "value": "48 h"},
]

DENSE_READ_LINES = [
    {"hue": "navy", "title": "Kind hue",
     "lines": ["navy = core · green = elective ·",
               "amber = capstone"]},
    {"hue": "gray", "title": "Prereq flow",
     "lines": ["chain arrows link module N → N+1 ·",
               "electives fork off core"]},
    {"hue": "gold_p", "title": "Milestone gate",
     "lines": ["5 flags on axis · dark = final",
               "demo day at W15-W16"]},
    {"hue": "green", "title": "Credit weight",
     "lines": ["bottom bar shows module weight ·",
               "capstone weighted 35 % of grade"]},
]

DENSE_NOTES = (
    "Notes. 8-module data-science bootcamp · 16 weeks · 4 core + 3 elective + "
    "1 capstone · duration and gate cadence follow standard bootcamp pattern."
)


# ═════════════════════════════════════════════════════════════════
# SPARSE · 4-module UX foundations · 8 week · 3 core + 1 capstone
# ═════════════════════════════════════════════════════════════════

SPARSE_MODULES = [
    {
        "code": "U01", "title": "User research",
        "subtitle": "interviews · surveys · synthesis",
        "kind": "core", "hue": "navy",
        "duration": "20 h",
        "topics": [
            "Interview technique",
            "Survey design & bias",
            "Affinity synthesis",
        ],
        "assessment": "Research report",
        "assessment_note": "3 user interviews",
        "prereq": "— none —",
        "prereq_note": "entry point",
        "weight": 0.55,
    },
    {
        "code": "U02", "title": "Interaction design",
        "subtitle": "flows · prototypes · Figma",
        "kind": "core", "hue": "navy",
        "duration": "22 h",
        "topics": [
            "Task flow modelling",
            "Prototype fidelity",
            "Figma component system",
        ],
        "assessment": "Interactive prototype",
        "assessment_note": "usability test",
        "prereq": "U01 · Research",
        "prereq_note": "user insights required",
        "weight": 0.75,
    },
    {
        "code": "U03", "title": "Design systems",
        "subtitle": "tokens · patterns · a11y",
        "kind": "core", "hue": "navy",
        "duration": "20 h",
        "topics": [
            "Design tokens & theming",
            "Component library patterns",
            "WCAG 2.2 accessibility",
        ],
        "assessment": "Token set + 5 components",
        "assessment_note": "peer critique",
        "prereq": "U02 · IxD",
        "prereq_note": "Figma fluency",
        "weight": 0.80,
    },
    {
        "code": "U04", "title": "Capstone",
        "subtitle": "ship a portfolio artefact",
        "kind": "capstone", "hue": "gold_p",
        "duration": "36 h",
        "topics": [
            "Brief & user research",
            "Design & prototype",
            "Test & iterate",
            "Portfolio write-up",
        ],
        "assessment": "Portfolio review",
        "assessment_note": "hiring panel jury",
        "prereq": "all core (U01-U03)",
        "prereq_note": "3 core mandatory",
        "weight": 1.00,
    },
]

SPARSE_KPIS = [
    {"kicker": "MODULES", "value": "4",
     "note": "3 core · 1 capstone", "hue": "navy"},
    {"kicker": "DURATION", "value": "8 wk",
     "note": "98 h contact · studio-style", "hue": "green"},
    {"kicker": "MILESTONES", "value": "3",
     "note": "gates at W3 · W6 · W8", "hue": "gold_p"},
    {"kicker": "COHORT", "value": "18",
     "note": "career-switchers · L1 → L3", "hue": "navy"},
]

SPARSE_WEEK_TICKS = ["W1 - W2", "W3 - W4", "W5 - W6", "W7 - W8"]

SPARSE_MILESTONES = [
    {"at_module": 1, "label": "GATE 1", "kind": "gate"},
    {"at_module": 3, "label": "GATE 2", "kind": "gate"},
    {"at_module": 4, "label": "PORTFOLIO", "kind": "demo"},
]

SPARSE_OUTCOMES = [
    {"code": "LO1", "title": "Run user research",
     "body": "Plan, conduct, and synthesise research end-to-end."},
    {"code": "LO2", "title": "Prototype at fidelity",
     "body": "Move from wireframe to testable Figma prototype."},
    {"code": "LO3", "title": "Ship a portfolio piece",
     "body": "Write up work in a hiring-ready case study."},
]

SPARSE_SIDEBAR_STATS = [
    {"label": "PASS THRESHOLD", "value": "2 / 3 gates"},
    {"label": "CAPSTONE WEIGHT", "value": "45 %"},
    {"label": "STUDIO HOURS", "value": "24 h"},
]

SPARSE_READ_LINES = [
    {"hue": "navy", "title": "Kind hue",
     "lines": ["navy = core · amber = capstone",
               "compressed 4-module ladder"]},
    {"hue": "gray", "title": "Prereq flow",
     "lines": ["strict chain U01→U02→U03→U04 ·",
               "no electives at this tier"]},
    {"hue": "gold_p", "title": "Milestone gate",
     "lines": ["3 gates · portfolio review is final ·",
               "hiring-panel jury"]},
    {"hue": "green", "title": "Credit weight",
     "lines": ["capstone weighted 45 % of grade ·",
               "portfolio is promotion currency"]},
]

SPARSE_NOTES = (
    "Notes. 4-module UX foundations · career-switcher track · compressed 8 "
    "weeks · strict prereq chain · capstone is portfolio artefact."
)


# ═════════════════════════════════════════════════════════════════
# MINIMAL · 5-module ops track · no sidebar · no reading guide
# ═════════════════════════════════════════════════════════════════

MINIMAL_MODULES = [
    {
        "code": "O01", "title": "Networking",
        "subtitle": "TCP · DNS · TLS",
        "kind": "core", "hue": "navy",
        "duration": "20 h",
        "topics": [
            "TCP + UDP fundamentals",
            "DNS resolution + caching",
            "TLS handshake + certs",
            "Load balancer basics",
        ],
        "assessment": "tcpdump lab",
        "assessment_note": "pass mark 70 %",
        "prereq": "— none —",
        "prereq_note": "entry point",
        "weight": 0.60,
    },
    {
        "code": "O02", "title": "Linux ops",
        "subtitle": "systemd · perf · logs",
        "kind": "core", "hue": "navy",
        "duration": "22 h",
        "topics": [
            "systemd services",
            "perf & flamegraph",
            "journalctl + logs",
            "cgroups + limits",
        ],
        "assessment": "Ops lab · runbook",
        "assessment_note": "written incident sim",
        "prereq": "O01 · Networking",
        "prereq_note": "TCP debug required",
        "weight": 0.70,
    },
    {
        "code": "O03", "title": "Kubernetes",
        "subtitle": "k8s · Helm · Argo",
        "kind": "core", "hue": "navy",
        "duration": "24 h",
        "topics": [
            "Pods · deployments",
            "Services · Ingress",
            "Helm charts",
            "ArgoCD gitops",
        ],
        "assessment": "k8s deploy demo",
        "assessment_note": "live cluster review",
        "prereq": "O02 · Linux",
        "prereq_note": "systemd + perf",
        "weight": 0.80,
    },
    {
        "code": "O04", "title": "Observability",
        "subtitle": "OTel · Prometheus · SLO",
        "kind": "elective", "hue": "green",
        "duration": "20 h",
        "topics": [
            "OTel traces + spans",
            "Prometheus metrics",
            "SLO / SLI / error budget",
            "Alertmanager rules",
        ],
        "assessment": "SLO dashboard build",
        "assessment_note": "30-day baseline",
        "prereq": "O03 · k8s",
        "prereq_note": "cluster ops",
        "weight": 0.75,
    },
    {
        "code": "O05", "title": "SRE capstone",
        "subtitle": "ship a runbook + game day",
        "kind": "capstone", "hue": "gold_p",
        "duration": "32 h",
        "topics": [
            "Incident scoping",
            "Runbook authoring",
            "Chaos game day",
            "Post-mortem review",
        ],
        "assessment": "Game-day + write-up",
        "assessment_note": "panel review",
        "prereq": "all core + O04",
        "prereq_note": "O01-O03 mandatory",
        "weight": 1.00,
    },
]

MINIMAL_KPIS = [
    {"kicker": "MODULES", "value": "5",
     "note": "3 core · 1 elect · 1 caps", "hue": "navy"},
    {"kicker": "DURATION", "value": "10 wk",
     "note": "118 h contact · on-call sim", "hue": "green"},
    {"kicker": "MILESTONES", "value": "3",
     "note": "gates at W3 · W7 · W10", "hue": "gold_p"},
    {"kicker": "COHORT", "value": "20",
     "note": "SREs · L2 → L4 pathway", "hue": "navy"},
]

MINIMAL_WEEK_TICKS = ["W1-W2", "W3-W4", "W5-W6", "W7-W8", "W9-W10"]

MINIMAL_MILESTONES = [
    {"at_module": 1, "label": "GATE 1", "kind": "gate"},
    {"at_module": 4, "label": "GATE 2", "kind": "gate"},
    {"at_module": 5, "label": "GAME DAY", "kind": "demo"},
]

MINIMAL_NOTES = (
    "Notes. 5-module SRE ops track · 10 weeks · no sidebar (compact view) · "
    "capstone is game-day + runbook."
)


# ═════════════════════════════════════════════════════════════════
# renderers
# ═════════════════════════════════════════════════════════════════

def render_baseline() -> str:
    data = build_curriculum_data()  # all defaults · 6 module engineering
    return render_hero_embed_cu2_curriculum_v2(data=data)


def render_dense() -> str:
    data = build_curriculum_data(
        modules=DENSE_MODULES,
        kpis=DENSE_KPIS,
        week_ticks=DENSE_WEEK_TICKS,
        milestones=DENSE_MILESTONES,
        outcomes=DENSE_OUTCOMES,
        sidebar_stats=DENSE_SIDEBAR_STATS,
        read_lines=DENSE_READ_LINES,
        notes=DENSE_NOTES,
        figure_tag="Figure 32 · curriculum · dense · 2026",
        kicker="FIGURE 32 · CURRICULUM MAP · DENSE",
        kicker_body=(
            "Horizontal 8-module timeline · 16 weeks · duration + topics + "
            "assessment per column · sidebar shows kind mix and outcomes"
        ),
        figure_title="Data Science Bootcamp · 2026 curriculum map",
        figure_caption=(
            "8 modules · 16 weeks · SQL to deployed model · 5 milestone "
            "gates · capstone ships a data product"
        ),
    )
    return render_hero_embed_cu2_curriculum_v2(data=data)


def render_sparse() -> str:
    data = build_curriculum_data(
        modules=SPARSE_MODULES,
        kpis=SPARSE_KPIS,
        week_ticks=SPARSE_WEEK_TICKS,
        milestones=SPARSE_MILESTONES,
        outcomes=SPARSE_OUTCOMES,
        sidebar_stats=SPARSE_SIDEBAR_STATS,
        read_lines=SPARSE_READ_LINES,
        notes=SPARSE_NOTES,
        figure_tag="Figure 32 · curriculum · sparse · 2026",
        kicker="FIGURE 32 · CURRICULUM MAP · SPARSE",
        kicker_body=(
            "Compressed 4-module timeline · 8 weeks · strict prereq chain · "
            "capstone is a portfolio artefact"
        ),
        figure_title="UX Foundations · 2026 curriculum map",
        figure_caption=(
            "4 modules · 8 weeks · research → interaction → system → "
            "portfolio · career-switcher pathway"
        ),
    )
    return render_hero_embed_cu2_curriculum_v2(data=data)


def render_minimal() -> str:
    data = build_curriculum_data(
        modules=MINIMAL_MODULES,
        kpis=MINIMAL_KPIS,
        week_ticks=MINIMAL_WEEK_TICKS,
        milestones=MINIMAL_MILESTONES,
        outcomes=[],
        sidebar_stats=[],
        read_lines=[],
        notes=MINIMAL_NOTES,
        sidebar=False,
        figure_tag="Figure 32 · curriculum · minimal · 2026",
        kicker="FIGURE 32 · CURRICULUM MAP · MINIMAL",
        kicker_body=(
            "5-module compact view · no sidebar · 10 weeks · SRE ops track "
            "· game-day capstone"
        ),
        figure_title="SRE Ops Track · 2026 curriculum map",
        figure_caption=(
            "5 modules · 10 weeks · networking → linux → k8s → observ → "
            "game day · compact layout without sidebar"
        ),
    )
    return render_hero_embed_cu2_curriculum_v2(data=data)


def main() -> None:
    os.makedirs(OUT_DIR, exist_ok=True)
    _write("baseline.svg", render_baseline())
    _write("dense.svg", render_dense())
    _write("sparse.svg", render_sparse())
    _write("minimal.svg", render_minimal())


if __name__ == "__main__":
    main()
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall