Cli Vscode

# CLI-VSCode SKILL.md

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Cli Vscode" with this command: npx skills add kaising-openclaw1/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 (个人使用)
商业许可需单独购买

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

run.dev — Local Dev Environment Manager

Local dev environment manager. Process management, automatic HTTPS domains, SSL certificates, reverse proxy, and AI crash diagnosis — single binary, zero con...

Registry SourceRecently Updated
Coding

ifly-image-understanding

iFlytek Image Understanding (图片理解) — analyze and answer questions about images using Spark Vision model. WebSocket API, pure Python stdlib, no pip dependencies.

Registry SourceRecently Updated
Coding

Civic Google

Use gog (Google CLI) without manual OAuth setup — Civic handles token management automatically

Registry SourceRecently Updated
2000Profile unavailable
Coding

Agent Browser.Skip

A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured co...

Registry SourceRecently Updated
2000Profile unavailable