Cursor / VS Code Control Skill
When to Use This Skill
Use this skill when the user wants to:
- Open files or projects in their code editor
- Install or manage editor extensions
- Run editor tasks or commands
- Set up development environments
- Navigate code (go to definition, find references)
Editor CLI Commands
VS Code / Cursor / Windsurf
All three editors share the same CLI interface:
# Detect which editor is available
which code 2>/dev/null || which cursor 2>/dev/null || which windsurf 2>/dev/null
# Open a file
code /path/to/file.ts
cursor /path/to/file.ts
# Open a folder as project
code /path/to/project
cursor /path/to/project
# Open file at specific line
code --goto /path/to/file.ts:42
# Diff two files
code --diff file1.ts file2.ts
# Install extension
code --install-extension ms-python.python
cursor --install-extension ms-python.python
# List installed extensions
code --list-extensions
# Uninstall extension
code --uninstall-extension extension-id
# Open new window
code --new-window
# Open settings
code --open-settings
Detecting the Active Editor
# Windows
tasklist | findstr /i "code.exe cursor.exe windsurf.exe"
# macOS/Linux
ps aux | grep -E "code|cursor|windsurf" | grep -v grep
Recommended Extensions to Install
When setting up a development environment, suggest these based on the project:
Web Development:
dbaeumer.vscode-eslint— ESLintesbenp.prettier-vscode— Prettierbradlc.vscode-tailwindcss— Tailwind CSS
Python:
ms-python.python— Pythonms-python.vscode-pylance— Pylance
General:
eamodio.gitlens— GitLensusernamehw.errorlens— Error Lenschristian-kohler.path-intellisense— Path Intellisense
Workflow Pattern
- Detect which editor the user has installed
- Use the appropriate CLI command
- Verify the action completed successfully
- Provide next steps or suggestions
Source: noobclaw/client — distributed by TomeVault.