Agent skill

LobeHub CLI Development Guide

by lobehub in lobehub/lobehub

Explains how the LobeHub command line tool is built and organized, with its command groups, architecture and per-area reference notes for adding or changing commands.

Custom licenceAuto-check: notesDevelopment

Install LobeHub CLI Development Guide

skills CLI
$ npx skills add lobehub/lobehub --skill cli -a claude-code

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

GitHub CLI
$ gh skill install lobehub/lobehub cli --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/lobehub/lobehub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cli .claude/skills/cli && 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
GitHub stars
83k
Token cost
~4.2k tokens
SKILL.md length
921 words
Files
10 (incl. references)
Skills in repo
50
Repo updated
First seen
Licence
Custom licence

At a glance

Explains how the LobeHub command line tool is built and organized, with its command groups, architecture and per-area reference notes for adding or changing commands.

  • Works in 3 steps: Create Command File → Register in Entry Point → Add Tests
  • Adding a new subcommand to the LobeHub CLI
  • SKILL.md covers Overview, Architecture, Command Groups and Adding a New Command, plus 5 more sections
  • Calls bun and bunx

What it does

This guide covers developing the LobeHub CLI, published as @lobehub/cli and built with Commander.js and TypeScript. The package lives in apps/cli with its entry at src/index.ts, builds with tsup, runs on Node.js or Bun, and ships three binary names, lh, lobe and lobehub, that point to the same program.

An architecture tree explains how the entry file hands off to a program file that registers every command. The command table lists groups for authentication through an OIDC device code flow or an API key, gateway connection, device management, status and doctor checks, agents and agent groups, Agent Signal, running other agent CLIs such as Claude Code and Codex, goals, projects, tasks and threads.

Reference files go deeper on the agent, conversation, generate, knowledge, memory, models and providers, search configuration, and skills and plugins commands. It is aimed at contributors adding or changing commands rather than at day-to-day use of the tool.

When your agent uses it

  • Adding a new subcommand to the LobeHub CLI
  • Finding where a CLI command is registered and implemented
  • Understanding how the login, device or agent commands are structured

Example prompts

  • “Add an lh subcommand that lists connected devices as JSON, following the CLI's patterns.”
  • “Show me where the doctor command is implemented and what it checks.”
  • “Update the login command's help text to mention API key authentication.”

Requirements

  • A checkout of the LobeHub repository with the apps/cli package

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Create Command File
  2. Register in Entry Point
  3. Add Tests

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun
    • bunx

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

  • Network

    No URLs in SKILL.md. Its commands use bunx, which can reach the network depending on how they are called.

    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

LobeHub CLI Development Guide loads about 4.2k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 22 tokens; SKILL.md has 921 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~4.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~18k

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:320
    configured (check `OIDC_*` env vars in `.env`)

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 921 words (~4,220 tokens).

“LobeHub CLI (@lobehub/cli) is a command-line tool for managing and interacting with LobeHub services. Built with Commander.js + TypeScript.”

— opening of SKILL.md by lobehub, Custom licence
name
cli
disable-model-invocation
true

Read the full SKILL.md on GitHub

Files

SKILL.md and 9 other files (references) in .agents/skills/cli of lobehub/lobehub.

  • SKILL.md
  • agents/openai.yaml
  • references/agent.md
  • references/conversation.md
  • references/generate.md
  • references/knowledge.md
  • references/memory.md
  • references/models-providers.md
  • references/search-config.md
  • references/skills-plugins.md

Open the folder on GitHubat commit 1863542

Compare with similar skills

LobeHub CLI Development Guide 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.

LobeHub CLI Development Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
LobeHub CLI Development Guide this skilllobehub/lobehub83k—~4.2kAutomated safety check: NotesCustom licence
Electron Multi-Process ArchitectureiOfficeAI/AionUi33k1 repos~1.8kAutomated safety check: PassApache-2.0
Generate Release Notesteambit/bit18k—~2.2kAutomated safety check: PassCustom licence
Evolutionary Modular Architecturetech-leads-club/agent-skills7k—~3.7kAutomated safety check: PassCC-BY-4.0
Siteboon Backend Module Standardssiteboon/claudecodeui14k—~1.2kAutomated safety check: PassAGPL-3.0
Control Flow Diagramsslopus/happy24k—~654Automated safety check: PassMIT

Similar skills

  • Tells the agent where new code belongs in an Electron multi-process project and which APIs each process may use, with rules for new bridges, services, agents and workers.

    33k GitHub starsUsed in 1 repo~1.8k tokens
    DevelopmentAuto-check passed
  • Generate comprehensive release notes for Bit from git commits and pull requests.

    18k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Evolutionary Modular Architecture

    tech-leads-club/agent-skills

    Guides design of modular-monolith platforms with DDD, flat-by-aggregate modules, anti-corruption layers, outbox events and resilience, plus an architecture document with SVG diagrams.

    7k GitHub stars~3.7k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Enforces this repository's TypeScript backend module architecture under server/: feature folders, barrel exports, and where shared types and utilities belong.

    14k GitHub stars~1.2k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Traces how an action moves through your code and draws it as a compact ASCII tree: functions called, payload types, state changes and components that re-render.

    24k GitHub stars~654 tokensUpdated today
    DevelopmentAuto-check passed
  • Add NodeBridge Handler

    neovateai/neovate-code

    Walks through adding a message handler to NodeBridge in Neovate Code, from the implementation and its types to an optional test entry and a run with Bun.

    1.6k GitHub stars~1k tokensUpdated 6 mo ago
    DevelopmentAuto-check passed

More from lobehub/lobehub

All 50 skills in this repo
  • Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.

    83k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Verifies a delivery end to end by driving the real product on a CLI, web, desktop or iOS Simulator surface, capturing evidence and publishing a round with the lh CLI.

    83k GitHub stars~9.7k tokensUpdated today
    Auto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

    83k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Guides building LobeHub builtin agent tools, from the manifest and execution runtime to executors, chat UI renders and registry wiring.

    83k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Explains how LobeHub client code fetches data through services, SWR store hooks and cache keys, and when to avoid useEffect fetching or duplicated state.

    83k GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Categories

Questions about LobeHub CLI Development Guide

What does LobeHub CLI Development Guide do?

Explains how the LobeHub command line tool is built and organized, with its command groups, architecture and per-area reference notes for adding or changing commands. js and TypeScript.js or Bun, and ships three binary names, lh, lobe and lobehub, that point to the same program.

When should I use LobeHub CLI Development Guide?

LobeHub CLI Development Guide fits situations like: adding a new subcommand to the LobeHub CLI; finding where a CLI command is registered and implemented; understanding how the login, device or agent commands are structured.

How do I install LobeHub CLI Development Guide in Claude Code?

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

How do I install LobeHub CLI Development Guide in Codex?

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

Can I use LobeHub CLI Development Guide 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 lobehub/lobehub --skill cli -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, .gemini/skills/cli, .github/skills/cli and .opencode/skills/cli in your project.

What does LobeHub CLI Development Guide need to run?

Going by SKILL.md and its folder, LobeHub CLI Development Guide needs the command-line tools its instructions call (bun and bunx). Our summary lists: A checkout of the LobeHub repository with the apps/cli package.

Does LobeHub CLI Development Guide 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 LobeHub CLI Development Guide safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does LobeHub CLI Development Guide use?

LobeHub CLI Development Guide has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does LobeHub CLI Development Guide use?

About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to LobeHub CLI Development Guide?

Skills that share tags, products or a category with LobeHub CLI Development Guide: Electron Multi-Process Architecture (iOfficeAI/AionUi, 33k stars), Generate Release Notes (teambit/bit, 18k stars), Evolutionary Modular Architecture (tech-leads-club/agent-skills, 7k stars) and Siteboon Backend Module Standards (siteboon/claudecodeui, 14k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains LobeHub CLI Development Guide?

lobehub (a GitHub organization) maintains it in lobehub/lobehub, which has 83,023 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 7, 2026.

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