Agent skill · Audited from source
Klingai Debug Bundle
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: Set up logging and debugging for Kling AI API integrations. Use when
Cite
Cite this page
ModelsAtlas. “Klingai Debug Bundle (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/klingai-debug-bundle
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-debug-bundleThe 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: Set up logging and debugging for Kling AI API integrations. Use when
--- name: klingai-debug-bundle description: 'Set up logging and debugging for Kling AI API integrations. Use when troubleshooting video generation or building observability. Trigger with phrases like ''klingai debug'', ''kling ai logging'', ''klingai troubleshoot'', ''debug kling video generation''. ' allowed-tools: Read, Write, Edit, Bash(npm:*), Grep version: 1.18.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - kling-ai - debugging - observability compatibility: Designed for Claude Code --- # Kling AI Debug Bundle ## Overview Structured logging, request tracing, and diagnostic tools for Kling AI API integrations. Captures request/response pairs, task lifecycle events, and timing metrics for every call to `https://api.klingai.com/v1`. ## Debug-Enabled Client ```python import jwt, time, os, requests, logging, json from datetime import datetime logging.basicConfig( level=logging.DEBUG, format="%(asctime)s [%(levelname)s] %(name)s: %(message)s" ) logger = logging.getLogger("kling.debug") class KlingDebugClient: """Kling AI client with full request/response logging.""" BASE = "https://api.klingai.com/v1" def __init__(self): self.ak = os.environ["KLING_ACCESS_KEY"] self.sk = os.environ["KLING_SECRET_KEY"] self._request_log = [] def _get_headers(self): token = jwt.encode( {"iss": self.ak, "exp": int(time.time()) + 1800, "nbf": int(time.time()) - 5}, self.sk, algorithm="HS256", headers={"alg": "HS256", "typ": "JWT"} ) return {"Authorization": f"Bearer {token}", "Content-Type": "application/json"} def _traced_request(self, method, path, body=None): """Execute request with full tracing.""" url = f"{self.BASE}{path}" start = time.monotonic() trace = { "timestamp": datetime.utcnow().isoformat(), "method": method, "path": path, "request_body": body, } try: if method == "POST": r = requests.post(url, headers=self._get_headers(), json=body, timeout=30) else: r = requests.get(url, headers=self._get_headers(), timeout=30) trace["status_code"] = r.status_code trace["response_body"] = r.json() if r.content else None trace["duration_ms"] = round((time.monotonic() - start) * 1000) logger.debug(f"{method} {path} -> {r.status_code} ({trace['duration_ms']}ms)") if r.status_code >= 400: logger.error(f"API error: {r.status_code} -- {r.text[:300]}") r.raise_for_status() return r.json() except Exception as e: trace["error"] = str(e) trace["duration_ms"] = round((time.monotonic() - start) * 1000) logger.exception(f"Request failed: {path}") raise finally: self._request_log.append(trace) def text_to_video(self, prompt, **kwargs): body = { "model_name": kwargs.get("model", "kling-v2-master"), "prompt": prompt, "duration": str(kwargs.get("duration", 5)), "mode": kwargs.get("mode", "standard"), } result = self._traced_request("POST", "/videos/text2video", body) task_id = result["data"]["task_id"] logger.info(f"Task created: {task_id}") return self._poll_with_logging("/videos/text2video", task_id) def _poll_with_logging(self, endpoint, task_id, max_attempts=120): start = time.monotonic() for attempt in range(max_attempts): time.sleep(10) result = self._traced_request("GET", f"{endpoint}/{task_id}") status = result["data"]["task_status"] elapsed = round(time.monotonic() - start) logger.info(f"Poll #{attempt + 1}: status={status}, elapsed={elapsed}s") if status == "succeed": logger.info(f"Task {task_id} completed in {elapsed}s") return result["data"]["task_result"] elif status == "failed": msg = result["data"].get("task_status_msg", "Unknown") logger.error(f"Task {task_id} failed after {elapsed}s: {msg}") raise RuntimeError(msg) raise TimeoutError(f"Task {task_id} timed out after {max_attempts * 10}s") def dump_log(self, filepath="kling_debug.json"): with open(filepath, "w") as f: json.dump(self._request_log, f, indent=2, default=str) logger.info(f"Debug log written to {filepath} ({len(self._request_log)} entries)") ``` ## Usage ```python client = KlingDebugClient() try: result = client.text_to_video("A cat surfing ocean waves at sunset") print(f"Video: {result['videos'][0]['url']}") except Exception: pass finally: client.dump_log() # always save debug log ``` ## Structured Log Entry Format ```json { "timestamp": "2026-03-22T10:30:00.000Z", "method": "POST", "path": "/videos/text2video", "request_body": {"model_name": "kling-v2-master", "prompt": "..."}, "status_code": 200, "response_body": {"code": 0, "data": {"task_id": "abc123"}}, "duration_ms": 342 } ``` ## Quick Diagnostic Script ```bash #!/bin/bash # kling-diag.sh echo "=== Kling AI Diagnostics ===" echo "KLING_ACCESS_KEY: ${KLING_ACCESS_KEY:+set (${#KLING_ACCESS_KEY} chars)}" echo "KLING_SECRET_KEY: ${KLING_SECRET_KEY:+set (${#KLING_SECRET_KEY} chars)}" python3 -c " import jwt, time, os, requests ak = os.environ.get('KLING_ACCESS_KEY', '') sk = os.environ.get('KLING_SECRET_KEY', '') if not ak or not sk: print('ERROR: Missing credentials'); exit(1) token = jwt.encode({'iss': ak, 'exp': int(time.time())+1800, 'nbf': int(time.time())-5}, sk, algorithm='HS256', headers={'alg':'HS256','typ':'JWT'}) r = requests.get('https://api.klingai.com/v1/videos/text2video', headers={'Authorization': f'B
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-debug-bundle/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All coding & review 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-debug-bundle/)
<a href="https://modelsatlas.com/skills/jeremylongshore/klingai-debug-bundle/"><img src="https://modelsatlas.com/skills/jeremylongshore/klingai-debug-bundle/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Klingai Debug Bundle
What does the Klingai Debug Bundle skill do?
Is Klingai Debug Bundle safe to install?
What can Klingai Debug Bundle access on my machine?
Which assistants does Klingai Debug Bundle 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 Debug Bundle skill do?
- Is Klingai Debug Bundle safe to install?
- What can Klingai Debug Bundle access on my machine?