Agent skill · Audited from source
Klingai Reference Architecture
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 9 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Production reference architecture for Kling AI video generation platforms.
Cite
Cite this page
ModelsAtlas. “Klingai Reference Architecture (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/klingai-reference-architecture
Trust audit
Audit 0.4.1 · source read 9 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 9 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/klingai-pack/skills/klingai-reference-architectureThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Production reference architecture for Kling AI video generation platforms.
--- name: klingai-reference-architecture description: 'Production reference architecture for Kling AI video generation platforms. Use when designing scalable systems. Trigger with phrases like ''klingai architecture'', ''kling ai system design'', ''video platform architecture'', ''klingai production setup''. ' allowed-tools: Read, Write, Edit, Bash(npm:*), Grep version: 1.18.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - kling-ai - architecture - scaling compatibility: Designed for Claude Code --- # Kling AI Reference Architecture ## Overview Production architecture for video generation platforms built on Kling AI. Covers API gateway, job queue, worker pool, storage, and monitoring layers. ## Architecture Diagram ``` User Request | [API Gateway / Load Balancer] | [Application Server] |--- validate prompt & estimate cost |--- enqueue job to Redis/SQS | [Job Queue (Redis / SQS / Pub/Sub)] | [Worker Pool (N workers)] |--- generate JWT token |--- POST https://api.klingai.com/v1/videos/text2video |--- receive task_id |--- register callback_url OR poll | [Webhook Receiver / Poller] |--- receive completion callback |--- download video from Kling CDN |--- upload to S3/GCS |--- update job status in DB |--- notify user | [Object Storage (S3 / GCS)] | [CDN (CloudFront / Cloud CDN)] | User views video ``` ## Component Details ### API Layer ```python from fastapi import FastAPI, HTTPException from pydantic import BaseModel app = FastAPI() class VideoRequest(BaseModel): prompt: str model: str = "kling-v2-master" duration: int = 5 mode: str = "standard" @app.post("/api/videos") async def create_video(req: VideoRequest): # 1. Validate if len(req.prompt) > 2500: raise HTTPException(400, "Prompt exceeds 2500 chars") # 2. Estimate cost credits = estimate_credits(req.duration, req.mode) if not budget_guard.check(credits): raise HTTPException(402, "Budget exceeded") # 3. Enqueue job_id = await queue.enqueue({ "prompt": req.prompt, "model": req.model, "duration": str(req.duration), "mode": req.mode, }) return {"job_id": job_id, "status": "queued", "estimated_credits": credits} ``` ### Worker Service ```python import redis import json class VideoWorker: def __init__(self, kling_client, storage_client, redis_url="redis://localhost"): self.kling = kling_client self.storage = storage_client self.redis = redis.Redis.from_url(redis_url) def process_loop(self): while True: raw = self.redis.brpop("kling:jobs:pending", timeout=5) if not raw: continue job = json.loads(raw[1]) try: # Submit to Kling API result = self.kling.text_to_video( job["prompt"], model=job["model"], duration=int(job["duration"]), mode=job["mode"], callback_url=os.environ.get("WEBHOOK_URL"), ) # If using polling (no callback) if isinstance(result, dict) and "videos" in result: video_url = result["videos"][0]["url"] stored_url = self.storage.download_and_upload(video_url, job["id"]) self.redis.publish("kling:events", json.dumps({ "type": "completed", "job_id": job["id"], "video_url": stored_url, })) except Exception as e: self.redis.lpush("kling:jobs:failed", json.dumps({ **job, "error": str(e) })) ``` ### Scaling Guidelines | Component | Scaling Strategy | |-----------|-----------------| | Workers | Scale by queue depth (1 worker per 3 concurrent API tasks) | | API servers | Horizontal, behind load balancer | | Redis | Single instance for <1K jobs/day, cluster for more | | Storage | S3/GCS scales automatically | | CDN | CloudFront/Cloud CDN for global delivery | ### Concurrency Limits by Tier | Tier | Max Concurrent Tasks | Workers Needed | |------|---------------------|----------------| | Free | 1 | 1 | | Standard | 3 | 1 | | Pro | 5 | 2 | | Enterprise | 10+ | 3-4 | ## Docker Compose Setup ```yaml # docker-compose.yml services: api: build: ./api ports: ["8000:8000"] environment: - REDIS_URL=redis://redis:6379 - KLING_ACCESS_KEY=${KLING_ACCESS_KEY} - KLING_SECRET_KEY=${KLING_SECRET_KEY} worker: build: ./worker deploy: replicas: 2 environment: - REDIS_URL=redis://redis:6379 - KLING_ACCESS_KEY=${KLING_ACCESS_KEY} - KLING_SECRET_KEY=${KLING_SECRET_KEY} - S3_BUCKET=${S3_BUCKET} webhook: build: ./webhook ports: ["8001:8001"] environment: - REDIS_URL=redis://redis:6379 redis: image: redis:7-alpine volumes: ["redis-data:/data"] volumes: redis-data: ``` ## Prerequisites - Defined availability, latency, retention, residency, and cost objectives; a threat model; and named owners for policy, data rights, operations, and publication approval. - A secret manager, private staging storage, immutable artifact digests, queue-level idempotency, and a bounded model/credit/concurrency allowlist. - Synthetic or rights-cleared fixtures for load and integration tests. Production likeness or customer media requires consent and an explicit processing purpose; test runs must not export contacts or source media. ## Instructions 1. Keep the API gateway responsible for authentication, authorization, prompt and provenance validation, content-policy checks, destination allowlists, and budget estimation before queueing work. 2. Put only opaque job references and approved parameters on the queue. Workers obtain short-lived credent
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/klingai-reference-architecture/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/klingai-reference-architecture/)
<a href="https://modelsatlas.com/skills/jeremylongshore/klingai-reference-architecture/"><img src="https://modelsatlas.com/skills/jeremylongshore/klingai-reference-architecture/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Klingai Reference Architecture
What does the Klingai Reference Architecture skill do?
Is Klingai Reference Architecture safe to install?
What can Klingai Reference Architecture access on my machine?
Which assistants does Klingai Reference Architecture work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Klingai Reference Architecture skill do?
- Is Klingai Reference Architecture safe to install?
- What can Klingai Reference Architecture access on my machine?