← 返回
未分类

Cli Vscode

Command-line interface for VSCode to open files, install/list extensions, manage workspaces, and check editor status with JSON output support.
VSCode 命令行工具,支持打开文件、安装/列出扩展、管理工作区以及 JSON 格式输出编辑器状态。
kaising-openclaw1 kaising-openclaw1 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 344
下载
💾 1
安装
1
版本
#latest

概述

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 (个人使用)

商业许可需单独购买

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 75 📥 182,360
data-analysis

Web Scraper Pro

kaising-openclaw1
网页数据爬虫:数据抓取、表格导出、定时采集
★ 0 📥 656
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 329,164