Agent skill · Audited from source
Klingai Usage Analytics
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: Build usage analytics and reporting for Kling AI video generation. Use
Cite
Cite this page
ModelsAtlas. “Klingai Usage Analytics (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/klingai-usage-analytics
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-usage-analyticsThe 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: Build usage analytics and reporting for Kling AI video generation. Use
--- name: klingai-usage-analytics description: 'Build usage analytics and reporting for Kling AI video generation. Use when tracking patterns, analyzing costs, or building dashboards. Trigger with phrases like ''klingai analytics'', ''kling ai usage report'', ''klingai metrics'', ''video generation stats''. ' allowed-tools: Read, Write, Edit, Bash(npm:*), Grep version: 1.18.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - kling-ai - analytics - reporting compatibility: Designed for Claude Code --- # Kling AI Usage Analytics ## Overview Track video generation usage with structured logging, aggregate metrics, daily reports, and cost analysis. Built on JSONL event logs that can feed into any analytics platform. ## Event Logger ```python import json import time from datetime import datetime from pathlib import Path class KlingEventLogger: """Append-only JSONL event log for Kling AI operations.""" def __init__(self, log_dir: str = "logs"): self.log_dir = Path(log_dir) self.log_dir.mkdir(exist_ok=True) def _write(self, event: dict): date = datetime.utcnow().strftime("%Y-%m-%d") filepath = self.log_dir / f"kling-{date}.jsonl" event["timestamp"] = datetime.utcnow().isoformat() with open(filepath, "a") as f: f.write(json.dumps(event) + "\n") def log_submission(self, task_id, prompt, model, duration, mode): self._write({ "event": "task_submitted", "task_id": task_id, "model": model, "duration": int(duration), "mode": mode, "prompt_len": len(prompt), }) def log_completion(self, task_id, status, elapsed_sec, credits_used): self._write({ "event": "task_completed", "task_id": task_id, "status": status, "elapsed_sec": elapsed_sec, "credits_used": credits_used, }) def log_error(self, task_id, error_type, message): self._write({ "event": "task_error", "task_id": task_id, "error_type": error_type, "message": message[:200], }) ``` ## Analytics Aggregator ```python from collections import defaultdict class UsageAnalytics: """Aggregate metrics from JSONL event logs.""" def __init__(self, log_dir: str = "logs"): self.log_dir = Path(log_dir) def _read_events(self, date: str = None): pattern = f"kling-{date}.jsonl" if date else "kling-*.jsonl" events = [] for filepath in sorted(self.log_dir.glob(pattern)): with open(filepath) as f: for line in f: events.append(json.loads(line)) return events def daily_summary(self, date: str = None) -> dict: date = date or datetime.utcnow().strftime("%Y-%m-%d") events = self._read_events(date) submitted = [e for e in events if e["event"] == "task_submitted"] completed = [e for e in events if e["event"] == "task_completed"] errors = [e for e in events if e["event"] == "task_error"] succeeded = [e for e in completed if e["status"] == "succeed"] failed = [e for e in completed if e["status"] == "failed"] total_credits = sum(e.get("credits_used", 0) for e in completed) avg_elapsed = (sum(e["elapsed_sec"] for e in succeeded) / len(succeeded) if succeeded else 0) by_model = defaultdict(int) for e in submitted: by_model[e["model"]] += 1 return { "date": date, "total_submitted": len(submitted), "succeeded": len(succeeded), "failed": len(failed), "errors": len(errors), "success_rate": f"{len(succeeded) / max(len(completed), 1) * 100:.1f}%", "total_credits": total_credits, "avg_generation_sec": round(avg_elapsed), "by_model": dict(by_model), } def print_report(self, date: str = None): s = self.daily_summary(date) print(f"\n=== Kling AI Usage Report: {s['date']} ===") print(f"Submitted: {s['total_submitted']}") print(f"Succeeded: {s['succeeded']}") print(f"Failed: {s['failed']}") print(f"Success rate: {s['success_rate']}") print(f"Credits used: {s['total_credits']}") print(f"Avg time: {s['avg_generation_sec']}s") print(f"By model:") for model, count in s["by_model"].items(): print(f" {model}: {count}") ``` ## Cost Analysis ```python def cost_analysis(analytics: UsageAnalytics, days: int = 7): """Analyze cost trends over recent days.""" from datetime import timedelta daily_costs = [] for i in range(days): date = (datetime.utcnow() - timedelta(days=i)).strftime("%Y-%m-%d") summary = analytics.daily_summary(date) daily_costs.append({ "date": date, "credits": summary["total_credits"], "videos": summary["total_submitted"], "estimated_usd": summary["total_credits"] * 0.14, }) total_credits = sum(d["credits"] for d in daily_costs) total_videos = sum(d["videos"] for d in daily_costs) total_cost = sum(d["estimated_usd"] for d in daily_costs) print(f"\n=== {days}-Day Cost Summary ===") print(f"Total credits: {total_credits}") print(f"Total videos: {total_videos}") print(f"Est. cost: ${total_cost:.2f}") print(f"Avg/day: ${total_cost / days:.2f}") for d in daily_costs: print(f" {d['date']}: {d['credits']} credits, {d['videos']} videos, ${d['estimated_usd']:.2f}") ``` ## Export to CSV ```python import csv def export_usage_csv(analytics: UsageAnalytics, output: str = "kling_usage.csv"): events = analytics._read_events() with open(output, "w", newline="") as f: writer = csv.DictWriter(f, fieldnames=["time
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-usage-analytics/)
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 data & analysis 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-usage-analytics/)
<a href="https://modelsatlas.com/skills/jeremylongshore/klingai-usage-analytics/"><img src="https://modelsatlas.com/skills/jeremylongshore/klingai-usage-analytics/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Klingai Usage Analytics
What does the Klingai Usage Analytics skill do?
Is Klingai Usage Analytics safe to install?
What can Klingai Usage Analytics access on my machine?
Which assistants does Klingai Usage Analytics 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 Usage Analytics skill do?
- Is Klingai Usage Analytics safe to install?
- What can Klingai Usage Analytics access on my machine?