KS
Killer-Skills

script-kit-logging — how to use script-kit-logging how to use script-kit-logging, script-kit-logging setup guide, what is script-kit-logging, script-kit-logging alternative, script-kit-logging vs log4j, script-kit-logging install, rust logging frameworks, GPUI logging tools, structured logging patterns

v1.0.0
GitHub

About this Skill

Perfect for Debugging Agents requiring structured logging patterns for efficient log analysis in Rust and GPU environments. script-kit-logging is a Rust-based logging framework using GPUI, offering structured logging patterns for improved debugging and observability

Features

Compact stderr format: `SS.mmm|L|C|message` for efficient log analysis
Supports AI Compact Log Mode (SCRIPT_KIT_AI_LOG=1) for reduced log verbosity
Utilizes categories like position (P), app (A), UI (U), and stdin (S) for log organization
Includes log levels: INFO (i), WARN (w), ERROR (e), DEBUG (d), and TRACE (t) for flexible logging
Offers visibility into execution (E), key (K), focus (F), and theme (T) for enhanced debugging

# Core Topics

johnlindquist johnlindquist
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
36
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add johnlindquist/script-kit-next/script-kit-logging

Agent Capability Analysis

The script-kit-logging MCP Server by johnlindquist is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use script-kit-logging, script-kit-logging setup guide, what is script-kit-logging.

Ideal Agent Persona

Perfect for Debugging Agents requiring structured logging patterns for efficient log analysis in Rust and GPU environments.

Core Value

Empowers agents to utilize compact stderr formats, such as `SS.mmm|L|C|message`, for streamlined log processing, incorporating categories like position, app, and UI, and log levels including INFO, WARN, ERROR, DEBUG, and TRACE.

Capabilities Granted for script-kit-logging MCP Server

Debugging complex GPU-accelerated applications with structured logging
Analyzing stderr logs for performance optimization in Rust-based systems
Implementing compact log formats for enhanced observability in AI-driven projects

! Prerequisites & Limits

  • Requires SCRIPT_KIT_AI_LOG environment variable to be set
  • Primarily designed for Rust and GPU environments, may require adaptation for other ecosystems
Project
SKILL.md
2.5 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Script Kit Logging

Structured logging patterns for debugging and observability.

AI Compact Log Mode (SCRIPT_KIT_AI_LOG=1)

Compact stderr format: SS.mmm|L|C|message

  • L: i INFO, w WARN, e ERROR, d DEBUG, t TRACE
  • C categories:
    • P position, A app, U UI, S stdin, H hotkey
    • V visibility, E exec, K key, F focus, T theme
    • C cache, R perf, W window_mgr, X error
    • M mouse_hover, L scroll_state, Q scroll_perf
    • D design, B script, N config, Z resize

Example:

  • Standard: ... INFO ... Selected display origin=(0,0)
  • Compact: 13.150|i|P|Selected display origin=(0,0)

Enable:

bash
1SCRIPT_KIT_AI_LOG=1 ./target/debug/script-kit-gpui 2>&1

Log Modes

ModeCommandUse Case
Compact AI logsSCRIPT_KIT_AI_LOG=1Default for AI agents (saves ~70% tokens)
Full debug logsRUST_LOG=debugDeep debugging
Specific moduleRUST_LOG=script_kit::theme=debugTarget one module

JSONL Logging

Logs to: ~/.scriptkit/logs/script-kit-gpui.jsonl

Line example:

json
1{"timestamp":"...","level":"INFO","target":"script_kit::executor","message":"Script executed","fields":{"script_name":"hello.ts","duration_ms":142,"exit_code":0}}

Tracing Patterns

Use tracing + tracing-subscriber:

  • #[instrument] for spans
  • Record duration_ms; warn if slow (e.g. >100ms)

Correlation IDs:

  • Generate UUID per user action/run
  • Attach to spans so nested logs inherit it

Required fields when relevant: correlation_id, duration_ms, bead_id, agent_name, files_touched

Log Level Guide

  • error: failure
  • warn: unexpected but handled
  • info: key events
  • debug: development
  • trace: very verbose

Filter by targets (module paths): script_kit::ui, script_kit::executor, script_kit::theme

Error Handling

  • Application errors: anyhow::Result; add .context() at boundaries
  • Domain/library errors: thiserror when callers match variants
  • User-facing errors: NotifyResultExt → log first (tracing::error!) then toast

Best practices:

  • Don't unwrap()/expect()
  • Add context at each level ("which file?", "what operation?")
  • Use typed fields in logs (avoid interpolated strings)

Log Queries

bash
1grep '"correlation_id":"abc-123"' ~/.scriptkit/logs/script-kit-gpui.jsonl 2grep '"duration_ms":' ~/.scriptkit/logs/script-kit-gpui.jsonl | jq 'select(.fields.duration_ms > 100)' 3grep '"level":"ERROR"' ~/.scriptkit/logs/script-kit-gpui.jsonl | tail -50

Related Skills

Looking for an alternative to script-kit-logging or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication