console-rendering
Instructions for using the struct tag-based console rendering system in Go
Skill by kaushal-waygood
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kaushal-waygood-console-rendering
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
console-rendering- Description
- Instructions for using the struct tag-based console rendering system in Go
- License
- MIT
- Instructions
- 122 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Console Rendering System Usage
This skill provides instructions for using the struct tag-based console rendering system.
## Struct Tag Support
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 maps
- **`format:"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 field
## Example Usage
```go
type Overview struct {
RunID int64 `console:"header:Run ID"`
Workflow string `console:"header:Workflow"`
Status string `console:"header:Status"`
Duration string `console:"header:Duration,omitempty"`
}
data := Overview{
RunID: 12345,
Workflow: "test-workflow",
Status: "completed",
Duration: "5m30s",
}
// Simple rendering
fmt.Print(console.RenderStruct(data))
// Output:
// Run ID : 12345
// Workflow: test-workflow
// Status : completed
// Duration: 5m30s
```
## Format Tag Examples
### Number Formatting
```go
type Metrics struct {
TokenUsage int `console:"header:Token Usage,format:number"`
Errors int `console:"header:Errors"`
}
data := Metrics{
TokenUsage: 250000,
Errors: 5,
}
// Renders as:
// Token Usage: 250k
// Errors : 5
```
### Cost Formatting
```go
type Billing struct {
Cost float64 `console:"header:Estimated Cost,format:cost"`
}
data := Billing{
Cost: 1.234,
}
// Renders as:
// Estimated Cost: $1.234
```
## Rendering Behavior
### Structs
Structs are rendered as key-value pairs with proper alignment.
### Slices
Slices of structs are automatically rendered as tables:
```go
type Job struct {
Name string `console:"header:Name"`
Status string `console:"header:Status"`
Conclusion string `console:"header:Conclusion,omitempty"`
}
jobs := []Job{
{Name: "build", Status: "completed", Conclusion: "success"},
{Name: "test", Status: "in_progress", Conclusion: ""},
}
fmt.Print(console.RenderStruct(jobs))
```
Renders as:
```
Name | Status | Conclusion
----- | ----------- | ----------
build | completed | success
test | in_progress | -
```
### Maps
Maps are rendered as markdown-style headers with key-value pairs.
### Special Type Handling
#### time.Time
`time.Time` fields are automatically formatted as `"2006-01-02 15:04:05"`. Zero time values are considered empty when used with `omitempty`.
#### Unexported FieldsFrom kaushal-waygood/agentic-self-healing-ci, MIT.
More from kaushal-waygood/agentic-self-healing-ci
- 0.401score
gh-agent-session
kaushal-waygood
GitHub CLI Agent Session Extension
SkillDFreshness: DClaude Code +9 - 0.401score
gh-agent-task
kaushal-waygood
GitHub CLI Agent Task Extension
SkillDFreshness: DClaude Code +9 - 0.401score
github-mcp-server
kaushal-waygood
GitHub MCP Server Documentation
SkillDFreshness: DClaude Code +9 - 0.387score
Dictation Instructions
kaushal-waygood
Instructions for fixing speech-to-text errors and improving text quality in gh-aw documentation and workflows
SkillDFreshness: DClaude Code +9 - 0.208score
custom-agents
kaushal-waygood
No description from the publisher yet.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Dec 2, 2025 (11 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- gh.io/gh-aw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from kaushal-waygood
- 0.401score
gh-agent-session
kaushal-waygood
GitHub CLI Agent Session Extension
SkillDFreshness: DClaude Code +9 - 0.401score
gh-agent-task
kaushal-waygood
GitHub CLI Agent Task Extension
SkillDFreshness: DClaude Code +9 - 0.401score
github-mcp-server
kaushal-waygood
GitHub MCP Server Documentation
SkillDFreshness: DClaude Code +9 - 0.387score
Dictation Instructions
kaushal-waygood
Instructions for fixing speech-to-text errors and improving text quality in gh-aw documentation and workflows
SkillDFreshness: DClaude Code +9
Cite this page
console-rendering skill. Agent Mart. https://agentmart.dev/skills/kaushal-waygood-console-rendering (last updated 2026-10-24)