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_reference_sources.py

View on GitHub
#!/usr/bin/env python3
"""Validate publish-safe source-intake metadata for style references."""

from __future__ import annotations

import argparse
import json
import re
from pathlib import Path
from typing import Any


ROOT = Path(__file__).resolve().parent.parent
DEFAULT_MANIFEST = ROOT / "references" / "style_reference_sources.json"
SOURCE_MANIFEST_VERSION = "style_reference_source_manifest_v1"
REQUIRED_TREATMENTS = (
    "title",
    "comparison",
    "chart",
    "table",
    "figure",
    "dashboard",
    "decision",
    "references",
)
ALLOWED_SOURCE_STATUS = {
    "public_domain_with_restrictions",
    "public_domain_with_exceptions",
    "public_domain_design_system",
    "public_guidance_reference",
    "open_government_guidance",
    "open_source_design_system",
    "cc_by_template_reference",
}
ALLOWED_DERIVATION_MODES = {
    "metadata_only",
    "synthetic_reconstruction",
    "linked_attribution",
}


def _load_json(path: Path) -> dict[str, Any]:
    payload = json.loads(path.read_text(encoding="utf-8"))
    return payload if isinstance(payload, dict) else {}


def load_style_reference_source_manifest(path: Path | None = None) -> dict[str, Any]:
    return _load_json(path or DEFAULT_MANIFEST)


def _string_list(value: Any) -> list[str]:
    if not isinstance(value, list):
        return []
    return [str(item).strip() for item in value if str(item).strip()]


def _manifest_source_map(manifest: dict[str, Any]) -> dict[str, dict[str, Any]]:
    sources = manifest.get("source_classes")
    if not isinstance(sources, list):
        return {}
    out: dict[str, dict[str, Any]] = {}
    for source in sources:
        if not isinstance(source, dict):
            continue
        source_id = str(source.get("source_id") or "").strip()
        if source_id and source_id not in out:
            out[source_id] = source
    return out


def _manifest_routes(manifest: dict[str, Any]) -> dict[str, dict[str, Any]]:
    routes = manifest.get("preset_intake_routes")
    if not isinstance(routes, dict):
        return {}
    return {str(key): value for key, value in routes.items() if isinstance(value, dict)}


def validate_style_reference_source_manifest(
    manifest: dict[str, Any],
    *,
    supported_presets: list[str] | None = None,
) -> list[dict[str, Any]]:
    failures: list[dict[str, Any]] = []
    if manifest.get("manifest_version") != SOURCE_MANIFEST_VERSION:
        failures.append(
            {
                "path": "manifest_version",
                "reason": "wrong_manifest_version",
                "value": manifest.get("manifest_version"),
            }
        )
    policy = manifest.get("policy") if isinstance(manifest.get("policy"), dict) else {}
    allowed_modes = set(_string_list(policy.get("allowed_derivation_modes")))
    if not ALLOWED_DERIVATION_MODES.issubset(allowed_modes):
        failures.append(
            {
                "path": "policy.allowed_derivation_modes",
                "reason": "missing_allowed_modes",
                "missing": sorted(ALLOWED_DERIVATION_MODES - allowed_modes),
            }
        )
    source_map = _manifest_source_map(manifest)
    if len(source_map) < 3:
        failures.append({"path": "source_classes", "reason": "too_few_source_classes", "count": len(source_map)})
    seen_urls: set[str] = set()
    for source_id, source in source_map.items():
        path = f"source_classes.{source_id}"
        url = str(source.get("source_url") or "").strip()
        if not re.match(r"^https://", url):
            failures.append({"path": f"{path}.source_url", "reason": "source_url_must_be_https", "value": url})
        if url in seen_urls:
            failures.append({"path": f"{path}.source_url", "reason": "duplicate_source_url", "value": url})
        seen_urls.add(url)
        if source.get("source_status") not in ALLOWED_SOURCE_STATUS:
            failures.append(
                {
                    "path": f"{path}.source_status",
                    "reason": "unsupported_source_status",
                    "value": source.get("source_status"),
                }
            )
        for key in ("license_summary", "attribution_policy", "storage_policy"):
            if not str(source.get(key) or "").strip():
                failures.append({"path": f"{path}.{key}", "reason": "missing_text"})
        verification = (
            source.get("source_verification")
            if isinstance(source.get("source_verification"), dict)
            else {}
        )
        if not verification:
            failures.append({"path": f"{path}.source_verification", "reason": "missing_verification"})
        else:
            checked_url = str(verification.get("checked_url") or "").strip()
            if checked_url != url:
                failures.append(
                    {
                        "path": f"{path}.source_verification.checked_url",
                        "reason": "checked_url_must_match_source_url",
                        "value": checked_url,
                    }
                )
            if not re.match(r"^\d{4}-\d{2}-\d{2}$", str(verification.get("checked_date") or "")):
                failures.append(
                    {
                        "path": f"{path}.source_verification.checked_date",
                        "reason": "missing_or_invalid_checked_date",
                        "value": verification.get("checked_date"),
                    }
                )
            evidence_summary = str(verification.get("evidence_summary") or "").strip()
            if len(evidence_summary) < 80:
                failures.append(
                    {
                        "path": f"{path}.source_verification.evidence_summary",
                        "reason": "evidence_summary_too_short",
                    }
                )
            if not _string_list(verification.get("evidence_scope")):
                failures.append(
                    {
                        "path": f"{path}.source_verification.evidence_scope",
                        "reason": "missing_list",
                    }
                )
        for key in (
            "allowed_extractions",
            "forbidden_materials",
            "safe_derivation_modes",
            "preset_affinity",
            "generic_style_observations",
            "generic_slide_patterns",
        ):
            values = _string_list(source.get(key))
            if not values:
                failures.append({"path": f"{path}.{key}", "reason": "missing_list"})
            if key == "safe_derivation_modes":
                unsupported = sorted(set(values) - ALLOWED_DERIVATION_MODES)
                if unsupported:
                    failures.append({"path": f"{path}.{key}", "reason": "unsupported_modes", "values": unsupported})
    routes = _manifest_routes(manifest)
    presets = supported_presets or sorted(routes)
    for preset in presets:
        route = routes.get(preset)
        if not isinstance(route, dict):
            failures.append({"path": f"preset_intake_routes.{preset}", "reason": "missing_route"})
            continue
        route_path = f"preset_intake_routes.{preset}"
        if not str(route.get("route_id") or "").strip():
            failures.append({"path": f"{route_path}.route_id", "reason": "missing_route_id"})
        mode = str(route.get("derivation_mode") or "").strip()
        if mode not in ALLOWED_DERIVATION_MODES:
            failures.append({"path": f"{route_path}.derivation_mode", "reason": "unsupported_mode", "value": mode})
        source_ids = _string_list(route.get("source_ids"))
        if not source_ids:
            failures.append({"path": f"{route_path}.source_ids", "reason": "missing_source_ids"})
        for source_id in source_ids:
            source = source_map.get(source_id)
            if source is None:
                failures.append({"path": f"{route_path}.source_ids", "reason": "unknown_source_id", "source_id": source_id})
                continue
            source_modes = set(_string_list(source.get("safe_derivation_modes")))
            if mode not in source_modes:
                failures.append(
                    {
                        "path": f"{route_path}.derivation_mode",
                        "reason": "mode_not_allowed_for_source",
                        "source_id": source_id,
                        "mode": mode,
                    }
                )
        scope = set(_string_list(route.get("content_treatment_scope")))
        if set(REQUIRED_TREATMENTS) - scope:
            failures.append(
                {
                    "path": f"{route_path}.content_treatment_scope",
                    "reason": "missing_treatment_scope",
                    "missing": sorted(set(REQUIRED_TREATMENTS) - scope),
                }
            )
        for key in ("use_cases", "required_synthetic_content"):
            if not _string_list(route.get(key)):
                failures.append({"path": f"{route_path}.{key}", "reason": "missing_list"})
    return failures


def preset_source_intake_route(preset: str, manifest: dict[str, Any] | None = None) -> dict[str, Any]:
    payload = manifest if isinstance(manifest, dict) else load_style_reference_source_manifest()
    source_map = _manifest_source_map(payload)
    routes = _manifest_routes(payload)
    key = str(preset or "").strip()
    route = dict(routes.get(key, {}))
    if not route:
        return {}
    source_ids = _string_list(route.get("source_ids"))
    route["manifest_version"] = payload.get("manifest_version")
    route["source_checked_date"] = payload.get("source_checked_date")
    route["source_ids"] = source_ids
    route["sources"] = [
        {
            "source_id": source_id,
            "source_name": source_map.get(source_id, {}).get("source_name"),
            "source_url": source_map.get(source_id, {}).get("source_url"),
            "source_status": source_map.get(source_id, {}).get("source_status"),
            "license_summary": source_map.get(source_id, {}).get("license_summary"),
            "source_verification": source_map.get(source_id, {}).get("source_verification", {}),
            "attribution_policy": source_map.get(source_id, {}).get("attribution_policy"),
            "storage_policy": source_map.get(source_id, {}).get("storage_policy"),
            "allowed_extractions": source_map.get(source_id, {}).get("allowed_extractions", []),
            "forbidden_materials": source_map.get(source_id, {}).get("forbidden_materials", []),
            "generic_style_observations": source_map.get(source_id, {}).get("generic_style_observations", []),
            "generic_slide_patterns": source_map.get(source_id, {}).get("generic_slide_patterns", []),
            "design_constraints": source_map.get(source_id, {}).get("design_constraints", []),
        }
        for source_id in source_ids
        if source_id in source_map
    ]
    route["publish_safety"] = {
        "status": "publish_safe_descriptor",
        "basis": "source manifest stores only URLs, license notes, verification evidence, allowed extraction modes, and synthetic reconstruction requirements",
        "repo_storage_rule": str((payload.get("policy") if isinstance(payload.get("policy"), dict) else {}).get("repo_storage_rule") or ""),
    }
    return route


def style_reference_source_summary(manifest: dict[str, Any] | None = None) -> dict[str, Any]:
    payload = manifest if isinstance(manifest, dict) else load_style_reference_source_manifest()
    source_map = _manifest_source_map(payload)
    routes = _manifest_routes(payload)
    return {
        "manifest_version": payload.get("manifest_version"),
        "source_checked_date": payload.get("source_checked_date"),
        "source_count": len(source_map),
        "route_count": len(routes),
        "source_ids": sorted(source_map),
        "preset_routes": sorted(routes),
    }


def main() -> int:
    parser = argparse.ArgumentParser(description="Validate or inspect style-reference source-intake metadata.")
    parser.add_argument("--manifest", default=str(DEFAULT_MANIFEST), help="Path to style_reference_sources.json.")
    parser.add_argument("--preset", default="", help="Emit the compact source-intake route for one preset.")
    parser.add_argument("--validate", action="store_true", help="Validate the manifest and exit non-zero on failures.")
    args = parser.parse_args()
    manifest = load_style_reference_source_manifest(Path(args.manifest))
    if args.preset:
        payload: Any = preset_source_intake_route(args.preset, manifest)
    else:
        failures = validate_style_reference_source_manifest(manifest)
        payload = {
            **style_reference_source_summary(manifest),
            "passed": not failures,
            "failures": failures,
        }
    print(json.dumps(payload, indent=2))
    if args.validate:
        return 0 if not payload.get("failures") else 1
    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: 197kUpdated 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: 197kUpdated 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: 197kUpdated 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: 197kUpdated Claude CodeCodexVerifiedInstall