← 返回 Skills 市场
kaising-openclaw1

Cli Vscode

作者 kaising-openclaw1 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
114
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install cli-vscode
功能描述
Command-line interface for VSCode to open files, install/list extensions, manage workspaces, and check editor status with JSON output support.
使用说明 (SKILL.md)

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 (个人使用)
商业许可需单独购买

安全使用建议
What to consider before installing: - Functionality: The skill is a thin wrapper around your local 'code' CLI — it will open files, add folders, list and install extensions, and report VSCode version. This matches its description. - Metadata mismatch: The package metadata does not declare the 'code' binary requirement (but both SKILL.md and the script require it) and license/price information is inconsistent. Ask the author to clarify license and the correct requirements. - Extension installs: The skill can install arbitrary VSCode extensions when invoked. If you allow the agent to call the skill autonomously, it could install extensions without further approval — extensions can execute code and could be a risk. Only enable this skill for agents you trust, or restrict/remove the 'install-extension' command if you want to limit risk. - Local impact: The tool performs local operations only (no network calls coded into the skill). Still, opening sensitive local files or adding folders is possible — avoid granting the agent broad autonomous privileges if you have sensitive data on the machine. - Code review: The included Python is small and readable; subprocess.run is invoked with argument lists (not shell=True), which reduces command-injection risk from untrusted inputs, but you should still review how your agent supplies file/ID/folder parameters. Recommended actions: confirm license and source, limit autonomous invocation or disable the install-extension command unless needed, and run in a restricted environment if you have sensitive data.
功能分析
Type: OpenClaw Skill Name: cli-vscode Version: 1.0.0 The skill bundle is a straightforward wrapper for the official Visual Studio Code CLI ('code'). It provides standard functionality such as opening files, installing extensions, and listing installed plugins using safe subprocess calls (cli-vscode.py). No evidence of data exfiltration, shell injection, or malicious prompt instructions was found.
能力评估
Purpose & Capability
The name/description match the included code: the tool wraps the local 'code' CLI to open files, list/install extensions, manage workspaces, and report status. However the registry metadata declared no required binaries while the SKILL.md and the code clearly require the 'code' executable in PATH — this is a minor metadata mismatch. There is also an inconsistency in licensing/monetization: _meta.json lists a commercial license and price while SKILL.md/README mention MIT (personal use) and paid licensing, which is an administrative inconsistency to clarify with the author.
Instruction Scope
SKILL.md instructs the agent only to run the included CLI wrapper and ensure the VSCode 'code' CLI is available. The runtime instructions do not ask the agent to read unrelated files or environment variables. The code does accept file/folder/extension-id arguments and will invoke the local 'code' command accordingly (expected for the stated purpose).
Install Mechanism
There is no install spec and no external downloads; the skill is instruction-only plus a single Python script included in the bundle. That keeps install risk low — nothing external is fetched or extracted by the skill itself.
Credentials
The skill requests no environment variables or credentials and the code does not read secrets or other system config. This is proportional to the described functionality.
Persistence & Privilege
always:false and no special persistence requested. However, like any skill that the agent can invoke autonomously, it can be used to open files and to install extensions on the host if the agent issues those commands. Installing arbitrary VSCode extensions is a powerful capability (it can modify the editor environment and run extension code), so consider agent autonomy policies before enabling this skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cli-vscode
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cli-vscode 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: adds a CLI interface for AI agents to control VSCode. - Supports opening files/VSCode, managing workspaces, installing and listing extensions, and checking status. - Provides both command-line and JSON output for integration. - Includes setup instructions for macOS, Windows, and Linux. - Does not support editing files, only opening them. - Documentation provided in SKILL.md.
元数据
Slug cli-vscode
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Cli Vscode 是什么?

Command-line interface for VSCode to open files, install/list extensions, manage workspaces, and check editor status with JSON output support. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 114 次。

如何安装 Cli Vscode?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cli-vscode」即可一键安装,无需额外配置。

Cli Vscode 是免费的吗?

是的,Cli Vscode 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cli Vscode 支持哪些平台?

Cli Vscode 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cli Vscode?

由 kaising-openclaw1(@kaising-openclaw1)开发并维护,当前版本 v1.0.0。

💬 留言讨论