Toolverse
All skills

cli-skills

by llama-farm

CLI best practices for LlamaFarm. Covers Cobra, Bubbletea, Lipgloss patterns for Go CLI development.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Backend

About this skill

CLI best practices for LlamaFarm. Covers Cobra, Bubbletea, Lipgloss patterns for Go CLI development.

How to use

  1. Zainstaluj umiejętność w swoim projekcie LlamaFarm, umieszczając ją w katalogu .claude/skills/. Upewnij się, że masz Go 1.24+ oraz wymagane zależności: Cobra, Bubbletea, Lipgloss i Bubbles.

  2. Przejrzyj strukturę katalogów opisaną w umiejętności — cli/cmd/ dla implementacji komend Cobra, cli/internal/tui/ dla komponentów interfejsu tekstowego. Zapoznaj się z konwencjami nazewnictwa i organizacją kodu.

  3. Podczas implementacji nowych komend Cobra używaj RunE zamiast Run dla lepszej obsługi błędów. Rejestruj flagi w funkcjach init() i wykorzystuj persistent flags dla opcji wspólnych dla wielu komend.

  4. Jeśli budujesz interfejs tekstowy, implementuj interfejs Bubbletea z metodami Init(), Update() i View(). Zarządzaj stanem za pomocą typów wiadomości i zwracaj tea.Cmd dla operacji asynchronicznych.

  5. Do stylizacji terminala definiuj style jako stałe na poziomie pakietu przy użyciu lipgloss.NewStyle(). Obsługuj dynamiczną szerokość terminala i umożliwij zmianę motywu kolorów poprzez zmienne stylów.

  6. Rozszerzaj umiejętność o dodatkowe wzorce z dokumentacji shared Go skills — szczególnie sekcje dotyczące obsługi błędów, współbieżności i idiomatycznych wzorców Go, które stanowią fundament dla CLI.

Related skills

api-design-principles

by wshobson

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Backend
50146

patent-search

by RobThePCGuy

Advanced prior art search using the PatentsView API. Use this skill when users need to search for patents, perform prior art searches, analyze patent landscapes, or find patents by inventor, title, date range, or technical fields. Helps with patent research, freedom to operate

Backend
36218

postgresql-psql

by timelessco

Comprehensive guide for PostgreSQL psql - the interactive terminal client for PostgreSQL. Use when connecting to PostgreSQL databases, executing queries, managing databases/tables, configuring connection options, formatting output, writing scripts, managing transactions, and

Backend
34173

literature-review

by K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature

Backend
238507

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130

effective-go

by openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

Backend
248296