Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

lobe-cli-toolbox

FreeNo executable scriptsNot checked

LobeHub CLI Toolbox - AI-powered command-line tools including lobe-commit (ChatGPT Git commits with Gitmoji), lobe-i18n (automated internationalization), and…

enunoby enuno★ 17 GitHub stars

About this skill

LobeHub CLI Toolbox

AI CLI Toolbox containing multiple command-line tools powered by ChatGPT/LangChain for enhancing git commit and i18n workflow efficiency.

When to Use

  • Generating conventional commit messages with AI and Gitmoji
  • Setting up automated Git commit hooks
  • Automating internationalization translation workflows
  • Translating JSON locale files to multiple languages
  • Translating Markdown documentation files
  • Copying GitHub issue labels between repositories
  • Building CLI applications with React-based terminal UIs

Core Tools

1. Lobe Commit (@lobehub/commit-cli)

AI-powered Git commit message generator using ChatGPT with Gitmoji formatting.

2. Lobe i18n (@lobehub/i18n-cli)

Automated internationalization tool leveraging ChatGPT for translation workflows.

3. Lobe Label (@lobehub/label-cli)

GitHub issue label management - copy labels from template repositories.

4. Supporting Libraries

  • @lobehub/cli-ui - UI components for CLI applications
  • @lobehub/cli-shebang - Shebang handling utilities

Lobe Commit

Installation

npm install -g @lobehub/commit-cli

Requirement: Node.js ≥ 18

Commands

Command Flag Purpose
Interactive commit --hook Generate message via prompts
AI generation -a, --ai Use ChatGPT for auto-generation
Configuration -o, --option Setup preferences
Git hook setup -i, --init Initialize as commit hook
Remove hook -r, --remove Uninstall commit hook
List types -l, --list Display supported commit types
Version -V, --version Show installed version
Help -h, --help Display basic options

Basic Usage

# Stage files and generate commit
git add <files>
lobe-commit

# Or use the short alias
lobe

# Set up as git hook
lobe-commit --init
git commit  # Triggers workflow automatically

Configuration

Access settings via:

lobe-commit --option

Key Settings:

  • OpenAI Token (required for AI mode)
  • GitHub Token (for private repo issue linking)
  • API Forwarding (custom OpenAI endpoints)

Configuration Options

Option Type Default Description
includeWhy boolean false Explain change motivations
messageTemplate string "$msg" Custom message format
oneLineCommit boolean false Single-line output
useFullGitmoji boolean false Full emoji specification

File Filtering

Create .lobecommitignore to exclude files from analysis:

# Lock files
package-lock.json
yarn.lock
pnpm-lock.yaml

# Build artifacts
dist/
build/

# Minified files
*.min.js
*.min.css

Default filters include: lock files, binaries, build artifacts, minified files.

Message Templates

Use placeholders for customization:

# Link to issue number
"$msg (#123)"

# Add scope prefix
"[frontend] $msg"

Operating Modes

AI Mode: ChatGPT generates complete conventional commit messages with Gitmoji

Editor Mode: Interactive prompts guide selection of:

  • Commit type
  • Scope
  • Subject
  • Linked issues

Environment Variables

Variable Required Purpose
OPENAI_API_KEY Yes (AI mode) OpenAI authentication
GITHUB_TOKEN No Private repo issue linking

Lobe i18n

Installation

npm install -g @lobehub/i18n-cli

Requirement: Node.js ≥ 18

Commands

Command Purpose
lobe-i18n Translate locale/JSON files
lobe-i18n locale Same as above
lobe-i18n md Translate Markdown files
lobe-i18n lint Validate translation accuracy
lobe-i18n --with-md Run locale and markdown translation together
lobe-i18n -o Interactive configuration setup
lobe-i18n -c ./config.js Use custom configuration file

Configuration Setup

Run interactive setup:

lobe-i18n -o

Or create config file manually (supports cosmiconfig):

  • package.json (under i18n property)
  • .i18nrc, .i18nrc.json, .i18nrc.yaml
  • .i18nrc.js, .i18nrc.cjs

Locale Configuration

const { defineConfig } = require('@lobehub/i18n-cli');

module.exports = defineConfig({
  // Required
  entry: 'locales/en_US.json',
  entryLocale: 'en_US',
  output: 'locales',
  outputLocales: ['zh_CN', 'ja_JP', 'ko_KR'],

  // Optional
  modelName: 'gpt-3.5-turbo',
  keyStyle: 'nested',  // 'nested', 'flat', or 'auto'
  reference: 'Technical documentation context',
  saveImmediately: true,
  temperature: 0,
  topP: 1,
  concurrency: 5,
  splitToken: 2000,
  experimental: {
    jsonMode: true
  }
});

Configuration Properties

Required:

Property Type Description
entry string Source file/folder path
entryLocale string Reference language identifier
output string Destination directory
Full SKILL.md on GitHub

Install lobe-cli-toolbox in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the lobe-cli-toolbox skill do?

LobeHub CLI Toolbox - AI-powered command-line tools including lobe-commit (ChatGPT Git commits with Gitmoji), lobe-i18n (automated internationalization), and lobe-label (GitHub label management)

How do I install the lobe-cli-toolbox skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the lobe-cli-toolbox skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare lobe-cli-toolbox with