console-rendering

Render Go structs and slices into aligned key-value output or tables.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/kaushal-waygood/agentic-self-healing-ci --skill console-rendering-kaushal-waygood
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: console-rendering
Source: https://github.com/kaushal-waygood/agentic-self-healing-ci/tree/main/skills/console-rendering
Command: npx skills add https://github.com/kaushal-waygood/agentic-self-healing-ci --skill console-rendering-kaushal-waygood

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill documents a struct tag-based console rendering system for Go that eliminates manual formatting of structured data, making CLI output and logs consistently human-readable and aligned.

Core Features & Use Cases

  • Struct-to-keyvalue rendering: Render Go structs as aligned key-value pairs for summaries and run reports.
  • Table rendering for slices: Automatically convert slices of structs into compact tables for job lists, test results, and metrics.
  • Flexible formatting: Use console struct tags to set headers, titles, numeric and cost formats, omit empty fields, and format time.Time values.
  • Safe field handling: Handles unexported fields safely and treats zero time as empty when omitempty is used.
  • Use Case: Present CI run overviews, billing estimates, or token usage summaries in developer CLIs and CI logs with minimal instrumentation.

Quick Start

Render a Go struct or slice using the console struct tags to produce aligned key-value output or a table.

Frequently Asked Questions about console-rendering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render Go structs as readable console output in a CLI?

You can render Go structs as readable console output by applying console struct tags to define headers, titles, and formatting rules, automatically producing aligned key-value pairs or compact tables for CLI logs and summaries.

How do I format Go slices of structs into tables for CI logs?

Formatting Go slices of structs into tables for CI logs is handled by the rendering system, which automatically converts struct collections into compact tables suitable for job lists, test results, and metrics summaries.

Can I use struct tags to format time.Time and numeric fields in Go CLI output?

Yes, you can use struct tags to format time.Time and numeric fields in Go CLI output, applying specific tags for number and cost formatting, time.Time formatting, and omitempty semantics to control field visibility.

How does Go console rendering handle unexported fields and zero time values?

Go console rendering handles unexported fields safely by skipping them, and treats zero time values as empty when the omitempty semantic is applied, ensuring clean output without exposing internal struct data.

What is the best way to present structured telemetry and billing estimates in Go CLIs?

The best way to present structured telemetry and billing estimates in Go CLIs is using a struct tag-based rendering system that eliminates manual formatting, producing human-readable, consistently aligned summaries with minimal instrumentation.