[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7923YZ8HT0NRR0FVBH50Q7E":3,"skill-same:01M7923YZ8HT0NRR0FVBH50Q7E":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M7923YZ8HT0NRR0FVBH50Q7E","klingai-storage-integration",null,"Download and store Kling AI generated videos in cloud storage (S3, GCS, Azure). Use when\npersisting videos or building CDN pipelines. Trigger with phrases like 'klingai storage',\n'save klingai video', 'kling ai s3 upload', 'klingai cloud storage'.","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--klingai-pack--klingai-storage-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: klingai-storage-integration\ndescription: |\n  Download and store Kling AI generated videos in cloud storage (S3, GCS, Azure). Use when\n  persisting videos or building CDN pipelines. Trigger with phrases like 'klingai storage',\n  'save klingai video', 'kling ai s3 upload', 'klingai cloud storage'.\nallowed-tools: Read, Write, Edit, Bash(npm:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, kling-ai, storage, s3, gcs]\n---\n# Kling AI Storage Integration\n\n## Overview\n\nKling AI video URLs from `task_result.videos[].url` are temporary CDN links that expire. You must download and store videos in your own storage. This skill covers S3, GCS, and Azure Blob.\n\n## Download from Kling CDN\n\n```python\nimport requests\nimport os\n\ndef download_video(video_url: str, output_dir: str = \"output\") -> str:\n    \"\"\"Download generated video from Kling CDN.\"\"\"\n    os.makedirs(output_dir, exist_ok=True)\n\n    # Extract filename or generate one\n    filename = video_url.split(\"\u002F\")[-1].split(\"?\")[0]\n    if not filename.endswith(\".mp4\"):\n        filename = f\"kling_{int(time.time())}.mp4\"\n\n    filepath = os.path.join(output_dir, filename)\n    response = requests.get(video_url, stream=True, timeout=120)\n    response.raise_for_status()\n\n    with open(filepath, \"wb\") as f:\n        for chunk in response.iter_content(chunk_size=8192):\n            f.write(chunk)\n\n    size_mb = os.path.getsize(filepath) \u002F (1024 * 1024)\n    print(f\"Downloaded: {filepath} ({size_mb:.1f} MB)\")\n    return filepath\n```\n\n## Upload to AWS S3\n\n```python\nimport boto3\n\ndef upload_to_s3(filepath: str, bucket: str, key_prefix: str = \"kling-videos\u002F\") -> str:\n    \"\"\"Upload video to S3 and return public URL.\"\"\"\n    s3 = boto3.client(\"s3\")\n    filename = os.path.basename(filepath)\n    s3_key = f\"{key_prefix}{filename}\"\n\n    s3.upload_file(\n        filepath, bucket, s3_key,\n        ExtraArgs={\"ContentType\": \"video\u002Fmp4\", \"CacheControl\": \"max-age=86400\"}\n    )\n\n    url = f\"https:\u002F\u002F{bucket}.s3.amazonaws.com\u002F{s3_key}\"\n    print(f\"Uploaded to S3: {url}\")\n    return url\n\n# Generate signed URL for private buckets\ndef get_signed_url(bucket: str, key: str, expiry: int = 3600) -> str:\n    s3 = boto3.client(\"s3\")\n    return s3.generate_presigned_url(\n        \"get_object\",\n        Params={\"Bucket\": bucket, \"Key\": key},\n        ExpiresIn=expiry,\n    )\n```\n\n## Upload to Google Cloud Storage\n\n```python\nfrom google.cloud import storage\n\ndef upload_to_gcs(filepath: str, bucket_name: str, prefix: str = \"kling-videos\u002F\") -> str:\n    \"\"\"Upload video to GCS and return public URL.\"\"\"\n    client = storage.Client()\n    bucket = client.bucket(bucket_name)\n    filename = os.path.basename(filepath)\n    blob = bucket.blob(f\"{prefix}{filename}\")\n\n    blob.upload_from_filename(filepath, content_type=\"video\u002Fmp4\")\n    blob.make_public()  # or use signed URLs for private access\n\n    print(f\"Uploaded to GCS: {blob.public_url}\")\n    return blob.public_url\n\n# Signed URL for private access\ndef get_gcs_signed_url(bucket_name: str, blob_name: str, expiry_min: int = 60) -> str:\n    from datetime import timedelta\n    client = storage.Client()\n    bucket = client.bucket(bucket_name)\n    blob = bucket.blob(blob_name)\n    return blob.generate_signed_url(expiration=timedelta(minutes=expiry_min))\n```\n\n## Upload to Azure Blob Storage\n\n```python\nfrom azure.storage.blob import BlobServiceClient\n\ndef upload_to_azure(filepath: str, container: str,\n                    connection_string: str = None) -> str:\n    \"\"\"Upload video to Azure Blob Storage.\"\"\"\n    conn_str = connection_string or os.environ[\"AZURE_STORAGE_CONNECTION_STRING\"]\n    client = BlobServiceClient.from_connection_string(conn_str)\n    filename = os.path.basename(filepath)\n    blob_client = client.get_blob_client(container=container, blob=f\"kling-videos\u002F{filename}\")\n\n    with open(filepath, \"rb\") as f:\n        blob_client.upload_blob(f, content_type=\"video\u002Fmp4\", overwrite=True)\n\n    url = blob_client.url\n    print(f\"Uploaded to Azure: {url}\")\n    return url\n```\n\n## End-to-End Pipeline\n\n```python\ndef generate_and_store(prompt: str, bucket: str, provider: str = \"s3\"):\n    \"\"\"Generate video with Kling AI and store in cloud.\"\"\"\n    # 1. Generate\n    r = requests.post(f\"{BASE}\u002Fvideos\u002Ftext2video\", headers=get_headers(), json={\n        \"model_name\": \"kling-v2-master\",\n        \"prompt\": prompt,\n        \"duration\": \"5\",\n        \"mode\": \"standard\",\n    }).json()\n    task_id = r[\"data\"][\"task_id\"]\n\n    # 2. Poll\n    result = poll_task(\"\u002Fvideos\u002Ftext2video\", task_id)\n    video_url = result[\"videos\"][0][\"url\"]\n\n    # 3. Download\n    filepath = download_video(video_url)\n\n    # 4. Upload\n    if provider == \"s3\":\n        return upload_to_s3(filepath, bucket)\n    elif provider == \"gcs\":\n        return upload_to_gcs(filepath, bucket)\n    elif provider == \"azure\":\n        return upload_to_azure(filepath, bucket)\n\n    # 5. Cleanup temp file\n    os.remove(filepath)\n```\n\n## Metadata Preservation\n\n```python\nimport json\n\ndef save_with_metadata(filepath: str, task_id: str, prompt: str, model: str):\n    \"\"\"Save video metadata alongside the file.\"\"\"\n    meta = {\n        \"task_id\": task_id,\n        \"prompt\": prompt,\n        \"model\": model,\n        \"generated_at\": time.strftime(\"%Y-%m-%dT%H:%M:%SZ\"),\n        \"filename\": os.path.basename(filepath),\n    }\n    meta_path = filepath.replace(\".mp4\", \".meta.json\")\n    with open(meta_path, \"w\") as f:\n        json.dump(meta, f, indent=2)\n    return meta_path\n```\n\n## Resources\n\n- [API Reference](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev\u002Fdocument-api\u002FapiReference\u002Fmodel\u002FtextToVideo)\n- [AWS S3 SDK](https:\u002F\u002Fboto3.amazonaws.com\u002Fv1\u002Fdocumentation\u002Fapi\u002Flatest\u002Freference\u002Fservices\u002Fs3.html)\n- [Google Cloud Storage](https:\u002F\u002Fcloud.google.com\u002Fstorage\u002Fdocs)\n","# Kling AI Storage Integration\n\n## Overview\n\nKling AI video URLs from `task_result.videos[].url` are temporary CDN links that expire. You must download and store videos in your own storage. This skill covers S3, GCS, and Azure Blob.\n\n## Download from Kling CDN\n\n```python\nimport requests\nimport os\n\ndef download_video(video_url: str, output_dir: str = \"output\") -> str:\n    \"\"\"Download generated video from Kling CDN.\"\"\"\n    os.makedirs(output_dir, exist_ok=True)\n\n    # Extract filename or generate one\n    filename = video_url.split(\"\u002F\")[-1].split(\"?\")[0]\n    if not filename.endswith(\".mp4\"):\n        filename = f\"kling_{int(time.time())}.mp4\"\n\n    filepath = os.path.join(output_dir, filename)\n    response = requests.get(video_url, stream=True, timeout=120)\n    response.raise_for_status()\n\n    with open(filepath, \"wb\") as f:\n        for chunk in response.iter_content(chunk_size=8192):\n            f.write(chunk)\n\n    size_mb = os.path.getsize(filepath) \u002F (1024 * 1024)\n    print(f\"Downloaded: {filepath} ({size_mb:.1f} MB)\")\n    return filepath\n```\n\n## Upload to AWS S3\n\n```python\nimport boto3\n\ndef upload_to_s3(filepath: str, bucket: str, key_prefix: str = \"kling-videos\u002F\") -> str:\n    \"\"\"Upload video to S3 and return public URL.\"\"\"\n    s3 = boto3.client(\"s3\")\n    filename = os.path.basename(filepath)\n    s3_key = f\"{key_prefix}{filename}\"\n\n    s3.upload_file(\n        filepath, bucket, s3_key,\n        ExtraArgs={\"ContentType\": \"video\u002Fmp4\", \"CacheControl\": \"max-age=86400\"}\n    )\n\n    url = f\"https:\u002F\u002F{bucket}.s3.amazonaws.com\u002F{s3_key}\"\n    print(f\"Uploaded to S3: {url}\")\n    return url\n\n# Generate signed URL for private buckets\ndef get_signed_url(bucket: str, key: str, expiry: int = 3600) -> str:\n    s3 = boto3.client(\"s3\")\n    return s3.generate_presigned_url(\n        \"get_object\",\n        Params={\"Bucket\": bucket, \"Key\": key},\n        ExpiresIn=expiry,\n    )\n```\n\n## Upload to Google Cloud Storage\n\n```python\nfrom google.cloud import storage\n\ndef upload_to_gcs(filepath: str, bucket_name: str, prefix: str = \"kling-videos\u002F\") -> str:\n    \"\"\"Upload video to GCS and return public URL.\"\"\"\n    client = storage.Client()\n    bucket = client.bucket(bucket_name)\n    filename = os.path.basename(filepath)\n    blob = bucket.blob(f\"{prefix}{filename}\")\n\n    blob.upload_from_filename(filepath, content_type=\"video\u002Fmp4\")\n    blob.make_public()  # or use signed URLs for private access\n\n    print(f\"Uploaded to GCS: {blob.public_url}\")\n    return blob.public_url\n\n# Signed URL for private access\ndef get_gcs_signed_url(bucket_name: str, blob_name: str, expiry_min: int = 60) -> str:\n    from datetime import timedelta\n    client = storage.Client()\n    bucket = client.bucket(bucket_name)\n    blob = bucket.blob(blob_name)\n    return blob.generate_signed_url(expiration=timedelta(minutes=expiry_min))\n```\n\n## Upload to Azure Blob Storage\n\n```python\nfrom azure.storage.blob import BlobServiceClient\n\ndef upload_to_azure(filepath: str, container: str,\n                    connection_string: str = None) -> str:\n    \"\"\"Upload video to Azure Blob Storage.\"\"\"\n    conn_str = connection_string or os.environ[\"AZURE_STORAGE_CONNECTION_STRING\"]\n    client = BlobServiceClient.from_connection_string(conn_str)\n    filename = os.path.basename(filepath)\n    blob_client = client.get_blob_client(container=container, blob=f\"kling-videos\u002F{filename}\")\n\n    with open(filepath, \"rb\") as f:\n        blob_client.upload_blob(f, content_type=\"video\u002Fmp4\", overwrite=True)\n\n    url = blob_client.url\n    print(f\"Uploaded to Azure: {url}\")\n    return url\n```\n\n## End-to-End Pipeline\n\n```python\ndef generate_and_store(prompt: str, bucket: str, provider: str = \"s3\"):\n    \"\"\"Generate video with Kling AI and store in cloud.\"\"\"\n    # 1. Generate\n    r = requests.post(f\"{BASE}\u002Fvideos\u002Ftext2video\", headers=get_headers(), json={\n        \"model_name\": \"kling-v2-master\",\n        \"prompt\": prompt,\n        \"duration\": \"5\",\n        \"mode\": \"standard\",\n    }).json()\n    task_id = r[\"data\"][\"task_id\"]\n\n    # 2. Poll\n    result = poll_task(\"\u002Fvideos\u002Ftext2video\", task_id)\n    video_url = result[\"videos\"][0][\"url\"]\n\n    # 3. Download\n    filepath = download_video(video_url)\n\n    # 4. Upload\n    if provider == \"s3\":\n        return upload_to_s3(filepath, bucket)\n    elif provider == \"gcs\":\n        return upload_to_gcs(filepath, bucket)\n    elif provider == \"azure\":\n        return upload_to_azure(filepath, bucket)\n\n    # 5. Cleanup temp file\n    os.remove(filepath)\n```\n\n## Metadata Preservation\n\n```python\nimport json\n\ndef save_with_metadata(filepath: str, task_id: str, prompt: str, model: str):\n    \"\"\"Save video metadata alongside the file.\"\"\"\n    meta = {\n        \"task_id\": task_id,\n        \"prompt\": prompt,\n        \"model\": model,\n        \"generated_at\": time.strftime(\"%Y-%m-%dT%H:%M:%SZ\"),\n        \"filename\": os.path.basename(filepath),\n    }\n    meta_path = filepath.replace(\".mp4\", \".meta.json\")\n    with open(meta_path, \"w\") as f:\n        json.dump(meta, f, indent=2)\n    return meta_path\n```\n\n## Resources\n\n- [API Reference](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev\u002Fdocument-api\u002FapiReference\u002Fmodel\u002FtextToVideo)\n- [AWS S3 SDK](https:\u002F\u002Fboto3.amazonaws.com\u002Fv1\u002Fdocumentation\u002Fapi\u002Flatest\u002Freference\u002Fservices\u002Fs3.html)\n- [Google Cloud Storage](https:\u002F\u002Fcloud.google.com\u002Fstorage\u002Fdocs)\n",{"name":5,"tags":24,"author":30,"license":15,"version":31,"description":32,"allowed-tools":33,"compatible-with":34},[25,26,27,28,29],"saas","kling-ai","storage","s3","gcs","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Download and store Kling AI generated videos in cloud storage (S3, GCS, Azure). Use when\npersisting videos or building CDN pipelines. Trigger with phrases like 'klingai storage',\n'save klingai video', 'kling ai s3 upload', 'klingai cloud storage'.\n","Read, Write, Edit, Bash(npm:*), Grep","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--klingai-pack--klingai-storage-integration",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill klingai-storage-integration",{"tool":50,"command":51},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill klingai-storage-integration",{"tool":53,"command":54},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill klingai-storage-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--klingai-pack--klingai-storage-integration\u002FSKILL.md",true,[],[59,66,73,80,87,95],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]