OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add github/gh-aw --skill console-rendering
Use Go struct tags to render styled terminal output in gh-aw.
npx skills add github/gh-aw --skill console-rendering
Use this guide for the struct tag-based console rendering system.
Use the console struct tag to control rendering behavior:
header:"Name" - Sets the display name for fields (used in both structs and tables)title:"Section Title" - Sets the title for nested structs, slices, or mapsformat:"type" - Sets the formatting type for the field value
format:number - Formats integers as human-readable numbers (e.g., "1k", "1.2M")format:cost - Formats floats as currency with $ prefix (e.g., "$1.234")omitempty - Skips the field if it has a zero value"-" - Always skips the fieldStructs are rendered as key-value pairs with proper alignment.
Slices of structs are automatically rendered as tables:
Renders as:
Maps are rendered as markdown-style headers with key-value pairs.
time.Time fields are automatically formatted as "2006-01-02 15:04:05". Zero time values are considered empty when used with omitempty.
The rendering system safely handles unexported struct fields by checking CanInterface() before attempting to access field values.