Execute set up comprehensive logging and debugging for Kling AI. Use when investigating issues or monitoring requests. Trigger with phrases like 'klingai debug', 'kling ai logging', 'trace klingai', 'monitor klingai requests'.
Install with Tessl CLI
npx tessl i github:jeremylongshore/claude-code-plugins-plus-skills --skill klingai-debug-bundle63
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Structured JSON logging setup
JSONFormatter class
0%
100%
JSON output fields
100%
100%
Exception in JSON
100%
100%
Logger name 'klingai'
50%
100%
StreamHandler to stdout
0%
100%
setup_logging function
0%
100%
Handler uses formatter
100%
100%
Demo runs without error
100%
100%
Extra fields propagated
100%
0%
Module-level logger init
0%
100%
Without context: $0.3757 · 1m 25s · 24 turns · 24 in / 5,022 out tokens
With context: $0.6403 · 2m 12s · 34 turns · 2,629 in / 7,431 out tokens
Request tracing with trace IDs and headers
TracedKlingAIClient class
0%
0%
RequestTrace dataclass
0%
58%
Trace ID format
80%
0%
X-Trace-ID header
70%
100%
Request logged before call
0%
62%
Response logged after call
37%
62%
Errors captured in trace
75%
100%
Logger named klingai.trace
0%
0%
export_traces method
40%
100%
traces.json produced
50%
50%
Bearer auth header
87%
100%
Without context: $0.2480 · 1m 20s · 13 turns · 14 in / 4,804 out tokens
With context: $0.6001 · 2m 6s · 33 turns · 81 in / 7,938 out tokens
Performance metrics and debug diagnostics
PerformanceMetrics dataclass
0%
100%
get_stats p95
0%
100%
get_stats full set
12%
100%
create_debug_report keys
0%
100%
recent_traces limit
0%
100%
configuration sub-keys
0%
100%
diagnose 30s threshold
50%
100%
diagnose status codes
75%
100%
severity classification
0%
100%
debug_report.json produced
20%
100%
timeout detection
0%
100%
Without context: $0.4566 · 2m · 21 turns · 21 in / 8,074 out tokens
With context: $0.6126 · 2m 5s · 31 turns · 107 in / 7,807 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.