Agent skill

desktop-commander

Use Desktop Commander MCP (typically tools like `mcp__desktop-commander__*`) to manage local files and long-running processes: read/write/search files, apply precise edits, work with Excel/PDFs, run terminal commands and interact with REPLs (Python/Node/SSH/DB), inspect/terminate processes, and review tool call history. Use when the task requires doing real work on the machine (editing code/configs, searching a repo, analyzing CSV/Excel, generating/modifying PDFs, running commands with streaming output).

Stars 9
Forks 2

Install this agent skill to your Project

npx add-skill https://github.com/Ry-Run/run-skills/tree/main/skills/desktop-commander

SKILL.md

Desktop Commander

Quick start

Goal: use Desktop Commander MCP to turn “files / processes / search / edits” into verifiable tool calls (small, safe steps) instead of treating the machine as a black box.

Most common entry points:

  • Read content: mcp__desktop-commander__read_file (paging, negative offset tail, PDF/image/Excel/URL).
  • Small edits: mcp__desktop-commander__edit_block (targeted text replace / Excel range update).
  • Large edits: mcp__desktop-commander__write_file in chunks (respect fileWriteLineLimit).
  • Interactive work: mcp__desktop-commander__start_process + mcp__desktop-commander__interact_with_process + mcp__desktop-commander__read_process_output.

Official notes + tool list: skills/desktop-commander/references/desktop-commander.md.

Workflow decision tree

  1. Do I need to find something?
  • File names/paths: mcp__desktop-commander__start_search (searchType="files") → mcp__desktop-commander__get_more_search_results
  • File contents: mcp__desktop-commander__start_search (searchType="content") → paginate → mcp__desktop-commander__stop_search when done
  1. Do I need to read or change content?
  • Read: mcp__desktop-commander__read_file (use offset/length; use offset=-N for tail)
  • Small change: mcp__desktop-commander__edit_block (default replaces 1 occurrence; use expected_replacements for multiple)
  • Large change: mcp__desktop-commander__write_file (mode="rewrite" then mode="append" chunked)
  1. Do I need to run commands / keep sessions?
  • One-off commands: mcp__desktop-commander__start_process (shell command) + read output
  • REPL / SSH / DB / dev server: start_processinteract_with_processread_process_output
  1. Is this a high-risk operation (config changes, killing processes, bulk edits/moves, any data loss)?
  • Explain impact + rollback first; require explicit user confirmation before executing.
  • Prefer making config changes in a separate chat (official guidance).

Recipes

Reading files

  • Text/code: read_file with pagination; logs: offset=-200 (tail-like).
  • Multiple files: read_multiple_files to reduce round trips.
  • URLs: read_file with isUrl: true for web content/images.

Editing files

  • Targeted replace: edit_block with minimal unique context; for many occurrences set expected_replacements.
  • Rewrites: write_file in 25–30 line chunks (rewrite then append).
  • Excel: read via read_file; edit via edit_block with range + 2D array.
  • PDFs: only via write_pdf (do not use write_file for PDFs).

Search

  • Prefer start_search + get_more_search_results for repo exploration; stop searches you no longer need.
  • Use literalSearch: true for patterns with special characters (parentheses, brackets, dots, etc.).

Processes & interaction

  • Data analysis: run python3 -i, then use interact_with_process for pandas/numpy workflows.
  • Observing long jobs: call read_process_output periodically; to stop use kill_process/force_terminate (high-risk).
  • Status: list_sessions / list_processes.

Config & audit

  • get_config / set_config_value: use carefully; directory restrictions are not a security boundary for terminal commands.
  • get_recent_tool_calls: recover context and debug “what happened”.
  • get_usage_stats: usage/performance insight.

Guardrails (must follow)

  • Prefer absolute paths; don’t assume OS-specific separators.
  • For big changes: read first; keep edits small; chunk writes; keep rollback in mind.
  • High-risk actions require explicit confirmation: config changes, killing sessions/processes, bulk file edits/moves, any destructive command.
  • Security: allowedDirectories limits filesystem tools, not terminal commands—don’t treat it as sandboxing.

References

  • Official notes + tool list: skills/desktop-commander/references/desktop-commander.md

Expand your agent's capabilities with these related and highly-rated skills.

Ry-Run/run-skills

jetbrains-skill

Use the JetBrains IDE MCP Server (IntelliJ IDEA 2025.2+) to let an external client drive IDE-backed actions: run Run Configurations, execute commands in the IDE terminal, read/create/edit project files, search via IDE indexes (text/regex), retrieve code inspections for a file, fetch symbol info, perform rename refactoring, list modules/dependencies/repos, open files in the editor, and reformat code. Use when you want IDE-grade indexing/refactoring/inspection instead of raw shell scripting.

9 2
Explore
mattpocock/skills

scaffold-exercises

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

111,310 9,758
Explore
mattpocock/skills

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

111,310 9,758
Explore
mattpocock/skills

handoff

Compact the current conversation into a handoff document for another agent to pick up.

111,310 9,758
Explore
mattpocock/skills

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

111,310 9,758
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results