Skip to content

LeoYeAI/agent-master-skills / skills/ai-ppt-generator

ai-ppt-generator

Verified

Generate PPT with Baidu AI. Smart template selection based on content.

FileKindSize
SKILL.mdskill md3.2 KB
scripts/generate_ppt.pyscript5.0 KB
scripts/ppt_theme_list.pyscript1.2 KB
scripts/random_ppt_theme.pyscript12.0 KB

scripts/ppt_theme_list.py

View on GitHub
import os
import sys
import requests
import json


def ppt_theme_list(api_key: str):
    url = "https://qianfan.baidubce.com/v2/tools/ai_ppt/get_ppt_theme"
    headers = {
        "Authorization": "Bearer %s" % api_key,
        "X-Appbuilder-From": "openclaw",
    }
    response = requests.post(url, headers=headers)
    result = response.json()
    if "errno" in result and result["errno"] != 0:
        raise RuntimeError(result["errmsg"])
    themes = []
    count = 0
    for theme in result["data"]["ppt_themes"]:
        count += 1
        if count > 100:
            break
        themes.append({
            "style_name_list": theme["style_name_list"],
            "style_id": theme["style_id"],
            "tpl_id": theme["tpl_id"],
        })
    return themes


if __name__ == "__main__":
    api_key = os.getenv("BAIDU_API_KEY")
    if not api_key:
        print("Error: BAIDU_API_KEY  must be set in environment.")
        sys.exit(1)
    try:
        results = ppt_theme_list(api_key)
        print(json.dumps(results, ensure_ascii=False, indent=2))
    except Exception as e:
        exc_type, exc_value, exc_traceback = sys.exc_info()
        print(f"error type:{exc_type}")
        print(f"error message:{exc_value}")
        sys.exit(1)
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