Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

klingai-ci-integration

Skill by jeremylongshore

Adds Kling AI video generation to GitHub Actions and GitLab CI pipelines. It is aimed at teams that want to generate videos from prompts during automated builds or releases.

  • Score 77
  • 2.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install klingai-ci-integration

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/klingai-ci-integration ~/.claude/skills/klingai-ci-integration

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install klingai-ci-integration in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This Claude Code skill shows how to run Kling AI text-to-video generation inside CI/CD pipelines. It includes a GitHub Actions workflow with manual dispatch inputs for prompt and model, a GitLab CI job, and a Python script that submits a task, polls its status, and saves the resulting MP4 as a build artifact.

The script signs requests with a JWT built from Kling access and secret keys, which are stored as CI secrets. The skill also covers batch generation from a YAML prompt file, secret handling for several platforms, and a guarded workflow with a synthetic fixture requirement, a private sandbox canary, owner approval before promotion, and a machine-readable receipt. It suits developers who automate marketing or product video and want controls around cost and publishing.

Written from the project's SKILL.md and checked against it.

What it can do

  • Generate video in GitHub ActionsRuns a manual workflow that takes a prompt and model and uploads the MP4 as an artifact.
  • Generate video in GitLab CIRuns a build-stage job that stores generated MP4 files as artifacts for seven days.
  • Submit and poll tasksSubmits a text-to-video task to the Kling API and polls until it succeeds, fails or times out.
  • Batch from YAML configReads a YAML file of named video prompts, models and modes and submits each one.
  • Approval and budget gatesRequires a rights-cleared fixture, a bounded credit budget, and owner approval before promotion.
  • Redacted receiptsEmits a machine-readable receipt with run digests, budget usage and approval status.

What you need

  • Kling AI access key and secret key
  • GitHub Actions or GitLab CI
  • Python 3.11 or later
  • PyJWT and requests Python packages

Try asking

  • Generate a 5 second product demo video from this prompt in CI
  • Set up a GitHub Actions workflow that generates Kling videos on dispatch
  • Batch generate videos from my video-prompts.yml file

Good to know

  • Automated jobs should use synthetic or rights-cleared media only.
  • Automated jobs produce draft, watermarked media until an owner approves promotion.
  • Rejected prompts and billable generations are not retried automatically.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/klingai-ci-integration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditBash(npm:*)Grep

Alternatives to klingai-ci-integration

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

klingai-ci-integration: common questions

Where should Kling API keys be stored?

The source says to store the access and secret keys in the CI platform's secret store, such as GitHub repository secrets or GitLab masked CI/CD variables. It says never to put keys in workflow YAML or commit them to the repo.

How long are generated videos kept?

The GitHub Actions example keeps the artifact for 7 days, and the GitLab CI example sets expire_in to 7 days.

What happens if video generation times out?

The script waits up to 600 seconds by default. If the task has not completed by then, it prints a timeout message and exits with an error.

How do I install klingai-ci-integration?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is klingai-ci-integration free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is klingai-ci-integration safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to klingai-ci-integration?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

klingai-ci-integration Install

Add to stack

Loading.