@lenovo-open/skill-cli
v0.0.4
Published
CLI for lenovo open platform skill, Create, publish, and manage your AI agent skills
Readme
@lenovo-open/skill-cli
One-command install for AI agent skills - Install skills to Claude, Cursor, Codex, and 6+ more agents instantly
Core Features
One-Command Install
Install any skill to your AI agent with a single command - just like npx skills add:
npx @lenovo-open/skill-cli install <appId> --agent claudeSupports 9+ Agent Platforms:
- Claude Code, Cursor, Codex, Gemini, GitHub Copilot
- Windsurf, Cline, Roo Code, OpenCode
Smart Discovery
Find the perfect skill with semantic search:
# Semantic search
npx @lenovo-open/skill-cli search "react best practices"Skill Management
Create, publish, and manage your own skills:
# Initialize a new skill project
npx @lenovo-open/skill-cli init
# Package local skill files into a zip
npx @lenovo-open/skill-cli package
# Upload local skill zip to Lenovo open platform
npx @lenovo-open/skill-cli pushInstallation
Two ways to use:
Option 1: Using npx (Recommended) ⭐
No installation needed - always uses the latest version:
npx @lenovo-open/skill-cli search "react"
npx @lenovo-open/skill-cli install <appId>Pros:
- No installation required
- Always uses latest version
- No global package pollution
- Works immediately
Option 2: Global Installation
Install once, use lenovoskill command directly:
npm install -g @lenovo-open/skill-cli
# Then use shorter command
lenovoskill search "react"
lenovoskill install <appId>Pros:
- Shorter command (
lenovoskillvsnpx @lenovo-open/skill-cli) - Faster (no download on each run)
- Works offline after installation
Note: After global install, use lenovoskill instead of npx @lenovo-open/skill-cli
Quick Start
1. Discover Skills
# Search with natural language
lenovoskill search "react component design"2. Install a Skill
# Install a Skill to Claude
lenovoskill install <appId> --agent claude
# Install to project directory
lenovoskill install <appId> --agent claude --project
# Install to custom install directory
lenovoskill install <appId> --dir <path>
# Interactive mode (choose agent & location)
lenovoskill install <appId>Installation Locations:
- Personal (Global):
~/.claude/skills/- Available for all projects - Project:
./.claude/skills/- Only for current project
3. Create & Publish
# Login first
lenovoskill login
# Initialize a skill project
lenovoskill init
# Edit SKILL.md, then package
lenovoskill package
# Upload package to Lenovo open platform
lenovoskill pushAll Commands
Discover & Install
| Command | Aliases | Description |
|-------------------|-------------|-----------------------------------|
| search <query> | s, find | Semantic search for skills |
| install <appId> | i, add | Install a skill to your agent |
Create & Manage
| Command | Description |
|-----------|------------------------------------------------|
| login | Log in to Lenovo open platform |
| logout | Log out from Lenovo open platform |
| whoami | Show current logged in user |
| init | Initialize a new skill project |
| package | Package local files into a zip |
| push | Upload local skill zip to Lenovo open platform |
Install Command
Basic Usage
# Using npx
npx @lenovo-open/skill-cli install <appId> [options]
# Or if globally installed
lenovoskill install <appId> [options]Options
Options:
-a, --agent <agent> Target agent (claude, cursor, codex, gemini, copilot, windsurf, cline, roo, opencode)
-p, --project Install to project directory (default: personal)
-d, --dir <path> Custom install directory
-y, --yes Skip confirmation prompts
--list-agents List all supported agentsSupported Agents
| Agent | Command | Install Path |
|--------------------|------------|------------------------------|
| Claude Code | claude | ~/.claude/skills/ |
| Cursor | cursor | ~/.cursor/skills/ |
| Codex CLI | codex | ~/.codex/skills/ |
| Gemini CLI | gemini | ~/.gemini/skills/ |
| GitHub Copilot | copilot | ~/.copilot/skills/ |
| Windsurf | windsurf | ~/.windsurf/skills/ |
| Cline | cline | ~/.cline/skills/ |
| Roo Code | roo | ~/.roo/skills/ |
| OpenCode | opencode | ~/.config/opencode/skills/ |
Why LenovoSkill CLI?
One Command, Any Agent
Unlike other tools, install skills to 9+ different AI agents with the same command.
Smart Discovery
Semantic search powered by embeddings - find skills by what they do, not just keywords.
Fast & Simple
No complex setup - just npx and go. Works offline after installation.
Secure
OAuth authentication, no API keys in code, credentials stored securely.
Configuration
User Config
Stored in ~/.lenovoskill/config.json:
- API URL (default:
https://open.lenovomm.com) - Default visibility settings
Auth Tokens
Stored securely in ~/.lenovoskill/auth.json (mode 600):
- Login Token
- Biz Token
- User info
Local Project Config
Each skill project has .skill-config.json:
- Skill metadata
- Ignore patterns
Development
# Clone
git clone https://gitlab.mbgstore.lenovo.com.cn/store/store-business.git
cd store-business/open-platform/skill-cli
# Install
npm install
# Build
npm run build
# Dev mode (watch)
npm run dev
# Type check
npm run typecheckLinks
- Website: https://open.lenovomm.com
- npm: https://www.npmjs.com/package/@lenovo-open/skill-cli
License
MIT © LenovoSkill
Acknowledgements
This project is a derivative work based on the open-source project skill-hub/cli.
