Skip to content

siril9/presentation-skill / plugins/presentation-skill/skills/presentation-skill

presentation-skill

Flagged

Build, edit, redesign, render, and verify content-led, structurally diverse, clean, editable, reproducible PowerPoint `.pptx` decks. Use for scientific, lab, clinical, consulting, board, investor, editorial, policy, and operational presentations where alignment, readability, contrast, and balanced density matter.

FileKindSize
DESIGN.mdmarkdown13.7 KB
DISCOVERY.mdmarkdown6.6 KB
LICENSEother1.0 KB
SKILL.mdskill md14.7 KB
agents/discovery.jsonconfig8.2 KB
agents/openai.yamlconfig309 B
examples/outline.jsonconfig3.4 KB
package-lock.jsonmanifest22.0 KB
package.jsonmanifest1.8 KB
references/agent_picker.mdmarkdown1.9 KB
references/alignment_and_coherence.mdmarkdown2.1 KB
references/assets/visual_references/editorial_chart.jpgbinary53.2 KB
references/assets/visual_references/editorial_decision.jpgbinary100.4 KB
references/assets/visual_references/editorial_focal_metric.jpgbinary45.4 KB
references/assets/visual_references/editorial_pilot.jpgbinary62.0 KB
references/assets/visual_references/lab-native-method.jpgbinary53.9 KB
references/assets/visual_references/lab-residual-panels.jpgbinary64.8 KB
references/assets/visual_references/lab_cover.jpgbinary39.8 KB
references/assets/visual_references/lab_endpoints.jpgbinary70.8 KB
references/assets/visual_references/lab_evidence_gate.jpgbinary67.3 KB
references/assets/visual_references/lab_trend.jpgbinary60.5 KB
references/assets/visual_references/operations_handoffs.jpgbinary87.2 KB
references/assets/visual_references/operations_owner_register.jpgbinary87.2 KB
references/assets/visual_references/operations_queue.jpgbinary81.8 KB
references/assets/visual_references/operations_tradeoff.jpgbinary99.9 KB
references/benchmark_protocol.mdmarkdown12.1 KB
references/codex_guardrails.mdmarkdown10.3 KB
references/composition_grammar_catalog.mdmarkdown4.0 KB
references/deck_creation.mdmarkdown1.4 KB
references/deck_workspace_mode.mdmarkdown34.4 KB
references/design_philosophy.mdmarkdown5.5 KB
references/dynamic_design_and_subagents.mdmarkdown12.3 KB
references/editing.mdmarkdown12.4 KB
references/external_best_practices.mdmarkdown1.7 KB
references/large_style_corpus_sources.jsonconfig22.7 KB
references/model_adaptive_workflow.mdmarkdown6.6 KB
references/outline_schema.mdmarkdown44.8 KB
references/planning_schema.mdmarkdown54.8 KB
references/pptxgenjs.mdmarkdown7.6 KB
references/preview_extension.mdmarkdown1.7 KB
references/reference_script_patterns.mdmarkdown13.5 KB
references/renderer_role_contracts_v2.jsonconfig38.2 KB
references/reproducible_workflow.mdmarkdown5.1 KB
references/speed_and_rendering.mdmarkdown4.6 KB
references/style_grammar_index.jsonconfig364.2 KB
references/style_inspiration_corpus.jsonconfig32.9 KB
references/style_reference_catalog.mdmarkdown23.9 KB
references/style_reference_sources.jsonconfig35.8 KB
references/style_token_atlas.jsonconfig174.7 KB
references/subagent_patterns.mdmarkdown10.2 KB
references/visual_qa_prompt.mdmarkdown4.9 KB
references/visual_reference_catalog.jsonconfig26.6 KB
references/visual_reference_catalog.mdmarkdown6.0 KB
schemas/deck_ir.schema.jsonconfig9.5 KB
schemas/renderer_capabilities_v2.jsonconfig701 B
scripts/accessibility_qa.pyscript24.8 KB
scripts/action_registry.pyscript12.5 KB
scripts/add_slide.pyscript8.6 KB
scripts/advance_delivery.pyscript88.2 KB
scripts/advance_workspace.pyscript150.3 KB
scripts/apply_artifact_manifest_bindings.pyscript54.1 KB
scripts/apply_atom_composition.pyscript8.2 KB
scripts/apply_data_analysis_handoff.pyscript67.0 KB
scripts/apply_deck_intake_answers.pyscript35.6 KB
scripts/apply_design_contract.pyscript71.7 KB
scripts/apply_outline_authoring_handoff.pyscript23.7 KB
scripts/apply_pptx_style_fragment.pyscript19.7 KB
scripts/asset_stage.pyscript24.6 KB
scripts/audition_styles.pyscript8.7 KB
scripts/benchmark_decks.pyexecutablescript45.4 KB
scripts/build_deck.pyexecutablescript173.6 KB
scripts/build_deck_pptxgenjs.jsexecutablescript72.7 KB
scripts/build_large_style_corpus_contact_sheets.pyscript18.1 KB
scripts/build_workspace.pyscript126.2 KB
scripts/clean_unpacked.pyscript12.9 KB
scripts/compact_source_footers.pyscript17.8 KB
scripts/composition_grammar_catalog.pyscript30.3 KB
scripts/deck_benchmark.pyscript71.1 KB
scripts/deck_intake.pyscript6.9 KB
scripts/deck_ir.pyscript47.5 KB
scripts/design_catalog_selector.pyscript17.4 KB
scripts/design_rules_qa.pyscript24.8 KB
scripts/design_tokens.pyscript20.3 KB
scripts/edit_deck.pyscript8.4 KB
scripts/emit_content_research.pyscript4.6 KB
scripts/emit_data_analysis_prompt.pyscript30.1 KB
scripts/emit_deck_intake_prompt.pyexecutablescript19.9 KB
scripts/emit_deck_start_packet.pyscript97.1 KB
scripts/emit_design_contract_prompt.pyscript66.2 KB
scripts/emit_outline_authoring_prompt.pyscript35.4 KB
scripts/emit_outline_critique.pyscript11.6 KB
scripts/emit_style_content_router.pyscript49.6 KB
scripts/extract_outline.pyexecutablescript4.1 KB
scripts/extract_pptx_style.pyscript33.2 KB
scripts/fetch_wikimedia_cc.pyscript8.6 KB
scripts/finalize_quick_deck.pyscript17.6 KB
scripts/generate_openai_image.pyscript5.6 KB
scripts/init_deck_workspace.pyscript74.4 KB
scripts/inspect_artifact_manifest.pyscript29.8 KB
scripts/inventory.pyscript10.6 KB
scripts/iterate_deck.pyexecutablescript10.2 KB
scripts/layout_lint.pyscript40.4 KB
scripts/log_skill_telemetry.pyscript6.9 KB
scripts/model_adaptive_workflow.pyscript28.0 KB
scripts/office_package_hash.pyscript1.6 KB
scripts/pack_pptx.pyscript5.7 KB
scripts/palette_from_topic.pyscript4.1 KB
scripts/plan_research_assets.pyscript13.1 KB
scripts/preflight.pyscript136.9 KB
scripts/present.pyscript9.6 KB
scripts/python_runtime.pyscript787 B
scripts/qa_gate.pyexecutablescript27.4 KB
scripts/qa_visual_gate.pyexecutablescript8.5 KB
scripts/reference_deck.pyscript12.7 KB
scripts/render_cache.pyscript3.9 KB
scripts/render_mermaid.pyscript8.9 KB
scripts/render_slides.pyexecutablescript19.4 KB
scripts/repair_packet.pyscript14.7 KB
scripts/report_delivery_readiness.pyscript107.6 KB
scripts/report_workspace_readiness.pyscript244.6 KB
scripts/requirements-runtime.txtmarkdown472 B
scripts/role_layout_contracts.pyscript10.6 KB
scripts/runtime_doctor.pyscript6.3 KB
scripts/scaffold_figure_artifacts.pyscript92.3 KB
scripts/source_fidelity.pyscript30.5 KB
scripts/structural_diversity_v2.pyscript32.5 KB
scripts/style_atom_router.pyscript14.5 KB
scripts/style_inspiration_corpus.pyscript15.1 KB
scripts/style_reference_catalog.pyscript142.8 KB
scripts/style_reference_sources.pyscript12.7 KB
scripts/style_treatment_profiles.pyscript26.0 KB
scripts/summarize_skill_log.pyscript7.0 KB
scripts/taste_grammar_catalog.pyscript27.0 KB
scripts/test_structural_diversity_v2.pyscript4.9 KB
scripts/text_fit.pyscript23.6 KB
scripts/thumbnail.pyscript9.2 KB
scripts/trim_image_whitespace.pyexecutablescript5.4 KB
scripts/unpack_pptx.pyscript8.3 KB
scripts/upgrade_renderer_role_contracts_v2.pyscript7.3 KB
scripts/validate_planning.pyscript169.2 KB
scripts/verify_narration.pyscript10.6 KB
scripts/visual_qa.pyscript7.7 KB
scripts/visual_review.pyscript41.1 KB
scripts/visual_review_receipt.pyscript8.3 KB
scripts/workflow_atom_context.pyscript17.3 KB
templates/pptxgenjs/README.mdmarkdown8.4 KB
templates/pptxgenjs/presets.jsscript5.6 KB
templates/pptxgenjs/readable_role_layouts.jsscript17.5 KB
templates/pptxgenjs/render_plan.jsscript12.6 KB
templates/pptxgenjs/role_layout_contracts.jsscript4.7 KB
templates/pptxgenjs/slides.jsscript451.0 KB
templates/pptxgenjs/space_allocation.jsscript1.6 KB

scripts/style_treatment_profiles.py

View on GitHub
#!/usr/bin/env python3
"""Reusable preset treatment profiles for reproducible style mixing."""

from __future__ import annotations

import copy
import json
from typing import Any

from style_reference_catalog import preset_style_reference
from taste_grammar_catalog import renderer_role_systems_for_preset
from role_layout_contracts import renderer_role_contracts_for_preset


PROFILE_VERSION = "deck_preset_treatment_profiles_v1"
SUPPORTED_HEADER_VARIANTS = [
    "left-accent",
    "split-rule",
    "title-rule",
    "side-rail",
    "top-bottom-rule",
    "plain",
]
SUPPORTED_TITLE_LAYOUTS = ["split-hero", "lab-plate", "command-center", "poster", "masthead", "light-atlas", "broadsheet"]
SUPPORTED_FOOTERS = ["standard", "source-line"]
SUPPORTED_CHART_TREATMENTS = [
    "standard",
    "facts-below",
    "facts-right",
    "minimal",
    "hero-stat",
    "threshold-band",
    "sparse-wide",
]
SUPPORTED_TABLE_TREATMENTS = ["standard", "compact-ledger", "readout-sidecar", "decision-matrix", "journal-grid"]
SUPPORTED_FIGURE_TABLE_TREATMENTS = ["figure-first", "table-first", "stats-strip", "image-sidebar"]
SUPPORTED_PAGE_SYSTEMS = ["clinical-rail", "board-ledger", "editorial-field", "command-canvas", "lab-plate", "investor-thesis"]
SUPPORTED_IMAGE_SIDEBAR_MODES = ["analysis-rail", "evidence-mosaic", "editorial-atlas"]
SUPPORTED_COMPARISON_MODES = ["open-columns", "scorecard"]
SUPPORTED_STRUCTURAL_MOTIFS = [
    "clinical-stages",
    "board-index",
    "field-notes",
    "thesis-window",
    "workflow-brackets",
    "case-margin",
    "journal-folio",
    "editorial-rule",
    "open-coordinate",
    "proof-stage",
    "incident-rail",
    "signal-grid",
    "assay-register",
]
RENDERER_TREATMENT_FIELDS = (
    "page_system",
    "structural_motif",
    "header_variant",
    "title_layout",
    "footer_mode",
    "chart_treatment",
    "table_treatment",
    "figure_table_treatment",
    "stats_mode",
    "matrix_mode",
    "summary_callout_mode",
    "image_sidebar_mode",
    "comparison_mode",
)
REPORT_SOURCE_FOOTER_PRESETS = {
    "lab-report",
    "paper-journal",
    "executive-clinical",
    "data-heavy-boardroom",
}

PAGE_SYSTEM_BY_PRESET = {
    "executive-clinical": "clinical-rail",
    "data-heavy-boardroom": "board-ledger",
    "charcoal-safety": "board-ledger",
    "editorial-minimal": "editorial-field",
    "paper-journal": "editorial-field",
    "warm-terracotta": "editorial-field",
    "arctic-minimal": "clinical-rail",
    "lavender-ops": "command-canvas",
    "midnight-neon": "command-canvas",
    "lab-report": "lab-plate",
    "forest-research": "lab-plate",
    "bold-startup-narrative": "investor-thesis",
    "sunset-investor": "investor-thesis",
}

STRUCTURAL_MOTIF_BY_PRESET = {
    "executive-clinical": "clinical-stages",
    "data-heavy-boardroom": "board-index",
    "forest-research": "field-notes",
    "sunset-investor": "thesis-window",
    "lavender-ops": "workflow-brackets",
    "warm-terracotta": "case-margin",
    "paper-journal": "journal-folio",
    "editorial-minimal": "editorial-rule",
    "arctic-minimal": "open-coordinate",
    "bold-startup-narrative": "proof-stage",
    "charcoal-safety": "incident-rail",
    "midnight-neon": "signal-grid",
    "lab-report": "assay-register",
}

IMAGE_SIDEBAR_MODES_BY_PAGE_SYSTEM = {
    "clinical-rail": ["evidence-mosaic", "analysis-rail"],
    "board-ledger": ["analysis-rail", "evidence-mosaic"],
    "editorial-field": ["editorial-atlas", "analysis-rail"],
    "command-canvas": ["evidence-mosaic", "analysis-rail"],
    "lab-plate": ["evidence-mosaic", "analysis-rail"],
    "investor-thesis": ["evidence-mosaic", "editorial-atlas"],
}

COMPARISON_MODES_BY_PAGE_SYSTEM = {
    "clinical-rail": ["scorecard", "open-columns"],
    "board-ledger": ["scorecard", "open-columns"],
    "editorial-field": ["open-columns", "scorecard"],
    "command-canvas": ["scorecard", "open-columns"],
    "lab-plate": ["scorecard", "open-columns"],
    "investor-thesis": ["scorecard", "open-columns"],
}

IMAGE_SIDEBAR_MODES_BY_PRESET = {
    "executive-clinical": ["evidence-mosaic", "analysis-rail"],
    "data-heavy-boardroom": ["analysis-rail", "evidence-mosaic"],
    "forest-research": ["editorial-atlas", "evidence-mosaic"],
    "sunset-investor": ["evidence-mosaic", "editorial-atlas"],
    "lavender-ops": ["analysis-rail", "evidence-mosaic"],
    "warm-terracotta": ["editorial-atlas", "analysis-rail"],
    "paper-journal": ["editorial-atlas", "analysis-rail"],
    "editorial-minimal": ["editorial-atlas", "analysis-rail"],
    "arctic-minimal": ["editorial-atlas", "analysis-rail"],
    "bold-startup-narrative": ["evidence-mosaic", "editorial-atlas"],
    "charcoal-safety": ["analysis-rail", "evidence-mosaic"],
    "midnight-neon": ["evidence-mosaic", "analysis-rail"],
    "lab-report": ["evidence-mosaic", "analysis-rail"],
}

COMPARISON_MODES_BY_PRESET = {
    preset: (["open-columns", "scorecard"] if preset in {
        "forest-research", "paper-journal", "editorial-minimal", "arctic-minimal"
    } else ["scorecard", "open-columns"])
    for preset in STRUCTURAL_MOTIF_BY_PRESET
}


BASE_MIX_MATRIX = {
    "structural_motif_pool": list(SUPPORTED_STRUCTURAL_MOTIFS),
    "header_variant_pool": list(SUPPORTED_HEADER_VARIANTS),
    "title_layout_pool": ["split-hero", "lab-plate", "masthead", "light-atlas"],
    "section_motif_pool": ["rail-dots", "plain", "none"],
    "timeline_mode_pool": ["rail-cards", "staggered", "open-events", "bands", "chapter-spread"],
    "matrix_mode_pool": ["cards", "open-quadrants"],
    "stats_mode_pool": ["tiles", "feature-left", "policy-bands"],
    "cards_mode_pool": ["feature-left", "staggered-row"],
    "chart_treatment_pool": list(SUPPORTED_CHART_TREATMENTS),
    "table_treatment_pool": list(SUPPORTED_TABLE_TREATMENTS),
    "summary_callout_mode_pool": ["default", "lab-box"],
    "figure_table_treatment_pool": list(SUPPORTED_FIGURE_TABLE_TREATMENTS),
    "image_sidebar_mode_pool": list(SUPPORTED_IMAGE_SIDEBAR_MODES),
    "comparison_mode_pool": list(SUPPORTED_COMPARISON_MODES),
    "footer_pool": list(SUPPORTED_FOOTERS),
    "mix_rule": "Resolve restrained renderer treatments from the stable style_seed; override explicitly when the evidence shape requires it.",
    "do_not_mix": [
        "Do not combine decorative section motifs with dense scientific figure slides unless they support navigation.",
        "Do not use none footer mode for source-heavy research or lab decks.",
    ],
}


PROFILE_OVERRIDES: dict[str, dict[str, Any]] = {
    "lab-report": {
        "family": "scientific-report",
        "background_system": "white report",
        "heading_accent_combo": "lab-clean report heading with compact rules and page/source footer",
        "style_mix_matrix": {
            "header_variant_pool": ["left-accent", "split-rule", "title-rule", "side-rail", "top-bottom-rule", "plain"],
            "title_layout_pool": ["lab-plate", "split-hero", "masthead", "light-atlas"],
            "footer_pool": ["source-line", "standard"],
            "chart_treatment_pool": ["threshold-band", "minimal", "facts-right"],
            "table_treatment_pool": ["compact-ledger", "readout-sidecar", "standard"],
            "figure_table_treatment_pool": ["figure-first", "table-first", "image-sidebar"],
            "summary_callout_mode_pool": ["lab-box", "default"],
        },
        "best_for": ["assay results", "lab reports", "scientific figures", "dense leave-behind reports"],
        "avoid": ["decorative card grids", "dark stage backgrounds for dense data", "footer-free source-heavy slides"],
    },
    "paper-journal": {
        "family": "scientific-report",
        "background_system": "white paper",
        "heading_accent_combo": "journal-style title stack with restrained rules and source-footer posture",
        "style_mix_matrix": {
            "header_variant_pool": ["split-rule", "top-bottom-rule", "plain", "title-rule"],
            "title_layout_pool": ["masthead", "light-atlas", "lab-plate"],
            "footer_pool": ["source-line", "standard"],
            "chart_treatment_pool": ["sparse-wide", "minimal", "standard"],
            "table_treatment_pool": ["journal-grid", "compact-ledger", "standard"],
            "figure_table_treatment_pool": ["figure-first", "image-sidebar", "table-first"],
            "stats_mode_pool": ["tiles", "feature-left", "policy-bands"],
            "matrix_mode_pool": ["open-quadrants", "cards"],
            "summary_callout_mode_pool": ["lab-box", "default"],
        },
        "best_for": ["academic summaries", "journal clubs", "methods/results decks"],
        "avoid": ["high-chroma accent rails", "oversized decorative motifs"],
    },
    "data-heavy-boardroom": {
        "family": "data-report",
        "background_system": "white board report",
        "heading_accent_combo": "executive report heading with split rules and compact source line",
        "style_mix_matrix": {
            "header_variant_pool": ["split-rule", "left-accent", "top-bottom-rule", "plain"],
            "title_layout_pool": ["split-hero", "light-atlas", "masthead"],
            "footer_pool": ["source-line", "standard"],
            "chart_treatment_pool": ["facts-right", "threshold-band", "facts-below", "minimal"],
            "table_treatment_pool": ["compact-ledger", "readout-sidecar", "decision-matrix"],
            "figure_table_treatment_pool": ["table-first", "stats-strip", "figure-first"],
            "stats_mode_pool": ["policy-bands", "feature-left", "tiles"],
            "matrix_mode_pool": ["open-quadrants", "cards"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["dashboards", "board memos", "analytics reviews"],
        "avoid": ["figure-only evidence when editable charts/tables are needed"],
    },
    "executive-clinical": {
        "family": "clinical-executive",
        "background_system": "light clinical report",
        "heading_accent_combo": "quiet clinical heading with left accent or split rule",
        "style_mix_matrix": {
            "header_variant_pool": ["left-accent", "split-rule", "top-bottom-rule", "plain"],
            "title_layout_pool": ["split-hero", "light-atlas", "lab-plate"],
            "footer_pool": ["source-line", "standard"],
            "chart_treatment_pool": ["threshold-band", "facts-right", "minimal"],
            "table_treatment_pool": ["readout-sidecar", "compact-ledger", "standard"],
            "figure_table_treatment_pool": ["figure-first", "table-first", "image-sidebar"],
            "stats_mode_pool": ["feature-left", "policy-bands", "tiles"],
            "matrix_mode_pool": ["cards", "open-quadrants"],
            "summary_callout_mode_pool": ["lab-box", "default"],
        },
        "best_for": ["clinical updates", "translational research", "executive evidence reviews"],
        "avoid": ["startup-style hero exaggeration", "dense cells below readability floors"],
    },
    "forest-research": {
        "family": "research-report",
        "background_system": "light natural report",
        "heading_accent_combo": "research heading with organic accent rail and clean rules",
        "style_mix_matrix": {
            "header_variant_pool": ["left-accent", "split-rule", "plain", "top-bottom-rule"],
            "title_layout_pool": ["light-atlas", "masthead", "split-hero"],
            "footer_pool": ["source-line", "standard"],
            "chart_treatment_pool": ["sparse-wide", "minimal", "facts-below"],
            "table_treatment_pool": ["journal-grid", "compact-ledger", "standard"],
            "figure_table_treatment_pool": ["figure-first", "image-sidebar", "table-first"],
            "stats_mode_pool": ["policy-bands", "feature-left", "tiles"],
            "matrix_mode_pool": ["open-quadrants", "cards"],
            "summary_callout_mode_pool": ["lab-box", "default"],
        },
        "best_for": ["field research", "environmental science", "observational evidence"],
        "avoid": ["heavy dark sections unless the content needs a section turn"],
    },
    "arctic-minimal": {
        "family": "minimal-report",
        "background_system": "cool light field",
        "heading_accent_combo": "minimal heading with plain, split, or title rule accents",
        "style_mix_matrix": {
            "header_variant_pool": ["plain", "split-rule", "title-rule", "left-accent"],
            "title_layout_pool": ["light-atlas", "masthead", "split-hero"],
            "footer_pool": ["standard", "source-line"],
            "chart_treatment_pool": ["minimal", "sparse-wide", "standard"],
            "table_treatment_pool": ["standard", "journal-grid", "compact-ledger"],
            "figure_table_treatment_pool": ["image-sidebar", "figure-first", "table-first"],
            "stats_mode_pool": ["tiles", "feature-left", "policy-bands"],
            "matrix_mode_pool": ["open-quadrants", "cards"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["clean explainers", "technical summaries", "low-noise analysis"],
        "avoid": ["many simultaneous accent systems"],
    },
    "editorial-minimal": {
        "family": "editorial-report",
        "background_system": "light editorial",
        "heading_accent_combo": "editorial masthead with title rule or plain report body",
        "style_mix_matrix": {
            "header_variant_pool": ["title-rule", "plain", "split-rule", "left-accent"],
            "title_layout_pool": ["broadsheet", "masthead", "light-atlas"],
            "footer_pool": ["standard", "source-line"],
            "chart_treatment_pool": ["minimal", "sparse-wide", "facts-below"],
            "table_treatment_pool": ["journal-grid", "readout-sidecar", "standard"],
            "figure_table_treatment_pool": ["image-sidebar", "figure-first", "table-first"],
            "stats_mode_pool": ["feature-left", "tiles", "policy-bands"],
            "matrix_mode_pool": ["open-quadrants", "cards"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["narrative reports", "public-facing analysis", "portfolio-style explanations"],
        "avoid": ["too many KPI tiles", "busy card grids"],
    },
    "lavender-ops": {
        "family": "ops-report",
        "background_system": "quiet operational report",
        "heading_accent_combo": "operations heading with split rules and restrained labels",
        "style_mix_matrix": {
            "header_variant_pool": ["split-rule", "left-accent", "plain", "top-bottom-rule"],
            "title_layout_pool": ["command-center", "split-hero", "light-atlas", "masthead"],
            "footer_pool": ["standard", "source-line"],
            "chart_treatment_pool": ["facts-right", "threshold-band", "standard"],
            "table_treatment_pool": ["readout-sidecar", "compact-ledger", "standard"],
            "figure_table_treatment_pool": ["table-first", "stats-strip", "image-sidebar"],
            "stats_mode_pool": ["policy-bands", "tiles", "feature-left"],
            "matrix_mode_pool": ["cards", "open-quadrants"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["operational reviews", "project status", "team dashboards"],
        "avoid": ["decorative purple gradients as the only visual system"],
    },
    "bold-startup-narrative": {
        "family": "narrative-pitch",
        "background_system": "bold narrative stage",
        "heading_accent_combo": "large narrative heading with left accent, side rail, or title rule",
        "style_mix_matrix": {
            "header_variant_pool": ["left-accent", "title-rule", "side-rail", "split-rule"],
            "title_layout_pool": ["poster", "split-hero", "command-center"],
            "footer_pool": ["standard", "source-line"],
            "chart_treatment_pool": ["hero-stat", "facts-below", "facts-right"],
            "table_treatment_pool": ["decision-matrix", "readout-sidecar", "compact-ledger"],
            "figure_table_treatment_pool": ["stats-strip", "image-sidebar", "figure-first"],
            "stats_mode_pool": ["feature-left", "tiles", "policy-bands"],
            "matrix_mode_pool": ["cards", "open-quadrants"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["product stories", "growth narratives", "founder/investor updates"],
        "avoid": ["lab-report density unless the evidence burden requires it"],
    },
    "sunset-investor": {
        "family": "investor-story",
        "background_system": "warm investor narrative",
        "heading_accent_combo": "investor heading with strong title rule or side rail",
        "style_mix_matrix": {
            "header_variant_pool": ["title-rule", "left-accent", "side-rail", "split-rule"],
            "title_layout_pool": ["poster", "split-hero", "command-center"],
            "footer_pool": ["standard", "source-line"],
            "chart_treatment_pool": ["hero-stat", "facts-below", "facts-right"],
            "table_treatment_pool": ["compact-ledger", "decision-matrix", "readout-sidecar"],
            "figure_table_treatment_pool": ["stats-strip", "figure-first", "image-sidebar"],
            "stats_mode_pool": ["feature-left", "tiles", "policy-bands"],
            "matrix_mode_pool": ["open-quadrants", "cards"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["fundraising", "market stories", "commercial strategy"],
        "avoid": ["source-heavy tiny footers; move long citations to references"],
    },
    "warm-terracotta": {
        "family": "warm-editorial",
        "background_system": "warm editorial report",
        "heading_accent_combo": "warm report heading with split rule or title accent",
        "style_mix_matrix": {
            "header_variant_pool": ["split-rule", "title-rule", "left-accent", "plain"],
            "title_layout_pool": ["masthead", "split-hero", "light-atlas"],
            "footer_pool": ["standard", "source-line"],
            "chart_treatment_pool": ["facts-below", "sparse-wide", "standard"],
            "table_treatment_pool": ["journal-grid", "readout-sidecar", "standard"],
            "figure_table_treatment_pool": ["image-sidebar", "figure-first", "table-first"],
            "stats_mode_pool": ["feature-left", "policy-bands", "tiles"],
            "matrix_mode_pool": ["open-quadrants", "cards"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["human-centered reports", "case studies", "strategy narratives"],
        "avoid": ["brown/orange monotone decks without neutral structure"],
    },
    "charcoal-safety": {
        "family": "dark-technical",
        "background_system": "dark safety report",
        "heading_accent_combo": "dark technical heading with side rail, title rule, or split rule",
        "style_mix_matrix": {
            "header_variant_pool": ["side-rail", "title-rule", "split-rule", "plain"],
            "title_layout_pool": ["command-center", "split-hero", "poster"],
            "footer_pool": ["standard", "source-line"],
            "chart_treatment_pool": ["threshold-band", "facts-right", "standard"],
            "table_treatment_pool": ["decision-matrix", "compact-ledger", "readout-sidecar"],
            "figure_table_treatment_pool": ["stats-strip", "table-first", "figure-first"],
            "stats_mode_pool": ["policy-bands", "tiles", "feature-left"],
            "matrix_mode_pool": ["cards", "open-quadrants"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["risk", "safety", "incident review", "technical operations"],
        "avoid": ["low-contrast muted text on dark backgrounds"],
    },
    "midnight-neon": {
        "family": "dark-technical",
        "background_system": "dark technical stage",
        "heading_accent_combo": "dark stage heading with side rail, split rule, or plain body pages",
        "style_mix_matrix": {
            "header_variant_pool": ["side-rail", "split-rule", "title-rule", "plain"],
            "title_layout_pool": ["command-center", "poster", "split-hero"],
            "footer_pool": ["standard", "source-line"],
            "chart_treatment_pool": ["facts-right", "threshold-band", "standard"],
            "table_treatment_pool": ["readout-sidecar", "decision-matrix", "compact-ledger"],
            "figure_table_treatment_pool": ["image-sidebar", "stats-strip", "figure-first"],
            "stats_mode_pool": ["tiles", "feature-left", "policy-bands"],
            "matrix_mode_pool": ["cards", "open-quadrants"],
            "summary_callout_mode_pool": ["default", "lab-box"],
        },
        "best_for": ["technical demos", "security/AI narratives", "high-contrast explainers"],
        "avoid": ["neon accents on every object", "small low-contrast footers"],
    },
}


def _merge_mix(base: dict[str, Any], override: dict[str, Any]) -> dict[str, Any]:
    merged = copy.deepcopy(base)
    for key, value in override.items():
        if isinstance(value, list):
            merged[key] = list(value)
        else:
            merged[key] = copy.deepcopy(value)
    return merged


def _first_pool_value(value: Any, fallback: str) -> str:
    if not isinstance(value, list):
        return fallback
    for item in value:
        text = str(item or "").strip()
        if text:
            return text
    return fallback


def renderer_treatment_summary(deck_style: dict[str, Any]) -> dict[str, Any]:
    """Return the compact renderer-treatment fields and stable signature."""
    values = {
        field: str(deck_style.get(field) or "").strip()
        for field in RENDERER_TREATMENT_FIELDS
    }
    signature = "|".join(f"{field}:{values.get(field, '')}" for field in RENDERER_TREATMENT_FIELDS)
    return {
        "fields": values,
        "signature": signature,
    }


def renderer_treatment_defaults_from_mix(preset: str, mix: dict[str, Any]) -> dict[str, str]:
    """Resolve the first replayable renderer choices for a preset treatment mix."""
    key = str(preset or "").strip() or "executive-clinical"
    footer = _first_pool_value(mix.get("footer_pool"), "standard")
    if key in REPORT_SOURCE_FOOTER_PRESETS:
        footer = "source-line"
    return {
        "page_system": _first_pool_value(mix.get("page_system_pool"), PAGE_SYSTEM_BY_PRESET.get(key, "clinical-rail")),
        "structural_motif": _first_pool_value(
            mix.get("structural_motif_pool"),
            STRUCTURAL_MOTIF_BY_PRESET.get(key, "clinical-stages"),
        ),
        "header_variant": "auto",
        "title_layout": _first_pool_value(mix.get("title_layout_pool"), "split-hero"),
        "footer_mode": footer,
        "chart_treatment": _first_pool_value(mix.get("chart_treatment_pool"), "standard"),
        "table_treatment": _first_pool_value(mix.get("table_treatment_pool"), "standard"),
        "figure_table_treatment": _first_pool_value(mix.get("figure_table_treatment_pool"), "figure-first"),
        "stats_mode": _first_pool_value(mix.get("stats_mode_pool"), "tiles"),
        "matrix_mode": _first_pool_value(mix.get("matrix_mode_pool"), "cards"),
        "summary_callout_mode": _first_pool_value(mix.get("summary_callout_mode_pool"), "default"),
        "image_sidebar_mode": _first_pool_value(mix.get("image_sidebar_mode_pool"), "analysis-rail"),
        "comparison_mode": _first_pool_value(mix.get("comparison_mode_pool"), "open-columns"),
    }


def preset_treatment_profile(preset: str) -> dict[str, Any]:
    """Return a copyable treatment profile for a loadable preset."""
    key = str(preset or "").strip() or "executive-clinical"
    override = PROFILE_OVERRIDES.get(key, {})
    mix = _merge_mix(
        BASE_MIX_MATRIX,
        override.get("style_mix_matrix", {}) if isinstance(override.get("style_mix_matrix"), dict) else {},
    )
    page_system = PAGE_SYSTEM_BY_PRESET.get(key, "clinical-rail")
    mix["page_system_pool"] = [page_system]
    mix["structural_motif_pool"] = [STRUCTURAL_MOTIF_BY_PRESET.get(key, "clinical-stages")]
    mix["image_sidebar_mode_pool"] = list(
        IMAGE_SIDEBAR_MODES_BY_PRESET.get(key, IMAGE_SIDEBAR_MODES_BY_PAGE_SYSTEM[page_system])
    )
    mix["comparison_mode_pool"] = list(
        COMPARISON_MODES_BY_PRESET.get(key, COMPARISON_MODES_BY_PAGE_SYSTEM[page_system])
    )
    renderer_defaults = renderer_treatment_defaults_from_mix(key, mix)
    renderer_role_systems = renderer_role_systems_for_preset(key)
    renderer_role_contracts = renderer_role_contracts_for_preset(key)
    profile = {
        "profile_version": PROFILE_VERSION,
        "style_preset": key,
        "family": override.get("family", "general-report"),
        "background_system": override.get("background_system", "light report"),
        "heading_accent_combo": override.get(
            "heading_accent_combo",
            "general report heading with bounded accent-rule variants",
        ),
        "style_reference": preset_style_reference(key),
        "style_mix_matrix": mix,
        "renderer_treatment_fields": list(RENDERER_TREATMENT_FIELDS),
        "renderer_treatment_defaults": renderer_defaults,
        "renderer_treatment_signature": renderer_treatment_summary(renderer_defaults)["signature"],
        "renderer_role_systems_v1": renderer_role_systems,
        "renderer_role_contracts_v2": renderer_role_contracts,
        "best_for": list(override.get("best_for", ["general presentations", "structured reports"])),
        "avoid": list(override.get("avoid", ["unsupported renderer treatments", "unreadable text"])),
    }
    return copy.deepcopy(profile)


def style_mix_matrix_for_preset(preset: str) -> dict[str, Any]:
    return preset_treatment_profile(preset)["style_mix_matrix"]


def preset_treatment_profiles_for_presets(presets: list[str]) -> list[dict[str, Any]]:
    return [preset_treatment_profile(preset) for preset in presets]


def main() -> int:
    import argparse

    parser = argparse.ArgumentParser(description="Emit preset treatment profile JSON.")
    parser.add_argument("--preset", default="", help="Optional preset to emit. Defaults to all known profile overrides.")
    args = parser.parse_args()
    payload: Any
    if args.preset:
        payload = preset_treatment_profile(args.preset)
    else:
        payload = {
            "profile_version": PROFILE_VERSION,
            "presets": preset_treatment_profiles_for_presets(sorted(PROFILE_OVERRIDES)),
        }
    print(json.dumps(payload, indent=2, ensure_ascii=False))
    return 0


if __name__ == "__main__":
    raise SystemExit(main())
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall