Cli Vscode
/install cli-vscode
CLI-VSCode SKILL.md
Version: 1.0.0
Type: CLI Tool
Interface: Command Line + JSON
Description
CLI-VSCode 是 VSCode 的命令行接口,让 AI Agent 可以直接操作 VSCode。
支持功能:
- 打开文件/VSCode
- 安装/列出扩展
- 管理工作区
- 状态检查
Installation
确保 VSCode 已安装并且 code 命令行工具可用。
macOS
在 VSCode 中按 Cmd+Shift+P,输入 "Shell Command: Install 'code' command in PATH"
Windows
VSCode 安装时勾选 "Add to PATH"
Linux
sudo ln -s /usr/share/code/bin/code /usr/local/bin/code
Commands
# 打开文件
python cli-vscode.py open ./src/main.py
# 安装扩展
python cli-vscode.py install-extension --id esbenp.prettier-vscode
# 列出扩展
python cli-vscode.py list-extensions
# 添加到工作区
python cli-vscode.py add-folder ./tests
# 检查状态
python cli-vscode.py status
# JSON 输出 (Agent 使用)
python cli-vscode.py --json list-extensions
JSON Schema
List Extensions Response
{
"extensions": [
"esbenp.prettier-vscode",
"ms-python.python",
"GitHub.copilot"
]
}
Status Response
{
"installed": true,
"version": "1.88.0"
}
Agent Integration
OpenClaw
skill: cli-vscode
type: cli
commands:
- open
- install-extension
- list-extensions
- add-folder
- status
Limitations
- 需要 VSCode 已安装
- 需要 code 命令行工具在 PATH 中
- 不支持编辑文件内容(仅打开)
License
MIT License (个人使用)
商业许可需单独购买
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cli-vscode - After installation, invoke the skill by name or use
/cli-vscode - Provide required inputs per the skill's parameter spec and get structured output
What is Cli Vscode?
Command-line interface for VSCode to open files, install/list extensions, manage workspaces, and check editor status with JSON output support. It is an AI Agent Skill for Claude Code / OpenClaw, with 114 downloads so far.
How do I install Cli Vscode?
Run "/install cli-vscode" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Cli Vscode free?
Yes, Cli Vscode is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Cli Vscode support?
Cli Vscode is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Cli Vscode?
It is built and maintained by kaising-openclaw1 (@kaising-openclaw1); the current version is v1.0.0.