Skip to main content
Skill Lab supports two output modes across all commands: rich-formatted console output (default) and machine-readable JSON. This guide covers output format options, use cases, and integration patterns.

Overview

All Skill Lab commands support two output formats:
Console output uses Rich for formatting. JSON output follows a consistent schema across commands.

Console Output

Default Behavior

Console output is the default for all commands:
Console output features:
  • Color-coded severity levels (ERROR=red, WARNING=yellow, INFO=blue)
  • Rich tables for check results and test reports
  • Progress indicators for long-running commands
  • Formatted panels for summaries

Example: Static Evaluation (Console)

Example: Trigger Testing (Console)

Example: Skill Info (Console)

JSON Output

Commands Supporting JSON

sklab info uses --json instead of --format json for brevity.

Example: Static Evaluation (JSON)

Example: Trigger Testing (JSON)

Example: Skill Info (JSON)

Saving Output to Files

Using --output Flag

Some commands support --output to write directly to a file:

Using Shell Redirection

For commands without --output, use shell redirection:

Integration Patterns

CI/CD Pipeline (GitHub Actions)

Python Script Integration

Bash Script Processing

Quality Dashboard

Field Extraction (sklab info)

The sklab info command supports extracting single fields:
Available fields: name, description, license, compatibility, structure, body_lines, tokens

Example: Shell Script

Verbose Mode

For console output, use --verbose to show all checks (not just failures):
JSON output always includes all checks regardless of --verbose.

Exit Codes

All commands return appropriate exit codes for scripting:

Next Steps

Static Analysis

Learn about quality checks and scoring

Skill Export

Export skills as prompts in XML, Markdown, or JSON