go-skills

Provides idiomatic Go patterns for CLI development with Cobra, Bubble Tea, and Lipgloss.

835|58|Updated Jul 9, 2025
One-click install
npx skills add https://github.com/llama-farm/llamafarm --skill go-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-skills
Source: https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/go-skills
Command: npx skills add https://github.com/llama-farm/llamafarm --skill go-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill consolidates idiomatic Go patterns and best practices for LlamaFarm CLI development.

Core Features & Use Cases

  • Idiomatic patterns for Go CLI development using Cobra, Bubble Tea, and Lipgloss.
  • Error handling, testing, and concurrency best practices to ensure maintainable, secure code.
  • Use Case: Refactor a Cobra-based command to wrap errors with context and adopt table-driven tests.

Quick Start

Audit your CLI project and apply idiomatic Go patterns to improve maintainability.

Frequently Asked Questions about go-skills

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

FAQPage Schema
How do I handle errors idiomatically in a Go CLI?

Idiomatic Go CLI error handling uses structured error wrapping to add context. This skill enforces concrete requirements for wrapping errors and early returns to ensure maintainable, secure code across Cobra, Bubble Tea, and Lipgloss projects.

What's the best way to structure tests for a Go CLI?

The best way to structure Go CLI tests is using table-driven tests for testable code. This skill guides developers to apply table-driven tests alongside interface-based design to ensure small focused functions remain fully covered.

Does this skill support refactoring a Cobra-based command to wrap errors?

Yes, a core use case is refactoring a Cobra-based command to wrap errors with context and adopt table-driven tests. It applies idiomatic Go patterns across Cobra, Bubble Tea, and Lipgloss usage for LlamaFarm CLI development.

How do I apply clean architecture and concurrency to a Go CLI?

You apply clean architecture to a Go CLI by using constructor patterns, interface-based design, and small focused functions. This skill guides concurrency best practices to ensure your CLI remains maintainable and secure.

When do I need idiomatic Go patterns for CLI development?

You need idiomatic Go patterns when auditing a CLI project to improve maintainability. This skill consolidates best practices for error handling, testing, and concurrency, enforcing early returns and structured error wrapping.

Why does my Go CLI have maintainability issues with error handling?

Go CLI maintainability issues often arise from missing structured error wrapping and lack of early returns. This skill enforces constructor patterns and interface-based design to resolve these problems and produce clean, testable code.