Skip to content
Operations
Skill

/terminal

Use Desktop Commander for terminal and command-line work, especially anything that needs a shell whose state persists across turns: Python/Node REPLs, database shells, dev servers and other long-running processes, SSH into remote machines, and Windows PowerShell. Also handles

From plugin
desktopcommandermcp
10k6 skills1 MCP

Claude Code

$ npx -y skills add wonderwhy-er/DesktopCommanderMCP --skill terminal --agent claude-code

SKILL.md

terminal.SKILL.md
name: terminal
version: 0.1.0
audience: agent
description: >-
  Use Desktop Commander for terminal and command-line work, especially anything
  that needs a shell whose state persists across turns: Python/Node REPLs,
  database shells, dev servers and other long-running processes, SSH into remote
  machines, and Windows PowerShell. Also handles everyday terminal tasks —
  navigating folders, choosing the right command for the user's shell
  (PowerShell, cmd, bash, zsh), running Docker/curl/cloud-CLI commands,
  inspecting processes and ports, and saving recurring workflows as scripts —
  even when the user doesn't say "Desktop Commander" or "terminal." Reach for it
  on pasted errors like "command not found", "permission denied", "EADDRINUSE",
  "address already in use", "npm ERR!", "ModuleNotFoundError", or "ENOENT", and
  on intents like "what's using port 3000", "kill that process", "ssh into my
  server", or "why won't my dev server start". Works on Windows, macOS, and
  Linux. Never run destructive commands without explicit confirmation.

Terminal Command Assistant

Be a calm, safe, cross-platform terminal copilot. The user may be an expert or may be opening a terminal for the first time — read their cues and match them. Explain what a command does in plain language, run it through Desktop Commander, read the real output, and explain the result. The user's machine is the source of truth; never assume the OS, shell, or installed tools — detect them.

1. Detect the environment first (do this before suggesting commands)

Different OSes and shells need different commands. Before recommending or running anything non-trivial, call **`get_config`** (Desktop Commander) and read `systemInfo`:

  • `platformName` / `isWindows` / `isMacOS` / `isLinux` — which OS.
  • `defaultShell` and `uiHints.availableShells` — which shell to target.
  • `pythonInfo`, `nodeInfo` — whether Python/Node exist and their versions.
  • `blockedCommands` — commands Desktop Commander refuses to run (see §7).
  • `allowedDirectories` — `[]` means full access; otherwise commands/paths are

scoped to those directories.

This one cheap call prevents the most common mistake: handing a macOS user a PowerShell command, or assuming `python3` exists when it doesn't. Cache what you learn for the rest of the session; re-check only if something seems off.

2. Choosing the right command for the shell

Pick syntax by the detected shell, not by habit. Common equivalents:

| Task | bash / zsh (macOS, Linux) | PowerShell (Windows) | cmd (Windows) | |---|---|---|---| | List files | `ls -la` | `Get-ChildItem` / `ls` | `dir` | | Current dir | `pwd` | `Get-Location` / `pwd` | `cd` | | Find file | `find . -name "*.log"` | `Get-ChildItem -Recurse -Filter *.log` | `dir /s *.log` | | Search text | `grep -r "TODO" .` | `Get-ChildItem -Recurse \| Select-String TODO` | `findstr /s TODO *` | | Env var | `echo $HOME` | `$env:USERPROFILE` | `echo %USERPROFILE%` | | Set env (session) | `export KEY=val` | `$env:KEY="val"` | `set KEY=val` | | Delete file | `rm file` | `Remove-Item file` | `del file` | | Copy | `cp a b` | `Copy-Item a b` | `copy a b` | | Path separator | `/` | `\` (or `/`) | `\` |

Notes that bite people: Windows paths use `\` and often need quoting when they contain spaces; PowerShell and bash quote/escape differently; `~` expands in bash/zsh but not in cmd. When in doubt, prefer the cross-platform tool the user already has (e.g. `python`, `node`, `git`) over shell-specific syntax.

3. Running commands with Desktop Commander

**Always use absolute paths.** Relative paths depend on a working directory that isn't carried between calls, so they fail unpredictably.

  • **One-shot commands** → `start_process` with the command and a timeout. It

returns output and a PID. If output is truncated or the process is still running, call `read_process_output` with the PID for more.

  • **Long-running / interactive sessions** (REPLs, SSH, DB shells, `npm create`,

anything that prompts) → `start_process` to launch, then `interact_with_process(pid, "...")` to send input and `read_process_output` to read responses. End with `force_terminate` if it won't exit on its own.

  • Navigation is just inspection: use `list_directory` and `get_file_info`

rather than relying on a persistent `cd`. If you must `cd`, do it inside the same command (`cd /abs/path && some-command`).

Interactive REPL pattern (the workhorse)

This keeps state across calls and is the right way to drive Python, Node, a database shell, or SSH:

start_process("python3 -i")          # or "node -i", "ssh user@host", "psql ..."
interact_with_process(pid, "import pandas as pd")
interact_with_process(pid, "df = pd.read_csv('/abs/path/data.csv')")
interact_with_process(pid, "print(df.describe())")
read_process_output(pid)             # pull more output if needed

4. Running specific CLIs

  • **Python**: prefer `python3 -i` as an interactive session for multi-step work;

for a quick one-off use `python3 /abs/script.py`. Check `pythonInfo.command` from §1 (`python` vs `python3`).

  • **Node**: `node -i` for an interactive session, `node /abs/script.js` for a

one-off. `npm`/`pnpm`/`yarn` installs can be slow — give a generous timeout and read remaining output rather than assuming failure.

  • **Docker**: `docker ps`, `docker logs <id>`, `docker compose up -d`. Long

builds/runs: launch then poll with `read_process_output`. Treat `docker system prune`, `docker rm`, `docker volume rm` as destructive (§7).

  • **SSH**: launch with `start_process("ssh user@host")`, then drive it with

`interact_with_process`. Remote destructive commands deserve the same confirmation rules as local ones.

  • **curl / HTTP**: fine for inspection (`curl -i https://...`). Be careful with

anything that pipes a downloaded script straight into a shell (`curl ... | sh`) — that's untrusted code execution; show it and confirm first.

  • **Cloud CLIs** (`aws`, `gcloud`, `az`): read-only co
Read more
@wonderwhy-er
Ships withdesktopcommandermcp

This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities

10k6 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
10.4k
Star history of wonderwhy-er/DesktopCommanderMCP on GitHub, a chart by star-history.com

Other skills on desktopcommandermcp.

More skills from other plugins.

diagnose-crash

diagnose-crash

Diagnose why a program crashed on this machine, from a systemd-coredump core dump. Use when a process has segfaulted, aborted, or…

omarchy8d47k
@basecamp@basecampInstall Skill
firewall-auditor

firewall-auditor

Audit UniFi firewall policies for conflicts, redundancies, security gaps, and best practices. Use when asked to review firewall…

unifi-mcp5d1.1k
@sirkirby@sirkirbyInstall Skill
add-custom-domain

add-custom-domain

Add a custom domain to a Temps project and provision an automatic SSL/TLS certificate via Let's Encrypt, driven entirely from the…

temps4d934
@gotempsh@gotempshInstall Skill
alert-analysis

alert-analysis

Investigate a specific Elastic Security detection alert: gather context, assess entity risk, classify the threat, document…

@elastic@elasticInstall Skill

Questions about terminal.

Which coding agents can use terminal?
terminal installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.