csharpfritz/squadui/vscode-terminal-command
Claude Code and agent skill by csharpfritz/squadui
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install csharpfritz/squadui/vscode-terminal-commandSKILL.md
Skill: VS Code Terminal Command Pattern
Wrapping CLI tools as VS Code commands using the integrated terminal API.
Confidence
- Level: low
- Source: earned
Pattern
When a VS Code extension command needs to run an external CLI tool:
- Use `vscode.window.createTerminal()` — not
child_process.spawn()— for commands where the user benefits from seeing output in real time. - Name the terminal descriptively (e.g.,
"Squad Init") so users can identify it. - Set `cwd` to the workspace folder URI.
- Call `terminal.show()` before
terminal.sendText()so the user sees what's happening. - Listen for `onDidCloseTerminal` to trigger post-completion actions (refresh data, show notifications).
- Dispose the listener after it fires once to avoid memory leaks.
- Push the listener to
context.subscriptionsfor cleanup on extension deactivation.
Why Terminal Over child_process
- Full stdin/stdout/stderr visibility for the user
- Inherits user's shell environment (PATH, npm config, etc.)
- Non-blocking — user can switch to other tabs while it runs
- VS Code handles process lifecycle (kill on window close)
child_processis better when you need to capture and parse output programmatically
Example
When NOT to Use This
- When you need to parse CLI output (use
child_process.execinstead) - When the command is silent/instant (use
child_processwith progress notification) - When you need to handle exit codes programmatically
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.ai-team/skills/vscode-terminal-command/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/csharpfritz/squadui/vscode-terminal-command)