Agent skill

CLI Skills

by llama-farm in llama-farm/llamafarm

CLI best practices for LlamaFarm. An agent skill from llama-farm/llamafarm.

Apache-2.0Auto-check passed

Install CLI Skills

skills CLI
$ npx skills add llama-farm/llamafarm --skill cli-skills -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install llama-farm/llamafarm cli-skills --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cli-skills .claude/skills/cli-skills && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cli-skills
GitHub stars
836
Token cost
~1.2k tokens
SKILL.md length
239 words
Files
4
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

CLI best practices for LlamaFarm. An agent skill from llama-farm/llamafarm.

  • Works in 5 steps: User Experience First: CLI should feel… → Graceful Degradation: Handle missing… → Consistent Output: Use the output API… → …
  • SKILL.md covers Tech Stack, Directory Structure, Quick Reference and Shared Go Skills, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

CLI Skills is an agent skill from llama-farm/llamafarm. CLI best practices for LlamaFarm. Covers Cobra, Bubbletea, Lipgloss patterns for Go CLI development.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `bubbletea.md`, `cobra.md` and `performance.md`).

The repository describes itself as: Deploy any AI model, agent, database, RAG, and pipeline locally or remotely in minutes. The licence is Apache-2.0.

Example prompts

  • “/cli-skills”

Requirements

  • Pre-approved tools (allowed-tools): Read, Grep, Glob

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. User Experience First: CLI should feel responsive and provide clear feedback
  2. Graceful Degradation: Handle missing services, network errors, and timeouts gracefully
  3. Consistent Output: Use the output API for all user-facing messages
  4. Cross-Platform: Test on macOS, Linux, and Windows
  5. Terminal Compatibility: Test with different terminal emulators and sizes

What it can do on your machine

Read from SKILL.md and the folder at commit 6244d46. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are go).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

CLI Skills loads about 1.2k tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 239 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from llama-farm/llamafarm at commit 6244d46, republished under its Apache-2.0 licence (© llama-farm). 239 words, ~1,217 tokens.

Download SKILL.mdSave it as .claude/skills/cli-skills/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
cli-skills
description
CLI best practices for LlamaFarm. Covers Cobra, Bubbletea, Lipgloss patterns for Go CLI development.
allowed-tools
Read, Grep, Glob
user-invocable
false

CLI Skills for LlamaFarm

Framework-specific patterns for the LlamaFarm CLI. These guidelines extend the shared Go skills with Cobra, Bubbletea, and Lipgloss best practices.

Tech Stack

  • Go 1.24+
  • Cobra (CLI framework)
  • Bubbletea (TUI framework)
  • Lipgloss (terminal styling)
  • Bubbles (TUI components)

Directory Structure

cli/
  cmd/             # Cobra command implementations
    config/        # Configuration types and loading
    orchestrator/  # Service management and process control
    utils/         # Shared utilities (HTTP, output, logging)
    version/       # Version and upgrade handling
  internal/        # Internal packages (not exported)
    tui/           # Reusable TUI components
    buildinfo/     # Build-time information

Quick Reference

Cobra Commands
  • Use RunE over Run for error handling
  • Register flags in init() functions
  • Use persistent flags for shared options
  • Validate arguments with Args field
Bubbletea TUI
  • Implement Init(), Update(), View() interface
  • Use message types for state changes
  • Return tea.Cmd for async operations
  • Keep state immutable in Update()
Lipgloss Styling
  • Define styles as package-level constants
  • Use lipgloss.NewStyle() for styling
  • Handle terminal width dynamically
  • Support color themes via style variables

Shared Go Skills

This skill extends the base Go skills. See:

LinkDescription
go-skills/SKILL.mdOverview and quick reference
go-skills/patterns.mdIdiomatic Go patterns
go-skills/concurrency.mdGoroutines, channels, sync
go-skills/error-handling.mdError wrapping, sentinels
go-skills/testing.mdTable-driven tests, mocks
go-skills/security.mdInput validation, secure coding

CLI-Specific Checklists

FileDescription
cobra.mdCobra command patterns, flags, validation
bubbletea.mdBubbletea Model/Update/View patterns
performance.mdCLI-specific optimizations

Key Patterns in This Codebase

Command Registration Pattern
go
var myCmd = &cobra.Command{
    Use:   "mycommand [args]",
    Short: "Brief description",
    Long:  `Extended description with examples.`,
    Args:  cobra.MaximumNArgs(1),
    RunE: func(cmd *cobra.Command, args []string) error {
        // Implementation with error returns
        return nil
    },
}

func init() {
    rootCmd.AddCommand(myCmd)
    myCmd.Flags().StringVar(&flagVar, "flag", "default", "Flag description")
}
TUI Model Pattern
go
type myModel struct {
    viewport viewport.Model
    textarea textarea.Model
    width    int
    height   int
    err      error
}

func (m myModel) Init() tea.Cmd {
    return tea.Batch(m.textarea.Focus(), doAsyncWork())
}

func (m myModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
    var cmds []tea.Cmd
    switch msg := msg.(type) {
    case tea.WindowSizeMsg:
        m.width = msg.Width
        m.height = msg.Height
    case tea.KeyMsg:
        switch msg.String() {
        case "ctrl+c":
            return m, tea.Quit
        }
    }
    return m, tea.Batch(cmds...)
}

func (m myModel) View() string {
    return lipgloss.JoinVertical(lipgloss.Left,
        m.viewport.View(),
        m.textarea.View(),
    )
}
Output API Pattern
go
// Use the output API for consistent messaging
utils.OutputInfo("Starting service %s...", serviceName)
utils.OutputSuccess("Service started successfully")
utils.OutputError("Failed to start service: %v", err)
utils.OutputProgress("Downloading model...")
utils.OutputWarning("Service already running")
Service Orchestration Pattern
go
// Ensure services are running before operations
factory := GetServiceConfigFactory()
config := factory.ServerOnly(serverURL)
orchestrator.EnsureServicesOrExitWithConfig(config, "server")

// Or with multiple services
config := factory.RAGCommand(serverURL)
orchestrator.EnsureServicesOrExitWithConfig(config, "server", "rag", "universal-runtime")

Guidelines

  1. User Experience First: CLI should feel responsive and provide clear feedback
  2. Graceful Degradation: Handle missing services, network errors, and timeouts gracefully
  3. Consistent Output: Use the output API for all user-facing messages
  4. Cross-Platform: Test on macOS, Linux, and Windows
  5. Terminal Compatibility: Test with different terminal emulators and sizes

© llama-farm, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in .claude/skills/cli-skills of llama-farm/llamafarm.

  • SKILL.md
  • bubbletea.md
  • cobra.md
  • performance.md

Open the folder on GitHubat commit 6244d46

Compare with similar skills

CLI Skills next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

CLI Skills compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CLI Skills this skillllama-farm/llamafarm836—~1.2kAutomated safety check: PassApache-2.0
Bubbleteapedronauck/skills6341 repos~595Automated safety check: PassMIT
Bubbleteadevantler-tech/ksail165—~2.3kAutomated safety check: PassMIT
Golang Spf13 Cobracontext-labs/whip1.1k2 repos~2.5kAutomated safety check: PassMIT
Go Cobra Applicationshashgraph-online/awesome-codex-plugins1.3k—~836Automated safety check: PassMIT
Bubbletea Testingdimetron/pi-go209—~3.6kAutomated safety check: PassMIT

Similar skills

  • Bubbletea

    pedronauck/skills

    Build interactive Go TUIs with Bubbletea, Elm architecture, Lipgloss, layouts, and keyboard/mouse handling.

    634 GitHub starsUsed in 1 repo~595 tokens
    Auto-check passed
  • Bubbletea

    devantler-tech/ksail

    Build terminal user interfaces with Go and Bubbletea framework.

    165 GitHub stars~2.3k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Golang Spf13 Cobra

    context-labs/whip

    CLI command tree library for Golang using spf13/cobra — cobra.Command, RunE vs Run, PreRun hooks, Args validators, persistent vs local flags, shell completion, testing via SetArgs.

    1.1k GitHub starsUsed in 2 repos~2.5k tokens
    DevelopmentAuto-check passed
  • Go Cobra Applications

    hashgraph-online/awesome-codex-plugins

    Build, refactor, test, and review Cobra-based Go applications with intentional command trees, fresh constructors, suggestions, typed boundaries, scoped flags, local or remote configuration, explicit…

    1.3k GitHub stars~836 tokensUpdated yesterday
    Auto-check passed
  • Bubbletea Testing

    dimetron/pi-go

    A skill your agent uses whenever writing tests for Bubble Tea (charmbracelet/bubbletea) TUI applications in Go.

    209 GitHub stars~3.6k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Cobrapy

    davila7/claude-code-templates

    Constraint-based metabolic modeling (COBRA). An agent skill from davila7/claude-code-templates.

    33k GitHub starsUsed in 10 repos~3.1k tokens
    Auto-check passed

More from llama-farm/llamafarm

All 19 skills in this repo
  • Reflect

    llama-farm/llamafarm

    Analyze the current session and propose improvements to skills.

    836 GitHub stars~1.5k tokensUpdated 4 mo ago
    Auto-check: notes
  • Temp Files

    llama-farm/llamafarm

    Guidelines for creating temporary files in system temp directory.

    836 GitHub stars~515 tokensUpdated 4 mo ago
    Auto-check: notes
  • Code Review

    llama-farm/llamafarm

    Comprehensive code review for diffs. An agent skill from llama-farm/llamafarm.

    836 GitHub stars~2.3k tokensUpdated 4 mo ago
    Auto-check: notes
  • Commit Push PR

    llama-farm/llamafarm

    Commit changes, push to GitHub, and open a PR. An agent skill from llama-farm/llamafarm.

    836 GitHub stars~2.3k tokensUpdated 4 mo ago
    Auto-check: notes
  • Common Skills

    llama-farm/llamafarm

    Best practices for the Common utilities package in LlamaFarm.

    836 GitHub stars~885 tokensUpdated 4 mo ago
    Auto-check passed
  • Config Skills

    llama-farm/llamafarm

    Configuration module patterns for LlamaFarm. An agent skill from llama-farm/llamafarm.

    836 GitHub stars~1.3k tokensUpdated 4 mo ago
    Auto-check passed

Questions about CLI Skills

What does CLI Skills do?

CLI best practices for LlamaFarm. An agent skill from llama-farm/llamafarm. CLI Skills is an agent skill from llama-farm/llamafarm. CLI best practices for LlamaFarm.

How do I install CLI Skills in Claude Code?

Run `npx skills add llama-farm/llamafarm --skill cli-skills -a claude-code`. Or copy the skill folder (.claude/skills/cli-skills in llama-farm/llamafarm) into .claude/skills/cli-skills in your project. Claude Code loads it when a task matches its description.

How do I install CLI Skills in Codex?

Run `npx skills add llama-farm/llamafarm --skill cli-skills -a codex`. Or copy the skill folder (.claude/skills/cli-skills in llama-farm/llamafarm) into .agents/skills/cli-skills in your project. Codex loads it when a task matches its description.

Can I use CLI Skills in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add llama-farm/llamafarm --skill cli-skills -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cli-skills, .gemini/skills/cli-skills, .github/skills/cli-skills and .opencode/skills/cli-skills in your project.

What does CLI Skills need to run?

SKILL.md names no scripts, command-line tools or credentials: CLI Skills is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Grep, Glob.

Does CLI Skills access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is CLI Skills safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does CLI Skills use?

CLI Skills is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CLI Skills use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to CLI Skills?

Skills that share tags, products or a category with CLI Skills: Bubbletea (pedronauck/skills, 634 stars), Bubbletea (devantler-tech/ksail, 165 stars), Golang Spf13 Cobra (context-labs/whip, 1.1k stars) and Go Cobra Applications (hashgraph-online/awesome-codex-plugins, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CLI Skills?

llama-farm (a GitHub organization) maintains it in llama-farm/llamafarm, which has 836 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on June 10, 2026.

Source: llama-farm/llamafarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.