{"owner":"wonderwhy-er","repo":"DesktopCommanderMCP","hasSkills":true,"totalSkillsCount":44,"totalTokensCount":36626,"categories":["anthropic-skill","plugin-manifest","mcp-config","marketplace"],"hasMcp":true,"mcpConfig":{"mcpServers":{"DesktopCommanderMCP":{"command":"npx","args":["-y","@modelcontextprotocol/server-DesktopCommanderMCP"]}}},"found":["skills/knowledge-base/SKILL.md","skills/obsidian-vault/SKILL.md","skills/ai-tools-setup/SKILL.md","plugins/claude/skills/ai-tools-setup/SKILL.md","plugins/claude/skills/computer-health-check/SKILL.md","plugins/claude/skills/desktop-commander-overview/SKILL.md","skills/desktop-commander-overview/SKILL.md","plugins/claude/skills/obsidian-vault/SKILL.md","plugins/claude/skills/knowledge-base/SKILL.md","plugins/claude/skills/terminal/SKILL.md","skills/terminal/SKILL.md","skills/computer-health-check/SKILL.md","plugins/cursor/skills/ai-tools-setup/SKILL.md","plugins/cursor/skills/computer-health-check/SKILL.md","plugins/cursor/skills/desktop-commander-overview/SKILL.md","plugins/cursor/skills/knowledge-base/SKILL.md","plugins/cursor/skills/obsidian-vault/SKILL.md","plugins/cursor/skills/terminal/SKILL.md","plugin.json","smithery.yaml",".claude-plugin/marketplace.json",".cursor-plugin/marketplace.json","plugins/claude/README.md","plugins/cursor/README.md","plugins/claude/.claude-plugin/plugin.json","plugins/cursor/.cursor-plugin/plugin.json","skills/ai-tools-setup/references/claude-desktop-mcp.md","skills/ai-tools-setup/references/hermes.md","skills/ai-tools-setup/references/openclaw.md","skills/computer-health-check/references/linux.md","skills/computer-health-check/references/macos.md","skills/computer-health-check/references/windows.md","plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md","plugins/claude/skills/ai-tools-setup/references/hermes.md","plugins/claude/skills/ai-tools-setup/references/openclaw.md","plugins/claude/skills/computer-health-check/references/linux.md","plugins/claude/skills/computer-health-check/references/macos.md","plugins/claude/skills/computer-health-check/references/windows.md","plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md","plugins/cursor/skills/ai-tools-setup/references/hermes.md","plugins/cursor/skills/ai-tools-setup/references/openclaw.md","plugins/cursor/skills/computer-health-check/references/linux.md","plugins/cursor/skills/computer-health-check/references/macos.md","plugins/cursor/skills/computer-health-check/references/windows.md"],"skills":{"skills/knowledge-base/SKILL.md":"---\nname: knowledge-base\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Create and maintain a Markdown knowledge base that any AI agent can read,\n  search, and update. Use when the user wants to start a knowledge base, add or\n  update notes, organize docs/notes for an agent or LLM to consume, build an\n  index of notes, or run a cleanup/maintenance pass on an existing MD knowledge\n  base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index\n  of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the\n  KB\".\n---\n\n# Knowledge Base (Markdown, agent-readable)\n\nA knowledge base (KB) here is a folder of Markdown files designed so **any** AI\nagent can navigate it without a vector database: the agent reads one index file,\npicks the relevant notes by their descriptions, and opens only those. Keep the\nwhole KB readable and the index lean — the index is what gets loaded into\ncontext, so it must be high-signal.\n\nApply the rules below when creating a new KB, adding/editing notes, or doing a\nmaintenance pass. When the user's request is ambiguous (new KB vs. add note vs.\ncleanup), ask which one before acting.\n\n## Core principles (the \"why\")\n\n1. **Index-first navigation.** The index is a map, not a container. An agent\n   reads `INDEX.md`, selects notes by their one-line descriptions, then opens\n   only those files. No note is \"in\" the KB unless it's registered in the index.\n2. **Atomicity.** One topic per note. If a title needs an \"and\", it's probably\n   two notes. Atomic notes are easier to find, link, and reuse.\n3. **Stable IDs.** Every note has a permanent ID that never changes and is never\n   reused, so links survive renames and moves.\n4. **Linked with reason.** When two notes connect, state *why* (prerequisite,\n   supports, contrasts, see-also). Connections carry as much value as the notes.\n5. **Lean instructions.** Keep `INDEX.md` instructions short and high-signal —\n   it competes for the agent's context budget. Bodies load on demand.\n6. **Structured for retrieval.** Clear H1 title and H2/H3 sections so an agent\n   can grab the relevant slice of a note, not the whole thing.\n\n## Folder structure (nested by topic)\n\n```\nknowledge-base/\n  INDEX.md                 # entry point: instructions + full note registry\n  topics/\n    <topic>/\n      _topic.md            # topic map: what this topic covers + its notes\n      <slug>.md            # one atomic note\n  assets/                  # images / attachments referenced by notes\n```\n\n- Topic folders are short, lowercase nouns (`auth`, `billing`, `deploys`).\n- `_topic.md` is the topic-level map of content (MOC): a short intro plus links\n  to every note in that topic. It is a convenience view; `INDEX.md` remains the\n  source of truth.\n\n## Naming rules\n\n- Lowercase **kebab-case**, predictable and greppable: `topics/auth/session-tokens.md`.\n- No spaces, no uppercase, no dates in filenames (dates live in frontmatter).\n- The filename slug should match the note's `id` slug portion.\n\n## Required frontmatter (every note)\n\n```yaml\n---\nid: 20260618-session-tokens     # ID scheme: YYYYMMDD-slug. Stable. Never reuse or change.\ntitle: Session tokens           # human title, also the note's H1\ntags: [auth, security]          # only tags from the controlled list in INDEX.md\ncreated: 2026-06-18\nupdated: 2026-06-18\nrelated: [20260618-auth-flow]    # IDs of linked notes\nsummary: One scannable sentence describing what this note covers.\n---\n```\n\n- `id`: `YYYYMMDD-slug`. Sortable, readable, stable. Different-titled same-day\n  notes differ by slug; if two same-day notes would collide on the same slug,\n  append `-2`, `-3`, … (check the `INDEX.md` registry before assigning). Once\n  assigned, the id is permanent.\n- `summary`: this exact sentence is what goes in the index registry — write it to\n  help an agent decide whether to open the note.\n- `updated`: bump it whenever the body changes.\n\n## Note body shape\n\n```markdown\n# Session tokens\n\n> Summary: One sentence (mirrors frontmatter summary).\n\n## Context\nWhy this note exists / when it applies.\n\n## Details\nThe actual content, in short H2/H3 sections.\n\n## Related\n- [Auth flow](auth-flow.md) — prerequisite: tokens are issued during the auth flow.\n- [Rate limiting](../api/rate-limiting.md) — see-also: tokens carry the rate-limit key.\n```\n\n- Use **relative links** between notes and annotate the relationship in a phrase.\n- Every link target should also appear in the note's `related` frontmatter.\n\n## INDEX.md (the single source of truth)\n\n`INDEX.md` has two parts: operating instructions for agents, and the registry.\n\n```markdown\n# Knowledge Base — Index\n\n## How to use this KB (for agents)\n1. Read this index first. Pick notes by their descriptions; open only those.\n2. To answer a question, prefer opening 1–3 specific notes over scanning everything.\n3. Cite the note `id` when you use information from it.\n\n## How to update this KB (for agents)\n- New idea → create a new note (atomic). Same idea changed → edit the note in place and bump `updated`.\n- Any create / rename / delete MUST update this registry and the topic's `_topic.md` in the same change.\n- Use only tags from the controlled vocabulary below; add a new tag here before using it.\n\n## Controlled tags\n`auth`, `security`, `billing`, `api`, `ops`   <!-- extend deliberately -->\n\n## Registry\n### auth\n- `20260618-auth-flow` — **Authentication flow** — `topics/auth/auth-flow.md` — How a user session is established end to end.\n- `20260618-session-tokens` — **Session tokens** — `topics/auth/session-tokens.md` — Token format, lifetime, and rotation.\n\n### billing\n- `20260618-invoicing` — **Invoicing** — `topics/billing/invoicing.md` — How invoices are generated and sent.\n```\n\nRegistry line format: `` `id` — **Title** — `path` — one-line description.``\n\n## _topic.md (topic map)\n\n```markdown\n# Auth\n\nNotes covering authentication, sessions, and access control.\n\n- [Authentication flow](auth-flow.md) — how a session is established.\n- [Session tokens](session-tokens.md) — token format, lifetime, rotation.\n```\n\n## Workflows\n\n### Create a new KB\n1. `create_directory` for the folder structure above.\n2. `write_file` `INDEX.md` with the instructions block, an empty controlled-tag\n   list, and an empty registry.\n3. Add the first topic folder + `_topic.md`, then the first note (each via `write_file`).\n4. Register the note in `INDEX.md` and link it from `_topic.md` — `edit_block`\n   both so you touch only the changed lines.\n\n### Add a note\n1. Pick or create the topic folder (`list_directory` to see what's there).\n2. `write_file` the note (kebab-case slug) with full frontmatter and the body shape.\n3. Add cross-links (and mirror them in `related`).\n4. Register it in `INDEX.md` and link it in `_topic.md` with `edit_block` — same change.\n\n### Update a note\n- Same idea, new information → `edit_block` the note in place, bump `updated`, and\n  `edit_block` the registry line if the scope changed.\n- Genuinely new idea → `write_file` a new atomic note instead of expanding this one.\n\n### Maintenance pass (run on demand)\nUse `start_search` (ripgrep) for text scans and `get_file_info` / `list_directory`\nfor existence checks — together they make this tractable at scale:\n- **Orphans** (no *inbound* links — outbound doesn't matter): `start_search` the\n  KB for the note's `id` and filename slug, then discount the self-matches that\n  always exist — the note's own file, `INDEX.md`, and its `_topic.md`. Anything\n  left is a genuine inbound reference; nothing left = orphan, so link it from a\n  relevant note/MOC or archive it.\n- **Broken links / drift**: don't infer resolution from a text hit — a string\n  existing doesn't mean the file does. Confirm each registry path and `related:`\n  target exists with `get_file_info` (or `list_directory` per topic), and that\n  every file on disk is registered. Use a text compare only for the\n  titles/summaries-out-of-sync half.\n- **Non-atomic notes**: notes that grew to cover multiple topics → split them.\n- **Duplicates**: near-identical notes → merge, keep one `id`, redirect links.\n- **Tag sprawl**: read the controlled list from `INDEX.md`, then `start_search`\n  the frontmatter `tags:` lines and flag any tag not on the list → reconcile.\nPull candidates in bulk with `read_multiple_files`, apply fixes with `edit_block`,\nand report what changed.\n\n## Checklist before finishing any KB edit\n- [ ] Every new/changed note has complete, valid frontmatter.\n- [ ] `id` is unique and unchanged; filename slug matches the id slug.\n- [ ] All links resolve and are mirrored in `related`.\n- [ ] `INDEX.md` registry and the topic `_topic.md` reflect the change.\n- [ ] Tags are from the controlled vocabulary.\n- [ ] `updated` bumped on every changed note.\n","skills/obsidian-vault/SKILL.md":"---\nname: obsidian-vault\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties,\n  dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user\n  explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or\n  an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases\n  plugins, or Obsidian Properties. Within that Obsidian context it covers\n  creating Maps of Content, adding/fixing wikilinks, finding orphan notes,\n  normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing\n  folders, deduplicating or renaming notes, and preparing the vault for AI use.\n  Do NOT use this skill for generic note-taking, Markdown, or knowledge-base\n  requests that don't mention Obsidian.\n---\n\n# Obsidian Vault Assistant\n\nHelp the user organize and maintain an Obsidian vault: build navigation with\nMOCs and wikilinks, normalize metadata, generate dashboards, find and fix\norphans, organize folders, deduplicate/rename, and prepare the vault for AI use.\n\nObsidian-specific facts that shape every rule here:\n- Links are **wikilinks** resolved by **filename**, not path: `[[Note title]]`.\n  Renaming a note auto-updates links inside Obsidian, but moving files outside\n  Obsidian breaks them — always rename via Obsidian when possible.\n- Metadata is **Properties** (YAML frontmatter) at the top of a note.\n- Dashboards come from **Dataview** (query language, read-only, flexible) or\n  **Bases** (native, editable tables, fast on big vaults, properties-only).\n\nBefore acting, confirm the vault's root folder and whether the user has the\nDataview plugin installed (Bases is built in since Obsidian 1.9). When a request\nis ambiguous (organize vs. clean up vs. dashboard), ask which task.\n\n## Wikilinks\n\n- Basic: `[[Three laws of motion]]` — resolves by filename, no extension/path.\n- Display text (pipe): `[[atomic-habits|James Clear — Atomic Habits]]`.\n- Heading link: `[[Note#Section]]`. Block link: `[[Note#^block-id]]`.\n- Embed/transclude: `![[Note]]`, `![[Note#Section]]`, `![[image.png]]`.\n- Aliases: add an `aliases` property so the note resolves under other names.\n- Avoid `# | ^ : %` and `[ ]` in filenames — they have special meaning in links.\n- Prefer wikilinks for internal navigation; use standard Markdown links only if\n  the vault is also published to a tool that can't parse wikilinks.\n\nWhen adding links, also surface **unlinked mentions**: if a note's title appears\nas plain text in other notes, convert those to wikilinks.\n\n## Maps of Content (MOCs)\n\nA MOC is a note that links the related notes on a topic — the vault's navigation\nlayer (more flexible than folders or tags, and needs no institutional knowledge).\n\nConventions:\n- Name MOCs clearly and tag them: `tags: [moc]` (or a `type: moc` property) so\n  every MOC is itself discoverable.\n- Keep a top-level **Home / Index MOC** that links to all topic MOCs.\n- A MOC holds a short intro plus grouped wikilinks; it can be hand-curated or\n  auto-generated with a Dataview/Bases query (see Dashboards).\n\nMOC template:\n```markdown\n---\ntype: moc\ntags: [moc]\nupdated: 2026-06-18\n---\n# Auth — Map of Content\n\nNotes on authentication, sessions, and access control.\n\n## Core\n- [[auth-flow]]\n- [[session-tokens]]\n\n## Related MOCs\n- [[security-moc]]\n```\n\n## Frontmatter / Properties\n\nAdd a consistent property block to every note. Recommended baseline:\n```yaml\n---\ntitle: Session tokens\naliases: [tokens, session token]\ntags: [auth, security]\ntype: note            # note | moc | dashboard | template | person | project\ncreated: 2026-06-18\nupdated: 2026-06-18\nstatus: evergreen     # seedling | growing | evergreen\nrelated: [\"[[auth-flow]]\"]\n---\n```\nRules:\n- Use a **controlled tag vocabulary** — decide tags up front and reuse them;\n  nested tags (`auth/tokens`) are fine. Don't let tags sprawl.\n- `tags` use no `#` in frontmatter. Dates in ISO `YYYY-MM-DD`.\n- Keep property **names and types consistent across the vault** — Bases and\n  Dataview both depend on this. When normalizing, pick one name per concept\n  (e.g. `created`, not `created`/`date`/`Created`) and migrate the rest.\n\n## Dashboards\n\nPick the engine based on the user's setup:\n\n**Bases** (native, editable, fast — best for operational boards):\n- Create a `.base` file or a `base` code block; it builds table/board views from\n  properties. Each cell edits the underlying note's frontmatter.\n- Use for task lists, reading lists, project pipelines, anything point-and-click.\n\n**Dataview** (plugin, read-only, most flexible — best for reports/auto-MOCs):\n```dataview\nTABLE status, updated, tags\nFROM #auth\nWHERE type = \"note\"\nSORT updated DESC\n```\nAuto-MOC of everything in a topic:\n```dataview\nLIST FROM #auth WHERE type != \"moc\" SORT file.name ASC\n```\nRecently updated:\n```dataview\nTABLE updated FROM \"\" WHERE updated >= date(today) - dur(7 days) SORT updated DESC\n```\nNote: large vaults can lag with heavy Dataview queries — prefer Bases there.\n\n## Orphan notes & link hygiene\n\nAn orphan is a note with no inbound or outbound links. To find and fix:\n1. **From Desktop Commander** (no app needed, scales to big vaults): `start_search`\n   the vault for `[[ ]]` links to each note's title — zero hits means no inbound\n   links (an *unlinked* note); to confirm a true orphan (no inbound **and** no\n   outbound), also scan the note's own body for `[[...]]`. The same searches\n   surface **unlinked mentions** (the title as plain text, not wrapped in `[[ ]]`)\n   and **broken links** (a `[[target]]` whose file is missing).\n2. **Graph view** (Cmd/Ctrl+G): orphans float as isolated dots at the edges.\n3. **Dataview** query for notes with no links:\n   ```dataview\n   LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0\n   ```\n4. For each orphan: link it from a relevant MOC/note (`edit_block` to insert the\n   wikilink), tag it `#needs-link` for a batch pass, or archive if obsolete.\n5. Convert unlinked mentions into real wikilinks and fix broken links with\n   `edit_block`; resolve the rest from Obsidian's right sidebar.\n\n## Folder organization\n\n- Folders are for coarse buckets; **MOCs + tags do the real organizing**. Don't\n  over-nest folders.\n- A workable layout:\n  ```\n  00-inbox/        # unsorted captures\n  10-notes/        # atomic notes\n  20-mocs/         # maps of content\n  30-projects/\n  90-assets/       # images/attachments\n  99-archive/\n  templates/\n  ```\n- Set the attachment folder in Settings so embeds land in `90-assets/`.\n- **Moves/renames must happen inside Obsidian** so wikilinks update automatically\n  — do **not** use `move_file` for these, it breaks every `[[link]]`. From Desktop\n  Commander, only edit *content* (`edit_block` / `write_file`); leave moving and\n  renaming to the user in the app.\n\n## Deduplicate & rename\n\n- **Duplicates**: `start_search` titles/aliases to find near-identical notes;\n  merge into one, keep the most-linked filename, copy unique content with\n  `edit_block`, then `start_search` for inbound `[[links]]` to the discarded note\n  and repoint them before deleting it.\n- **Renames**: do them inside Obsidian (Rename note / `F2`) so backlinks update —\n  not via `move_file`. Keep an `aliases` entry for the old name if it was widely\n  referenced.\n- Standardize filenames: pick one convention (kebab-case or Title Case) and\n  apply it consistently; avoid the special characters listed above.\n\n## Prepare the vault for AI use\n\n- Ensure **consistent frontmatter** (same property names/types) so an agent can\n  filter and reason over metadata.\n- Maintain a **Home/Index MOC** as the single entry point an agent reads first.\n- Write a one-line `summary`/`description` property per note for quick scanning.\n- Reduce orphans and broken links so the link graph is a reliable map.\n- Keep notes **atomic** (one idea each) — easier for an agent to retrieve and cite.\n- Consider exporting wikilinks to standard Markdown links if the AI tool can't\n  parse `[[ ]]`.\n\n## Workflows\n\n- **Build navigation**: `write_file` topic MOCs → `edit_block` notes to link them\n  in → refresh the Home MOC → convert unlinked mentions.\n- **Normalize metadata**: `read_multiple_files` to audit properties → pick\n  canonical names → `edit_block` each note → add missing baseline properties.\n- **Cleanup pass**: `start_search` for orphans, broken links, and unlinked\n  mentions → dedupe → report what changed (renames stay in Obsidian).\n- **Dashboard**: confirm Dataview vs. Bases → `write_file` the view from properties/tags.\n\n## Checklist before finishing\n- [ ] New/changed notes have consistent frontmatter (canonical property names).\n- [ ] Renames/moves done inside Obsidian; no links broken.\n- [ ] New notes linked from at least one MOC or note (no new orphans).\n- [ ] Tags drawn from the controlled vocabulary.\n- [ ] Dashboards reference properties/tags that actually exist.\n- [ ] `updated` bumped on changed notes.\n","skills/ai-tools-setup/SKILL.md":"---\nname: ai-tools-setup\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Set up, connect, validate, and repair Claude Desktop and MCP servers using\n  Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json,\n  getting MCP servers to connect, and diagnosing local AI tooling. Use when a\n  user wants to install, configure, connect, validate, or fix Claude Desktop, an\n  MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the\n  symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP\n  server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP\n  server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent\n  won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also\n  covers local agent gateways like OpenClaw and Hermes.\n---\n\n# AI Tools Setup Assistant\n\nHelp users install, configure, and repair AI tooling on their own machine using\nDesktop Commander's file and terminal tools. The work is usually\n**configure-and-troubleshoot**, not clean installs — assume something already\nexists and may be half-broken.\n\n## Golden rules (read before doing anything)\n\n1. **Detect the OS and shell first.** Read `get_config` and use its `systemInfo`\n   and `allowedDirectories` — file paths, commands, and config locations differ\n   across macOS, Windows, and Linux, so confirm the platform before assuming\n   anything.\n2. **Verify the model/API key works before you build.** The most common reason\n   these sessions dead-end is a provider auth or billing error discovered\n   *after* a lot of setup work. Make one tiny test call with `start_process` (a quick\n   curl to the provider) early, and tell the user plainly if the key is invalid\n   or out of credit.\n3. **Translate errors, don't dump them.** When a tool returns a raw JSON/HTTP\n   error, explain in one line what it means and what to do next. If a model is\n   missing, deprecated, rate-limited, or doesn't support tool-calling, suggest a\n   concrete working alternative instead of retrying the same thing.\n4. **Never echo secrets.** API keys, tokens, and passwords go *into the right\n   config or `.env` file* — never repeated back in chat. If a user pastes a live\n   secret, warn them, use it, and suggest they rotate it if it was shared\n   insecurely. Redact secrets in any output, logs, or summaries you produce.\n5. **Back up before you edit.** Copy the config to a `.bak` first with\n   `start_process` (`cp file.json file.json.bak`, or `copy` on Windows), then make\n   the change with `edit_block` so existing entries survive — reach for\n   `write_file` only on a from-scratch config. Validate the JSON after every edit\n   by parsing it with `start_process`.\n6. **Verify, then stop.** After a change, actually confirm it worked — use\n   `list_processes` to confirm the process is running and `start_process`\n   (`lsof`/`netstat`) to confirm the port is listening, then check the client\n   reconnected and its tools are listed. Don't declare success on a guess.\n7. **Make it repeatable.** Once something works, offer to save the steps as a\n   short note or script so the user can redo it later.\n\n## What this skill covers\n\nThis skill routes to one of three reference files depending on the task. Read\nthe relevant file before acting — they contain the exact paths, commands, and\nknown failure modes.\n\n- **Claude Desktop & MCP servers** — installing Claude Desktop, adding MCP\n  servers, and inspecting / validating / repairing MCP config files\n  (`claude_desktop_config.json`, `.claude/mcp.json`, `~/.lmstudio/mcp.json`,\n  and similar). Also connection health checks.\n  → Read [`references/claude-desktop-mcp.md`](references/claude-desktop-mcp.md)\n\n- **OpenClaw** — a self-hosted multi-channel gateway for AI agents. Install,\n  onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,\n  etc.), diagnose the gateway, and uninstall.\n  → Read [`references/openclaw.md`](references/openclaw.md)\n\n- **Hermes** — disambiguate first: **Hermes Agent** (the Nous Research\n  self-improving agent framework) vs. **Hermes 3** (just a local LLM you run via\n  Ollama). Install, run `hermes setup --portal`, configure providers, personality\n  (`SOUL.md`), memory/skills, MCP, and messaging.\n  → Read [`references/hermes.md`](references/hermes.md)\n\nWhen in doubt about a tool's current behavior, fetch the official docs:\nOpenClaw — https://docs.openclaw.ai/ ·\nHermes — https://hermes-agent.nousresearch.com/docs/\n\n## General workflow\n\n1. **Clarify the goal and platform.** Install vs. configure vs. fix? Which OS?\n   Which tool/client?\n2. **Inspect current state.** `read_file` the relevant config files and use\n   `list_processes` to check whether the relevant process/port/service is already\n   running before changing anything.\n3. **Read the matching reference file** for exact paths and commands.\n4. **Make the smallest change that moves forward**, backing up configs first.\n5. **Verify** the result concretely.\n6. **Summarize** what changed, where, and how to undo it — with secrets redacted.\n\n## A generic \"my agent isn't responding\" diagnostic\n\nUse this order for OpenClaw, Hermes, or any local agent/gateway:\n\n1. **Provider/auth** — is a valid API key configured for the active provider,\n   and does it have credit? (Most failures stop here.)\n2. **Model** — does the chosen model exist, and does it support tool-calling?\n   Local models especially often don't.\n3. **Process/port** — is the gateway/daemon actually running and listening on\n   its port? Is another process holding that port?\n4. **Connection** — for chat clients/websockets, does it connect but drop on\n   first message? That usually points back to provider/model, not networking.\n5. **Logs** — read the tool's logs for the first real error, not the last one.\n","plugins/claude/skills/ai-tools-setup/SKILL.md":"---\nname: ai-tools-setup\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Set up, connect, validate, and repair Claude Desktop and MCP servers using\n  Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json,\n  getting MCP servers to connect, and diagnosing local AI tooling. Use when a\n  user wants to install, configure, connect, validate, or fix Claude Desktop, an\n  MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the\n  symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP\n  server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP\n  server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent\n  won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also\n  covers local agent gateways like OpenClaw and Hermes.\n---\n\n# AI Tools Setup Assistant\n\nHelp users install, configure, and repair AI tooling on their own machine using\nDesktop Commander's file and terminal tools. The work is usually\n**configure-and-troubleshoot**, not clean installs — assume something already\nexists and may be half-broken.\n\n## Golden rules (read before doing anything)\n\n1. **Detect the OS and shell first.** Read `get_config` and use its `systemInfo`\n   and `allowedDirectories` — file paths, commands, and config locations differ\n   across macOS, Windows, and Linux, so confirm the platform before assuming\n   anything.\n2. **Verify the model/API key works before you build.** The most common reason\n   these sessions dead-end is a provider auth or billing error discovered\n   *after* a lot of setup work. Make one tiny test call with `start_process` (a quick\n   curl to the provider) early, and tell the user plainly if the key is invalid\n   or out of credit.\n3. **Translate errors, don't dump them.** When a tool returns a raw JSON/HTTP\n   error, explain in one line what it means and what to do next. If a model is\n   missing, deprecated, rate-limited, or doesn't support tool-calling, suggest a\n   concrete working alternative instead of retrying the same thing.\n4. **Never echo secrets.** API keys, tokens, and passwords go *into the right\n   config or `.env` file* — never repeated back in chat. If a user pastes a live\n   secret, warn them, use it, and suggest they rotate it if it was shared\n   insecurely. Redact secrets in any output, logs, or summaries you produce.\n5. **Back up before you edit.** Copy the config to a `.bak` first with\n   `start_process` (`cp file.json file.json.bak`, or `copy` on Windows), then make\n   the change with `edit_block` so existing entries survive — reach for\n   `write_file` only on a from-scratch config. Validate the JSON after every edit\n   by parsing it with `start_process`.\n6. **Verify, then stop.** After a change, actually confirm it worked — use\n   `list_processes` to confirm the process is running and `start_process`\n   (`lsof`/`netstat`) to confirm the port is listening, then check the client\n   reconnected and its tools are listed. Don't declare success on a guess.\n7. **Make it repeatable.** Once something works, offer to save the steps as a\n   short note or script so the user can redo it later.\n\n## What this skill covers\n\nThis skill routes to one of three reference files depending on the task. Read\nthe relevant file before acting — they contain the exact paths, commands, and\nknown failure modes.\n\n- **Claude Desktop & MCP servers** — installing Claude Desktop, adding MCP\n  servers, and inspecting / validating / repairing MCP config files\n  (`claude_desktop_config.json`, `.claude/mcp.json`, `~/.lmstudio/mcp.json`,\n  and similar). Also connection health checks.\n  → Read [`references/claude-desktop-mcp.md`](references/claude-desktop-mcp.md)\n\n- **OpenClaw** — a self-hosted multi-channel gateway for AI agents. Install,\n  onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,\n  etc.), diagnose the gateway, and uninstall.\n  → Read [`references/openclaw.md`](references/openclaw.md)\n\n- **Hermes** — disambiguate first: **Hermes Agent** (the Nous Research\n  self-improving agent framework) vs. **Hermes 3** (just a local LLM you run via\n  Ollama). Install, run `hermes setup --portal`, configure providers, personality\n  (`SOUL.md`), memory/skills, MCP, and messaging.\n  → Read [`references/hermes.md`](references/hermes.md)\n\nWhen in doubt about a tool's current behavior, fetch the official docs:\nOpenClaw — https://docs.openclaw.ai/ ·\nHermes — https://hermes-agent.nousresearch.com/docs/\n\n## General workflow\n\n1. **Clarify the goal and platform.** Install vs. configure vs. fix? Which OS?\n   Which tool/client?\n2. **Inspect current state.** `read_file` the relevant config files and use\n   `list_processes` to check whether the relevant process/port/service is already\n   running before changing anything.\n3. **Read the matching reference file** for exact paths and commands.\n4. **Make the smallest change that moves forward**, backing up configs first.\n5. **Verify** the result concretely.\n6. **Summarize** what changed, where, and how to undo it — with secrets redacted.\n\n## A generic \"my agent isn't responding\" diagnostic\n\nUse this order for OpenClaw, Hermes, or any local agent/gateway:\n\n1. **Provider/auth** — is a valid API key configured for the active provider,\n   and does it have credit? (Most failures stop here.)\n2. **Model** — does the chosen model exist, and does it support tool-calling?\n   Local models especially often don't.\n3. **Process/port** — is the gateway/daemon actually running and listening on\n   its port? Is another process holding that port?\n4. **Connection** — for chat clients/websockets, does it connect but drop on\n   first message? That usually points back to provider/model, not networking.\n5. **Logs** — read the tool's logs for the first real error, not the last one.\n","plugins/claude/skills/computer-health-check/SKILL.md":"---\nname: computer-health-check\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Run a comprehensive, read-only health check on the user's computer and return a\n  scored chat summary with prioritized, plain-English recommendations and safe cleanup\n  suggestions. Use this whenever the user wants to check their computer's health, speed\n  it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check\n  battery health and wear, audit login & startup items, see pending updates, or asks for\n  a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop\n  healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan\n  so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\".\n  Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a\n  real local shell (start_process / interact_with_process) and is strictly read-only by\n  default — it never needs sudo and only performs cleanups the user explicitly approves.\n---\n\n# Computer Health Check\n\n## What this skill does\n\nGive the user a fast, trustworthy picture of their computer's health and a short list\nof actions worth taking — the way a good technician would: look first, explain plainly,\nfix only with permission.\n\nIt runs entirely through Desktop Commander's local shell, gathers a batch of **read-only**\ndiagnostics, scores each area, prints a concise summary **in the chat**, and then offers\ncleanup suggestions the user can approve one by one.\n\n## The safety contract (read this first)\n\nThis is the part that makes users trust the skill, so honor it strictly:\n\n- **Read-only by default.** The collection phase only *observes* (sizes, counts, status).\n  It changes nothing.\n- **Never use `sudo` or elevation.** DC blocks `sudo`, `shutdown`, `reboot`, `dd`, `mount`,\n  `mkfs`, `diskpart`, etc. for good reason. Every check below is designed to work without\n  them. If something seems to need elevation, skip it and say so — don't try to work around\n  the block.\n- **Cleanups are opt-in.** You may *suggest* cleanups freely, but only *execute* one after\n  the user explicitly approves that specific action, and only show the exact command first.\n- **Prefer reversible, non-destructive actions.** Emptying caches that regenerate, clearing\n  a package-manager download cache, or emptying Trash are fine to offer. Deleting user\n  documents, uninstalling apps, or editing system files are not — suggest those, let the\n  user do them.\n\n## Workflow\n\n### Step 1 — Detect the OS\n\nDetermine the platform before doing anything else, because the commands differ.\n\n- Quickest: read Desktop Commander's config (`get_config`) and use the\n  `systemInfo.isMacOS` / `isWindows` / `isLinux` booleans (or `platformName`) to\n  pick the platform.\n- Or run `uname` (macOS/Linux) — if it fails, assume Windows.\n\nThen open the matching reference file and use its command set:\n\n- macOS → [`references/macos.md`](references/macos.md)\n- Windows → [`references/windows.md`](references/windows.md)\n- Linux → [`references/linux.md`](references/linux.md)\n\nRead **only** the one that matches. Each file contains a single batched collection script\nplus interpretation notes and cleanup commands.\n\n### Step 2 — Collect (read-only)\n\nRun the batched collection script from the reference file with `start_process`. Batching\neverything into one call is much faster than many small calls and keeps the output tidy.\n\nGuidance:\n- Keep outputs bounded (`head`, `Select-Object -First`, etc.) so a long process list or\n  file listing doesn't flood the response.\n- Skip the genuinely slow / network checks (full OS-update list, internet speed test) on the\n  first pass unless the user asked about updates or network. Mention they're available.\n- If a single command errors (e.g., a tool isn't installed), continue — partial data is fine.\n\n### Step 3 — Score each area\n\nRate each category 🟢 Good / 🟡 Watch / 🔴 Act using the rubric below, then compute a simple\noverall score. Start at 100 and subtract 8 per 🟡 and 18 per 🔴; floor at 0. Report the\nnumber and a one-word verdict (90+ Excellent, 75–89 Good, 60–74 Fair, <60 Needs attention).\n\n| Area | 🟢 Good | 🟡 Watch | 🔴 Act |\n|---|---|---|---|\n| Free disk space | >20% free | 10–20% | <10% |\n| Disk health (SMART) | Verified / OK / PASSED | — | failing / not supported & errors present |\n| Memory pressure | low swap, free pages healthy | noticeable swap/compression | heavy swapping, near-zero free |\n| Battery (laptops) | ≥80% max capacity, Normal | 70–80% | <70% or \"Service/Replace\" |\n| Maintenance | uptime <7d, no pending updates | uptime 7–30d or minor updates | uptime >30d or security updates pending |\n| Startup load | few third-party login items | moderate | many heavy third-party agents |\n| Live resource hogs | nothing >50% at idle | one sustained heavy process | multiple / runaway processes |\n\nBattery is laptop-only — skip it on desktops/VMs. Reclaimable space is reported as an\ninformational figure, not scored.\n\n### Step 4 — Report in the chat\n\nUse this exact structure. Keep it tight and scannable — this is the deliverable.\n\n```\n🖥️  Health Check — <Model>, <OS version>     Score: <N>/100 (<verdict>)\n\n🟢/🟡/🔴  Storage      — <free> free of <total> (<%>). Reclaimable: ~<X> GB\n🟢/🟡/🔴  Memory       — <one-line state>\n🟢/🟡/🔴  Battery      — <cycles> cycles, <max capacity>%, <condition>\n🟢/🟡/🔴  Maintenance  — up <days>d, <updates state>\n🟢/🟡/🔴  Startup      — <count> login items (<notable ones>)\n🟢/🟡/🔴  Right now    — top: <proc> <cpu%>, <proc> <cpu%>\n\nTop recommendations\n1. <highest-impact action> (<expected benefit, e.g. frees ~13 GB>)\n2. <next>\n3. <next>\n```\n\nList at most the 3–5 highest-impact recommendations, ordered by benefit. Don't dump every\nfinding — the goal is signal, not a wall of text.\n\n### Step 5 — Suggest cleanups, execute only on approval\n\nFor each recommendation that maps to a concrete command (see the reference file's \"Cleanup\"\nsection), offer it and show the exact command. Then:\n\n- **Safe, reversible** (offer to run on a yes): empty Trash, package-manager cache cleanup\n  (`brew cleanup`, `npm cache clean`), clearing a regenerating user cache folder. (On Linux,\n  `apt-get clean` / `dnf clean` need root — suggest, don't auto-run.)\n- **Needs the user to decide / act** (suggest, don't auto-run): disabling login items,\n  installing OS updates (requires restart), uninstalling apps, deleting files in Downloads.\n- **Never**: anything requiring sudo/admin, removing system files, disk/partition operations.\n\nWhen the user approves a safe action, run it, then report what changed (e.g., space freed).\nRe-running Step 2's storage check afterward is a nice confirmation.\n\n## Recommendation rules (findings → advice)\n\nThese are the high-value mappings; adapt the wording to the platform.\n\n- **Uptime > 30 days** → \"Restart your computer — it's been up <N> days. A reboot clears\n  memory and applies pending updates.\" (Highest ROI, lowest effort.)\n- **Pending OS/security updates** → platform update step; flag security updates as higher\n  priority.\n- **Free space < 15%** → lead with the biggest reclaimable buckets you measured.\n- **Large Downloads / Caches / Trash** → empty Trash; review largest Downloads items by name;\n  clear caches that regenerate.\n- **Package manager has many outdated items / big cache** → `upgrade` + cache cleanup.\n- **Battery max capacity < 80%** → explain wear is normal; consider a battery service if it's\n  affecting runtime.\n- **Many third-party startup agents** → name them and suggest disabling the ones the user\n  doesn't recognize/need (point to System Settings / Task Manager — don't edit them directly).\n- **A process pinned high at idle** → name it and suggest quitting/investigating.\n\n## Notes & pitfalls\n\n- **Don't assume — measure.** Always run the commands and report real numbers. Never\n  fabricate sizes, cycle counts, or statuses.\n- **Bounded output.** Process and file listings can be huge; always cap them.\n- **Optional deep checks** (mention, run on request): internet speed test, full update list,\n  per-folder disk scan of the whole home directory, crash-report trend analysis.\n- **Privacy.** This reads local system metadata only. Don't send anything off the machine;\n  the public-IP check is optional and should be labeled.\n- **Cross-platform parity.** The three reference files mirror the same categories so the\n  report looks the same regardless of OS.\n","plugins/claude/skills/desktop-commander-overview/SKILL.md":"---\nname: desktop-commander-overview\ndescription: Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.\nversion: 0.1.0\naudience: agent\n---\n\n# Desktop Commander MCP\n\nDesktop Commander gives the agent reach across the user's actual computer — files, folders, terminals, processes, structured documents, and remote machines reachable over SSH. The tools' detailed schemas (parameters, return shapes, format-specific behavior) live in the MCP itself; this skill explains what they enable and how they compose into common workflows.\n\n## What this MCP gives the agent\n\n**Persistent shell sessions.** Desktop Commander keeps a started process or session alive across tool calls. Inside a single long-lived shell, REPL, or SSH session, state carries forward — environment variables, working directory, activated virtualenvs, open connections, REPL variables — so the agent can `cd`, activate a venv, then send commands or code into that same session many turns later without re-setup. (Note: separate `start_process` calls open separate sessions and do **not** share shell state with each other; persistence is inside one session, not across them.)\n\n**Long-running processes.** Start a dev server, watcher, build, training run, or test suite in the background and keep working. The MCP returns a process handle the agent can tail, interact with, or terminate across many turns. Long-running commands don't need to block the workflow waiting for a foreground command to exit.\n\n**Filesystem reach beyond the IDE workspace.** Read, write, move, list, and inspect files anywhere the user has granted scope — Downloads, Documents, project folders outside the IDE, or any other granted folders. Useful for organize-and-clean tasks, batch document work, and any \"look at the file my coworker just sent me\" request that doesn't fit inside the IDE sandbox.\n\n**Surgical edits to existing files.** The `edit_block` tool does exact-string find-and-replace with built-in safety: ambiguous matches fail loudly instead of silently overwriting the wrong thing, and an `expected_replacements` count prevents partial-match disasters. Lower data-loss risk than rewriting whole files based on the slice you happened to read — though a wrong `old_string` or wrong `expected_replacements` can still corrupt content, so review the changed content before considering the edit done.\n\n**Binary and structured files handled directly by the MCP.** Excel, DOCX, and PDF are first-class — read and modified through format-specific mechanisms rather than text-only approximations: Excel via cell-range JSON, DOCX via raw-XML edits, PDF via page-level operations on a new output file. The result is the real file in its original format, not a regenerated approximation. Images and PDFs return as viewable content for the agent.\n\n**Search at scale.** Streaming, ripgrep-backed search across whole projects or folder trees. The agent picks between filename search and in-file content search, pages through results progressively without flooding context, and runs multiple concurrent searches when the query is ambiguous.\n\n**Remote machines via SSH.** A long-lived SSH session inside a persistent shell turns the agent into a real ops tool: connect once, then tail logs, run diagnostics, deploy, or debug across many turns without reconnecting each step.\n\n**Process management.** List, inspect, tail, and kill accessible processes (subject to OS permissions). Useful for cleaning up stale dev servers from previous sessions and for diagnosing CPU / memory issues.\n\n## Example workflows\n\nEach example names the actual tool sequence. Calls below are written in pseudocode shorthand (`tool_name(\"arg\", flag=value)`); the real tools take object-shaped arguments. Tool descriptions and full parameter sets live in the MCP itself.\n\n### \"Debug this production issue\"\n\nBefore running production-impacting SSH commands, explain the intended action and get user confirmation when the risk is non-trivial.\n\n`start_process(\"ssh user@prod.example.com\", timeout_ms=...)` opens a long-lived SSH session and returns a PID. `interact_with_process(pid, \"tail -f /var/log/app.log\\n\")` starts streaming logs. Subsequent turns: `read_process_output(pid, offset=-50)` to see the last 50 lines as they arrive, `interact_with_process(pid, \"...\")` to run diagnostic commands in the same session. `force_terminate(pid)` to close the session when done — for sessions opened by `start_process`, `force_terminate` is the correct cleanup tool; `kill_process` is for arbitrary OS PIDs found via `list_processes`.\n\n### \"Deploy this to staging\"\n\nBefore deploys, restarts, migrations, or other environment-changing commands, summarize the action and confirm with the user unless they already explicitly asked for that exact operation.\n\n`start_process` for the deploy command (could be a script, an SSH-piped command, or `kubectl`/`gh` etc.). `read_process_output` to track output and surface errors. If the deploy needs an interactive confirmation, `interact_with_process(pid, \"yes\\n\")`. The session stays alive while the agent watches for completion or rollback.\n\n### \"Run the dev server and iterate on the API\"\n\n`start_process(\"npm run dev\", timeout_ms=...)` keeps the server up. The agent then loops: `edit_block` on the route file, `read_process_output(pid, offset=-30)` to see the server's reload, `start_process(\"curl -s http://localhost:3000/api/...\")` for a one-shot test, repeat. The dev server never has to restart between code changes.\n\n### \"Refactor across this monorepo\"\n\n`start_search(pattern=\"oldFunctionName\", path=repo_root, searchType=\"content\")` scopes every call site. `get_more_search_results(sessionId)` pages through. `read_multiple_files(paths=[...])` confirms ambiguous hits in context. `edit_block(file_path, old_string, new_string)` per site, with `expected_replacements` set when the same substring legitimately appears multiple times in one file. Verify by re-running `start_search` on the old name and paging the results with `get_more_search_results(sessionId)` until the run completes — only then can you confirm zero remaining hits.\n\n### \"Update the Q3 numbers in this spreadsheet and tweak the summary in the report\"\n\n`read_file(path=\"/.../q3.xlsx\", sheet=\"Revenue\", range=\"A1:F50\")` returns the existing numbers as a JSON 2D array. `edit_block(file_path=\"/.../q3.xlsx\", range=\"Revenue!C12:C24\", content=[[12345], ...])` updates the cells in place. For the report, DOCX editing is a two-read flow: first `read_file(path=\"/.../report.docx\")` (offset 0) returns the document's outline (headings + paragraph text) so you can locate the summary section. Then `read_file(path=\"/.../report.docx\", offset=N, length=...)` with **`N > 0`** returns the raw underlying XML around that section — a non-zero offset is what flips the read into XML mode. Copy an XML fragment from that output as `old_string` and call `edit_block(file_path, old_string, new_string)` with the rewritten XML. The user gets back real `.xlsx` and `.docx` files, not regenerated approximations.\n\n### \"Generate the Q3 report as a PDF\"\n\nCompose markdown content (header, table, charts via embedded HTML), then call `write_pdf` to render it to a new PDF file. The MCP's `write_pdf` tool description specifies the exact parameters and filename rules — follow that.\n\n### \"Insert a cover page into this PDF\"\n\n`write_pdf` also supports modifying existing PDFs via an operations array (insert / delete pages). Use it for existing-PDF edits that produce a new PDF — adding a cover page, removing a section, merging in content from another file. See the `write_pdf` tool description for the operation shapes and parameter rules.\n\n### \"Analyze this 200MB CSV\"\n\n`start_process(\"python3 -i\", timeout_ms=...)` opens a Python REPL and returns a PID. `interact_with_process(pid, \"import pandas as pd; df = pd.read_csv('/abs/path.csv')\")` loads it once. Every subsequent question — `df.describe()`, `df.groupby('col').size()`, plot a chart — runs in the same already-loaded REPL. Libraries don't re-import, the dataframe doesn't re-load. The MCP itself recommends this workflow for any local data-file analysis.\n\n### \"Run a quick Node script\"\n\n`start_process(\"node:local\", timeout_ms=...)` opens a stateless Node execution mode on the MCP server itself — ES imports supported. `start_process` opens the runner; each piece of JS is sent via `interact_with_process(pid, \"<your JS here>\")` and runs independently (no shared state between calls). Good for one-shot transformations where keeping a long-lived REPL alive isn't worth it. Don't try to put code into the `start_process` command argument — only the runner type (`node:local`) goes there.\n\n### \"Explain this codebase\"\n\n`list_directory(path=repo_root, depth=3)` for shape. `start_search(pattern=\"export \", path=repo_root, searchType=\"content\")` to find the public surface. `read_multiple_files(paths=[entrypoints])` for the actual code. The agent can keep narrowing without re-asking the user where to look.\n\n### \"Organize my Downloads folder\"\n\nResolve the path to absolute first (e.g., `/Users/<user>/Downloads`, not `~/Downloads`). Then `list_directory(path=\"/Users/<user>/Downloads\", depth=1)` to see what's there. `start_search(pattern=\"*.pdf\", path=\"/Users/<user>/Downloads\", searchType=\"files\")` and similar for other types. `create_directory` for new folders. `move_file` per item. Preview the move plan before executing destructive ops.\n\n### \"Onboard me — what was happening last session?\"\n\n`get_recent_tool_calls(maxResults=200)` returns recent activity with arguments and outputs. `list_sessions` shows still-running terminal sessions. `list_searches` shows in-flight searches. `list_processes` shows what's still alive. Together they reconstruct the work without asking the user to recap.\n\n### \"Why isn't the REPL responding?\"\n\n`list_sessions` — if `Blocked: true`, the REPL is waiting for input rather than hung. `read_process_output(pid, offset=-100)` to see what it last printed (often a prompt). `interact_with_process(pid, \"<the input it's waiting for>\\n\")` unblocks it.\n\n## Core tool inventory\n\nGrouped index of the tools an agent reaches for most often. Not exhaustive — the MCP exposes additional config / diagnostics / feedback tools beyond this list. Detailed parameters and return shapes for every tool are in the MCP's own tool descriptions.\n\n- **Process / shell:** `start_process`, `interact_with_process`, `read_process_output`, `list_processes`, `list_sessions`, `kill_process`, `force_terminate`\n- **Files (read/write):** `read_file`, `read_multiple_files`, `write_file`, `edit_block`, `write_pdf`\n- **Filesystem:** `list_directory`, `get_file_info`, `move_file`, `create_directory`\n- **Search:** `start_search`, `get_more_search_results`, `list_searches`, `stop_search`\n- **Diagnostics / config:** `get_recent_tool_calls`, `get_config`\n\n## Conventions\n\n**Prefer absolute paths.** Relative paths may fail depending on the working directory, and tilde paths (`~/...`) may not expand in all contexts. Absolute paths are the most reliable; pass them whenever you can.\n\n**Allowed-directory scope.** File operations only work inside the user's configured `allowedDirectories`. Expect `[DENIED]` markers in `list_directory` output and rejections from `read_file` / `write_file` when the path is out of scope. Surface the rejected path to the user — don't retry.\n\n**When running on macOS:** default shell is zsh. Use `python3` not `python`. Some GNU tools have prefixed names (`gsed` for GNU sed). `brew` is the typical package manager. `open` opens files / apps from the terminal, `mdfind` is the fastest path to exact-filename search via Spotlight. Detect the host platform via `get_config` (or by inspecting `process.platform` / `uname` from a shell) before assuming any of the above — Windows and Linux hosts behave differently.\n\n**Pagination.** Long outputs (file reads, process output, search results) all support `offset` and `length`. Negative offsets read from the end (tail mode). Use these instead of dumping huge results into context.\n","skills/desktop-commander-overview/SKILL.md":"---\nname: desktop-commander-overview\ndescription: Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.\nversion: 0.1.0\naudience: agent\n---\n\n# Desktop Commander MCP\n\nDesktop Commander gives the agent reach across the user's actual computer — files, folders, terminals, processes, structured documents, and remote machines reachable over SSH. The tools' detailed schemas (parameters, return shapes, format-specific behavior) live in the MCP itself; this skill explains what they enable and how they compose into common workflows.\n\n## What this MCP gives the agent\n\n**Persistent shell sessions.** Desktop Commander keeps a started process or session alive across tool calls. Inside a single long-lived shell, REPL, or SSH session, state carries forward — environment variables, working directory, activated virtualenvs, open connections, REPL variables — so the agent can `cd`, activate a venv, then send commands or code into that same session many turns later without re-setup. (Note: separate `start_process` calls open separate sessions and do **not** share shell state with each other; persistence is inside one session, not across them.)\n\n**Long-running processes.** Start a dev server, watcher, build, training run, or test suite in the background and keep working. The MCP returns a process handle the agent can tail, interact with, or terminate across many turns. Long-running commands don't need to block the workflow waiting for a foreground command to exit.\n\n**Filesystem reach beyond the IDE workspace.** Read, write, move, list, and inspect files anywhere the user has granted scope — Downloads, Documents, project folders outside the IDE, or any other granted folders. Useful for organize-and-clean tasks, batch document work, and any \"look at the file my coworker just sent me\" request that doesn't fit inside the IDE sandbox.\n\n**Surgical edits to existing files.** The `edit_block` tool does exact-string find-and-replace with built-in safety: ambiguous matches fail loudly instead of silently overwriting the wrong thing, and an `expected_replacements` count prevents partial-match disasters. Lower data-loss risk than rewriting whole files based on the slice you happened to read — though a wrong `old_string` or wrong `expected_replacements` can still corrupt content, so review the changed content before considering the edit done.\n\n**Binary and structured files handled directly by the MCP.** Excel, DOCX, and PDF are first-class — read and modified through format-specific mechanisms rather than text-only approximations: Excel via cell-range JSON, DOCX via raw-XML edits, PDF via page-level operations on a new output file. The result is the real file in its original format, not a regenerated approximation. Images and PDFs return as viewable content for the agent.\n\n**Search at scale.** Streaming, ripgrep-backed search across whole projects or folder trees. The agent picks between filename search and in-file content search, pages through results progressively without flooding context, and runs multiple concurrent searches when the query is ambiguous.\n\n**Remote machines via SSH.** A long-lived SSH session inside a persistent shell turns the agent into a real ops tool: connect once, then tail logs, run diagnostics, deploy, or debug across many turns without reconnecting each step.\n\n**Process management.** List, inspect, tail, and kill accessible processes (subject to OS permissions). Useful for cleaning up stale dev servers from previous sessions and for diagnosing CPU / memory issues.\n\n## Example workflows\n\nEach example names the actual tool sequence. Calls below are written in pseudocode shorthand (`tool_name(\"arg\", flag=value)`); the real tools take object-shaped arguments. Tool descriptions and full parameter sets live in the MCP itself.\n\n### \"Debug this production issue\"\n\nBefore running production-impacting SSH commands, explain the intended action and get user confirmation when the risk is non-trivial.\n\n`start_process(\"ssh user@prod.example.com\", timeout_ms=...)` opens a long-lived SSH session and returns a PID. `interact_with_process(pid, \"tail -f /var/log/app.log\\n\")` starts streaming logs. Subsequent turns: `read_process_output(pid, offset=-50)` to see the last 50 lines as they arrive, `interact_with_process(pid, \"...\")` to run diagnostic commands in the same session. `force_terminate(pid)` to close the session when done — for sessions opened by `start_process`, `force_terminate` is the correct cleanup tool; `kill_process` is for arbitrary OS PIDs found via `list_processes`.\n\n### \"Deploy this to staging\"\n\nBefore deploys, restarts, migrations, or other environment-changing commands, summarize the action and confirm with the user unless they already explicitly asked for that exact operation.\n\n`start_process` for the deploy command (could be a script, an SSH-piped command, or `kubectl`/`gh` etc.). `read_process_output` to track output and surface errors. If the deploy needs an interactive confirmation, `interact_with_process(pid, \"yes\\n\")`. The session stays alive while the agent watches for completion or rollback.\n\n### \"Run the dev server and iterate on the API\"\n\n`start_process(\"npm run dev\", timeout_ms=...)` keeps the server up. The agent then loops: `edit_block` on the route file, `read_process_output(pid, offset=-30)` to see the server's reload, `start_process(\"curl -s http://localhost:3000/api/...\")` for a one-shot test, repeat. The dev server never has to restart between code changes.\n\n### \"Refactor across this monorepo\"\n\n`start_search(pattern=\"oldFunctionName\", path=repo_root, searchType=\"content\")` scopes every call site. `get_more_search_results(sessionId)` pages through. `read_multiple_files(paths=[...])` confirms ambiguous hits in context. `edit_block(file_path, old_string, new_string)` per site, with `expected_replacements` set when the same substring legitimately appears multiple times in one file. Verify by re-running `start_search` on the old name and paging the results with `get_more_search_results(sessionId)` until the run completes — only then can you confirm zero remaining hits.\n\n### \"Update the Q3 numbers in this spreadsheet and tweak the summary in the report\"\n\n`read_file(path=\"/.../q3.xlsx\", sheet=\"Revenue\", range=\"A1:F50\")` returns the existing numbers as a JSON 2D array. `edit_block(file_path=\"/.../q3.xlsx\", range=\"Revenue!C12:C24\", content=[[12345], ...])` updates the cells in place. For the report, DOCX editing is a two-read flow: first `read_file(path=\"/.../report.docx\")` (offset 0) returns the document's outline (headings + paragraph text) so you can locate the summary section. Then `read_file(path=\"/.../report.docx\", offset=N, length=...)` with **`N > 0`** returns the raw underlying XML around that section — a non-zero offset is what flips the read into XML mode. Copy an XML fragment from that output as `old_string` and call `edit_block(file_path, old_string, new_string)` with the rewritten XML. The user gets back real `.xlsx` and `.docx` files, not regenerated approximations.\n\n### \"Generate the Q3 report as a PDF\"\n\nCompose markdown content (header, table, charts via embedded HTML), then call `write_pdf` to render it to a new PDF file. The MCP's `write_pdf` tool description specifies the exact parameters and filename rules — follow that.\n\n### \"Insert a cover page into this PDF\"\n\n`write_pdf` also supports modifying existing PDFs via an operations array (insert / delete pages). Use it for existing-PDF edits that produce a new PDF — adding a cover page, removing a section, merging in content from another file. See the `write_pdf` tool description for the operation shapes and parameter rules.\n\n### \"Analyze this 200MB CSV\"\n\n`start_process(\"python3 -i\", timeout_ms=...)` opens a Python REPL and returns a PID. `interact_with_process(pid, \"import pandas as pd; df = pd.read_csv('/abs/path.csv')\")` loads it once. Every subsequent question — `df.describe()`, `df.groupby('col').size()`, plot a chart — runs in the same already-loaded REPL. Libraries don't re-import, the dataframe doesn't re-load. The MCP itself recommends this workflow for any local data-file analysis.\n\n### \"Run a quick Node script\"\n\n`start_process(\"node:local\", timeout_ms=...)` opens a stateless Node execution mode on the MCP server itself — ES imports supported. `start_process` opens the runner; each piece of JS is sent via `interact_with_process(pid, \"<your JS here>\")` and runs independently (no shared state between calls). Good for one-shot transformations where keeping a long-lived REPL alive isn't worth it. Don't try to put code into the `start_process` command argument — only the runner type (`node:local`) goes there.\n\n### \"Explain this codebase\"\n\n`list_directory(path=repo_root, depth=3)` for shape. `start_search(pattern=\"export \", path=repo_root, searchType=\"content\")` to find the public surface. `read_multiple_files(paths=[entrypoints])` for the actual code. The agent can keep narrowing without re-asking the user where to look.\n\n### \"Organize my Downloads folder\"\n\nResolve the path to absolute first (e.g., `/Users/<user>/Downloads`, not `~/Downloads`). Then `list_directory(path=\"/Users/<user>/Downloads\", depth=1)` to see what's there. `start_search(pattern=\"*.pdf\", path=\"/Users/<user>/Downloads\", searchType=\"files\")` and similar for other types. `create_directory` for new folders. `move_file` per item. Preview the move plan before executing destructive ops.\n\n### \"Onboard me — what was happening last session?\"\n\n`get_recent_tool_calls(maxResults=200)` returns recent activity with arguments and outputs. `list_sessions` shows still-running terminal sessions. `list_searches` shows in-flight searches. `list_processes` shows what's still alive. Together they reconstruct the work without asking the user to recap.\n\n### \"Why isn't the REPL responding?\"\n\n`list_sessions` — if `Blocked: true`, the REPL is waiting for input rather than hung. `read_process_output(pid, offset=-100)` to see what it last printed (often a prompt). `interact_with_process(pid, \"<the input it's waiting for>\\n\")` unblocks it.\n\n## Core tool inventory\n\nGrouped index of the tools an agent reaches for most often. Not exhaustive — the MCP exposes additional config / diagnostics / feedback tools beyond this list. Detailed parameters and return shapes for every tool are in the MCP's own tool descriptions.\n\n- **Process / shell:** `start_process`, `interact_with_process`, `read_process_output`, `list_processes`, `list_sessions`, `kill_process`, `force_terminate`\n- **Files (read/write):** `read_file`, `read_multiple_files`, `write_file`, `edit_block`, `write_pdf`\n- **Filesystem:** `list_directory`, `get_file_info`, `move_file`, `create_directory`\n- **Search:** `start_search`, `get_more_search_results`, `list_searches`, `stop_search`\n- **Diagnostics / config:** `get_recent_tool_calls`, `get_config`\n\n## Conventions\n\n**Prefer absolute paths.** Relative paths may fail depending on the working directory, and tilde paths (`~/...`) may not expand in all contexts. Absolute paths are the most reliable; pass them whenever you can.\n\n**Allowed-directory scope.** File operations only work inside the user's configured `allowedDirectories`. Expect `[DENIED]` markers in `list_directory` output and rejections from `read_file` / `write_file` when the path is out of scope. Surface the rejected path to the user — don't retry.\n\n**When running on macOS:** default shell is zsh. Use `python3` not `python`. Some GNU tools have prefixed names (`gsed` for GNU sed). `brew` is the typical package manager. `open` opens files / apps from the terminal, `mdfind` is the fastest path to exact-filename search via Spotlight. Detect the host platform via `get_config` (or by inspecting `process.platform` / `uname` from a shell) before assuming any of the above — Windows and Linux hosts behave differently.\n\n**Pagination.** Long outputs (file reads, process output, search results) all support `offset` and `length`. Negative offsets read from the end (tail mode). Use these instead of dumping huge results into context.\n","plugins/claude/skills/obsidian-vault/SKILL.md":"---\nname: obsidian-vault\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties,\n  dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user\n  explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or\n  an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases\n  plugins, or Obsidian Properties. Within that Obsidian context it covers\n  creating Maps of Content, adding/fixing wikilinks, finding orphan notes,\n  normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing\n  folders, deduplicating or renaming notes, and preparing the vault for AI use.\n  Do NOT use this skill for generic note-taking, Markdown, or knowledge-base\n  requests that don't mention Obsidian.\n---\n\n# Obsidian Vault Assistant\n\nHelp the user organize and maintain an Obsidian vault: build navigation with\nMOCs and wikilinks, normalize metadata, generate dashboards, find and fix\norphans, organize folders, deduplicate/rename, and prepare the vault for AI use.\n\nObsidian-specific facts that shape every rule here:\n- Links are **wikilinks** resolved by **filename**, not path: `[[Note title]]`.\n  Renaming a note auto-updates links inside Obsidian, but moving files outside\n  Obsidian breaks them — always rename via Obsidian when possible.\n- Metadata is **Properties** (YAML frontmatter) at the top of a note.\n- Dashboards come from **Dataview** (query language, read-only, flexible) or\n  **Bases** (native, editable tables, fast on big vaults, properties-only).\n\nBefore acting, confirm the vault's root folder and whether the user has the\nDataview plugin installed (Bases is built in since Obsidian 1.9). When a request\nis ambiguous (organize vs. clean up vs. dashboard), ask which task.\n\n## Wikilinks\n\n- Basic: `[[Three laws of motion]]` — resolves by filename, no extension/path.\n- Display text (pipe): `[[atomic-habits|James Clear — Atomic Habits]]`.\n- Heading link: `[[Note#Section]]`. Block link: `[[Note#^block-id]]`.\n- Embed/transclude: `![[Note]]`, `![[Note#Section]]`, `![[image.png]]`.\n- Aliases: add an `aliases` property so the note resolves under other names.\n- Avoid `# | ^ : %` and `[ ]` in filenames — they have special meaning in links.\n- Prefer wikilinks for internal navigation; use standard Markdown links only if\n  the vault is also published to a tool that can't parse wikilinks.\n\nWhen adding links, also surface **unlinked mentions**: if a note's title appears\nas plain text in other notes, convert those to wikilinks.\n\n## Maps of Content (MOCs)\n\nA MOC is a note that links the related notes on a topic — the vault's navigation\nlayer (more flexible than folders or tags, and needs no institutional knowledge).\n\nConventions:\n- Name MOCs clearly and tag them: `tags: [moc]` (or a `type: moc` property) so\n  every MOC is itself discoverable.\n- Keep a top-level **Home / Index MOC** that links to all topic MOCs.\n- A MOC holds a short intro plus grouped wikilinks; it can be hand-curated or\n  auto-generated with a Dataview/Bases query (see Dashboards).\n\nMOC template:\n```markdown\n---\ntype: moc\ntags: [moc]\nupdated: 2026-06-18\n---\n# Auth — Map of Content\n\nNotes on authentication, sessions, and access control.\n\n## Core\n- [[auth-flow]]\n- [[session-tokens]]\n\n## Related MOCs\n- [[security-moc]]\n```\n\n## Frontmatter / Properties\n\nAdd a consistent property block to every note. Recommended baseline:\n```yaml\n---\ntitle: Session tokens\naliases: [tokens, session token]\ntags: [auth, security]\ntype: note            # note | moc | dashboard | template | person | project\ncreated: 2026-06-18\nupdated: 2026-06-18\nstatus: evergreen     # seedling | growing | evergreen\nrelated: [\"[[auth-flow]]\"]\n---\n```\nRules:\n- Use a **controlled tag vocabulary** — decide tags up front and reuse them;\n  nested tags (`auth/tokens`) are fine. Don't let tags sprawl.\n- `tags` use no `#` in frontmatter. Dates in ISO `YYYY-MM-DD`.\n- Keep property **names and types consistent across the vault** — Bases and\n  Dataview both depend on this. When normalizing, pick one name per concept\n  (e.g. `created`, not `created`/`date`/`Created`) and migrate the rest.\n\n## Dashboards\n\nPick the engine based on the user's setup:\n\n**Bases** (native, editable, fast — best for operational boards):\n- Create a `.base` file or a `base` code block; it builds table/board views from\n  properties. Each cell edits the underlying note's frontmatter.\n- Use for task lists, reading lists, project pipelines, anything point-and-click.\n\n**Dataview** (plugin, read-only, most flexible — best for reports/auto-MOCs):\n```dataview\nTABLE status, updated, tags\nFROM #auth\nWHERE type = \"note\"\nSORT updated DESC\n```\nAuto-MOC of everything in a topic:\n```dataview\nLIST FROM #auth WHERE type != \"moc\" SORT file.name ASC\n```\nRecently updated:\n```dataview\nTABLE updated FROM \"\" WHERE updated >= date(today) - dur(7 days) SORT updated DESC\n```\nNote: large vaults can lag with heavy Dataview queries — prefer Bases there.\n\n## Orphan notes & link hygiene\n\nAn orphan is a note with no inbound or outbound links. To find and fix:\n1. **From Desktop Commander** (no app needed, scales to big vaults): `start_search`\n   the vault for `[[ ]]` links to each note's title — zero hits means no inbound\n   links (an *unlinked* note); to confirm a true orphan (no inbound **and** no\n   outbound), also scan the note's own body for `[[...]]`. The same searches\n   surface **unlinked mentions** (the title as plain text, not wrapped in `[[ ]]`)\n   and **broken links** (a `[[target]]` whose file is missing).\n2. **Graph view** (Cmd/Ctrl+G): orphans float as isolated dots at the edges.\n3. **Dataview** query for notes with no links:\n   ```dataview\n   LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0\n   ```\n4. For each orphan: link it from a relevant MOC/note (`edit_block` to insert the\n   wikilink), tag it `#needs-link` for a batch pass, or archive if obsolete.\n5. Convert unlinked mentions into real wikilinks and fix broken links with\n   `edit_block`; resolve the rest from Obsidian's right sidebar.\n\n## Folder organization\n\n- Folders are for coarse buckets; **MOCs + tags do the real organizing**. Don't\n  over-nest folders.\n- A workable layout:\n  ```\n  00-inbox/        # unsorted captures\n  10-notes/        # atomic notes\n  20-mocs/         # maps of content\n  30-projects/\n  90-assets/       # images/attachments\n  99-archive/\n  templates/\n  ```\n- Set the attachment folder in Settings so embeds land in `90-assets/`.\n- **Moves/renames must happen inside Obsidian** so wikilinks update automatically\n  — do **not** use `move_file` for these, it breaks every `[[link]]`. From Desktop\n  Commander, only edit *content* (`edit_block` / `write_file`); leave moving and\n  renaming to the user in the app.\n\n## Deduplicate & rename\n\n- **Duplicates**: `start_search` titles/aliases to find near-identical notes;\n  merge into one, keep the most-linked filename, copy unique content with\n  `edit_block`, then `start_search` for inbound `[[links]]` to the discarded note\n  and repoint them before deleting it.\n- **Renames**: do them inside Obsidian (Rename note / `F2`) so backlinks update —\n  not via `move_file`. Keep an `aliases` entry for the old name if it was widely\n  referenced.\n- Standardize filenames: pick one convention (kebab-case or Title Case) and\n  apply it consistently; avoid the special characters listed above.\n\n## Prepare the vault for AI use\n\n- Ensure **consistent frontmatter** (same property names/types) so an agent can\n  filter and reason over metadata.\n- Maintain a **Home/Index MOC** as the single entry point an agent reads first.\n- Write a one-line `summary`/`description` property per note for quick scanning.\n- Reduce orphans and broken links so the link graph is a reliable map.\n- Keep notes **atomic** (one idea each) — easier for an agent to retrieve and cite.\n- Consider exporting wikilinks to standard Markdown links if the AI tool can't\n  parse `[[ ]]`.\n\n## Workflows\n\n- **Build navigation**: `write_file` topic MOCs → `edit_block` notes to link them\n  in → refresh the Home MOC → convert unlinked mentions.\n- **Normalize metadata**: `read_multiple_files` to audit properties → pick\n  canonical names → `edit_block` each note → add missing baseline properties.\n- **Cleanup pass**: `start_search` for orphans, broken links, and unlinked\n  mentions → dedupe → report what changed (renames stay in Obsidian).\n- **Dashboard**: confirm Dataview vs. Bases → `write_file` the view from properties/tags.\n\n## Checklist before finishing\n- [ ] New/changed notes have consistent frontmatter (canonical property names).\n- [ ] Renames/moves done inside Obsidian; no links broken.\n- [ ] New notes linked from at least one MOC or note (no new orphans).\n- [ ] Tags drawn from the controlled vocabulary.\n- [ ] Dashboards reference properties/tags that actually exist.\n- [ ] `updated` bumped on changed notes.\n","plugins/claude/skills/knowledge-base/SKILL.md":"---\nname: knowledge-base\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Create and maintain a Markdown knowledge base that any AI agent can read,\n  search, and update. Use when the user wants to start a knowledge base, add or\n  update notes, organize docs/notes for an agent or LLM to consume, build an\n  index of notes, or run a cleanup/maintenance pass on an existing MD knowledge\n  base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index\n  of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the\n  KB\".\n---\n\n# Knowledge Base (Markdown, agent-readable)\n\nA knowledge base (KB) here is a folder of Markdown files designed so **any** AI\nagent can navigate it without a vector database: the agent reads one index file,\npicks the relevant notes by their descriptions, and opens only those. Keep the\nwhole KB readable and the index lean — the index is what gets loaded into\ncontext, so it must be high-signal.\n\nApply the rules below when creating a new KB, adding/editing notes, or doing a\nmaintenance pass. When the user's request is ambiguous (new KB vs. add note vs.\ncleanup), ask which one before acting.\n\n## Core principles (the \"why\")\n\n1. **Index-first navigation.** The index is a map, not a container. An agent\n   reads `INDEX.md`, selects notes by their one-line descriptions, then opens\n   only those files. No note is \"in\" the KB unless it's registered in the index.\n2. **Atomicity.** One topic per note. If a title needs an \"and\", it's probably\n   two notes. Atomic notes are easier to find, link, and reuse.\n3. **Stable IDs.** Every note has a permanent ID that never changes and is never\n   reused, so links survive renames and moves.\n4. **Linked with reason.** When two notes connect, state *why* (prerequisite,\n   supports, contrasts, see-also). Connections carry as much value as the notes.\n5. **Lean instructions.** Keep `INDEX.md` instructions short and high-signal —\n   it competes for the agent's context budget. Bodies load on demand.\n6. **Structured for retrieval.** Clear H1 title and H2/H3 sections so an agent\n   can grab the relevant slice of a note, not the whole thing.\n\n## Folder structure (nested by topic)\n\n```\nknowledge-base/\n  INDEX.md                 # entry point: instructions + full note registry\n  topics/\n    <topic>/\n      _topic.md            # topic map: what this topic covers + its notes\n      <slug>.md            # one atomic note\n  assets/                  # images / attachments referenced by notes\n```\n\n- Topic folders are short, lowercase nouns (`auth`, `billing`, `deploys`).\n- `_topic.md` is the topic-level map of content (MOC): a short intro plus links\n  to every note in that topic. It is a convenience view; `INDEX.md` remains the\n  source of truth.\n\n## Naming rules\n\n- Lowercase **kebab-case**, predictable and greppable: `topics/auth/session-tokens.md`.\n- No spaces, no uppercase, no dates in filenames (dates live in frontmatter).\n- The filename slug should match the note's `id` slug portion.\n\n## Required frontmatter (every note)\n\n```yaml\n---\nid: 20260618-session-tokens     # ID scheme: YYYYMMDD-slug. Stable. Never reuse or change.\ntitle: Session tokens           # human title, also the note's H1\ntags: [auth, security]          # only tags from the controlled list in INDEX.md\ncreated: 2026-06-18\nupdated: 2026-06-18\nrelated: [20260618-auth-flow]    # IDs of linked notes\nsummary: One scannable sentence describing what this note covers.\n---\n```\n\n- `id`: `YYYYMMDD-slug`. Sortable, readable, stable. Different-titled same-day\n  notes differ by slug; if two same-day notes would collide on the same slug,\n  append `-2`, `-3`, … (check the `INDEX.md` registry before assigning). Once\n  assigned, the id is permanent.\n- `summary`: this exact sentence is what goes in the index registry — write it to\n  help an agent decide whether to open the note.\n- `updated`: bump it whenever the body changes.\n\n## Note body shape\n\n```markdown\n# Session tokens\n\n> Summary: One sentence (mirrors frontmatter summary).\n\n## Context\nWhy this note exists / when it applies.\n\n## Details\nThe actual content, in short H2/H3 sections.\n\n## Related\n- [Auth flow](auth-flow.md) — prerequisite: tokens are issued during the auth flow.\n- [Rate limiting](../api/rate-limiting.md) — see-also: tokens carry the rate-limit key.\n```\n\n- Use **relative links** between notes and annotate the relationship in a phrase.\n- Every link target should also appear in the note's `related` frontmatter.\n\n## INDEX.md (the single source of truth)\n\n`INDEX.md` has two parts: operating instructions for agents, and the registry.\n\n```markdown\n# Knowledge Base — Index\n\n## How to use this KB (for agents)\n1. Read this index first. Pick notes by their descriptions; open only those.\n2. To answer a question, prefer opening 1–3 specific notes over scanning everything.\n3. Cite the note `id` when you use information from it.\n\n## How to update this KB (for agents)\n- New idea → create a new note (atomic). Same idea changed → edit the note in place and bump `updated`.\n- Any create / rename / delete MUST update this registry and the topic's `_topic.md` in the same change.\n- Use only tags from the controlled vocabulary below; add a new tag here before using it.\n\n## Controlled tags\n`auth`, `security`, `billing`, `api`, `ops`   <!-- extend deliberately -->\n\n## Registry\n### auth\n- `20260618-auth-flow` — **Authentication flow** — `topics/auth/auth-flow.md` — How a user session is established end to end.\n- `20260618-session-tokens` — **Session tokens** — `topics/auth/session-tokens.md` — Token format, lifetime, and rotation.\n\n### billing\n- `20260618-invoicing` — **Invoicing** — `topics/billing/invoicing.md` — How invoices are generated and sent.\n```\n\nRegistry line format: `` `id` — **Title** — `path` — one-line description.``\n\n## _topic.md (topic map)\n\n```markdown\n# Auth\n\nNotes covering authentication, sessions, and access control.\n\n- [Authentication flow](auth-flow.md) — how a session is established.\n- [Session tokens](session-tokens.md) — token format, lifetime, rotation.\n```\n\n## Workflows\n\n### Create a new KB\n1. `create_directory` for the folder structure above.\n2. `write_file` `INDEX.md` with the instructions block, an empty controlled-tag\n   list, and an empty registry.\n3. Add the first topic folder + `_topic.md`, then the first note (each via `write_file`).\n4. Register the note in `INDEX.md` and link it from `_topic.md` — `edit_block`\n   both so you touch only the changed lines.\n\n### Add a note\n1. Pick or create the topic folder (`list_directory` to see what's there).\n2. `write_file` the note (kebab-case slug) with full frontmatter and the body shape.\n3. Add cross-links (and mirror them in `related`).\n4. Register it in `INDEX.md` and link it in `_topic.md` with `edit_block` — same change.\n\n### Update a note\n- Same idea, new information → `edit_block` the note in place, bump `updated`, and\n  `edit_block` the registry line if the scope changed.\n- Genuinely new idea → `write_file` a new atomic note instead of expanding this one.\n\n### Maintenance pass (run on demand)\nUse `start_search` (ripgrep) for text scans and `get_file_info` / `list_directory`\nfor existence checks — together they make this tractable at scale:\n- **Orphans** (no *inbound* links — outbound doesn't matter): `start_search` the\n  KB for the note's `id` and filename slug, then discount the self-matches that\n  always exist — the note's own file, `INDEX.md`, and its `_topic.md`. Anything\n  left is a genuine inbound reference; nothing left = orphan, so link it from a\n  relevant note/MOC or archive it.\n- **Broken links / drift**: don't infer resolution from a text hit — a string\n  existing doesn't mean the file does. Confirm each registry path and `related:`\n  target exists with `get_file_info` (or `list_directory` per topic), and that\n  every file on disk is registered. Use a text compare only for the\n  titles/summaries-out-of-sync half.\n- **Non-atomic notes**: notes that grew to cover multiple topics → split them.\n- **Duplicates**: near-identical notes → merge, keep one `id`, redirect links.\n- **Tag sprawl**: read the controlled list from `INDEX.md`, then `start_search`\n  the frontmatter `tags:` lines and flag any tag not on the list → reconcile.\nPull candidates in bulk with `read_multiple_files`, apply fixes with `edit_block`,\nand report what changed.\n\n## Checklist before finishing any KB edit\n- [ ] Every new/changed note has complete, valid frontmatter.\n- [ ] `id` is unique and unchanged; filename slug matches the id slug.\n- [ ] All links resolve and are mirrored in `related`.\n- [ ] `INDEX.md` registry and the topic `_topic.md` reflect the change.\n- [ ] Tags are from the controlled vocabulary.\n- [ ] `updated` bumped on every changed note.\n","plugins/claude/skills/terminal/SKILL.md":"---\nname: terminal\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Use Desktop Commander for terminal and command-line work, especially anything\n  that needs a shell whose state persists across turns: Python/Node REPLs,\n  database shells, dev servers and other long-running processes, SSH into remote\n  machines, and Windows PowerShell. Also handles everyday terminal tasks —\n  navigating folders, choosing the right command for the user's shell\n  (PowerShell, cmd, bash, zsh), running Docker/curl/cloud-CLI commands,\n  inspecting processes and ports, and saving recurring workflows as scripts —\n  even when the user doesn't say \"Desktop Commander\" or \"terminal.\" Reach for it\n  on pasted errors like \"command not found\", \"permission denied\", \"EADDRINUSE\",\n  \"address already in use\", \"npm ERR!\", \"ModuleNotFoundError\", or \"ENOENT\", and\n  on intents like \"what's using port 3000\", \"kill that process\", \"ssh into my\n  server\", or \"why won't my dev server start\". Works on Windows, macOS, and\n  Linux. Never run destructive commands without explicit confirmation.\n---\n\n# Terminal Command Assistant\n\nBe a calm, safe, cross-platform terminal copilot. The user may be an expert or\nmay be opening a terminal for the first time — read their cues and match them.\nExplain what a command does in plain language, run it through Desktop Commander,\nread the real output, and explain the result. The user's machine is the source\nof truth; never assume the OS, shell, or installed tools — detect them.\n\n## 1. Detect the environment first (do this before suggesting commands)\n\nDifferent OSes and shells need different commands. Before recommending or running\nanything non-trivial, call **`get_config`** (Desktop Commander) and read\n`systemInfo`:\n\n- `platformName` / `isWindows` / `isMacOS` / `isLinux` — which OS.\n- `defaultShell` and `uiHints.availableShells` — which shell to target.\n- `pythonInfo`, `nodeInfo` — whether Python/Node exist and their versions.\n- `blockedCommands` — commands Desktop Commander refuses to run (see §7).\n- `allowedDirectories` — `[]` means full access; otherwise commands/paths are\n  scoped to those directories.\n\nThis one cheap call prevents the most common mistake: handing a macOS user a\nPowerShell command, or assuming `python3` exists when it doesn't. Cache what you\nlearn for the rest of the session; re-check only if something seems off.\n\n## 2. Choosing the right command for the shell\n\nPick syntax by the detected shell, not by habit. Common equivalents:\n\n| Task | bash / zsh (macOS, Linux) | PowerShell (Windows) | cmd (Windows) |\n|---|---|---|---|\n| List files | `ls -la` | `Get-ChildItem` / `ls` | `dir` |\n| Current dir | `pwd` | `Get-Location` / `pwd` | `cd` |\n| Find file | `find . -name \"*.log\"` | `Get-ChildItem -Recurse -Filter *.log` | `dir /s *.log` |\n| Search text | `grep -r \"TODO\" .` | `Get-ChildItem -Recurse \\| Select-String TODO` | `findstr /s TODO *` |\n| Env var | `echo $HOME` | `$env:USERPROFILE` | `echo %USERPROFILE%` |\n| Set env (session) | `export KEY=val` | `$env:KEY=\"val\"` | `set KEY=val` |\n| Delete file | `rm file` | `Remove-Item file` | `del file` |\n| Copy | `cp a b` | `Copy-Item a b` | `copy a b` |\n| Path separator | `/` | `\\` (or `/`) | `\\` |\n\nNotes that bite people: Windows paths use `\\` and often need quoting when they\ncontain spaces; PowerShell and bash quote/escape differently; `~` expands in\nbash/zsh but not in cmd. When in doubt, prefer the cross-platform tool the user\nalready has (e.g. `python`, `node`, `git`) over shell-specific syntax.\n\n## 3. Running commands with Desktop Commander\n\n**Always use absolute paths.** Relative paths depend on a working directory that\nisn't carried between calls, so they fail unpredictably.\n\n- **One-shot commands** → `start_process` with the command and a timeout. It\n  returns output and a PID. If output is truncated or the process is still\n  running, call `read_process_output` with the PID for more.\n- **Long-running / interactive sessions** (REPLs, SSH, DB shells, `npm create`,\n  anything that prompts) → `start_process` to launch, then\n  `interact_with_process(pid, \"...\")` to send input and `read_process_output`\n  to read responses. End with `force_terminate` if it won't exit on its own.\n- Navigation is just inspection: use `list_directory` and `get_file_info`\n  rather than relying on a persistent `cd`. If you must `cd`, do it inside the\n  same command (`cd /abs/path && some-command`).\n\n### Interactive REPL pattern (the workhorse)\n\nThis keeps state across calls and is the right way to drive Python, Node, a\ndatabase shell, or SSH:\n\n```\nstart_process(\"python3 -i\")          # or \"node -i\", \"ssh user@host\", \"psql ...\"\ninteract_with_process(pid, \"import pandas as pd\")\ninteract_with_process(pid, \"df = pd.read_csv('/abs/path/data.csv')\")\ninteract_with_process(pid, \"print(df.describe())\")\nread_process_output(pid)             # pull more output if needed\n```\n\n## 4. Running specific CLIs\n\n- **Python**: prefer `python3 -i` as an interactive session for multi-step work;\n  for a quick one-off use `python3 /abs/script.py`. Check `pythonInfo.command`\n  from §1 (`python` vs `python3`).\n- **Node**: `node -i` for an interactive session, `node /abs/script.js` for a\n  one-off. `npm`/`pnpm`/`yarn` installs can be slow — give a generous timeout and\n  read remaining output rather than assuming failure.\n- **Docker**: `docker ps`, `docker logs <id>`, `docker compose up -d`. Long\n  builds/runs: launch then poll with `read_process_output`. Treat\n  `docker system prune`, `docker rm`, `docker volume rm` as destructive (§7).\n- **SSH**: launch with `start_process(\"ssh user@host\")`, then drive it with\n  `interact_with_process`. Remote destructive commands deserve the same\n  confirmation rules as local ones.\n- **curl / HTTP**: fine for inspection (`curl -i https://...`). Be careful with\n  anything that pipes a downloaded script straight into a shell\n  (`curl ... | sh`) — that's untrusted code execution; show it and confirm first.\n- **Cloud CLIs** (`aws`, `gcloud`, `az`): read-only commands (`describe`, `list`,\n  `get`) are safe to run; anything that creates, deletes, scales, or changes IAM\n  is high-impact — preview the exact command and confirm. Never echo secrets or\n  credentials into the terminal output.\n\n## 5. Inspecting processes and ports\n\n- **Processes**: `list_processes` (Desktop Commander) for a structured view, or\n  `ps aux` (Unix) / `Get-Process` (PowerShell). Stop one with `kill_process` by\n  PID (`force_terminate` ends a session you started).\n- **What's using a port**:\n  - macOS/Linux: `lsof -i :3000` or `lsof -nP -iTCP -sTCP:LISTEN`\n  - Linux: `ss -ltnp`\n  - Windows PowerShell: `Get-NetTCPConnection -LocalPort 3000`\n  - Windows cmd: `netstat -ano | findstr :3000` (then map the PID)\n- When killing a process, confirm the PID belongs to what the user thinks it\n  does — show the process line before terminating it.\n\n## 6. Explaining errors in plain English\n\nWhen a command fails, don't just retry blindly:\n\n1. Read the **actual** error text from the process output — the real cause is\n   usually in the last few lines, not the first.\n2. Name the cause in one plain sentence (e.g. \"the port's already taken\",\n   \"that package isn't installed\", \"permission denied because the file's owned\n   by root\").\n3. Give the concrete fix command for *their* shell, and explain what it does.\n4. If the fix is risky or guesswork, say so and offer the safe diagnostic first.\n\nCommon ones worth recognizing fast: `command not found` / `not recognized`\n(not installed or not on PATH), `EADDRINUSE` (port in use — see §5),\n`permission denied` / `EACCES` (ownership/permissions, not always fixable with\nelevation), `ENOENT` (path doesn't exist — check absolute path), `npm ERR!`\nblocks (read the resolved error line), non-zero exit codes (report the code).\n\n## 7. Safety: destructive commands and chaining\n\nDesktop Commander already refuses a built-in `blockedCommands` list (things like\n`sudo`, `mkfs`, `format`, `dd`, `fdisk`, `shutdown`, `reboot`, `diskpart`,\n`reg`, `net`). Read the live list from `get_config`; don't assume it.\n\nBeyond that list, treat these as **destructive — never run without the user's\nexplicit confirmation**, even if they'd technically succeed:\n\n- Recursive/forced deletes: `rm -rf`, `Remove-Item -Recurse -Force`, `del /s`,\n  `rd /s`.\n- Overwriting or moving over existing files; wildcard deletes.\n- Disk/format/partition operations.\n- `git reset --hard`, `git clean -fd`, `git push --force` (history/data loss).\n- Database drops/truncates: `DROP`, `TRUNCATE`, `DELETE` without a `WHERE`.\n- `chmod -R` / `chown -R` on broad paths, `killall`, mass process kills.\n- Cloud deletes/scaling/IAM changes; `docker ... prune`/`rm`/volume removal.\n- Anything piping remote content into a shell (`curl ... | sh`).\n\nFor these: show the exact command, explain in one line what it will irreversibly\ndo, and wait for a clear \"yes\". Prefer a dry run or a read-only check first\n(e.g. `ls` the glob before `rm` it, `--dry-run` where the tool supports it).\n\n**Chaining safely**: `&&` runs the next only if the previous succeeded; `;` runs\nregardless; `||` runs only on failure. PowerShell historically uses `;` to\nsequence (it supports `&&`/`||` in v7+, but not all hosts). Keep chains short.\nIf any step in a chain is destructive, don't chain it — run the safe steps,\nconfirm, then run the risky one alone so a failure can't cascade.\n\n## 8. Turning repeated workflows into scripts\n\nWhen the user runs the same sequence repeatedly (or asks to \"save this\"), offer\nto capture it as a script instead of retyping:\n\n- Unix → a `.sh` file with `#!/usr/bin/env bash` (or `zsh`), `set -euo pipefail`\n  for safety, comments explaining each step; make it executable (`chmod +x`).\n- Windows → a `.ps1` (PowerShell) script with comment-based help at the top.\n- Write the file with `write_file` to an absolute path the user chooses, echo\n  it back, and explain how to run it. Parameterize the bits that change\n  (paths, names) rather than hard-coding.\n- If the workflow needs to run on both Windows and Unix, either keep the logic\n  in a cross-platform tool (a small Python/Node script) or provide both a `.sh`\n  and a `.ps1`. Don't pretend one shell script runs everywhere.\n\nKeep scripts small and readable — the goal is something the user can open, trust,\nand edit later, not a black box.\n\n## Operating etiquette\n\n- Preview risky commands before running; run read-only inspection first.\n- Use absolute paths; respect `allowedDirectories`.\n- Never print secrets, tokens, or passwords into output; redact if they appear.\n- Match the user's level: explain jargon when they seem new, stay terse when\n  they're fluent.\n- After a failed command, diagnose from the real output before retrying.\n","skills/terminal/SKILL.md":"---\nname: terminal\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Use Desktop Commander for terminal and command-line work, especially anything\n  that needs a shell whose state persists across turns: Python/Node REPLs,\n  database shells, dev servers and other long-running processes, SSH into remote\n  machines, and Windows PowerShell. Also handles everyday terminal tasks —\n  navigating folders, choosing the right command for the user's shell\n  (PowerShell, cmd, bash, zsh), running Docker/curl/cloud-CLI commands,\n  inspecting processes and ports, and saving recurring workflows as scripts —\n  even when the user doesn't say \"Desktop Commander\" or \"terminal.\" Reach for it\n  on pasted errors like \"command not found\", \"permission denied\", \"EADDRINUSE\",\n  \"address already in use\", \"npm ERR!\", \"ModuleNotFoundError\", or \"ENOENT\", and\n  on intents like \"what's using port 3000\", \"kill that process\", \"ssh into my\n  server\", or \"why won't my dev server start\". Works on Windows, macOS, and\n  Linux. Never run destructive commands without explicit confirmation.\n---\n\n# Terminal Command Assistant\n\nBe a calm, safe, cross-platform terminal copilot. The user may be an expert or\nmay be opening a terminal for the first time — read their cues and match them.\nExplain what a command does in plain language, run it through Desktop Commander,\nread the real output, and explain the result. The user's machine is the source\nof truth; never assume the OS, shell, or installed tools — detect them.\n\n## 1. Detect the environment first (do this before suggesting commands)\n\nDifferent OSes and shells need different commands. Before recommending or running\nanything non-trivial, call **`get_config`** (Desktop Commander) and read\n`systemInfo`:\n\n- `platformName` / `isWindows` / `isMacOS` / `isLinux` — which OS.\n- `defaultShell` and `uiHints.availableShells` — which shell to target.\n- `pythonInfo`, `nodeInfo` — whether Python/Node exist and their versions.\n- `blockedCommands` — commands Desktop Commander refuses to run (see §7).\n- `allowedDirectories` — `[]` means full access; otherwise commands/paths are\n  scoped to those directories.\n\nThis one cheap call prevents the most common mistake: handing a macOS user a\nPowerShell command, or assuming `python3` exists when it doesn't. Cache what you\nlearn for the rest of the session; re-check only if something seems off.\n\n## 2. Choosing the right command for the shell\n\nPick syntax by the detected shell, not by habit. Common equivalents:\n\n| Task | bash / zsh (macOS, Linux) | PowerShell (Windows) | cmd (Windows) |\n|---|---|---|---|\n| List files | `ls -la` | `Get-ChildItem` / `ls` | `dir` |\n| Current dir | `pwd` | `Get-Location` / `pwd` | `cd` |\n| Find file | `find . -name \"*.log\"` | `Get-ChildItem -Recurse -Filter *.log` | `dir /s *.log` |\n| Search text | `grep -r \"TODO\" .` | `Get-ChildItem -Recurse \\| Select-String TODO` | `findstr /s TODO *` |\n| Env var | `echo $HOME` | `$env:USERPROFILE` | `echo %USERPROFILE%` |\n| Set env (session) | `export KEY=val` | `$env:KEY=\"val\"` | `set KEY=val` |\n| Delete file | `rm file` | `Remove-Item file` | `del file` |\n| Copy | `cp a b` | `Copy-Item a b` | `copy a b` |\n| Path separator | `/` | `\\` (or `/`) | `\\` |\n\nNotes that bite people: Windows paths use `\\` and often need quoting when they\ncontain spaces; PowerShell and bash quote/escape differently; `~` expands in\nbash/zsh but not in cmd. When in doubt, prefer the cross-platform tool the user\nalready has (e.g. `python`, `node`, `git`) over shell-specific syntax.\n\n## 3. Running commands with Desktop Commander\n\n**Always use absolute paths.** Relative paths depend on a working directory that\nisn't carried between calls, so they fail unpredictably.\n\n- **One-shot commands** → `start_process` with the command and a timeout. It\n  returns output and a PID. If output is truncated or the process is still\n  running, call `read_process_output` with the PID for more.\n- **Long-running / interactive sessions** (REPLs, SSH, DB shells, `npm create`,\n  anything that prompts) → `start_process` to launch, then\n  `interact_with_process(pid, \"...\")` to send input and `read_process_output`\n  to read responses. End with `force_terminate` if it won't exit on its own.\n- Navigation is just inspection: use `list_directory` and `get_file_info`\n  rather than relying on a persistent `cd`. If you must `cd`, do it inside the\n  same command (`cd /abs/path && some-command`).\n\n### Interactive REPL pattern (the workhorse)\n\nThis keeps state across calls and is the right way to drive Python, Node, a\ndatabase shell, or SSH:\n\n```\nstart_process(\"python3 -i\")          # or \"node -i\", \"ssh user@host\", \"psql ...\"\ninteract_with_process(pid, \"import pandas as pd\")\ninteract_with_process(pid, \"df = pd.read_csv('/abs/path/data.csv')\")\ninteract_with_process(pid, \"print(df.describe())\")\nread_process_output(pid)             # pull more output if needed\n```\n\n## 4. Running specific CLIs\n\n- **Python**: prefer `python3 -i` as an interactive session for multi-step work;\n  for a quick one-off use `python3 /abs/script.py`. Check `pythonInfo.command`\n  from §1 (`python` vs `python3`).\n- **Node**: `node -i` for an interactive session, `node /abs/script.js` for a\n  one-off. `npm`/`pnpm`/`yarn` installs can be slow — give a generous timeout and\n  read remaining output rather than assuming failure.\n- **Docker**: `docker ps`, `docker logs <id>`, `docker compose up -d`. Long\n  builds/runs: launch then poll with `read_process_output`. Treat\n  `docker system prune`, `docker rm`, `docker volume rm` as destructive (§7).\n- **SSH**: launch with `start_process(\"ssh user@host\")`, then drive it with\n  `interact_with_process`. Remote destructive commands deserve the same\n  confirmation rules as local ones.\n- **curl / HTTP**: fine for inspection (`curl -i https://...`). Be careful with\n  anything that pipes a downloaded script straight into a shell\n  (`curl ... | sh`) — that's untrusted code execution; show it and confirm first.\n- **Cloud CLIs** (`aws`, `gcloud`, `az`): read-only commands (`describe`, `list`,\n  `get`) are safe to run; anything that creates, deletes, scales, or changes IAM\n  is high-impact — preview the exact command and confirm. Never echo secrets or\n  credentials into the terminal output.\n\n## 5. Inspecting processes and ports\n\n- **Processes**: `list_processes` (Desktop Commander) for a structured view, or\n  `ps aux` (Unix) / `Get-Process` (PowerShell). Stop one with `kill_process` by\n  PID (`force_terminate` ends a session you started).\n- **What's using a port**:\n  - macOS/Linux: `lsof -i :3000` or `lsof -nP -iTCP -sTCP:LISTEN`\n  - Linux: `ss -ltnp`\n  - Windows PowerShell: `Get-NetTCPConnection -LocalPort 3000`\n  - Windows cmd: `netstat -ano | findstr :3000` (then map the PID)\n- When killing a process, confirm the PID belongs to what the user thinks it\n  does — show the process line before terminating it.\n\n## 6. Explaining errors in plain English\n\nWhen a command fails, don't just retry blindly:\n\n1. Read the **actual** error text from the process output — the real cause is\n   usually in the last few lines, not the first.\n2. Name the cause in one plain sentence (e.g. \"the port's already taken\",\n   \"that package isn't installed\", \"permission denied because the file's owned\n   by root\").\n3. Give the concrete fix command for *their* shell, and explain what it does.\n4. If the fix is risky or guesswork, say so and offer the safe diagnostic first.\n\nCommon ones worth recognizing fast: `command not found` / `not recognized`\n(not installed or not on PATH), `EADDRINUSE` (port in use — see §5),\n`permission denied` / `EACCES` (ownership/permissions, not always fixable with\nelevation), `ENOENT` (path doesn't exist — check absolute path), `npm ERR!`\nblocks (read the resolved error line), non-zero exit codes (report the code).\n\n## 7. Safety: destructive commands and chaining\n\nDesktop Commander already refuses a built-in `blockedCommands` list (things like\n`sudo`, `mkfs`, `format`, `dd`, `fdisk`, `shutdown`, `reboot`, `diskpart`,\n`reg`, `net`). Read the live list from `get_config`; don't assume it.\n\nBeyond that list, treat these as **destructive — never run without the user's\nexplicit confirmation**, even if they'd technically succeed:\n\n- Recursive/forced deletes: `rm -rf`, `Remove-Item -Recurse -Force`, `del /s`,\n  `rd /s`.\n- Overwriting or moving over existing files; wildcard deletes.\n- Disk/format/partition operations.\n- `git reset --hard`, `git clean -fd`, `git push --force` (history/data loss).\n- Database drops/truncates: `DROP`, `TRUNCATE`, `DELETE` without a `WHERE`.\n- `chmod -R` / `chown -R` on broad paths, `killall`, mass process kills.\n- Cloud deletes/scaling/IAM changes; `docker ... prune`/`rm`/volume removal.\n- Anything piping remote content into a shell (`curl ... | sh`).\n\nFor these: show the exact command, explain in one line what it will irreversibly\ndo, and wait for a clear \"yes\". Prefer a dry run or a read-only check first\n(e.g. `ls` the glob before `rm` it, `--dry-run` where the tool supports it).\n\n**Chaining safely**: `&&` runs the next only if the previous succeeded; `;` runs\nregardless; `||` runs only on failure. PowerShell historically uses `;` to\nsequence (it supports `&&`/`||` in v7+, but not all hosts). Keep chains short.\nIf any step in a chain is destructive, don't chain it — run the safe steps,\nconfirm, then run the risky one alone so a failure can't cascade.\n\n## 8. Turning repeated workflows into scripts\n\nWhen the user runs the same sequence repeatedly (or asks to \"save this\"), offer\nto capture it as a script instead of retyping:\n\n- Unix → a `.sh` file with `#!/usr/bin/env bash` (or `zsh`), `set -euo pipefail`\n  for safety, comments explaining each step; make it executable (`chmod +x`).\n- Windows → a `.ps1` (PowerShell) script with comment-based help at the top.\n- Write the file with `write_file` to an absolute path the user chooses, echo\n  it back, and explain how to run it. Parameterize the bits that change\n  (paths, names) rather than hard-coding.\n- If the workflow needs to run on both Windows and Unix, either keep the logic\n  in a cross-platform tool (a small Python/Node script) or provide both a `.sh`\n  and a `.ps1`. Don't pretend one shell script runs everywhere.\n\nKeep scripts small and readable — the goal is something the user can open, trust,\nand edit later, not a black box.\n\n## Operating etiquette\n\n- Preview risky commands before running; run read-only inspection first.\n- Use absolute paths; respect `allowedDirectories`.\n- Never print secrets, tokens, or passwords into output; redact if they appear.\n- Match the user's level: explain jargon when they seem new, stay terse when\n  they're fluent.\n- After a failed command, diagnose from the real output before retrying.\n","skills/computer-health-check/SKILL.md":"---\nname: computer-health-check\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Run a comprehensive, read-only health check on the user's computer and return a\n  scored chat summary with prioritized, plain-English recommendations and safe cleanup\n  suggestions. Use this whenever the user wants to check their computer's health, speed\n  it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check\n  battery health and wear, audit login & startup items, see pending updates, or asks for\n  a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop\n  healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan\n  so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\".\n  Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a\n  real local shell (start_process / interact_with_process) and is strictly read-only by\n  default — it never needs sudo and only performs cleanups the user explicitly approves.\n---\n\n# Computer Health Check\n\n## What this skill does\n\nGive the user a fast, trustworthy picture of their computer's health and a short list\nof actions worth taking — the way a good technician would: look first, explain plainly,\nfix only with permission.\n\nIt runs entirely through Desktop Commander's local shell, gathers a batch of **read-only**\ndiagnostics, scores each area, prints a concise summary **in the chat**, and then offers\ncleanup suggestions the user can approve one by one.\n\n## The safety contract (read this first)\n\nThis is the part that makes users trust the skill, so honor it strictly:\n\n- **Read-only by default.** The collection phase only *observes* (sizes, counts, status).\n  It changes nothing.\n- **Never use `sudo` or elevation.** DC blocks `sudo`, `shutdown`, `reboot`, `dd`, `mount`,\n  `mkfs`, `diskpart`, etc. for good reason. Every check below is designed to work without\n  them. If something seems to need elevation, skip it and say so — don't try to work around\n  the block.\n- **Cleanups are opt-in.** You may *suggest* cleanups freely, but only *execute* one after\n  the user explicitly approves that specific action, and only show the exact command first.\n- **Prefer reversible, non-destructive actions.** Emptying caches that regenerate, clearing\n  a package-manager download cache, or emptying Trash are fine to offer. Deleting user\n  documents, uninstalling apps, or editing system files are not — suggest those, let the\n  user do them.\n\n## Workflow\n\n### Step 1 — Detect the OS\n\nDetermine the platform before doing anything else, because the commands differ.\n\n- Quickest: read Desktop Commander's config (`get_config`) and use the\n  `systemInfo.isMacOS` / `isWindows` / `isLinux` booleans (or `platformName`) to\n  pick the platform.\n- Or run `uname` (macOS/Linux) — if it fails, assume Windows.\n\nThen open the matching reference file and use its command set:\n\n- macOS → [`references/macos.md`](references/macos.md)\n- Windows → [`references/windows.md`](references/windows.md)\n- Linux → [`references/linux.md`](references/linux.md)\n\nRead **only** the one that matches. Each file contains a single batched collection script\nplus interpretation notes and cleanup commands.\n\n### Step 2 — Collect (read-only)\n\nRun the batched collection script from the reference file with `start_process`. Batching\neverything into one call is much faster than many small calls and keeps the output tidy.\n\nGuidance:\n- Keep outputs bounded (`head`, `Select-Object -First`, etc.) so a long process list or\n  file listing doesn't flood the response.\n- Skip the genuinely slow / network checks (full OS-update list, internet speed test) on the\n  first pass unless the user asked about updates or network. Mention they're available.\n- If a single command errors (e.g., a tool isn't installed), continue — partial data is fine.\n\n### Step 3 — Score each area\n\nRate each category 🟢 Good / 🟡 Watch / 🔴 Act using the rubric below, then compute a simple\noverall score. Start at 100 and subtract 8 per 🟡 and 18 per 🔴; floor at 0. Report the\nnumber and a one-word verdict (90+ Excellent, 75–89 Good, 60–74 Fair, <60 Needs attention).\n\n| Area | 🟢 Good | 🟡 Watch | 🔴 Act |\n|---|---|---|---|\n| Free disk space | >20% free | 10–20% | <10% |\n| Disk health (SMART) | Verified / OK / PASSED | — | failing / not supported & errors present |\n| Memory pressure | low swap, free pages healthy | noticeable swap/compression | heavy swapping, near-zero free |\n| Battery (laptops) | ≥80% max capacity, Normal | 70–80% | <70% or \"Service/Replace\" |\n| Maintenance | uptime <7d, no pending updates | uptime 7–30d or minor updates | uptime >30d or security updates pending |\n| Startup load | few third-party login items | moderate | many heavy third-party agents |\n| Live resource hogs | nothing >50% at idle | one sustained heavy process | multiple / runaway processes |\n\nBattery is laptop-only — skip it on desktops/VMs. Reclaimable space is reported as an\ninformational figure, not scored.\n\n### Step 4 — Report in the chat\n\nUse this exact structure. Keep it tight and scannable — this is the deliverable.\n\n```\n🖥️  Health Check — <Model>, <OS version>     Score: <N>/100 (<verdict>)\n\n🟢/🟡/🔴  Storage      — <free> free of <total> (<%>). Reclaimable: ~<X> GB\n🟢/🟡/🔴  Memory       — <one-line state>\n🟢/🟡/🔴  Battery      — <cycles> cycles, <max capacity>%, <condition>\n🟢/🟡/🔴  Maintenance  — up <days>d, <updates state>\n🟢/🟡/🔴  Startup      — <count> login items (<notable ones>)\n🟢/🟡/🔴  Right now    — top: <proc> <cpu%>, <proc> <cpu%>\n\nTop recommendations\n1. <highest-impact action> (<expected benefit, e.g. frees ~13 GB>)\n2. <next>\n3. <next>\n```\n\nList at most the 3–5 highest-impact recommendations, ordered by benefit. Don't dump every\nfinding — the goal is signal, not a wall of text.\n\n### Step 5 — Suggest cleanups, execute only on approval\n\nFor each recommendation that maps to a concrete command (see the reference file's \"Cleanup\"\nsection), offer it and show the exact command. Then:\n\n- **Safe, reversible** (offer to run on a yes): empty Trash, package-manager cache cleanup\n  (`brew cleanup`, `npm cache clean`), clearing a regenerating user cache folder. (On Linux,\n  `apt-get clean` / `dnf clean` need root — suggest, don't auto-run.)\n- **Needs the user to decide / act** (suggest, don't auto-run): disabling login items,\n  installing OS updates (requires restart), uninstalling apps, deleting files in Downloads.\n- **Never**: anything requiring sudo/admin, removing system files, disk/partition operations.\n\nWhen the user approves a safe action, run it, then report what changed (e.g., space freed).\nRe-running Step 2's storage check afterward is a nice confirmation.\n\n## Recommendation rules (findings → advice)\n\nThese are the high-value mappings; adapt the wording to the platform.\n\n- **Uptime > 30 days** → \"Restart your computer — it's been up <N> days. A reboot clears\n  memory and applies pending updates.\" (Highest ROI, lowest effort.)\n- **Pending OS/security updates** → platform update step; flag security updates as higher\n  priority.\n- **Free space < 15%** → lead with the biggest reclaimable buckets you measured.\n- **Large Downloads / Caches / Trash** → empty Trash; review largest Downloads items by name;\n  clear caches that regenerate.\n- **Package manager has many outdated items / big cache** → `upgrade` + cache cleanup.\n- **Battery max capacity < 80%** → explain wear is normal; consider a battery service if it's\n  affecting runtime.\n- **Many third-party startup agents** → name them and suggest disabling the ones the user\n  doesn't recognize/need (point to System Settings / Task Manager — don't edit them directly).\n- **A process pinned high at idle** → name it and suggest quitting/investigating.\n\n## Notes & pitfalls\n\n- **Don't assume — measure.** Always run the commands and report real numbers. Never\n  fabricate sizes, cycle counts, or statuses.\n- **Bounded output.** Process and file listings can be huge; always cap them.\n- **Optional deep checks** (mention, run on request): internet speed test, full update list,\n  per-folder disk scan of the whole home directory, crash-report trend analysis.\n- **Privacy.** This reads local system metadata only. Don't send anything off the machine;\n  the public-IP check is optional and should be labeled.\n- **Cross-platform parity.** The three reference files mirror the same categories so the\n  report looks the same regardless of OS.\n","plugins/cursor/skills/ai-tools-setup/SKILL.md":"# ai-tools-setup\n\nPath: `plugins/cursor/skills/ai-tools-setup/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/SKILL.md)","plugins/cursor/skills/computer-health-check/SKILL.md":"# computer-health-check\n\nPath: `plugins/cursor/skills/computer-health-check/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/SKILL.md)","plugins/cursor/skills/desktop-commander-overview/SKILL.md":"# desktop-commander-overview\n\nPath: `plugins/cursor/skills/desktop-commander-overview/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/desktop-commander-overview/SKILL.md)","plugins/cursor/skills/knowledge-base/SKILL.md":"# knowledge-base\n\nPath: `plugins/cursor/skills/knowledge-base/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/knowledge-base/SKILL.md)","plugins/cursor/skills/obsidian-vault/SKILL.md":"# obsidian-vault\n\nPath: `plugins/cursor/skills/obsidian-vault/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/obsidian-vault/SKILL.md)","plugins/cursor/skills/terminal/SKILL.md":"# terminal\n\nPath: `plugins/cursor/skills/terminal/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/terminal/SKILL.md)","plugin.json":"# Plugin Plugin Manifest\n\nPath: `plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugin.json)","smithery.yaml":"# Model Context Protocol (MCP) Configuration\n\nPath: `smithery.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/smithery.yaml)",".claude-plugin/marketplace.json":"# Claude Plugin Marketplace Catalog\n\nPath: `.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/.claude-plugin/marketplace.json)",".cursor-plugin/marketplace.json":"# Claude Plugin Marketplace Catalog\n\nPath: `.cursor-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/.cursor-plugin/marketplace.json)","plugins/claude/README.md":"# claude Documentation\n\nPath: `plugins/claude/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/README.md)","plugins/cursor/README.md":"# cursor Documentation\n\nPath: `plugins/cursor/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/README.md)","plugins/claude/.claude-plugin/plugin.json":"# claude-plugin Plugin Manifest\n\nPath: `plugins/claude/.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/.claude-plugin/plugin.json)","plugins/cursor/.cursor-plugin/plugin.json":"# cursor-plugin Plugin Manifest\n\nPath: `plugins/cursor/.cursor-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/.cursor-plugin/plugin.json)","skills/ai-tools-setup/references/claude-desktop-mcp.md":"# References Skill\n\nPath: `skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/claude-desktop-mcp.md)","skills/ai-tools-setup/references/hermes.md":"# References Skill\n\nPath: `skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/hermes.md)","skills/ai-tools-setup/references/openclaw.md":"# References Skill\n\nPath: `skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/openclaw.md)","skills/computer-health-check/references/linux.md":"# References Skill\n\nPath: `skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/linux.md)","skills/computer-health-check/references/macos.md":"# References Skill\n\nPath: `skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/macos.md)","skills/computer-health-check/references/windows.md":"# References Skill\n\nPath: `skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/windows.md)","plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md)","plugins/claude/skills/ai-tools-setup/references/hermes.md":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/hermes.md)","plugins/claude/skills/ai-tools-setup/references/openclaw.md":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/openclaw.md)","plugins/claude/skills/computer-health-check/references/linux.md":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/linux.md)","plugins/claude/skills/computer-health-check/references/macos.md":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/macos.md)","plugins/claude/skills/computer-health-check/references/windows.md":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/windows.md)","plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md)","plugins/cursor/skills/ai-tools-setup/references/hermes.md":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/hermes.md)","plugins/cursor/skills/ai-tools-setup/references/openclaw.md":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/openclaw.md)","plugins/cursor/skills/computer-health-check/references/linux.md":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/linux.md)","plugins/cursor/skills/computer-health-check/references/macos.md":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/macos.md)","plugins/cursor/skills/computer-health-check/references/windows.md":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/windows.md)"},"files":{"skills/knowledge-base/SKILL.md":"---\nname: knowledge-base\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Create and maintain a Markdown knowledge base that any AI agent can read,\n  search, and update. Use when the user wants to start a knowledge base, add or\n  update notes, organize docs/notes for an agent or LLM to consume, build an\n  index of notes, or run a cleanup/maintenance pass on an existing MD knowledge\n  base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index\n  of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the\n  KB\".\n---\n\n# Knowledge Base (Markdown, agent-readable)\n\nA knowledge base (KB) here is a folder of Markdown files designed so **any** AI\nagent can navigate it without a vector database: the agent reads one index file,\npicks the relevant notes by their descriptions, and opens only those. Keep the\nwhole KB readable and the index lean — the index is what gets loaded into\ncontext, so it must be high-signal.\n\nApply the rules below when creating a new KB, adding/editing notes, or doing a\nmaintenance pass. When the user's request is ambiguous (new KB vs. add note vs.\ncleanup), ask which one before acting.\n\n## Core principles (the \"why\")\n\n1. **Index-first navigation.** The index is a map, not a container. An agent\n   reads `INDEX.md`, selects notes by their one-line descriptions, then opens\n   only those files. No note is \"in\" the KB unless it's registered in the index.\n2. **Atomicity.** One topic per note. If a title needs an \"and\", it's probably\n   two notes. Atomic notes are easier to find, link, and reuse.\n3. **Stable IDs.** Every note has a permanent ID that never changes and is never\n   reused, so links survive renames and moves.\n4. **Linked with reason.** When two notes connect, state *why* (prerequisite,\n   supports, contrasts, see-also). Connections carry as much value as the notes.\n5. **Lean instructions.** Keep `INDEX.md` instructions short and high-signal —\n   it competes for the agent's context budget. Bodies load on demand.\n6. **Structured for retrieval.** Clear H1 title and H2/H3 sections so an agent\n   can grab the relevant slice of a note, not the whole thing.\n\n## Folder structure (nested by topic)\n\n```\nknowledge-base/\n  INDEX.md                 # entry point: instructions + full note registry\n  topics/\n    <topic>/\n      _topic.md            # topic map: what this topic covers + its notes\n      <slug>.md            # one atomic note\n  assets/                  # images / attachments referenced by notes\n```\n\n- Topic folders are short, lowercase nouns (`auth`, `billing`, `deploys`).\n- `_topic.md` is the topic-level map of content (MOC): a short intro plus links\n  to every note in that topic. It is a convenience view; `INDEX.md` remains the\n  source of truth.\n\n## Naming rules\n\n- Lowercase **kebab-case**, predictable and greppable: `topics/auth/session-tokens.md`.\n- No spaces, no uppercase, no dates in filenames (dates live in frontmatter).\n- The filename slug should match the note's `id` slug portion.\n\n## Required frontmatter (every note)\n\n```yaml\n---\nid: 20260618-session-tokens     # ID scheme: YYYYMMDD-slug. Stable. Never reuse or change.\ntitle: Session tokens           # human title, also the note's H1\ntags: [auth, security]          # only tags from the controlled list in INDEX.md\ncreated: 2026-06-18\nupdated: 2026-06-18\nrelated: [20260618-auth-flow]    # IDs of linked notes\nsummary: One scannable sentence describing what this note covers.\n---\n```\n\n- `id`: `YYYYMMDD-slug`. Sortable, readable, stable. Different-titled same-day\n  notes differ by slug; if two same-day notes would collide on the same slug,\n  append `-2`, `-3`, … (check the `INDEX.md` registry before assigning). Once\n  assigned, the id is permanent.\n- `summary`: this exact sentence is what goes in the index registry — write it to\n  help an agent decide whether to open the note.\n- `updated`: bump it whenever the body changes.\n\n## Note body shape\n\n```markdown\n# Session tokens\n\n> Summary: One sentence (mirrors frontmatter summary).\n\n## Context\nWhy this note exists / when it applies.\n\n## Details\nThe actual content, in short H2/H3 sections.\n\n## Related\n- [Auth flow](auth-flow.md) — prerequisite: tokens are issued during the auth flow.\n- [Rate limiting](../api/rate-limiting.md) — see-also: tokens carry the rate-limit key.\n```\n\n- Use **relative links** between notes and annotate the relationship in a phrase.\n- Every link target should also appear in the note's `related` frontmatter.\n\n## INDEX.md (the single source of truth)\n\n`INDEX.md` has two parts: operating instructions for agents, and the registry.\n\n```markdown\n# Knowledge Base — Index\n\n## How to use this KB (for agents)\n1. Read this index first. Pick notes by their descriptions; open only those.\n2. To answer a question, prefer opening 1–3 specific notes over scanning everything.\n3. Cite the note `id` when you use information from it.\n\n## How to update this KB (for agents)\n- New idea → create a new note (atomic). Same idea changed → edit the note in place and bump `updated`.\n- Any create / rename / delete MUST update this registry and the topic's `_topic.md` in the same change.\n- Use only tags from the controlled vocabulary below; add a new tag here before using it.\n\n## Controlled tags\n`auth`, `security`, `billing`, `api`, `ops`   <!-- extend deliberately -->\n\n## Registry\n### auth\n- `20260618-auth-flow` — **Authentication flow** — `topics/auth/auth-flow.md` — How a user session is established end to end.\n- `20260618-session-tokens` — **Session tokens** — `topics/auth/session-tokens.md` — Token format, lifetime, and rotation.\n\n### billing\n- `20260618-invoicing` — **Invoicing** — `topics/billing/invoicing.md` — How invoices are generated and sent.\n```\n\nRegistry line format: `` `id` — **Title** — `path` — one-line description.``\n\n## _topic.md (topic map)\n\n```markdown\n# Auth\n\nNotes covering authentication, sessions, and access control.\n\n- [Authentication flow](auth-flow.md) — how a session is established.\n- [Session tokens](session-tokens.md) — token format, lifetime, rotation.\n```\n\n## Workflows\n\n### Create a new KB\n1. `create_directory` for the folder structure above.\n2. `write_file` `INDEX.md` with the instructions block, an empty controlled-tag\n   list, and an empty registry.\n3. Add the first topic folder + `_topic.md`, then the first note (each via `write_file`).\n4. Register the note in `INDEX.md` and link it from `_topic.md` — `edit_block`\n   both so you touch only the changed lines.\n\n### Add a note\n1. Pick or create the topic folder (`list_directory` to see what's there).\n2. `write_file` the note (kebab-case slug) with full frontmatter and the body shape.\n3. Add cross-links (and mirror them in `related`).\n4. Register it in `INDEX.md` and link it in `_topic.md` with `edit_block` — same change.\n\n### Update a note\n- Same idea, new information → `edit_block` the note in place, bump `updated`, and\n  `edit_block` the registry line if the scope changed.\n- Genuinely new idea → `write_file` a new atomic note instead of expanding this one.\n\n### Maintenance pass (run on demand)\nUse `start_search` (ripgrep) for text scans and `get_file_info` / `list_directory`\nfor existence checks — together they make this tractable at scale:\n- **Orphans** (no *inbound* links — outbound doesn't matter): `start_search` the\n  KB for the note's `id` and filename slug, then discount the self-matches that\n  always exist — the note's own file, `INDEX.md`, and its `_topic.md`. Anything\n  left is a genuine inbound reference; nothing left = orphan, so link it from a\n  relevant note/MOC or archive it.\n- **Broken links / drift**: don't infer resolution from a text hit — a string\n  existing doesn't mean the file does. Confirm each registry path and `related:`\n  target exists with `get_file_info` (or `list_directory` per topic), and that\n  every file on disk is registered. Use a text compare only for the\n  titles/summaries-out-of-sync half.\n- **Non-atomic notes**: notes that grew to cover multiple topics → split them.\n- **Duplicates**: near-identical notes → merge, keep one `id`, redirect links.\n- **Tag sprawl**: read the controlled list from `INDEX.md`, then `start_search`\n  the frontmatter `tags:` lines and flag any tag not on the list → reconcile.\nPull candidates in bulk with `read_multiple_files`, apply fixes with `edit_block`,\nand report what changed.\n\n## Checklist before finishing any KB edit\n- [ ] Every new/changed note has complete, valid frontmatter.\n- [ ] `id` is unique and unchanged; filename slug matches the id slug.\n- [ ] All links resolve and are mirrored in `related`.\n- [ ] `INDEX.md` registry and the topic `_topic.md` reflect the change.\n- [ ] Tags are from the controlled vocabulary.\n- [ ] `updated` bumped on every changed note.\n","skills/obsidian-vault/SKILL.md":"---\nname: obsidian-vault\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties,\n  dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user\n  explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or\n  an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases\n  plugins, or Obsidian Properties. Within that Obsidian context it covers\n  creating Maps of Content, adding/fixing wikilinks, finding orphan notes,\n  normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing\n  folders, deduplicating or renaming notes, and preparing the vault for AI use.\n  Do NOT use this skill for generic note-taking, Markdown, or knowledge-base\n  requests that don't mention Obsidian.\n---\n\n# Obsidian Vault Assistant\n\nHelp the user organize and maintain an Obsidian vault: build navigation with\nMOCs and wikilinks, normalize metadata, generate dashboards, find and fix\norphans, organize folders, deduplicate/rename, and prepare the vault for AI use.\n\nObsidian-specific facts that shape every rule here:\n- Links are **wikilinks** resolved by **filename**, not path: `[[Note title]]`.\n  Renaming a note auto-updates links inside Obsidian, but moving files outside\n  Obsidian breaks them — always rename via Obsidian when possible.\n- Metadata is **Properties** (YAML frontmatter) at the top of a note.\n- Dashboards come from **Dataview** (query language, read-only, flexible) or\n  **Bases** (native, editable tables, fast on big vaults, properties-only).\n\nBefore acting, confirm the vault's root folder and whether the user has the\nDataview plugin installed (Bases is built in since Obsidian 1.9). When a request\nis ambiguous (organize vs. clean up vs. dashboard), ask which task.\n\n## Wikilinks\n\n- Basic: `[[Three laws of motion]]` — resolves by filename, no extension/path.\n- Display text (pipe): `[[atomic-habits|James Clear — Atomic Habits]]`.\n- Heading link: `[[Note#Section]]`. Block link: `[[Note#^block-id]]`.\n- Embed/transclude: `![[Note]]`, `![[Note#Section]]`, `![[image.png]]`.\n- Aliases: add an `aliases` property so the note resolves under other names.\n- Avoid `# | ^ : %` and `[ ]` in filenames — they have special meaning in links.\n- Prefer wikilinks for internal navigation; use standard Markdown links only if\n  the vault is also published to a tool that can't parse wikilinks.\n\nWhen adding links, also surface **unlinked mentions**: if a note's title appears\nas plain text in other notes, convert those to wikilinks.\n\n## Maps of Content (MOCs)\n\nA MOC is a note that links the related notes on a topic — the vault's navigation\nlayer (more flexible than folders or tags, and needs no institutional knowledge).\n\nConventions:\n- Name MOCs clearly and tag them: `tags: [moc]` (or a `type: moc` property) so\n  every MOC is itself discoverable.\n- Keep a top-level **Home / Index MOC** that links to all topic MOCs.\n- A MOC holds a short intro plus grouped wikilinks; it can be hand-curated or\n  auto-generated with a Dataview/Bases query (see Dashboards).\n\nMOC template:\n```markdown\n---\ntype: moc\ntags: [moc]\nupdated: 2026-06-18\n---\n# Auth — Map of Content\n\nNotes on authentication, sessions, and access control.\n\n## Core\n- [[auth-flow]]\n- [[session-tokens]]\n\n## Related MOCs\n- [[security-moc]]\n```\n\n## Frontmatter / Properties\n\nAdd a consistent property block to every note. Recommended baseline:\n```yaml\n---\ntitle: Session tokens\naliases: [tokens, session token]\ntags: [auth, security]\ntype: note            # note | moc | dashboard | template | person | project\ncreated: 2026-06-18\nupdated: 2026-06-18\nstatus: evergreen     # seedling | growing | evergreen\nrelated: [\"[[auth-flow]]\"]\n---\n```\nRules:\n- Use a **controlled tag vocabulary** — decide tags up front and reuse them;\n  nested tags (`auth/tokens`) are fine. Don't let tags sprawl.\n- `tags` use no `#` in frontmatter. Dates in ISO `YYYY-MM-DD`.\n- Keep property **names and types consistent across the vault** — Bases and\n  Dataview both depend on this. When normalizing, pick one name per concept\n  (e.g. `created`, not `created`/`date`/`Created`) and migrate the rest.\n\n## Dashboards\n\nPick the engine based on the user's setup:\n\n**Bases** (native, editable, fast — best for operational boards):\n- Create a `.base` file or a `base` code block; it builds table/board views from\n  properties. Each cell edits the underlying note's frontmatter.\n- Use for task lists, reading lists, project pipelines, anything point-and-click.\n\n**Dataview** (plugin, read-only, most flexible — best for reports/auto-MOCs):\n```dataview\nTABLE status, updated, tags\nFROM #auth\nWHERE type = \"note\"\nSORT updated DESC\n```\nAuto-MOC of everything in a topic:\n```dataview\nLIST FROM #auth WHERE type != \"moc\" SORT file.name ASC\n```\nRecently updated:\n```dataview\nTABLE updated FROM \"\" WHERE updated >= date(today) - dur(7 days) SORT updated DESC\n```\nNote: large vaults can lag with heavy Dataview queries — prefer Bases there.\n\n## Orphan notes & link hygiene\n\nAn orphan is a note with no inbound or outbound links. To find and fix:\n1. **From Desktop Commander** (no app needed, scales to big vaults): `start_search`\n   the vault for `[[ ]]` links to each note's title — zero hits means no inbound\n   links (an *unlinked* note); to confirm a true orphan (no inbound **and** no\n   outbound), also scan the note's own body for `[[...]]`. The same searches\n   surface **unlinked mentions** (the title as plain text, not wrapped in `[[ ]]`)\n   and **broken links** (a `[[target]]` whose file is missing).\n2. **Graph view** (Cmd/Ctrl+G): orphans float as isolated dots at the edges.\n3. **Dataview** query for notes with no links:\n   ```dataview\n   LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0\n   ```\n4. For each orphan: link it from a relevant MOC/note (`edit_block` to insert the\n   wikilink), tag it `#needs-link` for a batch pass, or archive if obsolete.\n5. Convert unlinked mentions into real wikilinks and fix broken links with\n   `edit_block`; resolve the rest from Obsidian's right sidebar.\n\n## Folder organization\n\n- Folders are for coarse buckets; **MOCs + tags do the real organizing**. Don't\n  over-nest folders.\n- A workable layout:\n  ```\n  00-inbox/        # unsorted captures\n  10-notes/        # atomic notes\n  20-mocs/         # maps of content\n  30-projects/\n  90-assets/       # images/attachments\n  99-archive/\n  templates/\n  ```\n- Set the attachment folder in Settings so embeds land in `90-assets/`.\n- **Moves/renames must happen inside Obsidian** so wikilinks update automatically\n  — do **not** use `move_file` for these, it breaks every `[[link]]`. From Desktop\n  Commander, only edit *content* (`edit_block` / `write_file`); leave moving and\n  renaming to the user in the app.\n\n## Deduplicate & rename\n\n- **Duplicates**: `start_search` titles/aliases to find near-identical notes;\n  merge into one, keep the most-linked filename, copy unique content with\n  `edit_block`, then `start_search` for inbound `[[links]]` to the discarded note\n  and repoint them before deleting it.\n- **Renames**: do them inside Obsidian (Rename note / `F2`) so backlinks update —\n  not via `move_file`. Keep an `aliases` entry for the old name if it was widely\n  referenced.\n- Standardize filenames: pick one convention (kebab-case or Title Case) and\n  apply it consistently; avoid the special characters listed above.\n\n## Prepare the vault for AI use\n\n- Ensure **consistent frontmatter** (same property names/types) so an agent can\n  filter and reason over metadata.\n- Maintain a **Home/Index MOC** as the single entry point an agent reads first.\n- Write a one-line `summary`/`description` property per note for quick scanning.\n- Reduce orphans and broken links so the link graph is a reliable map.\n- Keep notes **atomic** (one idea each) — easier for an agent to retrieve and cite.\n- Consider exporting wikilinks to standard Markdown links if the AI tool can't\n  parse `[[ ]]`.\n\n## Workflows\n\n- **Build navigation**: `write_file` topic MOCs → `edit_block` notes to link them\n  in → refresh the Home MOC → convert unlinked mentions.\n- **Normalize metadata**: `read_multiple_files` to audit properties → pick\n  canonical names → `edit_block` each note → add missing baseline properties.\n- **Cleanup pass**: `start_search` for orphans, broken links, and unlinked\n  mentions → dedupe → report what changed (renames stay in Obsidian).\n- **Dashboard**: confirm Dataview vs. Bases → `write_file` the view from properties/tags.\n\n## Checklist before finishing\n- [ ] New/changed notes have consistent frontmatter (canonical property names).\n- [ ] Renames/moves done inside Obsidian; no links broken.\n- [ ] New notes linked from at least one MOC or note (no new orphans).\n- [ ] Tags drawn from the controlled vocabulary.\n- [ ] Dashboards reference properties/tags that actually exist.\n- [ ] `updated` bumped on changed notes.\n","skills/ai-tools-setup/SKILL.md":"---\nname: ai-tools-setup\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Set up, connect, validate, and repair Claude Desktop and MCP servers using\n  Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json,\n  getting MCP servers to connect, and diagnosing local AI tooling. Use when a\n  user wants to install, configure, connect, validate, or fix Claude Desktop, an\n  MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the\n  symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP\n  server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP\n  server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent\n  won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also\n  covers local agent gateways like OpenClaw and Hermes.\n---\n\n# AI Tools Setup Assistant\n\nHelp users install, configure, and repair AI tooling on their own machine using\nDesktop Commander's file and terminal tools. The work is usually\n**configure-and-troubleshoot**, not clean installs — assume something already\nexists and may be half-broken.\n\n## Golden rules (read before doing anything)\n\n1. **Detect the OS and shell first.** Read `get_config` and use its `systemInfo`\n   and `allowedDirectories` — file paths, commands, and config locations differ\n   across macOS, Windows, and Linux, so confirm the platform before assuming\n   anything.\n2. **Verify the model/API key works before you build.** The most common reason\n   these sessions dead-end is a provider auth or billing error discovered\n   *after* a lot of setup work. Make one tiny test call with `start_process` (a quick\n   curl to the provider) early, and tell the user plainly if the key is invalid\n   or out of credit.\n3. **Translate errors, don't dump them.** When a tool returns a raw JSON/HTTP\n   error, explain in one line what it means and what to do next. If a model is\n   missing, deprecated, rate-limited, or doesn't support tool-calling, suggest a\n   concrete working alternative instead of retrying the same thing.\n4. **Never echo secrets.** API keys, tokens, and passwords go *into the right\n   config or `.env` file* — never repeated back in chat. If a user pastes a live\n   secret, warn them, use it, and suggest they rotate it if it was shared\n   insecurely. Redact secrets in any output, logs, or summaries you produce.\n5. **Back up before you edit.** Copy the config to a `.bak` first with\n   `start_process` (`cp file.json file.json.bak`, or `copy` on Windows), then make\n   the change with `edit_block` so existing entries survive — reach for\n   `write_file` only on a from-scratch config. Validate the JSON after every edit\n   by parsing it with `start_process`.\n6. **Verify, then stop.** After a change, actually confirm it worked — use\n   `list_processes` to confirm the process is running and `start_process`\n   (`lsof`/`netstat`) to confirm the port is listening, then check the client\n   reconnected and its tools are listed. Don't declare success on a guess.\n7. **Make it repeatable.** Once something works, offer to save the steps as a\n   short note or script so the user can redo it later.\n\n## What this skill covers\n\nThis skill routes to one of three reference files depending on the task. Read\nthe relevant file before acting — they contain the exact paths, commands, and\nknown failure modes.\n\n- **Claude Desktop & MCP servers** — installing Claude Desktop, adding MCP\n  servers, and inspecting / validating / repairing MCP config files\n  (`claude_desktop_config.json`, `.claude/mcp.json`, `~/.lmstudio/mcp.json`,\n  and similar). Also connection health checks.\n  → Read [`references/claude-desktop-mcp.md`](references/claude-desktop-mcp.md)\n\n- **OpenClaw** — a self-hosted multi-channel gateway for AI agents. Install,\n  onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,\n  etc.), diagnose the gateway, and uninstall.\n  → Read [`references/openclaw.md`](references/openclaw.md)\n\n- **Hermes** — disambiguate first: **Hermes Agent** (the Nous Research\n  self-improving agent framework) vs. **Hermes 3** (just a local LLM you run via\n  Ollama). Install, run `hermes setup --portal`, configure providers, personality\n  (`SOUL.md`), memory/skills, MCP, and messaging.\n  → Read [`references/hermes.md`](references/hermes.md)\n\nWhen in doubt about a tool's current behavior, fetch the official docs:\nOpenClaw — https://docs.openclaw.ai/ ·\nHermes — https://hermes-agent.nousresearch.com/docs/\n\n## General workflow\n\n1. **Clarify the goal and platform.** Install vs. configure vs. fix? Which OS?\n   Which tool/client?\n2. **Inspect current state.** `read_file` the relevant config files and use\n   `list_processes` to check whether the relevant process/port/service is already\n   running before changing anything.\n3. **Read the matching reference file** for exact paths and commands.\n4. **Make the smallest change that moves forward**, backing up configs first.\n5. **Verify** the result concretely.\n6. **Summarize** what changed, where, and how to undo it — with secrets redacted.\n\n## A generic \"my agent isn't responding\" diagnostic\n\nUse this order for OpenClaw, Hermes, or any local agent/gateway:\n\n1. **Provider/auth** — is a valid API key configured for the active provider,\n   and does it have credit? (Most failures stop here.)\n2. **Model** — does the chosen model exist, and does it support tool-calling?\n   Local models especially often don't.\n3. **Process/port** — is the gateway/daemon actually running and listening on\n   its port? Is another process holding that port?\n4. **Connection** — for chat clients/websockets, does it connect but drop on\n   first message? That usually points back to provider/model, not networking.\n5. **Logs** — read the tool's logs for the first real error, not the last one.\n","plugins/claude/skills/ai-tools-setup/SKILL.md":"---\nname: ai-tools-setup\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Set up, connect, validate, and repair Claude Desktop and MCP servers using\n  Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json,\n  getting MCP servers to connect, and diagnosing local AI tooling. Use when a\n  user wants to install, configure, connect, validate, or fix Claude Desktop, an\n  MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the\n  symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP\n  server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP\n  server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent\n  won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also\n  covers local agent gateways like OpenClaw and Hermes.\n---\n\n# AI Tools Setup Assistant\n\nHelp users install, configure, and repair AI tooling on their own machine using\nDesktop Commander's file and terminal tools. The work is usually\n**configure-and-troubleshoot**, not clean installs — assume something already\nexists and may be half-broken.\n\n## Golden rules (read before doing anything)\n\n1. **Detect the OS and shell first.** Read `get_config` and use its `systemInfo`\n   and `allowedDirectories` — file paths, commands, and config locations differ\n   across macOS, Windows, and Linux, so confirm the platform before assuming\n   anything.\n2. **Verify the model/API key works before you build.** The most common reason\n   these sessions dead-end is a provider auth or billing error discovered\n   *after* a lot of setup work. Make one tiny test call with `start_process` (a quick\n   curl to the provider) early, and tell the user plainly if the key is invalid\n   or out of credit.\n3. **Translate errors, don't dump them.** When a tool returns a raw JSON/HTTP\n   error, explain in one line what it means and what to do next. If a model is\n   missing, deprecated, rate-limited, or doesn't support tool-calling, suggest a\n   concrete working alternative instead of retrying the same thing.\n4. **Never echo secrets.** API keys, tokens, and passwords go *into the right\n   config or `.env` file* — never repeated back in chat. If a user pastes a live\n   secret, warn them, use it, and suggest they rotate it if it was shared\n   insecurely. Redact secrets in any output, logs, or summaries you produce.\n5. **Back up before you edit.** Copy the config to a `.bak` first with\n   `start_process` (`cp file.json file.json.bak`, or `copy` on Windows), then make\n   the change with `edit_block` so existing entries survive — reach for\n   `write_file` only on a from-scratch config. Validate the JSON after every edit\n   by parsing it with `start_process`.\n6. **Verify, then stop.** After a change, actually confirm it worked — use\n   `list_processes` to confirm the process is running and `start_process`\n   (`lsof`/`netstat`) to confirm the port is listening, then check the client\n   reconnected and its tools are listed. Don't declare success on a guess.\n7. **Make it repeatable.** Once something works, offer to save the steps as a\n   short note or script so the user can redo it later.\n\n## What this skill covers\n\nThis skill routes to one of three reference files depending on the task. Read\nthe relevant file before acting — they contain the exact paths, commands, and\nknown failure modes.\n\n- **Claude Desktop & MCP servers** — installing Claude Desktop, adding MCP\n  servers, and inspecting / validating / repairing MCP config files\n  (`claude_desktop_config.json`, `.claude/mcp.json`, `~/.lmstudio/mcp.json`,\n  and similar). Also connection health checks.\n  → Read [`references/claude-desktop-mcp.md`](references/claude-desktop-mcp.md)\n\n- **OpenClaw** — a self-hosted multi-channel gateway for AI agents. Install,\n  onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,\n  etc.), diagnose the gateway, and uninstall.\n  → Read [`references/openclaw.md`](references/openclaw.md)\n\n- **Hermes** — disambiguate first: **Hermes Agent** (the Nous Research\n  self-improving agent framework) vs. **Hermes 3** (just a local LLM you run via\n  Ollama). Install, run `hermes setup --portal`, configure providers, personality\n  (`SOUL.md`), memory/skills, MCP, and messaging.\n  → Read [`references/hermes.md`](references/hermes.md)\n\nWhen in doubt about a tool's current behavior, fetch the official docs:\nOpenClaw — https://docs.openclaw.ai/ ·\nHermes — https://hermes-agent.nousresearch.com/docs/\n\n## General workflow\n\n1. **Clarify the goal and platform.** Install vs. configure vs. fix? Which OS?\n   Which tool/client?\n2. **Inspect current state.** `read_file` the relevant config files and use\n   `list_processes` to check whether the relevant process/port/service is already\n   running before changing anything.\n3. **Read the matching reference file** for exact paths and commands.\n4. **Make the smallest change that moves forward**, backing up configs first.\n5. **Verify** the result concretely.\n6. **Summarize** what changed, where, and how to undo it — with secrets redacted.\n\n## A generic \"my agent isn't responding\" diagnostic\n\nUse this order for OpenClaw, Hermes, or any local agent/gateway:\n\n1. **Provider/auth** — is a valid API key configured for the active provider,\n   and does it have credit? (Most failures stop here.)\n2. **Model** — does the chosen model exist, and does it support tool-calling?\n   Local models especially often don't.\n3. **Process/port** — is the gateway/daemon actually running and listening on\n   its port? Is another process holding that port?\n4. **Connection** — for chat clients/websockets, does it connect but drop on\n   first message? That usually points back to provider/model, not networking.\n5. **Logs** — read the tool's logs for the first real error, not the last one.\n","plugins/claude/skills/computer-health-check/SKILL.md":"---\nname: computer-health-check\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Run a comprehensive, read-only health check on the user's computer and return a\n  scored chat summary with prioritized, plain-English recommendations and safe cleanup\n  suggestions. Use this whenever the user wants to check their computer's health, speed\n  it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check\n  battery health and wear, audit login & startup items, see pending updates, or asks for\n  a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop\n  healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan\n  so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\".\n  Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a\n  real local shell (start_process / interact_with_process) and is strictly read-only by\n  default — it never needs sudo and only performs cleanups the user explicitly approves.\n---\n\n# Computer Health Check\n\n## What this skill does\n\nGive the user a fast, trustworthy picture of their computer's health and a short list\nof actions worth taking — the way a good technician would: look first, explain plainly,\nfix only with permission.\n\nIt runs entirely through Desktop Commander's local shell, gathers a batch of **read-only**\ndiagnostics, scores each area, prints a concise summary **in the chat**, and then offers\ncleanup suggestions the user can approve one by one.\n\n## The safety contract (read this first)\n\nThis is the part that makes users trust the skill, so honor it strictly:\n\n- **Read-only by default.** The collection phase only *observes* (sizes, counts, status).\n  It changes nothing.\n- **Never use `sudo` or elevation.** DC blocks `sudo`, `shutdown`, `reboot`, `dd`, `mount`,\n  `mkfs`, `diskpart`, etc. for good reason. Every check below is designed to work without\n  them. If something seems to need elevation, skip it and say so — don't try to work around\n  the block.\n- **Cleanups are opt-in.** You may *suggest* cleanups freely, but only *execute* one after\n  the user explicitly approves that specific action, and only show the exact command first.\n- **Prefer reversible, non-destructive actions.** Emptying caches that regenerate, clearing\n  a package-manager download cache, or emptying Trash are fine to offer. Deleting user\n  documents, uninstalling apps, or editing system files are not — suggest those, let the\n  user do them.\n\n## Workflow\n\n### Step 1 — Detect the OS\n\nDetermine the platform before doing anything else, because the commands differ.\n\n- Quickest: read Desktop Commander's config (`get_config`) and use the\n  `systemInfo.isMacOS` / `isWindows` / `isLinux` booleans (or `platformName`) to\n  pick the platform.\n- Or run `uname` (macOS/Linux) — if it fails, assume Windows.\n\nThen open the matching reference file and use its command set:\n\n- macOS → [`references/macos.md`](references/macos.md)\n- Windows → [`references/windows.md`](references/windows.md)\n- Linux → [`references/linux.md`](references/linux.md)\n\nRead **only** the one that matches. Each file contains a single batched collection script\nplus interpretation notes and cleanup commands.\n\n### Step 2 — Collect (read-only)\n\nRun the batched collection script from the reference file with `start_process`. Batching\neverything into one call is much faster than many small calls and keeps the output tidy.\n\nGuidance:\n- Keep outputs bounded (`head`, `Select-Object -First`, etc.) so a long process list or\n  file listing doesn't flood the response.\n- Skip the genuinely slow / network checks (full OS-update list, internet speed test) on the\n  first pass unless the user asked about updates or network. Mention they're available.\n- If a single command errors (e.g., a tool isn't installed), continue — partial data is fine.\n\n### Step 3 — Score each area\n\nRate each category 🟢 Good / 🟡 Watch / 🔴 Act using the rubric below, then compute a simple\noverall score. Start at 100 and subtract 8 per 🟡 and 18 per 🔴; floor at 0. Report the\nnumber and a one-word verdict (90+ Excellent, 75–89 Good, 60–74 Fair, <60 Needs attention).\n\n| Area | 🟢 Good | 🟡 Watch | 🔴 Act |\n|---|---|---|---|\n| Free disk space | >20% free | 10–20% | <10% |\n| Disk health (SMART) | Verified / OK / PASSED | — | failing / not supported & errors present |\n| Memory pressure | low swap, free pages healthy | noticeable swap/compression | heavy swapping, near-zero free |\n| Battery (laptops) | ≥80% max capacity, Normal | 70–80% | <70% or \"Service/Replace\" |\n| Maintenance | uptime <7d, no pending updates | uptime 7–30d or minor updates | uptime >30d or security updates pending |\n| Startup load | few third-party login items | moderate | many heavy third-party agents |\n| Live resource hogs | nothing >50% at idle | one sustained heavy process | multiple / runaway processes |\n\nBattery is laptop-only — skip it on desktops/VMs. Reclaimable space is reported as an\ninformational figure, not scored.\n\n### Step 4 — Report in the chat\n\nUse this exact structure. Keep it tight and scannable — this is the deliverable.\n\n```\n🖥️  Health Check — <Model>, <OS version>     Score: <N>/100 (<verdict>)\n\n🟢/🟡/🔴  Storage      — <free> free of <total> (<%>). Reclaimable: ~<X> GB\n🟢/🟡/🔴  Memory       — <one-line state>\n🟢/🟡/🔴  Battery      — <cycles> cycles, <max capacity>%, <condition>\n🟢/🟡/🔴  Maintenance  — up <days>d, <updates state>\n🟢/🟡/🔴  Startup      — <count> login items (<notable ones>)\n🟢/🟡/🔴  Right now    — top: <proc> <cpu%>, <proc> <cpu%>\n\nTop recommendations\n1. <highest-impact action> (<expected benefit, e.g. frees ~13 GB>)\n2. <next>\n3. <next>\n```\n\nList at most the 3–5 highest-impact recommendations, ordered by benefit. Don't dump every\nfinding — the goal is signal, not a wall of text.\n\n### Step 5 — Suggest cleanups, execute only on approval\n\nFor each recommendation that maps to a concrete command (see the reference file's \"Cleanup\"\nsection), offer it and show the exact command. Then:\n\n- **Safe, reversible** (offer to run on a yes): empty Trash, package-manager cache cleanup\n  (`brew cleanup`, `npm cache clean`), clearing a regenerating user cache folder. (On Linux,\n  `apt-get clean` / `dnf clean` need root — suggest, don't auto-run.)\n- **Needs the user to decide / act** (suggest, don't auto-run): disabling login items,\n  installing OS updates (requires restart), uninstalling apps, deleting files in Downloads.\n- **Never**: anything requiring sudo/admin, removing system files, disk/partition operations.\n\nWhen the user approves a safe action, run it, then report what changed (e.g., space freed).\nRe-running Step 2's storage check afterward is a nice confirmation.\n\n## Recommendation rules (findings → advice)\n\nThese are the high-value mappings; adapt the wording to the platform.\n\n- **Uptime > 30 days** → \"Restart your computer — it's been up <N> days. A reboot clears\n  memory and applies pending updates.\" (Highest ROI, lowest effort.)\n- **Pending OS/security updates** → platform update step; flag security updates as higher\n  priority.\n- **Free space < 15%** → lead with the biggest reclaimable buckets you measured.\n- **Large Downloads / Caches / Trash** → empty Trash; review largest Downloads items by name;\n  clear caches that regenerate.\n- **Package manager has many outdated items / big cache** → `upgrade` + cache cleanup.\n- **Battery max capacity < 80%** → explain wear is normal; consider a battery service if it's\n  affecting runtime.\n- **Many third-party startup agents** → name them and suggest disabling the ones the user\n  doesn't recognize/need (point to System Settings / Task Manager — don't edit them directly).\n- **A process pinned high at idle** → name it and suggest quitting/investigating.\n\n## Notes & pitfalls\n\n- **Don't assume — measure.** Always run the commands and report real numbers. Never\n  fabricate sizes, cycle counts, or statuses.\n- **Bounded output.** Process and file listings can be huge; always cap them.\n- **Optional deep checks** (mention, run on request): internet speed test, full update list,\n  per-folder disk scan of the whole home directory, crash-report trend analysis.\n- **Privacy.** This reads local system metadata only. Don't send anything off the machine;\n  the public-IP check is optional and should be labeled.\n- **Cross-platform parity.** The three reference files mirror the same categories so the\n  report looks the same regardless of OS.\n","plugins/claude/skills/desktop-commander-overview/SKILL.md":"---\nname: desktop-commander-overview\ndescription: Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.\nversion: 0.1.0\naudience: agent\n---\n\n# Desktop Commander MCP\n\nDesktop Commander gives the agent reach across the user's actual computer — files, folders, terminals, processes, structured documents, and remote machines reachable over SSH. The tools' detailed schemas (parameters, return shapes, format-specific behavior) live in the MCP itself; this skill explains what they enable and how they compose into common workflows.\n\n## What this MCP gives the agent\n\n**Persistent shell sessions.** Desktop Commander keeps a started process or session alive across tool calls. Inside a single long-lived shell, REPL, or SSH session, state carries forward — environment variables, working directory, activated virtualenvs, open connections, REPL variables — so the agent can `cd`, activate a venv, then send commands or code into that same session many turns later without re-setup. (Note: separate `start_process` calls open separate sessions and do **not** share shell state with each other; persistence is inside one session, not across them.)\n\n**Long-running processes.** Start a dev server, watcher, build, training run, or test suite in the background and keep working. The MCP returns a process handle the agent can tail, interact with, or terminate across many turns. Long-running commands don't need to block the workflow waiting for a foreground command to exit.\n\n**Filesystem reach beyond the IDE workspace.** Read, write, move, list, and inspect files anywhere the user has granted scope — Downloads, Documents, project folders outside the IDE, or any other granted folders. Useful for organize-and-clean tasks, batch document work, and any \"look at the file my coworker just sent me\" request that doesn't fit inside the IDE sandbox.\n\n**Surgical edits to existing files.** The `edit_block` tool does exact-string find-and-replace with built-in safety: ambiguous matches fail loudly instead of silently overwriting the wrong thing, and an `expected_replacements` count prevents partial-match disasters. Lower data-loss risk than rewriting whole files based on the slice you happened to read — though a wrong `old_string` or wrong `expected_replacements` can still corrupt content, so review the changed content before considering the edit done.\n\n**Binary and structured files handled directly by the MCP.** Excel, DOCX, and PDF are first-class — read and modified through format-specific mechanisms rather than text-only approximations: Excel via cell-range JSON, DOCX via raw-XML edits, PDF via page-level operations on a new output file. The result is the real file in its original format, not a regenerated approximation. Images and PDFs return as viewable content for the agent.\n\n**Search at scale.** Streaming, ripgrep-backed search across whole projects or folder trees. The agent picks between filename search and in-file content search, pages through results progressively without flooding context, and runs multiple concurrent searches when the query is ambiguous.\n\n**Remote machines via SSH.** A long-lived SSH session inside a persistent shell turns the agent into a real ops tool: connect once, then tail logs, run diagnostics, deploy, or debug across many turns without reconnecting each step.\n\n**Process management.** List, inspect, tail, and kill accessible processes (subject to OS permissions). Useful for cleaning up stale dev servers from previous sessions and for diagnosing CPU / memory issues.\n\n## Example workflows\n\nEach example names the actual tool sequence. Calls below are written in pseudocode shorthand (`tool_name(\"arg\", flag=value)`); the real tools take object-shaped arguments. Tool descriptions and full parameter sets live in the MCP itself.\n\n### \"Debug this production issue\"\n\nBefore running production-impacting SSH commands, explain the intended action and get user confirmation when the risk is non-trivial.\n\n`start_process(\"ssh user@prod.example.com\", timeout_ms=...)` opens a long-lived SSH session and returns a PID. `interact_with_process(pid, \"tail -f /var/log/app.log\\n\")` starts streaming logs. Subsequent turns: `read_process_output(pid, offset=-50)` to see the last 50 lines as they arrive, `interact_with_process(pid, \"...\")` to run diagnostic commands in the same session. `force_terminate(pid)` to close the session when done — for sessions opened by `start_process`, `force_terminate` is the correct cleanup tool; `kill_process` is for arbitrary OS PIDs found via `list_processes`.\n\n### \"Deploy this to staging\"\n\nBefore deploys, restarts, migrations, or other environment-changing commands, summarize the action and confirm with the user unless they already explicitly asked for that exact operation.\n\n`start_process` for the deploy command (could be a script, an SSH-piped command, or `kubectl`/`gh` etc.). `read_process_output` to track output and surface errors. If the deploy needs an interactive confirmation, `interact_with_process(pid, \"yes\\n\")`. The session stays alive while the agent watches for completion or rollback.\n\n### \"Run the dev server and iterate on the API\"\n\n`start_process(\"npm run dev\", timeout_ms=...)` keeps the server up. The agent then loops: `edit_block` on the route file, `read_process_output(pid, offset=-30)` to see the server's reload, `start_process(\"curl -s http://localhost:3000/api/...\")` for a one-shot test, repeat. The dev server never has to restart between code changes.\n\n### \"Refactor across this monorepo\"\n\n`start_search(pattern=\"oldFunctionName\", path=repo_root, searchType=\"content\")` scopes every call site. `get_more_search_results(sessionId)` pages through. `read_multiple_files(paths=[...])` confirms ambiguous hits in context. `edit_block(file_path, old_string, new_string)` per site, with `expected_replacements` set when the same substring legitimately appears multiple times in one file. Verify by re-running `start_search` on the old name and paging the results with `get_more_search_results(sessionId)` until the run completes — only then can you confirm zero remaining hits.\n\n### \"Update the Q3 numbers in this spreadsheet and tweak the summary in the report\"\n\n`read_file(path=\"/.../q3.xlsx\", sheet=\"Revenue\", range=\"A1:F50\")` returns the existing numbers as a JSON 2D array. `edit_block(file_path=\"/.../q3.xlsx\", range=\"Revenue!C12:C24\", content=[[12345], ...])` updates the cells in place. For the report, DOCX editing is a two-read flow: first `read_file(path=\"/.../report.docx\")` (offset 0) returns the document's outline (headings + paragraph text) so you can locate the summary section. Then `read_file(path=\"/.../report.docx\", offset=N, length=...)` with **`N > 0`** returns the raw underlying XML around that section — a non-zero offset is what flips the read into XML mode. Copy an XML fragment from that output as `old_string` and call `edit_block(file_path, old_string, new_string)` with the rewritten XML. The user gets back real `.xlsx` and `.docx` files, not regenerated approximations.\n\n### \"Generate the Q3 report as a PDF\"\n\nCompose markdown content (header, table, charts via embedded HTML), then call `write_pdf` to render it to a new PDF file. The MCP's `write_pdf` tool description specifies the exact parameters and filename rules — follow that.\n\n### \"Insert a cover page into this PDF\"\n\n`write_pdf` also supports modifying existing PDFs via an operations array (insert / delete pages). Use it for existing-PDF edits that produce a new PDF — adding a cover page, removing a section, merging in content from another file. See the `write_pdf` tool description for the operation shapes and parameter rules.\n\n### \"Analyze this 200MB CSV\"\n\n`start_process(\"python3 -i\", timeout_ms=...)` opens a Python REPL and returns a PID. `interact_with_process(pid, \"import pandas as pd; df = pd.read_csv('/abs/path.csv')\")` loads it once. Every subsequent question — `df.describe()`, `df.groupby('col').size()`, plot a chart — runs in the same already-loaded REPL. Libraries don't re-import, the dataframe doesn't re-load. The MCP itself recommends this workflow for any local data-file analysis.\n\n### \"Run a quick Node script\"\n\n`start_process(\"node:local\", timeout_ms=...)` opens a stateless Node execution mode on the MCP server itself — ES imports supported. `start_process` opens the runner; each piece of JS is sent via `interact_with_process(pid, \"<your JS here>\")` and runs independently (no shared state between calls). Good for one-shot transformations where keeping a long-lived REPL alive isn't worth it. Don't try to put code into the `start_process` command argument — only the runner type (`node:local`) goes there.\n\n### \"Explain this codebase\"\n\n`list_directory(path=repo_root, depth=3)` for shape. `start_search(pattern=\"export \", path=repo_root, searchType=\"content\")` to find the public surface. `read_multiple_files(paths=[entrypoints])` for the actual code. The agent can keep narrowing without re-asking the user where to look.\n\n### \"Organize my Downloads folder\"\n\nResolve the path to absolute first (e.g., `/Users/<user>/Downloads`, not `~/Downloads`). Then `list_directory(path=\"/Users/<user>/Downloads\", depth=1)` to see what's there. `start_search(pattern=\"*.pdf\", path=\"/Users/<user>/Downloads\", searchType=\"files\")` and similar for other types. `create_directory` for new folders. `move_file` per item. Preview the move plan before executing destructive ops.\n\n### \"Onboard me — what was happening last session?\"\n\n`get_recent_tool_calls(maxResults=200)` returns recent activity with arguments and outputs. `list_sessions` shows still-running terminal sessions. `list_searches` shows in-flight searches. `list_processes` shows what's still alive. Together they reconstruct the work without asking the user to recap.\n\n### \"Why isn't the REPL responding?\"\n\n`list_sessions` — if `Blocked: true`, the REPL is waiting for input rather than hung. `read_process_output(pid, offset=-100)` to see what it last printed (often a prompt). `interact_with_process(pid, \"<the input it's waiting for>\\n\")` unblocks it.\n\n## Core tool inventory\n\nGrouped index of the tools an agent reaches for most often. Not exhaustive — the MCP exposes additional config / diagnostics / feedback tools beyond this list. Detailed parameters and return shapes for every tool are in the MCP's own tool descriptions.\n\n- **Process / shell:** `start_process`, `interact_with_process`, `read_process_output`, `list_processes`, `list_sessions`, `kill_process`, `force_terminate`\n- **Files (read/write):** `read_file`, `read_multiple_files`, `write_file`, `edit_block`, `write_pdf`\n- **Filesystem:** `list_directory`, `get_file_info`, `move_file`, `create_directory`\n- **Search:** `start_search`, `get_more_search_results`, `list_searches`, `stop_search`\n- **Diagnostics / config:** `get_recent_tool_calls`, `get_config`\n\n## Conventions\n\n**Prefer absolute paths.** Relative paths may fail depending on the working directory, and tilde paths (`~/...`) may not expand in all contexts. Absolute paths are the most reliable; pass them whenever you can.\n\n**Allowed-directory scope.** File operations only work inside the user's configured `allowedDirectories`. Expect `[DENIED]` markers in `list_directory` output and rejections from `read_file` / `write_file` when the path is out of scope. Surface the rejected path to the user — don't retry.\n\n**When running on macOS:** default shell is zsh. Use `python3` not `python`. Some GNU tools have prefixed names (`gsed` for GNU sed). `brew` is the typical package manager. `open` opens files / apps from the terminal, `mdfind` is the fastest path to exact-filename search via Spotlight. Detect the host platform via `get_config` (or by inspecting `process.platform` / `uname` from a shell) before assuming any of the above — Windows and Linux hosts behave differently.\n\n**Pagination.** Long outputs (file reads, process output, search results) all support `offset` and `length`. Negative offsets read from the end (tail mode). Use these instead of dumping huge results into context.\n","skills/desktop-commander-overview/SKILL.md":"---\nname: desktop-commander-overview\ndescription: Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.\nversion: 0.1.0\naudience: agent\n---\n\n# Desktop Commander MCP\n\nDesktop Commander gives the agent reach across the user's actual computer — files, folders, terminals, processes, structured documents, and remote machines reachable over SSH. The tools' detailed schemas (parameters, return shapes, format-specific behavior) live in the MCP itself; this skill explains what they enable and how they compose into common workflows.\n\n## What this MCP gives the agent\n\n**Persistent shell sessions.** Desktop Commander keeps a started process or session alive across tool calls. Inside a single long-lived shell, REPL, or SSH session, state carries forward — environment variables, working directory, activated virtualenvs, open connections, REPL variables — so the agent can `cd`, activate a venv, then send commands or code into that same session many turns later without re-setup. (Note: separate `start_process` calls open separate sessions and do **not** share shell state with each other; persistence is inside one session, not across them.)\n\n**Long-running processes.** Start a dev server, watcher, build, training run, or test suite in the background and keep working. The MCP returns a process handle the agent can tail, interact with, or terminate across many turns. Long-running commands don't need to block the workflow waiting for a foreground command to exit.\n\n**Filesystem reach beyond the IDE workspace.** Read, write, move, list, and inspect files anywhere the user has granted scope — Downloads, Documents, project folders outside the IDE, or any other granted folders. Useful for organize-and-clean tasks, batch document work, and any \"look at the file my coworker just sent me\" request that doesn't fit inside the IDE sandbox.\n\n**Surgical edits to existing files.** The `edit_block` tool does exact-string find-and-replace with built-in safety: ambiguous matches fail loudly instead of silently overwriting the wrong thing, and an `expected_replacements` count prevents partial-match disasters. Lower data-loss risk than rewriting whole files based on the slice you happened to read — though a wrong `old_string` or wrong `expected_replacements` can still corrupt content, so review the changed content before considering the edit done.\n\n**Binary and structured files handled directly by the MCP.** Excel, DOCX, and PDF are first-class — read and modified through format-specific mechanisms rather than text-only approximations: Excel via cell-range JSON, DOCX via raw-XML edits, PDF via page-level operations on a new output file. The result is the real file in its original format, not a regenerated approximation. Images and PDFs return as viewable content for the agent.\n\n**Search at scale.** Streaming, ripgrep-backed search across whole projects or folder trees. The agent picks between filename search and in-file content search, pages through results progressively without flooding context, and runs multiple concurrent searches when the query is ambiguous.\n\n**Remote machines via SSH.** A long-lived SSH session inside a persistent shell turns the agent into a real ops tool: connect once, then tail logs, run diagnostics, deploy, or debug across many turns without reconnecting each step.\n\n**Process management.** List, inspect, tail, and kill accessible processes (subject to OS permissions). Useful for cleaning up stale dev servers from previous sessions and for diagnosing CPU / memory issues.\n\n## Example workflows\n\nEach example names the actual tool sequence. Calls below are written in pseudocode shorthand (`tool_name(\"arg\", flag=value)`); the real tools take object-shaped arguments. Tool descriptions and full parameter sets live in the MCP itself.\n\n### \"Debug this production issue\"\n\nBefore running production-impacting SSH commands, explain the intended action and get user confirmation when the risk is non-trivial.\n\n`start_process(\"ssh user@prod.example.com\", timeout_ms=...)` opens a long-lived SSH session and returns a PID. `interact_with_process(pid, \"tail -f /var/log/app.log\\n\")` starts streaming logs. Subsequent turns: `read_process_output(pid, offset=-50)` to see the last 50 lines as they arrive, `interact_with_process(pid, \"...\")` to run diagnostic commands in the same session. `force_terminate(pid)` to close the session when done — for sessions opened by `start_process`, `force_terminate` is the correct cleanup tool; `kill_process` is for arbitrary OS PIDs found via `list_processes`.\n\n### \"Deploy this to staging\"\n\nBefore deploys, restarts, migrations, or other environment-changing commands, summarize the action and confirm with the user unless they already explicitly asked for that exact operation.\n\n`start_process` for the deploy command (could be a script, an SSH-piped command, or `kubectl`/`gh` etc.). `read_process_output` to track output and surface errors. If the deploy needs an interactive confirmation, `interact_with_process(pid, \"yes\\n\")`. The session stays alive while the agent watches for completion or rollback.\n\n### \"Run the dev server and iterate on the API\"\n\n`start_process(\"npm run dev\", timeout_ms=...)` keeps the server up. The agent then loops: `edit_block` on the route file, `read_process_output(pid, offset=-30)` to see the server's reload, `start_process(\"curl -s http://localhost:3000/api/...\")` for a one-shot test, repeat. The dev server never has to restart between code changes.\n\n### \"Refactor across this monorepo\"\n\n`start_search(pattern=\"oldFunctionName\", path=repo_root, searchType=\"content\")` scopes every call site. `get_more_search_results(sessionId)` pages through. `read_multiple_files(paths=[...])` confirms ambiguous hits in context. `edit_block(file_path, old_string, new_string)` per site, with `expected_replacements` set when the same substring legitimately appears multiple times in one file. Verify by re-running `start_search` on the old name and paging the results with `get_more_search_results(sessionId)` until the run completes — only then can you confirm zero remaining hits.\n\n### \"Update the Q3 numbers in this spreadsheet and tweak the summary in the report\"\n\n`read_file(path=\"/.../q3.xlsx\", sheet=\"Revenue\", range=\"A1:F50\")` returns the existing numbers as a JSON 2D array. `edit_block(file_path=\"/.../q3.xlsx\", range=\"Revenue!C12:C24\", content=[[12345], ...])` updates the cells in place. For the report, DOCX editing is a two-read flow: first `read_file(path=\"/.../report.docx\")` (offset 0) returns the document's outline (headings + paragraph text) so you can locate the summary section. Then `read_file(path=\"/.../report.docx\", offset=N, length=...)` with **`N > 0`** returns the raw underlying XML around that section — a non-zero offset is what flips the read into XML mode. Copy an XML fragment from that output as `old_string` and call `edit_block(file_path, old_string, new_string)` with the rewritten XML. The user gets back real `.xlsx` and `.docx` files, not regenerated approximations.\n\n### \"Generate the Q3 report as a PDF\"\n\nCompose markdown content (header, table, charts via embedded HTML), then call `write_pdf` to render it to a new PDF file. The MCP's `write_pdf` tool description specifies the exact parameters and filename rules — follow that.\n\n### \"Insert a cover page into this PDF\"\n\n`write_pdf` also supports modifying existing PDFs via an operations array (insert / delete pages). Use it for existing-PDF edits that produce a new PDF — adding a cover page, removing a section, merging in content from another file. See the `write_pdf` tool description for the operation shapes and parameter rules.\n\n### \"Analyze this 200MB CSV\"\n\n`start_process(\"python3 -i\", timeout_ms=...)` opens a Python REPL and returns a PID. `interact_with_process(pid, \"import pandas as pd; df = pd.read_csv('/abs/path.csv')\")` loads it once. Every subsequent question — `df.describe()`, `df.groupby('col').size()`, plot a chart — runs in the same already-loaded REPL. Libraries don't re-import, the dataframe doesn't re-load. The MCP itself recommends this workflow for any local data-file analysis.\n\n### \"Run a quick Node script\"\n\n`start_process(\"node:local\", timeout_ms=...)` opens a stateless Node execution mode on the MCP server itself — ES imports supported. `start_process` opens the runner; each piece of JS is sent via `interact_with_process(pid, \"<your JS here>\")` and runs independently (no shared state between calls). Good for one-shot transformations where keeping a long-lived REPL alive isn't worth it. Don't try to put code into the `start_process` command argument — only the runner type (`node:local`) goes there.\n\n### \"Explain this codebase\"\n\n`list_directory(path=repo_root, depth=3)` for shape. `start_search(pattern=\"export \", path=repo_root, searchType=\"content\")` to find the public surface. `read_multiple_files(paths=[entrypoints])` for the actual code. The agent can keep narrowing without re-asking the user where to look.\n\n### \"Organize my Downloads folder\"\n\nResolve the path to absolute first (e.g., `/Users/<user>/Downloads`, not `~/Downloads`). Then `list_directory(path=\"/Users/<user>/Downloads\", depth=1)` to see what's there. `start_search(pattern=\"*.pdf\", path=\"/Users/<user>/Downloads\", searchType=\"files\")` and similar for other types. `create_directory` for new folders. `move_file` per item. Preview the move plan before executing destructive ops.\n\n### \"Onboard me — what was happening last session?\"\n\n`get_recent_tool_calls(maxResults=200)` returns recent activity with arguments and outputs. `list_sessions` shows still-running terminal sessions. `list_searches` shows in-flight searches. `list_processes` shows what's still alive. Together they reconstruct the work without asking the user to recap.\n\n### \"Why isn't the REPL responding?\"\n\n`list_sessions` — if `Blocked: true`, the REPL is waiting for input rather than hung. `read_process_output(pid, offset=-100)` to see what it last printed (often a prompt). `interact_with_process(pid, \"<the input it's waiting for>\\n\")` unblocks it.\n\n## Core tool inventory\n\nGrouped index of the tools an agent reaches for most often. Not exhaustive — the MCP exposes additional config / diagnostics / feedback tools beyond this list. Detailed parameters and return shapes for every tool are in the MCP's own tool descriptions.\n\n- **Process / shell:** `start_process`, `interact_with_process`, `read_process_output`, `list_processes`, `list_sessions`, `kill_process`, `force_terminate`\n- **Files (read/write):** `read_file`, `read_multiple_files`, `write_file`, `edit_block`, `write_pdf`\n- **Filesystem:** `list_directory`, `get_file_info`, `move_file`, `create_directory`\n- **Search:** `start_search`, `get_more_search_results`, `list_searches`, `stop_search`\n- **Diagnostics / config:** `get_recent_tool_calls`, `get_config`\n\n## Conventions\n\n**Prefer absolute paths.** Relative paths may fail depending on the working directory, and tilde paths (`~/...`) may not expand in all contexts. Absolute paths are the most reliable; pass them whenever you can.\n\n**Allowed-directory scope.** File operations only work inside the user's configured `allowedDirectories`. Expect `[DENIED]` markers in `list_directory` output and rejections from `read_file` / `write_file` when the path is out of scope. Surface the rejected path to the user — don't retry.\n\n**When running on macOS:** default shell is zsh. Use `python3` not `python`. Some GNU tools have prefixed names (`gsed` for GNU sed). `brew` is the typical package manager. `open` opens files / apps from the terminal, `mdfind` is the fastest path to exact-filename search via Spotlight. Detect the host platform via `get_config` (or by inspecting `process.platform` / `uname` from a shell) before assuming any of the above — Windows and Linux hosts behave differently.\n\n**Pagination.** Long outputs (file reads, process output, search results) all support `offset` and `length`. Negative offsets read from the end (tail mode). Use these instead of dumping huge results into context.\n","plugins/claude/skills/obsidian-vault/SKILL.md":"---\nname: obsidian-vault\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties,\n  dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user\n  explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or\n  an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases\n  plugins, or Obsidian Properties. Within that Obsidian context it covers\n  creating Maps of Content, adding/fixing wikilinks, finding orphan notes,\n  normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing\n  folders, deduplicating or renaming notes, and preparing the vault for AI use.\n  Do NOT use this skill for generic note-taking, Markdown, or knowledge-base\n  requests that don't mention Obsidian.\n---\n\n# Obsidian Vault Assistant\n\nHelp the user organize and maintain an Obsidian vault: build navigation with\nMOCs and wikilinks, normalize metadata, generate dashboards, find and fix\norphans, organize folders, deduplicate/rename, and prepare the vault for AI use.\n\nObsidian-specific facts that shape every rule here:\n- Links are **wikilinks** resolved by **filename**, not path: `[[Note title]]`.\n  Renaming a note auto-updates links inside Obsidian, but moving files outside\n  Obsidian breaks them — always rename via Obsidian when possible.\n- Metadata is **Properties** (YAML frontmatter) at the top of a note.\n- Dashboards come from **Dataview** (query language, read-only, flexible) or\n  **Bases** (native, editable tables, fast on big vaults, properties-only).\n\nBefore acting, confirm the vault's root folder and whether the user has the\nDataview plugin installed (Bases is built in since Obsidian 1.9). When a request\nis ambiguous (organize vs. clean up vs. dashboard), ask which task.\n\n## Wikilinks\n\n- Basic: `[[Three laws of motion]]` — resolves by filename, no extension/path.\n- Display text (pipe): `[[atomic-habits|James Clear — Atomic Habits]]`.\n- Heading link: `[[Note#Section]]`. Block link: `[[Note#^block-id]]`.\n- Embed/transclude: `![[Note]]`, `![[Note#Section]]`, `![[image.png]]`.\n- Aliases: add an `aliases` property so the note resolves under other names.\n- Avoid `# | ^ : %` and `[ ]` in filenames — they have special meaning in links.\n- Prefer wikilinks for internal navigation; use standard Markdown links only if\n  the vault is also published to a tool that can't parse wikilinks.\n\nWhen adding links, also surface **unlinked mentions**: if a note's title appears\nas plain text in other notes, convert those to wikilinks.\n\n## Maps of Content (MOCs)\n\nA MOC is a note that links the related notes on a topic — the vault's navigation\nlayer (more flexible than folders or tags, and needs no institutional knowledge).\n\nConventions:\n- Name MOCs clearly and tag them: `tags: [moc]` (or a `type: moc` property) so\n  every MOC is itself discoverable.\n- Keep a top-level **Home / Index MOC** that links to all topic MOCs.\n- A MOC holds a short intro plus grouped wikilinks; it can be hand-curated or\n  auto-generated with a Dataview/Bases query (see Dashboards).\n\nMOC template:\n```markdown\n---\ntype: moc\ntags: [moc]\nupdated: 2026-06-18\n---\n# Auth — Map of Content\n\nNotes on authentication, sessions, and access control.\n\n## Core\n- [[auth-flow]]\n- [[session-tokens]]\n\n## Related MOCs\n- [[security-moc]]\n```\n\n## Frontmatter / Properties\n\nAdd a consistent property block to every note. Recommended baseline:\n```yaml\n---\ntitle: Session tokens\naliases: [tokens, session token]\ntags: [auth, security]\ntype: note            # note | moc | dashboard | template | person | project\ncreated: 2026-06-18\nupdated: 2026-06-18\nstatus: evergreen     # seedling | growing | evergreen\nrelated: [\"[[auth-flow]]\"]\n---\n```\nRules:\n- Use a **controlled tag vocabulary** — decide tags up front and reuse them;\n  nested tags (`auth/tokens`) are fine. Don't let tags sprawl.\n- `tags` use no `#` in frontmatter. Dates in ISO `YYYY-MM-DD`.\n- Keep property **names and types consistent across the vault** — Bases and\n  Dataview both depend on this. When normalizing, pick one name per concept\n  (e.g. `created`, not `created`/`date`/`Created`) and migrate the rest.\n\n## Dashboards\n\nPick the engine based on the user's setup:\n\n**Bases** (native, editable, fast — best for operational boards):\n- Create a `.base` file or a `base` code block; it builds table/board views from\n  properties. Each cell edits the underlying note's frontmatter.\n- Use for task lists, reading lists, project pipelines, anything point-and-click.\n\n**Dataview** (plugin, read-only, most flexible — best for reports/auto-MOCs):\n```dataview\nTABLE status, updated, tags\nFROM #auth\nWHERE type = \"note\"\nSORT updated DESC\n```\nAuto-MOC of everything in a topic:\n```dataview\nLIST FROM #auth WHERE type != \"moc\" SORT file.name ASC\n```\nRecently updated:\n```dataview\nTABLE updated FROM \"\" WHERE updated >= date(today) - dur(7 days) SORT updated DESC\n```\nNote: large vaults can lag with heavy Dataview queries — prefer Bases there.\n\n## Orphan notes & link hygiene\n\nAn orphan is a note with no inbound or outbound links. To find and fix:\n1. **From Desktop Commander** (no app needed, scales to big vaults): `start_search`\n   the vault for `[[ ]]` links to each note's title — zero hits means no inbound\n   links (an *unlinked* note); to confirm a true orphan (no inbound **and** no\n   outbound), also scan the note's own body for `[[...]]`. The same searches\n   surface **unlinked mentions** (the title as plain text, not wrapped in `[[ ]]`)\n   and **broken links** (a `[[target]]` whose file is missing).\n2. **Graph view** (Cmd/Ctrl+G): orphans float as isolated dots at the edges.\n3. **Dataview** query for notes with no links:\n   ```dataview\n   LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0\n   ```\n4. For each orphan: link it from a relevant MOC/note (`edit_block` to insert the\n   wikilink), tag it `#needs-link` for a batch pass, or archive if obsolete.\n5. Convert unlinked mentions into real wikilinks and fix broken links with\n   `edit_block`; resolve the rest from Obsidian's right sidebar.\n\n## Folder organization\n\n- Folders are for coarse buckets; **MOCs + tags do the real organizing**. Don't\n  over-nest folders.\n- A workable layout:\n  ```\n  00-inbox/        # unsorted captures\n  10-notes/        # atomic notes\n  20-mocs/         # maps of content\n  30-projects/\n  90-assets/       # images/attachments\n  99-archive/\n  templates/\n  ```\n- Set the attachment folder in Settings so embeds land in `90-assets/`.\n- **Moves/renames must happen inside Obsidian** so wikilinks update automatically\n  — do **not** use `move_file` for these, it breaks every `[[link]]`. From Desktop\n  Commander, only edit *content* (`edit_block` / `write_file`); leave moving and\n  renaming to the user in the app.\n\n## Deduplicate & rename\n\n- **Duplicates**: `start_search` titles/aliases to find near-identical notes;\n  merge into one, keep the most-linked filename, copy unique content with\n  `edit_block`, then `start_search` for inbound `[[links]]` to the discarded note\n  and repoint them before deleting it.\n- **Renames**: do them inside Obsidian (Rename note / `F2`) so backlinks update —\n  not via `move_file`. Keep an `aliases` entry for the old name if it was widely\n  referenced.\n- Standardize filenames: pick one convention (kebab-case or Title Case) and\n  apply it consistently; avoid the special characters listed above.\n\n## Prepare the vault for AI use\n\n- Ensure **consistent frontmatter** (same property names/types) so an agent can\n  filter and reason over metadata.\n- Maintain a **Home/Index MOC** as the single entry point an agent reads first.\n- Write a one-line `summary`/`description` property per note for quick scanning.\n- Reduce orphans and broken links so the link graph is a reliable map.\n- Keep notes **atomic** (one idea each) — easier for an agent to retrieve and cite.\n- Consider exporting wikilinks to standard Markdown links if the AI tool can't\n  parse `[[ ]]`.\n\n## Workflows\n\n- **Build navigation**: `write_file` topic MOCs → `edit_block` notes to link them\n  in → refresh the Home MOC → convert unlinked mentions.\n- **Normalize metadata**: `read_multiple_files` to audit properties → pick\n  canonical names → `edit_block` each note → add missing baseline properties.\n- **Cleanup pass**: `start_search` for orphans, broken links, and unlinked\n  mentions → dedupe → report what changed (renames stay in Obsidian).\n- **Dashboard**: confirm Dataview vs. Bases → `write_file` the view from properties/tags.\n\n## Checklist before finishing\n- [ ] New/changed notes have consistent frontmatter (canonical property names).\n- [ ] Renames/moves done inside Obsidian; no links broken.\n- [ ] New notes linked from at least one MOC or note (no new orphans).\n- [ ] Tags drawn from the controlled vocabulary.\n- [ ] Dashboards reference properties/tags that actually exist.\n- [ ] `updated` bumped on changed notes.\n","plugins/claude/skills/knowledge-base/SKILL.md":"---\nname: knowledge-base\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Create and maintain a Markdown knowledge base that any AI agent can read,\n  search, and update. Use when the user wants to start a knowledge base, add or\n  update notes, organize docs/notes for an agent or LLM to consume, build an\n  index of notes, or run a cleanup/maintenance pass on an existing MD knowledge\n  base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index\n  of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the\n  KB\".\n---\n\n# Knowledge Base (Markdown, agent-readable)\n\nA knowledge base (KB) here is a folder of Markdown files designed so **any** AI\nagent can navigate it without a vector database: the agent reads one index file,\npicks the relevant notes by their descriptions, and opens only those. Keep the\nwhole KB readable and the index lean — the index is what gets loaded into\ncontext, so it must be high-signal.\n\nApply the rules below when creating a new KB, adding/editing notes, or doing a\nmaintenance pass. When the user's request is ambiguous (new KB vs. add note vs.\ncleanup), ask which one before acting.\n\n## Core principles (the \"why\")\n\n1. **Index-first navigation.** The index is a map, not a container. An agent\n   reads `INDEX.md`, selects notes by their one-line descriptions, then opens\n   only those files. No note is \"in\" the KB unless it's registered in the index.\n2. **Atomicity.** One topic per note. If a title needs an \"and\", it's probably\n   two notes. Atomic notes are easier to find, link, and reuse.\n3. **Stable IDs.** Every note has a permanent ID that never changes and is never\n   reused, so links survive renames and moves.\n4. **Linked with reason.** When two notes connect, state *why* (prerequisite,\n   supports, contrasts, see-also). Connections carry as much value as the notes.\n5. **Lean instructions.** Keep `INDEX.md` instructions short and high-signal —\n   it competes for the agent's context budget. Bodies load on demand.\n6. **Structured for retrieval.** Clear H1 title and H2/H3 sections so an agent\n   can grab the relevant slice of a note, not the whole thing.\n\n## Folder structure (nested by topic)\n\n```\nknowledge-base/\n  INDEX.md                 # entry point: instructions + full note registry\n  topics/\n    <topic>/\n      _topic.md            # topic map: what this topic covers + its notes\n      <slug>.md            # one atomic note\n  assets/                  # images / attachments referenced by notes\n```\n\n- Topic folders are short, lowercase nouns (`auth`, `billing`, `deploys`).\n- `_topic.md` is the topic-level map of content (MOC): a short intro plus links\n  to every note in that topic. It is a convenience view; `INDEX.md` remains the\n  source of truth.\n\n## Naming rules\n\n- Lowercase **kebab-case**, predictable and greppable: `topics/auth/session-tokens.md`.\n- No spaces, no uppercase, no dates in filenames (dates live in frontmatter).\n- The filename slug should match the note's `id` slug portion.\n\n## Required frontmatter (every note)\n\n```yaml\n---\nid: 20260618-session-tokens     # ID scheme: YYYYMMDD-slug. Stable. Never reuse or change.\ntitle: Session tokens           # human title, also the note's H1\ntags: [auth, security]          # only tags from the controlled list in INDEX.md\ncreated: 2026-06-18\nupdated: 2026-06-18\nrelated: [20260618-auth-flow]    # IDs of linked notes\nsummary: One scannable sentence describing what this note covers.\n---\n```\n\n- `id`: `YYYYMMDD-slug`. Sortable, readable, stable. Different-titled same-day\n  notes differ by slug; if two same-day notes would collide on the same slug,\n  append `-2`, `-3`, … (check the `INDEX.md` registry before assigning). Once\n  assigned, the id is permanent.\n- `summary`: this exact sentence is what goes in the index registry — write it to\n  help an agent decide whether to open the note.\n- `updated`: bump it whenever the body changes.\n\n## Note body shape\n\n```markdown\n# Session tokens\n\n> Summary: One sentence (mirrors frontmatter summary).\n\n## Context\nWhy this note exists / when it applies.\n\n## Details\nThe actual content, in short H2/H3 sections.\n\n## Related\n- [Auth flow](auth-flow.md) — prerequisite: tokens are issued during the auth flow.\n- [Rate limiting](../api/rate-limiting.md) — see-also: tokens carry the rate-limit key.\n```\n\n- Use **relative links** between notes and annotate the relationship in a phrase.\n- Every link target should also appear in the note's `related` frontmatter.\n\n## INDEX.md (the single source of truth)\n\n`INDEX.md` has two parts: operating instructions for agents, and the registry.\n\n```markdown\n# Knowledge Base — Index\n\n## How to use this KB (for agents)\n1. Read this index first. Pick notes by their descriptions; open only those.\n2. To answer a question, prefer opening 1–3 specific notes over scanning everything.\n3. Cite the note `id` when you use information from it.\n\n## How to update this KB (for agents)\n- New idea → create a new note (atomic). Same idea changed → edit the note in place and bump `updated`.\n- Any create / rename / delete MUST update this registry and the topic's `_topic.md` in the same change.\n- Use only tags from the controlled vocabulary below; add a new tag here before using it.\n\n## Controlled tags\n`auth`, `security`, `billing`, `api`, `ops`   <!-- extend deliberately -->\n\n## Registry\n### auth\n- `20260618-auth-flow` — **Authentication flow** — `topics/auth/auth-flow.md` — How a user session is established end to end.\n- `20260618-session-tokens` — **Session tokens** — `topics/auth/session-tokens.md` — Token format, lifetime, and rotation.\n\n### billing\n- `20260618-invoicing` — **Invoicing** — `topics/billing/invoicing.md` — How invoices are generated and sent.\n```\n\nRegistry line format: `` `id` — **Title** — `path` — one-line description.``\n\n## _topic.md (topic map)\n\n```markdown\n# Auth\n\nNotes covering authentication, sessions, and access control.\n\n- [Authentication flow](auth-flow.md) — how a session is established.\n- [Session tokens](session-tokens.md) — token format, lifetime, rotation.\n```\n\n## Workflows\n\n### Create a new KB\n1. `create_directory` for the folder structure above.\n2. `write_file` `INDEX.md` with the instructions block, an empty controlled-tag\n   list, and an empty registry.\n3. Add the first topic folder + `_topic.md`, then the first note (each via `write_file`).\n4. Register the note in `INDEX.md` and link it from `_topic.md` — `edit_block`\n   both so you touch only the changed lines.\n\n### Add a note\n1. Pick or create the topic folder (`list_directory` to see what's there).\n2. `write_file` the note (kebab-case slug) with full frontmatter and the body shape.\n3. Add cross-links (and mirror them in `related`).\n4. Register it in `INDEX.md` and link it in `_topic.md` with `edit_block` — same change.\n\n### Update a note\n- Same idea, new information → `edit_block` the note in place, bump `updated`, and\n  `edit_block` the registry line if the scope changed.\n- Genuinely new idea → `write_file` a new atomic note instead of expanding this one.\n\n### Maintenance pass (run on demand)\nUse `start_search` (ripgrep) for text scans and `get_file_info` / `list_directory`\nfor existence checks — together they make this tractable at scale:\n- **Orphans** (no *inbound* links — outbound doesn't matter): `start_search` the\n  KB for the note's `id` and filename slug, then discount the self-matches that\n  always exist — the note's own file, `INDEX.md`, and its `_topic.md`. Anything\n  left is a genuine inbound reference; nothing left = orphan, so link it from a\n  relevant note/MOC or archive it.\n- **Broken links / drift**: don't infer resolution from a text hit — a string\n  existing doesn't mean the file does. Confirm each registry path and `related:`\n  target exists with `get_file_info` (or `list_directory` per topic), and that\n  every file on disk is registered. Use a text compare only for the\n  titles/summaries-out-of-sync half.\n- **Non-atomic notes**: notes that grew to cover multiple topics → split them.\n- **Duplicates**: near-identical notes → merge, keep one `id`, redirect links.\n- **Tag sprawl**: read the controlled list from `INDEX.md`, then `start_search`\n  the frontmatter `tags:` lines and flag any tag not on the list → reconcile.\nPull candidates in bulk with `read_multiple_files`, apply fixes with `edit_block`,\nand report what changed.\n\n## Checklist before finishing any KB edit\n- [ ] Every new/changed note has complete, valid frontmatter.\n- [ ] `id` is unique and unchanged; filename slug matches the id slug.\n- [ ] All links resolve and are mirrored in `related`.\n- [ ] `INDEX.md` registry and the topic `_topic.md` reflect the change.\n- [ ] Tags are from the controlled vocabulary.\n- [ ] `updated` bumped on every changed note.\n","plugins/claude/skills/terminal/SKILL.md":"---\nname: terminal\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Use Desktop Commander for terminal and command-line work, especially anything\n  that needs a shell whose state persists across turns: Python/Node REPLs,\n  database shells, dev servers and other long-running processes, SSH into remote\n  machines, and Windows PowerShell. Also handles everyday terminal tasks —\n  navigating folders, choosing the right command for the user's shell\n  (PowerShell, cmd, bash, zsh), running Docker/curl/cloud-CLI commands,\n  inspecting processes and ports, and saving recurring workflows as scripts —\n  even when the user doesn't say \"Desktop Commander\" or \"terminal.\" Reach for it\n  on pasted errors like \"command not found\", \"permission denied\", \"EADDRINUSE\",\n  \"address already in use\", \"npm ERR!\", \"ModuleNotFoundError\", or \"ENOENT\", and\n  on intents like \"what's using port 3000\", \"kill that process\", \"ssh into my\n  server\", or \"why won't my dev server start\". Works on Windows, macOS, and\n  Linux. Never run destructive commands without explicit confirmation.\n---\n\n# Terminal Command Assistant\n\nBe a calm, safe, cross-platform terminal copilot. The user may be an expert or\nmay be opening a terminal for the first time — read their cues and match them.\nExplain what a command does in plain language, run it through Desktop Commander,\nread the real output, and explain the result. The user's machine is the source\nof truth; never assume the OS, shell, or installed tools — detect them.\n\n## 1. Detect the environment first (do this before suggesting commands)\n\nDifferent OSes and shells need different commands. Before recommending or running\nanything non-trivial, call **`get_config`** (Desktop Commander) and read\n`systemInfo`:\n\n- `platformName` / `isWindows` / `isMacOS` / `isLinux` — which OS.\n- `defaultShell` and `uiHints.availableShells` — which shell to target.\n- `pythonInfo`, `nodeInfo` — whether Python/Node exist and their versions.\n- `blockedCommands` — commands Desktop Commander refuses to run (see §7).\n- `allowedDirectories` — `[]` means full access; otherwise commands/paths are\n  scoped to those directories.\n\nThis one cheap call prevents the most common mistake: handing a macOS user a\nPowerShell command, or assuming `python3` exists when it doesn't. Cache what you\nlearn for the rest of the session; re-check only if something seems off.\n\n## 2. Choosing the right command for the shell\n\nPick syntax by the detected shell, not by habit. Common equivalents:\n\n| Task | bash / zsh (macOS, Linux) | PowerShell (Windows) | cmd (Windows) |\n|---|---|---|---|\n| List files | `ls -la` | `Get-ChildItem` / `ls` | `dir` |\n| Current dir | `pwd` | `Get-Location` / `pwd` | `cd` |\n| Find file | `find . -name \"*.log\"` | `Get-ChildItem -Recurse -Filter *.log` | `dir /s *.log` |\n| Search text | `grep -r \"TODO\" .` | `Get-ChildItem -Recurse \\| Select-String TODO` | `findstr /s TODO *` |\n| Env var | `echo $HOME` | `$env:USERPROFILE` | `echo %USERPROFILE%` |\n| Set env (session) | `export KEY=val` | `$env:KEY=\"val\"` | `set KEY=val` |\n| Delete file | `rm file` | `Remove-Item file` | `del file` |\n| Copy | `cp a b` | `Copy-Item a b` | `copy a b` |\n| Path separator | `/` | `\\` (or `/`) | `\\` |\n\nNotes that bite people: Windows paths use `\\` and often need quoting when they\ncontain spaces; PowerShell and bash quote/escape differently; `~` expands in\nbash/zsh but not in cmd. When in doubt, prefer the cross-platform tool the user\nalready has (e.g. `python`, `node`, `git`) over shell-specific syntax.\n\n## 3. Running commands with Desktop Commander\n\n**Always use absolute paths.** Relative paths depend on a working directory that\nisn't carried between calls, so they fail unpredictably.\n\n- **One-shot commands** → `start_process` with the command and a timeout. It\n  returns output and a PID. If output is truncated or the process is still\n  running, call `read_process_output` with the PID for more.\n- **Long-running / interactive sessions** (REPLs, SSH, DB shells, `npm create`,\n  anything that prompts) → `start_process` to launch, then\n  `interact_with_process(pid, \"...\")` to send input and `read_process_output`\n  to read responses. End with `force_terminate` if it won't exit on its own.\n- Navigation is just inspection: use `list_directory` and `get_file_info`\n  rather than relying on a persistent `cd`. If you must `cd`, do it inside the\n  same command (`cd /abs/path && some-command`).\n\n### Interactive REPL pattern (the workhorse)\n\nThis keeps state across calls and is the right way to drive Python, Node, a\ndatabase shell, or SSH:\n\n```\nstart_process(\"python3 -i\")          # or \"node -i\", \"ssh user@host\", \"psql ...\"\ninteract_with_process(pid, \"import pandas as pd\")\ninteract_with_process(pid, \"df = pd.read_csv('/abs/path/data.csv')\")\ninteract_with_process(pid, \"print(df.describe())\")\nread_process_output(pid)             # pull more output if needed\n```\n\n## 4. Running specific CLIs\n\n- **Python**: prefer `python3 -i` as an interactive session for multi-step work;\n  for a quick one-off use `python3 /abs/script.py`. Check `pythonInfo.command`\n  from §1 (`python` vs `python3`).\n- **Node**: `node -i` for an interactive session, `node /abs/script.js` for a\n  one-off. `npm`/`pnpm`/`yarn` installs can be slow — give a generous timeout and\n  read remaining output rather than assuming failure.\n- **Docker**: `docker ps`, `docker logs <id>`, `docker compose up -d`. Long\n  builds/runs: launch then poll with `read_process_output`. Treat\n  `docker system prune`, `docker rm`, `docker volume rm` as destructive (§7).\n- **SSH**: launch with `start_process(\"ssh user@host\")`, then drive it with\n  `interact_with_process`. Remote destructive commands deserve the same\n  confirmation rules as local ones.\n- **curl / HTTP**: fine for inspection (`curl -i https://...`). Be careful with\n  anything that pipes a downloaded script straight into a shell\n  (`curl ... | sh`) — that's untrusted code execution; show it and confirm first.\n- **Cloud CLIs** (`aws`, `gcloud`, `az`): read-only commands (`describe`, `list`,\n  `get`) are safe to run; anything that creates, deletes, scales, or changes IAM\n  is high-impact — preview the exact command and confirm. Never echo secrets or\n  credentials into the terminal output.\n\n## 5. Inspecting processes and ports\n\n- **Processes**: `list_processes` (Desktop Commander) for a structured view, or\n  `ps aux` (Unix) / `Get-Process` (PowerShell). Stop one with `kill_process` by\n  PID (`force_terminate` ends a session you started).\n- **What's using a port**:\n  - macOS/Linux: `lsof -i :3000` or `lsof -nP -iTCP -sTCP:LISTEN`\n  - Linux: `ss -ltnp`\n  - Windows PowerShell: `Get-NetTCPConnection -LocalPort 3000`\n  - Windows cmd: `netstat -ano | findstr :3000` (then map the PID)\n- When killing a process, confirm the PID belongs to what the user thinks it\n  does — show the process line before terminating it.\n\n## 6. Explaining errors in plain English\n\nWhen a command fails, don't just retry blindly:\n\n1. Read the **actual** error text from the process output — the real cause is\n   usually in the last few lines, not the first.\n2. Name the cause in one plain sentence (e.g. \"the port's already taken\",\n   \"that package isn't installed\", \"permission denied because the file's owned\n   by root\").\n3. Give the concrete fix command for *their* shell, and explain what it does.\n4. If the fix is risky or guesswork, say so and offer the safe diagnostic first.\n\nCommon ones worth recognizing fast: `command not found` / `not recognized`\n(not installed or not on PATH), `EADDRINUSE` (port in use — see §5),\n`permission denied` / `EACCES` (ownership/permissions, not always fixable with\nelevation), `ENOENT` (path doesn't exist — check absolute path), `npm ERR!`\nblocks (read the resolved error line), non-zero exit codes (report the code).\n\n## 7. Safety: destructive commands and chaining\n\nDesktop Commander already refuses a built-in `blockedCommands` list (things like\n`sudo`, `mkfs`, `format`, `dd`, `fdisk`, `shutdown`, `reboot`, `diskpart`,\n`reg`, `net`). Read the live list from `get_config`; don't assume it.\n\nBeyond that list, treat these as **destructive — never run without the user's\nexplicit confirmation**, even if they'd technically succeed:\n\n- Recursive/forced deletes: `rm -rf`, `Remove-Item -Recurse -Force`, `del /s`,\n  `rd /s`.\n- Overwriting or moving over existing files; wildcard deletes.\n- Disk/format/partition operations.\n- `git reset --hard`, `git clean -fd`, `git push --force` (history/data loss).\n- Database drops/truncates: `DROP`, `TRUNCATE`, `DELETE` without a `WHERE`.\n- `chmod -R` / `chown -R` on broad paths, `killall`, mass process kills.\n- Cloud deletes/scaling/IAM changes; `docker ... prune`/`rm`/volume removal.\n- Anything piping remote content into a shell (`curl ... | sh`).\n\nFor these: show the exact command, explain in one line what it will irreversibly\ndo, and wait for a clear \"yes\". Prefer a dry run or a read-only check first\n(e.g. `ls` the glob before `rm` it, `--dry-run` where the tool supports it).\n\n**Chaining safely**: `&&` runs the next only if the previous succeeded; `;` runs\nregardless; `||` runs only on failure. PowerShell historically uses `;` to\nsequence (it supports `&&`/`||` in v7+, but not all hosts). Keep chains short.\nIf any step in a chain is destructive, don't chain it — run the safe steps,\nconfirm, then run the risky one alone so a failure can't cascade.\n\n## 8. Turning repeated workflows into scripts\n\nWhen the user runs the same sequence repeatedly (or asks to \"save this\"), offer\nto capture it as a script instead of retyping:\n\n- Unix → a `.sh` file with `#!/usr/bin/env bash` (or `zsh`), `set -euo pipefail`\n  for safety, comments explaining each step; make it executable (`chmod +x`).\n- Windows → a `.ps1` (PowerShell) script with comment-based help at the top.\n- Write the file with `write_file` to an absolute path the user chooses, echo\n  it back, and explain how to run it. Parameterize the bits that change\n  (paths, names) rather than hard-coding.\n- If the workflow needs to run on both Windows and Unix, either keep the logic\n  in a cross-platform tool (a small Python/Node script) or provide both a `.sh`\n  and a `.ps1`. Don't pretend one shell script runs everywhere.\n\nKeep scripts small and readable — the goal is something the user can open, trust,\nand edit later, not a black box.\n\n## Operating etiquette\n\n- Preview risky commands before running; run read-only inspection first.\n- Use absolute paths; respect `allowedDirectories`.\n- Never print secrets, tokens, or passwords into output; redact if they appear.\n- Match the user's level: explain jargon when they seem new, stay terse when\n  they're fluent.\n- After a failed command, diagnose from the real output before retrying.\n","skills/terminal/SKILL.md":"---\nname: terminal\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Use Desktop Commander for terminal and command-line work, especially anything\n  that needs a shell whose state persists across turns: Python/Node REPLs,\n  database shells, dev servers and other long-running processes, SSH into remote\n  machines, and Windows PowerShell. Also handles everyday terminal tasks —\n  navigating folders, choosing the right command for the user's shell\n  (PowerShell, cmd, bash, zsh), running Docker/curl/cloud-CLI commands,\n  inspecting processes and ports, and saving recurring workflows as scripts —\n  even when the user doesn't say \"Desktop Commander\" or \"terminal.\" Reach for it\n  on pasted errors like \"command not found\", \"permission denied\", \"EADDRINUSE\",\n  \"address already in use\", \"npm ERR!\", \"ModuleNotFoundError\", or \"ENOENT\", and\n  on intents like \"what's using port 3000\", \"kill that process\", \"ssh into my\n  server\", or \"why won't my dev server start\". Works on Windows, macOS, and\n  Linux. Never run destructive commands without explicit confirmation.\n---\n\n# Terminal Command Assistant\n\nBe a calm, safe, cross-platform terminal copilot. The user may be an expert or\nmay be opening a terminal for the first time — read their cues and match them.\nExplain what a command does in plain language, run it through Desktop Commander,\nread the real output, and explain the result. The user's machine is the source\nof truth; never assume the OS, shell, or installed tools — detect them.\n\n## 1. Detect the environment first (do this before suggesting commands)\n\nDifferent OSes and shells need different commands. Before recommending or running\nanything non-trivial, call **`get_config`** (Desktop Commander) and read\n`systemInfo`:\n\n- `platformName` / `isWindows` / `isMacOS` / `isLinux` — which OS.\n- `defaultShell` and `uiHints.availableShells` — which shell to target.\n- `pythonInfo`, `nodeInfo` — whether Python/Node exist and their versions.\n- `blockedCommands` — commands Desktop Commander refuses to run (see §7).\n- `allowedDirectories` — `[]` means full access; otherwise commands/paths are\n  scoped to those directories.\n\nThis one cheap call prevents the most common mistake: handing a macOS user a\nPowerShell command, or assuming `python3` exists when it doesn't. Cache what you\nlearn for the rest of the session; re-check only if something seems off.\n\n## 2. Choosing the right command for the shell\n\nPick syntax by the detected shell, not by habit. Common equivalents:\n\n| Task | bash / zsh (macOS, Linux) | PowerShell (Windows) | cmd (Windows) |\n|---|---|---|---|\n| List files | `ls -la` | `Get-ChildItem` / `ls` | `dir` |\n| Current dir | `pwd` | `Get-Location` / `pwd` | `cd` |\n| Find file | `find . -name \"*.log\"` | `Get-ChildItem -Recurse -Filter *.log` | `dir /s *.log` |\n| Search text | `grep -r \"TODO\" .` | `Get-ChildItem -Recurse \\| Select-String TODO` | `findstr /s TODO *` |\n| Env var | `echo $HOME` | `$env:USERPROFILE` | `echo %USERPROFILE%` |\n| Set env (session) | `export KEY=val` | `$env:KEY=\"val\"` | `set KEY=val` |\n| Delete file | `rm file` | `Remove-Item file` | `del file` |\n| Copy | `cp a b` | `Copy-Item a b` | `copy a b` |\n| Path separator | `/` | `\\` (or `/`) | `\\` |\n\nNotes that bite people: Windows paths use `\\` and often need quoting when they\ncontain spaces; PowerShell and bash quote/escape differently; `~` expands in\nbash/zsh but not in cmd. When in doubt, prefer the cross-platform tool the user\nalready has (e.g. `python`, `node`, `git`) over shell-specific syntax.\n\n## 3. Running commands with Desktop Commander\n\n**Always use absolute paths.** Relative paths depend on a working directory that\nisn't carried between calls, so they fail unpredictably.\n\n- **One-shot commands** → `start_process` with the command and a timeout. It\n  returns output and a PID. If output is truncated or the process is still\n  running, call `read_process_output` with the PID for more.\n- **Long-running / interactive sessions** (REPLs, SSH, DB shells, `npm create`,\n  anything that prompts) → `start_process` to launch, then\n  `interact_with_process(pid, \"...\")` to send input and `read_process_output`\n  to read responses. End with `force_terminate` if it won't exit on its own.\n- Navigation is just inspection: use `list_directory` and `get_file_info`\n  rather than relying on a persistent `cd`. If you must `cd`, do it inside the\n  same command (`cd /abs/path && some-command`).\n\n### Interactive REPL pattern (the workhorse)\n\nThis keeps state across calls and is the right way to drive Python, Node, a\ndatabase shell, or SSH:\n\n```\nstart_process(\"python3 -i\")          # or \"node -i\", \"ssh user@host\", \"psql ...\"\ninteract_with_process(pid, \"import pandas as pd\")\ninteract_with_process(pid, \"df = pd.read_csv('/abs/path/data.csv')\")\ninteract_with_process(pid, \"print(df.describe())\")\nread_process_output(pid)             # pull more output if needed\n```\n\n## 4. Running specific CLIs\n\n- **Python**: prefer `python3 -i` as an interactive session for multi-step work;\n  for a quick one-off use `python3 /abs/script.py`. Check `pythonInfo.command`\n  from §1 (`python` vs `python3`).\n- **Node**: `node -i` for an interactive session, `node /abs/script.js` for a\n  one-off. `npm`/`pnpm`/`yarn` installs can be slow — give a generous timeout and\n  read remaining output rather than assuming failure.\n- **Docker**: `docker ps`, `docker logs <id>`, `docker compose up -d`. Long\n  builds/runs: launch then poll with `read_process_output`. Treat\n  `docker system prune`, `docker rm`, `docker volume rm` as destructive (§7).\n- **SSH**: launch with `start_process(\"ssh user@host\")`, then drive it with\n  `interact_with_process`. Remote destructive commands deserve the same\n  confirmation rules as local ones.\n- **curl / HTTP**: fine for inspection (`curl -i https://...`). Be careful with\n  anything that pipes a downloaded script straight into a shell\n  (`curl ... | sh`) — that's untrusted code execution; show it and confirm first.\n- **Cloud CLIs** (`aws`, `gcloud`, `az`): read-only commands (`describe`, `list`,\n  `get`) are safe to run; anything that creates, deletes, scales, or changes IAM\n  is high-impact — preview the exact command and confirm. Never echo secrets or\n  credentials into the terminal output.\n\n## 5. Inspecting processes and ports\n\n- **Processes**: `list_processes` (Desktop Commander) for a structured view, or\n  `ps aux` (Unix) / `Get-Process` (PowerShell). Stop one with `kill_process` by\n  PID (`force_terminate` ends a session you started).\n- **What's using a port**:\n  - macOS/Linux: `lsof -i :3000` or `lsof -nP -iTCP -sTCP:LISTEN`\n  - Linux: `ss -ltnp`\n  - Windows PowerShell: `Get-NetTCPConnection -LocalPort 3000`\n  - Windows cmd: `netstat -ano | findstr :3000` (then map the PID)\n- When killing a process, confirm the PID belongs to what the user thinks it\n  does — show the process line before terminating it.\n\n## 6. Explaining errors in plain English\n\nWhen a command fails, don't just retry blindly:\n\n1. Read the **actual** error text from the process output — the real cause is\n   usually in the last few lines, not the first.\n2. Name the cause in one plain sentence (e.g. \"the port's already taken\",\n   \"that package isn't installed\", \"permission denied because the file's owned\n   by root\").\n3. Give the concrete fix command for *their* shell, and explain what it does.\n4. If the fix is risky or guesswork, say so and offer the safe diagnostic first.\n\nCommon ones worth recognizing fast: `command not found` / `not recognized`\n(not installed or not on PATH), `EADDRINUSE` (port in use — see §5),\n`permission denied` / `EACCES` (ownership/permissions, not always fixable with\nelevation), `ENOENT` (path doesn't exist — check absolute path), `npm ERR!`\nblocks (read the resolved error line), non-zero exit codes (report the code).\n\n## 7. Safety: destructive commands and chaining\n\nDesktop Commander already refuses a built-in `blockedCommands` list (things like\n`sudo`, `mkfs`, `format`, `dd`, `fdisk`, `shutdown`, `reboot`, `diskpart`,\n`reg`, `net`). Read the live list from `get_config`; don't assume it.\n\nBeyond that list, treat these as **destructive — never run without the user's\nexplicit confirmation**, even if they'd technically succeed:\n\n- Recursive/forced deletes: `rm -rf`, `Remove-Item -Recurse -Force`, `del /s`,\n  `rd /s`.\n- Overwriting or moving over existing files; wildcard deletes.\n- Disk/format/partition operations.\n- `git reset --hard`, `git clean -fd`, `git push --force` (history/data loss).\n- Database drops/truncates: `DROP`, `TRUNCATE`, `DELETE` without a `WHERE`.\n- `chmod -R` / `chown -R` on broad paths, `killall`, mass process kills.\n- Cloud deletes/scaling/IAM changes; `docker ... prune`/`rm`/volume removal.\n- Anything piping remote content into a shell (`curl ... | sh`).\n\nFor these: show the exact command, explain in one line what it will irreversibly\ndo, and wait for a clear \"yes\". Prefer a dry run or a read-only check first\n(e.g. `ls` the glob before `rm` it, `--dry-run` where the tool supports it).\n\n**Chaining safely**: `&&` runs the next only if the previous succeeded; `;` runs\nregardless; `||` runs only on failure. PowerShell historically uses `;` to\nsequence (it supports `&&`/`||` in v7+, but not all hosts). Keep chains short.\nIf any step in a chain is destructive, don't chain it — run the safe steps,\nconfirm, then run the risky one alone so a failure can't cascade.\n\n## 8. Turning repeated workflows into scripts\n\nWhen the user runs the same sequence repeatedly (or asks to \"save this\"), offer\nto capture it as a script instead of retyping:\n\n- Unix → a `.sh` file with `#!/usr/bin/env bash` (or `zsh`), `set -euo pipefail`\n  for safety, comments explaining each step; make it executable (`chmod +x`).\n- Windows → a `.ps1` (PowerShell) script with comment-based help at the top.\n- Write the file with `write_file` to an absolute path the user chooses, echo\n  it back, and explain how to run it. Parameterize the bits that change\n  (paths, names) rather than hard-coding.\n- If the workflow needs to run on both Windows and Unix, either keep the logic\n  in a cross-platform tool (a small Python/Node script) or provide both a `.sh`\n  and a `.ps1`. Don't pretend one shell script runs everywhere.\n\nKeep scripts small and readable — the goal is something the user can open, trust,\nand edit later, not a black box.\n\n## Operating etiquette\n\n- Preview risky commands before running; run read-only inspection first.\n- Use absolute paths; respect `allowedDirectories`.\n- Never print secrets, tokens, or passwords into output; redact if they appear.\n- Match the user's level: explain jargon when they seem new, stay terse when\n  they're fluent.\n- After a failed command, diagnose from the real output before retrying.\n","skills/computer-health-check/SKILL.md":"---\nname: computer-health-check\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Run a comprehensive, read-only health check on the user's computer and return a\n  scored chat summary with prioritized, plain-English recommendations and safe cleanup\n  suggestions. Use this whenever the user wants to check their computer's health, speed\n  it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check\n  battery health and wear, audit login & startup items, see pending updates, or asks for\n  a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop\n  healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan\n  so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\".\n  Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a\n  real local shell (start_process / interact_with_process) and is strictly read-only by\n  default — it never needs sudo and only performs cleanups the user explicitly approves.\n---\n\n# Computer Health Check\n\n## What this skill does\n\nGive the user a fast, trustworthy picture of their computer's health and a short list\nof actions worth taking — the way a good technician would: look first, explain plainly,\nfix only with permission.\n\nIt runs entirely through Desktop Commander's local shell, gathers a batch of **read-only**\ndiagnostics, scores each area, prints a concise summary **in the chat**, and then offers\ncleanup suggestions the user can approve one by one.\n\n## The safety contract (read this first)\n\nThis is the part that makes users trust the skill, so honor it strictly:\n\n- **Read-only by default.** The collection phase only *observes* (sizes, counts, status).\n  It changes nothing.\n- **Never use `sudo` or elevation.** DC blocks `sudo`, `shutdown`, `reboot`, `dd`, `mount`,\n  `mkfs`, `diskpart`, etc. for good reason. Every check below is designed to work without\n  them. If something seems to need elevation, skip it and say so — don't try to work around\n  the block.\n- **Cleanups are opt-in.** You may *suggest* cleanups freely, but only *execute* one after\n  the user explicitly approves that specific action, and only show the exact command first.\n- **Prefer reversible, non-destructive actions.** Emptying caches that regenerate, clearing\n  a package-manager download cache, or emptying Trash are fine to offer. Deleting user\n  documents, uninstalling apps, or editing system files are not — suggest those, let the\n  user do them.\n\n## Workflow\n\n### Step 1 — Detect the OS\n\nDetermine the platform before doing anything else, because the commands differ.\n\n- Quickest: read Desktop Commander's config (`get_config`) and use the\n  `systemInfo.isMacOS` / `isWindows` / `isLinux` booleans (or `platformName`) to\n  pick the platform.\n- Or run `uname` (macOS/Linux) — if it fails, assume Windows.\n\nThen open the matching reference file and use its command set:\n\n- macOS → [`references/macos.md`](references/macos.md)\n- Windows → [`references/windows.md`](references/windows.md)\n- Linux → [`references/linux.md`](references/linux.md)\n\nRead **only** the one that matches. Each file contains a single batched collection script\nplus interpretation notes and cleanup commands.\n\n### Step 2 — Collect (read-only)\n\nRun the batched collection script from the reference file with `start_process`. Batching\neverything into one call is much faster than many small calls and keeps the output tidy.\n\nGuidance:\n- Keep outputs bounded (`head`, `Select-Object -First`, etc.) so a long process list or\n  file listing doesn't flood the response.\n- Skip the genuinely slow / network checks (full OS-update list, internet speed test) on the\n  first pass unless the user asked about updates or network. Mention they're available.\n- If a single command errors (e.g., a tool isn't installed), continue — partial data is fine.\n\n### Step 3 — Score each area\n\nRate each category 🟢 Good / 🟡 Watch / 🔴 Act using the rubric below, then compute a simple\noverall score. Start at 100 and subtract 8 per 🟡 and 18 per 🔴; floor at 0. Report the\nnumber and a one-word verdict (90+ Excellent, 75–89 Good, 60–74 Fair, <60 Needs attention).\n\n| Area | 🟢 Good | 🟡 Watch | 🔴 Act |\n|---|---|---|---|\n| Free disk space | >20% free | 10–20% | <10% |\n| Disk health (SMART) | Verified / OK / PASSED | — | failing / not supported & errors present |\n| Memory pressure | low swap, free pages healthy | noticeable swap/compression | heavy swapping, near-zero free |\n| Battery (laptops) | ≥80% max capacity, Normal | 70–80% | <70% or \"Service/Replace\" |\n| Maintenance | uptime <7d, no pending updates | uptime 7–30d or minor updates | uptime >30d or security updates pending |\n| Startup load | few third-party login items | moderate | many heavy third-party agents |\n| Live resource hogs | nothing >50% at idle | one sustained heavy process | multiple / runaway processes |\n\nBattery is laptop-only — skip it on desktops/VMs. Reclaimable space is reported as an\ninformational figure, not scored.\n\n### Step 4 — Report in the chat\n\nUse this exact structure. Keep it tight and scannable — this is the deliverable.\n\n```\n🖥️  Health Check — <Model>, <OS version>     Score: <N>/100 (<verdict>)\n\n🟢/🟡/🔴  Storage      — <free> free of <total> (<%>). Reclaimable: ~<X> GB\n🟢/🟡/🔴  Memory       — <one-line state>\n🟢/🟡/🔴  Battery      — <cycles> cycles, <max capacity>%, <condition>\n🟢/🟡/🔴  Maintenance  — up <days>d, <updates state>\n🟢/🟡/🔴  Startup      — <count> login items (<notable ones>)\n🟢/🟡/🔴  Right now    — top: <proc> <cpu%>, <proc> <cpu%>\n\nTop recommendations\n1. <highest-impact action> (<expected benefit, e.g. frees ~13 GB>)\n2. <next>\n3. <next>\n```\n\nList at most the 3–5 highest-impact recommendations, ordered by benefit. Don't dump every\nfinding — the goal is signal, not a wall of text.\n\n### Step 5 — Suggest cleanups, execute only on approval\n\nFor each recommendation that maps to a concrete command (see the reference file's \"Cleanup\"\nsection), offer it and show the exact command. Then:\n\n- **Safe, reversible** (offer to run on a yes): empty Trash, package-manager cache cleanup\n  (`brew cleanup`, `npm cache clean`), clearing a regenerating user cache folder. (On Linux,\n  `apt-get clean` / `dnf clean` need root — suggest, don't auto-run.)\n- **Needs the user to decide / act** (suggest, don't auto-run): disabling login items,\n  installing OS updates (requires restart), uninstalling apps, deleting files in Downloads.\n- **Never**: anything requiring sudo/admin, removing system files, disk/partition operations.\n\nWhen the user approves a safe action, run it, then report what changed (e.g., space freed).\nRe-running Step 2's storage check afterward is a nice confirmation.\n\n## Recommendation rules (findings → advice)\n\nThese are the high-value mappings; adapt the wording to the platform.\n\n- **Uptime > 30 days** → \"Restart your computer — it's been up <N> days. A reboot clears\n  memory and applies pending updates.\" (Highest ROI, lowest effort.)\n- **Pending OS/security updates** → platform update step; flag security updates as higher\n  priority.\n- **Free space < 15%** → lead with the biggest reclaimable buckets you measured.\n- **Large Downloads / Caches / Trash** → empty Trash; review largest Downloads items by name;\n  clear caches that regenerate.\n- **Package manager has many outdated items / big cache** → `upgrade` + cache cleanup.\n- **Battery max capacity < 80%** → explain wear is normal; consider a battery service if it's\n  affecting runtime.\n- **Many third-party startup agents** → name them and suggest disabling the ones the user\n  doesn't recognize/need (point to System Settings / Task Manager — don't edit them directly).\n- **A process pinned high at idle** → name it and suggest quitting/investigating.\n\n## Notes & pitfalls\n\n- **Don't assume — measure.** Always run the commands and report real numbers. Never\n  fabricate sizes, cycle counts, or statuses.\n- **Bounded output.** Process and file listings can be huge; always cap them.\n- **Optional deep checks** (mention, run on request): internet speed test, full update list,\n  per-folder disk scan of the whole home directory, crash-report trend analysis.\n- **Privacy.** This reads local system metadata only. Don't send anything off the machine;\n  the public-IP check is optional and should be labeled.\n- **Cross-platform parity.** The three reference files mirror the same categories so the\n  report looks the same regardless of OS.\n","plugins/cursor/skills/ai-tools-setup/SKILL.md":"# ai-tools-setup\n\nPath: `plugins/cursor/skills/ai-tools-setup/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/SKILL.md)","plugins/cursor/skills/computer-health-check/SKILL.md":"# computer-health-check\n\nPath: `plugins/cursor/skills/computer-health-check/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/SKILL.md)","plugins/cursor/skills/desktop-commander-overview/SKILL.md":"# desktop-commander-overview\n\nPath: `plugins/cursor/skills/desktop-commander-overview/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/desktop-commander-overview/SKILL.md)","plugins/cursor/skills/knowledge-base/SKILL.md":"# knowledge-base\n\nPath: `plugins/cursor/skills/knowledge-base/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/knowledge-base/SKILL.md)","plugins/cursor/skills/obsidian-vault/SKILL.md":"# obsidian-vault\n\nPath: `plugins/cursor/skills/obsidian-vault/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/obsidian-vault/SKILL.md)","plugins/cursor/skills/terminal/SKILL.md":"# terminal\n\nPath: `plugins/cursor/skills/terminal/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/terminal/SKILL.md)","plugin.json":"# Plugin Plugin Manifest\n\nPath: `plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugin.json)","smithery.yaml":"# Model Context Protocol (MCP) Configuration\n\nPath: `smithery.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/smithery.yaml)",".claude-plugin/marketplace.json":"# Claude Plugin Marketplace Catalog\n\nPath: `.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/.claude-plugin/marketplace.json)",".cursor-plugin/marketplace.json":"# Claude Plugin Marketplace Catalog\n\nPath: `.cursor-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/.cursor-plugin/marketplace.json)","plugins/claude/README.md":"# claude Documentation\n\nPath: `plugins/claude/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/README.md)","plugins/cursor/README.md":"# cursor Documentation\n\nPath: `plugins/cursor/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/README.md)","plugins/claude/.claude-plugin/plugin.json":"# claude-plugin Plugin Manifest\n\nPath: `plugins/claude/.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/.claude-plugin/plugin.json)","plugins/cursor/.cursor-plugin/plugin.json":"# cursor-plugin Plugin Manifest\n\nPath: `plugins/cursor/.cursor-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/.cursor-plugin/plugin.json)","skills/ai-tools-setup/references/claude-desktop-mcp.md":"# References Skill\n\nPath: `skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/claude-desktop-mcp.md)","skills/ai-tools-setup/references/hermes.md":"# References Skill\n\nPath: `skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/hermes.md)","skills/ai-tools-setup/references/openclaw.md":"# References Skill\n\nPath: `skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/openclaw.md)","skills/computer-health-check/references/linux.md":"# References Skill\n\nPath: `skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/linux.md)","skills/computer-health-check/references/macos.md":"# References Skill\n\nPath: `skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/macos.md)","skills/computer-health-check/references/windows.md":"# References Skill\n\nPath: `skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/windows.md)","plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md)","plugins/claude/skills/ai-tools-setup/references/hermes.md":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/hermes.md)","plugins/claude/skills/ai-tools-setup/references/openclaw.md":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/openclaw.md)","plugins/claude/skills/computer-health-check/references/linux.md":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/linux.md)","plugins/claude/skills/computer-health-check/references/macos.md":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/macos.md)","plugins/claude/skills/computer-health-check/references/windows.md":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/windows.md)","plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md)","plugins/cursor/skills/ai-tools-setup/references/hermes.md":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/hermes.md)","plugins/cursor/skills/ai-tools-setup/references/openclaw.md":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/openclaw.md)","plugins/cursor/skills/computer-health-check/references/linux.md":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/linux.md)","plugins/cursor/skills/computer-health-check/references/macos.md":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/macos.md)","plugins/cursor/skills/computer-health-check/references/windows.md":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/windows.md)"},"items":[{"name":"claude-desktop-mcp.md","path":"plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md)","tokens":300,"sizeBytes":270},{"name":"hermes.md","path":"plugins/claude/skills/ai-tools-setup/references/hermes.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/hermes.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/hermes.md)","tokens":300,"sizeBytes":246},{"name":"openclaw.md","path":"plugins/claude/skills/ai-tools-setup/references/openclaw.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/openclaw.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/openclaw.md)","tokens":300,"sizeBytes":250},{"name":"SKILL.md","path":"plugins/claude/skills/ai-tools-setup/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/SKILL.md","title":"ai-tools-setup","category":"anthropic-skill","format":"markdown","content":"---\nname: ai-tools-setup\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Set up, connect, validate, and repair Claude Desktop and MCP servers using\n  Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json,\n  getting MCP servers to connect, and diagnosing local AI tooling. Use when a\n  user wants to install, configure, connect, validate, or fix Claude Desktop, an\n  MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the\n  symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP\n  server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP\n  server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent\n  won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also\n  covers local agent gateways like OpenClaw and Hermes.\n---\n\n# AI Tools Setup Assistant\n\nHelp users install, configure, and repair AI tooling on their own machine using\nDesktop Commander's file and terminal tools. The work is usually\n**configure-and-troubleshoot**, not clean installs — assume something already\nexists and may be half-broken.\n\n## Golden rules (read before doing anything)\n\n1. **Detect the OS and shell first.** Read `get_config` and use its `systemInfo`\n   and `allowedDirectories` — file paths, commands, and config locations differ\n   across macOS, Windows, and Linux, so confirm the platform before assuming\n   anything.\n2. **Verify the model/API key works before you build.** The most common reason\n   these sessions dead-end is a provider auth or billing error discovered\n   *after* a lot of setup work. Make one tiny test call with `start_process` (a quick\n   curl to the provider) early, and tell the user plainly if the key is invalid\n   or out of credit.\n3. **Translate errors, don't dump them.** When a tool returns a raw JSON/HTTP\n   error, explain in one line what it means and what to do next. If a model is\n   missing, deprecated, rate-limited, or doesn't support tool-calling, suggest a\n   concrete working alternative instead of retrying the same thing.\n4. **Never echo secrets.** API keys, tokens, and passwords go *into the right\n   config or `.env` file* — never repeated back in chat. If a user pastes a live\n   secret, warn them, use it, and suggest they rotate it if it was shared\n   insecurely. Redact secrets in any output, logs, or summaries you produce.\n5. **Back up before you edit.** Copy the config to a `.bak` first with\n   `start_process` (`cp file.json file.json.bak`, or `copy` on Windows), then make\n   the change with `edit_block` so existing entries survive — reach for\n   `write_file` only on a from-scratch config. Validate the JSON after every edit\n   by parsing it with `start_process`.\n6. **Verify, then stop.** After a change, actually confirm it worked — use\n   `list_processes` to confirm the process is running and `start_process`\n   (`lsof`/`netstat`) to confirm the port is listening, then check the client\n   reconnected and its tools are listed. Don't declare success on a guess.\n7. **Make it repeatable.** Once something works, offer to save the steps as a\n   short note or script so the user can redo it later.\n\n## What this skill covers\n\nThis skill routes to one of three reference files depending on the task. Read\nthe relevant file before acting — they contain the exact paths, commands, and\nknown failure modes.\n\n- **Claude Desktop & MCP servers** — installing Claude Desktop, adding MCP\n  servers, and inspecting / validating / repairing MCP config files\n  (`claude_desktop_config.json`, `.claude/mcp.json`, `~/.lmstudio/mcp.json`,\n  and similar). Also connection health checks.\n  → Read [`references/claude-desktop-mcp.md`](references/claude-desktop-mcp.md)\n\n- **OpenClaw** — a self-hosted multi-channel gateway for AI agents. Install,\n  onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,\n  etc.), diagnose the gateway, and uninstall.\n  → Read [`references/openclaw.md`](references/openclaw.md)\n\n- **Hermes** — disambiguate first: **Hermes Agent** (the Nous Research\n  self-improving agent framework) vs. **Hermes 3** (just a local LLM you run via\n  Ollama). Install, run `hermes setup --portal`, configure providers, personality\n  (`SOUL.md`), memory/skills, MCP, and messaging.\n  → Read [`references/hermes.md`](references/hermes.md)\n\nWhen in doubt about a tool's current behavior, fetch the official docs:\nOpenClaw — https://docs.openclaw.ai/ ·\nHermes — https://hermes-agent.nousresearch.com/docs/\n\n## General workflow\n\n1. **Clarify the goal and platform.** Install vs. configure vs. fix? Which OS?\n   Which tool/client?\n2. **Inspect current state.** `read_file` the relevant config files and use\n   `list_processes` to check whether the relevant process/port/service is already\n   running before changing anything.\n3. **Read the matching reference file** for exact paths and commands.\n4. **Make the smallest change that moves forward**, backing up configs first.\n5. **Verify** the result concretely.\n6. **Summarize** what changed, where, and how to undo it — with secrets redacted.\n\n## A generic \"my agent isn't responding\" diagnostic\n\nUse this order for OpenClaw, Hermes, or any local agent/gateway:\n\n1. **Provider/auth** — is a valid API key configured for the active provider,\n   and does it have credit? (Most failures stop here.)\n2. **Model** — does the chosen model exist, and does it support tool-calling?\n   Local models especially often don't.\n3. **Process/port** — is the gateway/daemon actually running and listening on\n   its port? Is another process holding that port?\n4. **Connection** — for chat clients/websockets, does it connect but drop on\n   first message? That usually points back to provider/model, not networking.\n5. **Logs** — read the tool's logs for the first real error, not the last one.\n","frontmatter":{"name":"ai-tools-setup","version":"0.1.0","audience":"agent","description":"Set up, connect, validate, and repair Claude Desktop and MCP servers using Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json, getting MCP servers to connect, and diagnosing local AI tooling. Use when a user wants to install, configure, connect, validate, or fix Claude Desktop, an MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also covers local agent gateways like OpenClaw and Hermes."},"isInternal":false,"tokens":1431,"sizeBytes":5845},{"name":"linux.md","path":"plugins/claude/skills/computer-health-check/references/linux.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/linux.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/linux.md)","tokens":300,"sizeBytes":258},{"name":"macos.md","path":"plugins/claude/skills/computer-health-check/references/macos.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/macos.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/macos.md)","tokens":300,"sizeBytes":258},{"name":"windows.md","path":"plugins/claude/skills/computer-health-check/references/windows.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/windows.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/windows.md)","tokens":300,"sizeBytes":262},{"name":"SKILL.md","path":"plugins/claude/skills/computer-health-check/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/SKILL.md","title":"computer-health-check","category":"anthropic-skill","format":"markdown","content":"---\nname: computer-health-check\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Run a comprehensive, read-only health check on the user's computer and return a\n  scored chat summary with prioritized, plain-English recommendations and safe cleanup\n  suggestions. Use this whenever the user wants to check their computer's health, speed\n  it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check\n  battery health and wear, audit login & startup items, see pending updates, or asks for\n  a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop\n  healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan\n  so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\".\n  Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a\n  real local shell (start_process / interact_with_process) and is strictly read-only by\n  default — it never needs sudo and only performs cleanups the user explicitly approves.\n---\n\n# Computer Health Check\n\n## What this skill does\n\nGive the user a fast, trustworthy picture of their computer's health and a short list\nof actions worth taking — the way a good technician would: look first, explain plainly,\nfix only with permission.\n\nIt runs entirely through Desktop Commander's local shell, gathers a batch of **read-only**\ndiagnostics, scores each area, prints a concise summary **in the chat**, and then offers\ncleanup suggestions the user can approve one by one.\n\n## The safety contract (read this first)\n\nThis is the part that makes users trust the skill, so honor it strictly:\n\n- **Read-only by default.** The collection phase only *observes* (sizes, counts, status).\n  It changes nothing.\n- **Never use `sudo` or elevation.** DC blocks `sudo`, `shutdown`, `reboot`, `dd`, `mount`,\n  `mkfs`, `diskpart`, etc. for good reason. Every check below is designed to work without\n  them. If something seems to need elevation, skip it and say so — don't try to work around\n  the block.\n- **Cleanups are opt-in.** You may *suggest* cleanups freely, but only *execute* one after\n  the user explicitly approves that specific action, and only show the exact command first.\n- **Prefer reversible, non-destructive actions.** Emptying caches that regenerate, clearing\n  a package-manager download cache, or emptying Trash are fine to offer. Deleting user\n  documents, uninstalling apps, or editing system files are not — suggest those, let the\n  user do them.\n\n## Workflow\n\n### Step 1 — Detect the OS\n\nDetermine the platform before doing anything else, because the commands differ.\n\n- Quickest: read Desktop Commander's config (`get_config`) and use the\n  `systemInfo.isMacOS` / `isWindows` / `isLinux` booleans (or `platformName`) to\n  pick the platform.\n- Or run `uname` (macOS/Linux) — if it fails, assume Windows.\n\nThen open the matching reference file and use its command set:\n\n- macOS → [`references/macos.md`](references/macos.md)\n- Windows → [`references/windows.md`](references/windows.md)\n- Linux → [`references/linux.md`](references/linux.md)\n\nRead **only** the one that matches. Each file contains a single batched collection script\nplus interpretation notes and cleanup commands.\n\n### Step 2 — Collect (read-only)\n\nRun the batched collection script from the reference file with `start_process`. Batching\neverything into one call is much faster than many small calls and keeps the output tidy.\n\nGuidance:\n- Keep outputs bounded (`head`, `Select-Object -First`, etc.) so a long process list or\n  file listing doesn't flood the response.\n- Skip the genuinely slow / network checks (full OS-update list, internet speed test) on the\n  first pass unless the user asked about updates or network. Mention they're available.\n- If a single command errors (e.g., a tool isn't installed), continue — partial data is fine.\n\n### Step 3 — Score each area\n\nRate each category 🟢 Good / 🟡 Watch / 🔴 Act using the rubric below, then compute a simple\noverall score. Start at 100 and subtract 8 per 🟡 and 18 per 🔴; floor at 0. Report the\nnumber and a one-word verdict (90+ Excellent, 75–89 Good, 60–74 Fair, <60 Needs attention).\n\n| Area | 🟢 Good | 🟡 Watch | 🔴 Act |\n|---|---|---|---|\n| Free disk space | >20% free | 10–20% | <10% |\n| Disk health (SMART) | Verified / OK / PASSED | — | failing / not supported & errors present |\n| Memory pressure | low swap, free pages healthy | noticeable swap/compression | heavy swapping, near-zero free |\n| Battery (laptops) | ≥80% max capacity, Normal | 70–80% | <70% or \"Service/Replace\" |\n| Maintenance | uptime <7d, no pending updates | uptime 7–30d or minor updates | uptime >30d or security updates pending |\n| Startup load | few third-party login items | moderate | many heavy third-party agents |\n| Live resource hogs | nothing >50% at idle | one sustained heavy process | multiple / runaway processes |\n\nBattery is laptop-only — skip it on desktops/VMs. Reclaimable space is reported as an\ninformational figure, not scored.\n\n### Step 4 — Report in the chat\n\nUse this exact structure. Keep it tight and scannable — this is the deliverable.\n\n```\n🖥️  Health Check — <Model>, <OS version>     Score: <N>/100 (<verdict>)\n\n🟢/🟡/🔴  Storage      — <free> free of <total> (<%>). Reclaimable: ~<X> GB\n🟢/🟡/🔴  Memory       — <one-line state>\n🟢/🟡/🔴  Battery      — <cycles> cycles, <max capacity>%, <condition>\n🟢/🟡/🔴  Maintenance  — up <days>d, <updates state>\n🟢/🟡/🔴  Startup      — <count> login items (<notable ones>)\n🟢/🟡/🔴  Right now    — top: <proc> <cpu%>, <proc> <cpu%>\n\nTop recommendations\n1. <highest-impact action> (<expected benefit, e.g. frees ~13 GB>)\n2. <next>\n3. <next>\n```\n\nList at most the 3–5 highest-impact recommendations, ordered by benefit. Don't dump every\nfinding — the goal is signal, not a wall of text.\n\n### Step 5 — Suggest cleanups, execute only on approval\n\nFor each recommendation that maps to a concrete command (see the reference file's \"Cleanup\"\nsection), offer it and show the exact command. Then:\n\n- **Safe, reversible** (offer to run on a yes): empty Trash, package-manager cache cleanup\n  (`brew cleanup`, `npm cache clean`), clearing a regenerating user cache folder. (On Linux,\n  `apt-get clean` / `dnf clean` need root — suggest, don't auto-run.)\n- **Needs the user to decide / act** (suggest, don't auto-run): disabling login items,\n  installing OS updates (requires restart), uninstalling apps, deleting files in Downloads.\n- **Never**: anything requiring sudo/admin, removing system files, disk/partition operations.\n\nWhen the user approves a safe action, run it, then report what changed (e.g., space freed).\nRe-running Step 2's storage check afterward is a nice confirmation.\n\n## Recommendation rules (findings → advice)\n\nThese are the high-value mappings; adapt the wording to the platform.\n\n- **Uptime > 30 days** → \"Restart your computer — it's been up <N> days. A reboot clears\n  memory and applies pending updates.\" (Highest ROI, lowest effort.)\n- **Pending OS/security updates** → platform update step; flag security updates as higher\n  priority.\n- **Free space < 15%** → lead with the biggest reclaimable buckets you measured.\n- **Large Downloads / Caches / Trash** → empty Trash; review largest Downloads items by name;\n  clear caches that regenerate.\n- **Package manager has many outdated items / big cache** → `upgrade` + cache cleanup.\n- **Battery max capacity < 80%** → explain wear is normal; consider a battery service if it's\n  affecting runtime.\n- **Many third-party startup agents** → name them and suggest disabling the ones the user\n  doesn't recognize/need (point to System Settings / Task Manager — don't edit them directly).\n- **A process pinned high at idle** → name it and suggest quitting/investigating.\n\n## Notes & pitfalls\n\n- **Don't assume — measure.** Always run the commands and report real numbers. Never\n  fabricate sizes, cycle counts, or statuses.\n- **Bounded output.** Process and file listings can be huge; always cap them.\n- **Optional deep checks** (mention, run on request): internet speed test, full update list,\n  per-folder disk scan of the whole home directory, crash-report trend analysis.\n- **Privacy.** This reads local system metadata only. Don't send anything off the machine;\n  the public-IP check is optional and should be labeled.\n- **Cross-platform parity.** The three reference files mirror the same categories so the\n  report looks the same regardless of OS.\n","frontmatter":{"name":"computer-health-check","version":"0.1.0","audience":"agent","description":"Run a comprehensive, read-only health check on the user's computer and return a scored chat summary with prioritized, plain-English recommendations and safe cleanup suggestions. Use this whenever the user wants to check their computer's health, speed it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check battery health and wear, audit login & startup items, see pending updates, or asks for a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\". Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a real local shell (start_process / interact_with_process) and is strictly read-only by default — it never needs sudo and only performs cleanups the user explicitly approves."},"isInternal":false,"tokens":2117,"sizeBytes":8603},{"name":"SKILL.md","path":"plugins/claude/skills/desktop-commander-overview/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/desktop-commander-overview/SKILL.md","title":"desktop-commander-overview","category":"anthropic-skill","format":"markdown","content":"---\nname: desktop-commander-overview\ndescription: Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.\nversion: 0.1.0\naudience: agent\n---\n\n# Desktop Commander MCP\n\nDesktop Commander gives the agent reach across the user's actual computer — files, folders, terminals, processes, structured documents, and remote machines reachable over SSH. The tools' detailed schemas (parameters, return shapes, format-specific behavior) live in the MCP itself; this skill explains what they enable and how they compose into common workflows.\n\n## What this MCP gives the agent\n\n**Persistent shell sessions.** Desktop Commander keeps a started process or session alive across tool calls. Inside a single long-lived shell, REPL, or SSH session, state carries forward — environment variables, working directory, activated virtualenvs, open connections, REPL variables — so the agent can `cd`, activate a venv, then send commands or code into that same session many turns later without re-setup. (Note: separate `start_process` calls open separate sessions and do **not** share shell state with each other; persistence is inside one session, not across them.)\n\n**Long-running processes.** Start a dev server, watcher, build, training run, or test suite in the background and keep working. The MCP returns a process handle the agent can tail, interact with, or terminate across many turns. Long-running commands don't need to block the workflow waiting for a foreground command to exit.\n\n**Filesystem reach beyond the IDE workspace.** Read, write, move, list, and inspect files anywhere the user has granted scope — Downloads, Documents, project folders outside the IDE, or any other granted folders. Useful for organize-and-clean tasks, batch document work, and any \"look at the file my coworker just sent me\" request that doesn't fit inside the IDE sandbox.\n\n**Surgical edits to existing files.** The `edit_block` tool does exact-string find-and-replace with built-in safety: ambiguous matches fail loudly instead of silently overwriting the wrong thing, and an `expected_replacements` count prevents partial-match disasters. Lower data-loss risk than rewriting whole files based on the slice you happened to read — though a wrong `old_string` or wrong `expected_replacements` can still corrupt content, so review the changed content before considering the edit done.\n\n**Binary and structured files handled directly by the MCP.** Excel, DOCX, and PDF are first-class — read and modified through format-specific mechanisms rather than text-only approximations: Excel via cell-range JSON, DOCX via raw-XML edits, PDF via page-level operations on a new output file. The result is the real file in its original format, not a regenerated approximation. Images and PDFs return as viewable content for the agent.\n\n**Search at scale.** Streaming, ripgrep-backed search across whole projects or folder trees. The agent picks between filename search and in-file content search, pages through results progressively without flooding context, and runs multiple concurrent searches when the query is ambiguous.\n\n**Remote machines via SSH.** A long-lived SSH session inside a persistent shell turns the agent into a real ops tool: connect once, then tail logs, run diagnostics, deploy, or debug across many turns without reconnecting each step.\n\n**Process management.** List, inspect, tail, and kill accessible processes (subject to OS permissions). Useful for cleaning up stale dev servers from previous sessions and for diagnosing CPU / memory issues.\n\n## Example workflows\n\nEach example names the actual tool sequence. Calls below are written in pseudocode shorthand (`tool_name(\"arg\", flag=value)`); the real tools take object-shaped arguments. Tool descriptions and full parameter sets live in the MCP itself.\n\n### \"Debug this production issue\"\n\nBefore running production-impacting SSH commands, explain the intended action and get user confirmation when the risk is non-trivial.\n\n`start_process(\"ssh user@prod.example.com\", timeout_ms=...)` opens a long-lived SSH session and returns a PID. `interact_with_process(pid, \"tail -f /var/log/app.log\\n\")` starts streaming logs. Subsequent turns: `read_process_output(pid, offset=-50)` to see the last 50 lines as they arrive, `interact_with_process(pid, \"...\")` to run diagnostic commands in the same session. `force_terminate(pid)` to close the session when done — for sessions opened by `start_process`, `force_terminate` is the correct cleanup tool; `kill_process` is for arbitrary OS PIDs found via `list_processes`.\n\n### \"Deploy this to staging\"\n\nBefore deploys, restarts, migrations, or other environment-changing commands, summarize the action and confirm with the user unless they already explicitly asked for that exact operation.\n\n`start_process` for the deploy command (could be a script, an SSH-piped command, or `kubectl`/`gh` etc.). `read_process_output` to track output and surface errors. If the deploy needs an interactive confirmation, `interact_with_process(pid, \"yes\\n\")`. The session stays alive while the agent watches for completion or rollback.\n\n### \"Run the dev server and iterate on the API\"\n\n`start_process(\"npm run dev\", timeout_ms=...)` keeps the server up. The agent then loops: `edit_block` on the route file, `read_process_output(pid, offset=-30)` to see the server's reload, `start_process(\"curl -s http://localhost:3000/api/...\")` for a one-shot test, repeat. The dev server never has to restart between code changes.\n\n### \"Refactor across this monorepo\"\n\n`start_search(pattern=\"oldFunctionName\", path=repo_root, searchType=\"content\")` scopes every call site. `get_more_search_results(sessionId)` pages through. `read_multiple_files(paths=[...])` confirms ambiguous hits in context. `edit_block(file_path, old_string, new_string)` per site, with `expected_replacements` set when the same substring legitimately appears multiple times in one file. Verify by re-running `start_search` on the old name and paging the results with `get_more_search_results(sessionId)` until the run completes — only then can you confirm zero remaining hits.\n\n### \"Update the Q3 numbers in this spreadsheet and tweak the summary in the report\"\n\n`read_file(path=\"/.../q3.xlsx\", sheet=\"Revenue\", range=\"A1:F50\")` returns the existing numbers as a JSON 2D array. `edit_block(file_path=\"/.../q3.xlsx\", range=\"Revenue!C12:C24\", content=[[12345], ...])` updates the cells in place. For the report, DOCX editing is a two-read flow: first `read_file(path=\"/.../report.docx\")` (offset 0) returns the document's outline (headings + paragraph text) so you can locate the summary section. Then `read_file(path=\"/.../report.docx\", offset=N, length=...)` with **`N > 0`** returns the raw underlying XML around that section — a non-zero offset is what flips the read into XML mode. Copy an XML fragment from that output as `old_string` and call `edit_block(file_path, old_string, new_string)` with the rewritten XML. The user gets back real `.xlsx` and `.docx` files, not regenerated approximations.\n\n### \"Generate the Q3 report as a PDF\"\n\nCompose markdown content (header, table, charts via embedded HTML), then call `write_pdf` to render it to a new PDF file. The MCP's `write_pdf` tool description specifies the exact parameters and filename rules — follow that.\n\n### \"Insert a cover page into this PDF\"\n\n`write_pdf` also supports modifying existing PDFs via an operations array (insert / delete pages). Use it for existing-PDF edits that produce a new PDF — adding a cover page, removing a section, merging in content from another file. See the `write_pdf` tool description for the operation shapes and parameter rules.\n\n### \"Analyze this 200MB CSV\"\n\n`start_process(\"python3 -i\", timeout_ms=...)` opens a Python REPL and returns a PID. `interact_with_process(pid, \"import pandas as pd; df = pd.read_csv('/abs/path.csv')\")` loads it once. Every subsequent question — `df.describe()`, `df.groupby('col').size()`, plot a chart — runs in the same already-loaded REPL. Libraries don't re-import, the dataframe doesn't re-load. The MCP itself recommends this workflow for any local data-file analysis.\n\n### \"Run a quick Node script\"\n\n`start_process(\"node:local\", timeout_ms=...)` opens a stateless Node execution mode on the MCP server itself — ES imports supported. `start_process` opens the runner; each piece of JS is sent via `interact_with_process(pid, \"<your JS here>\")` and runs independently (no shared state between calls). Good for one-shot transformations where keeping a long-lived REPL alive isn't worth it. Don't try to put code into the `start_process` command argument — only the runner type (`node:local`) goes there.\n\n### \"Explain this codebase\"\n\n`list_directory(path=repo_root, depth=3)` for shape. `start_search(pattern=\"export \", path=repo_root, searchType=\"content\")` to find the public surface. `read_multiple_files(paths=[entrypoints])` for the actual code. The agent can keep narrowing without re-asking the user where to look.\n\n### \"Organize my Downloads folder\"\n\nResolve the path to absolute first (e.g., `/Users/<user>/Downloads`, not `~/Downloads`). Then `list_directory(path=\"/Users/<user>/Downloads\", depth=1)` to see what's there. `start_search(pattern=\"*.pdf\", path=\"/Users/<user>/Downloads\", searchType=\"files\")` and similar for other types. `create_directory` for new folders. `move_file` per item. Preview the move plan before executing destructive ops.\n\n### \"Onboard me — what was happening last session?\"\n\n`get_recent_tool_calls(maxResults=200)` returns recent activity with arguments and outputs. `list_sessions` shows still-running terminal sessions. `list_searches` shows in-flight searches. `list_processes` shows what's still alive. Together they reconstruct the work without asking the user to recap.\n\n### \"Why isn't the REPL responding?\"\n\n`list_sessions` — if `Blocked: true`, the REPL is waiting for input rather than hung. `read_process_output(pid, offset=-100)` to see what it last printed (often a prompt). `interact_with_process(pid, \"<the input it's waiting for>\\n\")` unblocks it.\n\n## Core tool inventory\n\nGrouped index of the tools an agent reaches for most often. Not exhaustive — the MCP exposes additional config / diagnostics / feedback tools beyond this list. Detailed parameters and return shapes for every tool are in the MCP's own tool descriptions.\n\n- **Process / shell:** `start_process`, `interact_with_process`, `read_process_output`, `list_processes`, `list_sessions`, `kill_process`, `force_terminate`\n- **Files (read/write):** `read_file`, `read_multiple_files`, `write_file`, `edit_block`, `write_pdf`\n- **Filesystem:** `list_directory`, `get_file_info`, `move_file`, `create_directory`\n- **Search:** `start_search`, `get_more_search_results`, `list_searches`, `stop_search`\n- **Diagnostics / config:** `get_recent_tool_calls`, `get_config`\n\n## Conventions\n\n**Prefer absolute paths.** Relative paths may fail depending on the working directory, and tilde paths (`~/...`) may not expand in all contexts. Absolute paths are the most reliable; pass them whenever you can.\n\n**Allowed-directory scope.** File operations only work inside the user's configured `allowedDirectories`. Expect `[DENIED]` markers in `list_directory` output and rejections from `read_file` / `write_file` when the path is out of scope. Surface the rejected path to the user — don't retry.\n\n**When running on macOS:** default shell is zsh. Use `python3` not `python`. Some GNU tools have prefixed names (`gsed` for GNU sed). `brew` is the typical package manager. `open` opens files / apps from the terminal, `mdfind` is the fastest path to exact-filename search via Spotlight. Detect the host platform via `get_config` (or by inspecting `process.platform` / `uname` from a shell) before assuming any of the above — Windows and Linux hosts behave differently.\n\n**Pagination.** Long outputs (file reads, process output, search results) all support `offset` and `length`. Negative offsets read from the end (tail mode). Use these instead of dumping huge results into context.\n","frontmatter":{"name":"desktop-commander-overview","description":"Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.","version":"0.1.0","audience":"agent"},"isInternal":false,"tokens":2713,"sizeBytes":12282},{"name":"SKILL.md","path":"plugins/claude/skills/knowledge-base/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/knowledge-base/SKILL.md","title":"knowledge-base","category":"anthropic-skill","format":"markdown","content":"---\nname: knowledge-base\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Create and maintain a Markdown knowledge base that any AI agent can read,\n  search, and update. Use when the user wants to start a knowledge base, add or\n  update notes, organize docs/notes for an agent or LLM to consume, build an\n  index of notes, or run a cleanup/maintenance pass on an existing MD knowledge\n  base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index\n  of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the\n  KB\".\n---\n\n# Knowledge Base (Markdown, agent-readable)\n\nA knowledge base (KB) here is a folder of Markdown files designed so **any** AI\nagent can navigate it without a vector database: the agent reads one index file,\npicks the relevant notes by their descriptions, and opens only those. Keep the\nwhole KB readable and the index lean — the index is what gets loaded into\ncontext, so it must be high-signal.\n\nApply the rules below when creating a new KB, adding/editing notes, or doing a\nmaintenance pass. When the user's request is ambiguous (new KB vs. add note vs.\ncleanup), ask which one before acting.\n\n## Core principles (the \"why\")\n\n1. **Index-first navigation.** The index is a map, not a container. An agent\n   reads `INDEX.md`, selects notes by their one-line descriptions, then opens\n   only those files. No note is \"in\" the KB unless it's registered in the index.\n2. **Atomicity.** One topic per note. If a title needs an \"and\", it's probably\n   two notes. Atomic notes are easier to find, link, and reuse.\n3. **Stable IDs.** Every note has a permanent ID that never changes and is never\n   reused, so links survive renames and moves.\n4. **Linked with reason.** When two notes connect, state *why* (prerequisite,\n   supports, contrasts, see-also). Connections carry as much value as the notes.\n5. **Lean instructions.** Keep `INDEX.md` instructions short and high-signal —\n   it competes for the agent's context budget. Bodies load on demand.\n6. **Structured for retrieval.** Clear H1 title and H2/H3 sections so an agent\n   can grab the relevant slice of a note, not the whole thing.\n\n## Folder structure (nested by topic)\n\n```\nknowledge-base/\n  INDEX.md                 # entry point: instructions + full note registry\n  topics/\n    <topic>/\n      _topic.md            # topic map: what this topic covers + its notes\n      <slug>.md            # one atomic note\n  assets/                  # images / attachments referenced by notes\n```\n\n- Topic folders are short, lowercase nouns (`auth`, `billing`, `deploys`).\n- `_topic.md` is the topic-level map of content (MOC): a short intro plus links\n  to every note in that topic. It is a convenience view; `INDEX.md` remains the\n  source of truth.\n\n## Naming rules\n\n- Lowercase **kebab-case**, predictable and greppable: `topics/auth/session-tokens.md`.\n- No spaces, no uppercase, no dates in filenames (dates live in frontmatter).\n- The filename slug should match the note's `id` slug portion.\n\n## Required frontmatter (every note)\n\n```yaml\n---\nid: 20260618-session-tokens     # ID scheme: YYYYMMDD-slug. Stable. Never reuse or change.\ntitle: Session tokens           # human title, also the note's H1\ntags: [auth, security]          # only tags from the controlled list in INDEX.md\ncreated: 2026-06-18\nupdated: 2026-06-18\nrelated: [20260618-auth-flow]    # IDs of linked notes\nsummary: One scannable sentence describing what this note covers.\n---\n```\n\n- `id`: `YYYYMMDD-slug`. Sortable, readable, stable. Different-titled same-day\n  notes differ by slug; if two same-day notes would collide on the same slug,\n  append `-2`, `-3`, … (check the `INDEX.md` registry before assigning). Once\n  assigned, the id is permanent.\n- `summary`: this exact sentence is what goes in the index registry — write it to\n  help an agent decide whether to open the note.\n- `updated`: bump it whenever the body changes.\n\n## Note body shape\n\n```markdown\n# Session tokens\n\n> Summary: One sentence (mirrors frontmatter summary).\n\n## Context\nWhy this note exists / when it applies.\n\n## Details\nThe actual content, in short H2/H3 sections.\n\n## Related\n- [Auth flow](auth-flow.md) — prerequisite: tokens are issued during the auth flow.\n- [Rate limiting](../api/rate-limiting.md) — see-also: tokens carry the rate-limit key.\n```\n\n- Use **relative links** between notes and annotate the relationship in a phrase.\n- Every link target should also appear in the note's `related` frontmatter.\n\n## INDEX.md (the single source of truth)\n\n`INDEX.md` has two parts: operating instructions for agents, and the registry.\n\n```markdown\n# Knowledge Base — Index\n\n## How to use this KB (for agents)\n1. Read this index first. Pick notes by their descriptions; open only those.\n2. To answer a question, prefer opening 1–3 specific notes over scanning everything.\n3. Cite the note `id` when you use information from it.\n\n## How to update this KB (for agents)\n- New idea → create a new note (atomic). Same idea changed → edit the note in place and bump `updated`.\n- Any create / rename / delete MUST update this registry and the topic's `_topic.md` in the same change.\n- Use only tags from the controlled vocabulary below; add a new tag here before using it.\n\n## Controlled tags\n`auth`, `security`, `billing`, `api`, `ops`   <!-- extend deliberately -->\n\n## Registry\n### auth\n- `20260618-auth-flow` — **Authentication flow** — `topics/auth/auth-flow.md` — How a user session is established end to end.\n- `20260618-session-tokens` — **Session tokens** — `topics/auth/session-tokens.md` — Token format, lifetime, and rotation.\n\n### billing\n- `20260618-invoicing` — **Invoicing** — `topics/billing/invoicing.md` — How invoices are generated and sent.\n```\n\nRegistry line format: `` `id` — **Title** — `path` — one-line description.``\n\n## _topic.md (topic map)\n\n```markdown\n# Auth\n\nNotes covering authentication, sessions, and access control.\n\n- [Authentication flow](auth-flow.md) — how a session is established.\n- [Session tokens](session-tokens.md) — token format, lifetime, rotation.\n```\n\n## Workflows\n\n### Create a new KB\n1. `create_directory` for the folder structure above.\n2. `write_file` `INDEX.md` with the instructions block, an empty controlled-tag\n   list, and an empty registry.\n3. Add the first topic folder + `_topic.md`, then the first note (each via `write_file`).\n4. Register the note in `INDEX.md` and link it from `_topic.md` — `edit_block`\n   both so you touch only the changed lines.\n\n### Add a note\n1. Pick or create the topic folder (`list_directory` to see what's there).\n2. `write_file` the note (kebab-case slug) with full frontmatter and the body shape.\n3. Add cross-links (and mirror them in `related`).\n4. Register it in `INDEX.md` and link it in `_topic.md` with `edit_block` — same change.\n\n### Update a note\n- Same idea, new information → `edit_block` the note in place, bump `updated`, and\n  `edit_block` the registry line if the scope changed.\n- Genuinely new idea → `write_file` a new atomic note instead of expanding this one.\n\n### Maintenance pass (run on demand)\nUse `start_search` (ripgrep) for text scans and `get_file_info` / `list_directory`\nfor existence checks — together they make this tractable at scale:\n- **Orphans** (no *inbound* links — outbound doesn't matter): `start_search` the\n  KB for the note's `id` and filename slug, then discount the self-matches that\n  always exist — the note's own file, `INDEX.md`, and its `_topic.md`. Anything\n  left is a genuine inbound reference; nothing left = orphan, so link it from a\n  relevant note/MOC or archive it.\n- **Broken links / drift**: don't infer resolution from a text hit — a string\n  existing doesn't mean the file does. Confirm each registry path and `related:`\n  target exists with `get_file_info` (or `list_directory` per topic), and that\n  every file on disk is registered. Use a text compare only for the\n  titles/summaries-out-of-sync half.\n- **Non-atomic notes**: notes that grew to cover multiple topics → split them.\n- **Duplicates**: near-identical notes → merge, keep one `id`, redirect links.\n- **Tag sprawl**: read the controlled list from `INDEX.md`, then `start_search`\n  the frontmatter `tags:` lines and flag any tag not on the list → reconcile.\nPull candidates in bulk with `read_multiple_files`, apply fixes with `edit_block`,\nand report what changed.\n\n## Checklist before finishing any KB edit\n- [ ] Every new/changed note has complete, valid frontmatter.\n- [ ] `id` is unique and unchanged; filename slug matches the id slug.\n- [ ] All links resolve and are mirrored in `related`.\n- [ ] `INDEX.md` registry and the topic `_topic.md` reflect the change.\n- [ ] Tags are from the controlled vocabulary.\n- [ ] `updated` bumped on every changed note.\n","frontmatter":{"name":"knowledge-base","version":"0.1.0","audience":"agent","description":"Create and maintain a Markdown knowledge base that any AI agent can read, search, and update. Use when the user wants to start a knowledge base, add or update notes, organize docs/notes for an agent or LLM to consume, build an index of notes, or run a cleanup/maintenance pass on an existing MD knowledge base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the KB\"."},"isInternal":false,"tokens":2170,"sizeBytes":8791},{"name":"SKILL.md","path":"plugins/claude/skills/obsidian-vault/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/obsidian-vault/SKILL.md","title":"obsidian-vault","category":"anthropic-skill","format":"markdown","content":"---\nname: obsidian-vault\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties,\n  dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user\n  explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or\n  an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases\n  plugins, or Obsidian Properties. Within that Obsidian context it covers\n  creating Maps of Content, adding/fixing wikilinks, finding orphan notes,\n  normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing\n  folders, deduplicating or renaming notes, and preparing the vault for AI use.\n  Do NOT use this skill for generic note-taking, Markdown, or knowledge-base\n  requests that don't mention Obsidian.\n---\n\n# Obsidian Vault Assistant\n\nHelp the user organize and maintain an Obsidian vault: build navigation with\nMOCs and wikilinks, normalize metadata, generate dashboards, find and fix\norphans, organize folders, deduplicate/rename, and prepare the vault for AI use.\n\nObsidian-specific facts that shape every rule here:\n- Links are **wikilinks** resolved by **filename**, not path: `[[Note title]]`.\n  Renaming a note auto-updates links inside Obsidian, but moving files outside\n  Obsidian breaks them — always rename via Obsidian when possible.\n- Metadata is **Properties** (YAML frontmatter) at the top of a note.\n- Dashboards come from **Dataview** (query language, read-only, flexible) or\n  **Bases** (native, editable tables, fast on big vaults, properties-only).\n\nBefore acting, confirm the vault's root folder and whether the user has the\nDataview plugin installed (Bases is built in since Obsidian 1.9). When a request\nis ambiguous (organize vs. clean up vs. dashboard), ask which task.\n\n## Wikilinks\n\n- Basic: `[[Three laws of motion]]` — resolves by filename, no extension/path.\n- Display text (pipe): `[[atomic-habits|James Clear — Atomic Habits]]`.\n- Heading link: `[[Note#Section]]`. Block link: `[[Note#^block-id]]`.\n- Embed/transclude: `![[Note]]`, `![[Note#Section]]`, `![[image.png]]`.\n- Aliases: add an `aliases` property so the note resolves under other names.\n- Avoid `# | ^ : %` and `[ ]` in filenames — they have special meaning in links.\n- Prefer wikilinks for internal navigation; use standard Markdown links only if\n  the vault is also published to a tool that can't parse wikilinks.\n\nWhen adding links, also surface **unlinked mentions**: if a note's title appears\nas plain text in other notes, convert those to wikilinks.\n\n## Maps of Content (MOCs)\n\nA MOC is a note that links the related notes on a topic — the vault's navigation\nlayer (more flexible than folders or tags, and needs no institutional knowledge).\n\nConventions:\n- Name MOCs clearly and tag them: `tags: [moc]` (or a `type: moc` property) so\n  every MOC is itself discoverable.\n- Keep a top-level **Home / Index MOC** that links to all topic MOCs.\n- A MOC holds a short intro plus grouped wikilinks; it can be hand-curated or\n  auto-generated with a Dataview/Bases query (see Dashboards).\n\nMOC template:\n```markdown\n---\ntype: moc\ntags: [moc]\nupdated: 2026-06-18\n---\n# Auth — Map of Content\n\nNotes on authentication, sessions, and access control.\n\n## Core\n- [[auth-flow]]\n- [[session-tokens]]\n\n## Related MOCs\n- [[security-moc]]\n```\n\n## Frontmatter / Properties\n\nAdd a consistent property block to every note. Recommended baseline:\n```yaml\n---\ntitle: Session tokens\naliases: [tokens, session token]\ntags: [auth, security]\ntype: note            # note | moc | dashboard | template | person | project\ncreated: 2026-06-18\nupdated: 2026-06-18\nstatus: evergreen     # seedling | growing | evergreen\nrelated: [\"[[auth-flow]]\"]\n---\n```\nRules:\n- Use a **controlled tag vocabulary** — decide tags up front and reuse them;\n  nested tags (`auth/tokens`) are fine. Don't let tags sprawl.\n- `tags` use no `#` in frontmatter. Dates in ISO `YYYY-MM-DD`.\n- Keep property **names and types consistent across the vault** — Bases and\n  Dataview both depend on this. When normalizing, pick one name per concept\n  (e.g. `created`, not `created`/`date`/`Created`) and migrate the rest.\n\n## Dashboards\n\nPick the engine based on the user's setup:\n\n**Bases** (native, editable, fast — best for operational boards):\n- Create a `.base` file or a `base` code block; it builds table/board views from\n  properties. Each cell edits the underlying note's frontmatter.\n- Use for task lists, reading lists, project pipelines, anything point-and-click.\n\n**Dataview** (plugin, read-only, most flexible — best for reports/auto-MOCs):\n```dataview\nTABLE status, updated, tags\nFROM #auth\nWHERE type = \"note\"\nSORT updated DESC\n```\nAuto-MOC of everything in a topic:\n```dataview\nLIST FROM #auth WHERE type != \"moc\" SORT file.name ASC\n```\nRecently updated:\n```dataview\nTABLE updated FROM \"\" WHERE updated >= date(today) - dur(7 days) SORT updated DESC\n```\nNote: large vaults can lag with heavy Dataview queries — prefer Bases there.\n\n## Orphan notes & link hygiene\n\nAn orphan is a note with no inbound or outbound links. To find and fix:\n1. **From Desktop Commander** (no app needed, scales to big vaults): `start_search`\n   the vault for `[[ ]]` links to each note's title — zero hits means no inbound\n   links (an *unlinked* note); to confirm a true orphan (no inbound **and** no\n   outbound), also scan the note's own body for `[[...]]`. The same searches\n   surface **unlinked mentions** (the title as plain text, not wrapped in `[[ ]]`)\n   and **broken links** (a `[[target]]` whose file is missing).\n2. **Graph view** (Cmd/Ctrl+G): orphans float as isolated dots at the edges.\n3. **Dataview** query for notes with no links:\n   ```dataview\n   LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0\n   ```\n4. For each orphan: link it from a relevant MOC/note (`edit_block` to insert the\n   wikilink), tag it `#needs-link` for a batch pass, or archive if obsolete.\n5. Convert unlinked mentions into real wikilinks and fix broken links with\n   `edit_block`; resolve the rest from Obsidian's right sidebar.\n\n## Folder organization\n\n- Folders are for coarse buckets; **MOCs + tags do the real organizing**. Don't\n  over-nest folders.\n- A workable layout:\n  ```\n  00-inbox/        # unsorted captures\n  10-notes/        # atomic notes\n  20-mocs/         # maps of content\n  30-projects/\n  90-assets/       # images/attachments\n  99-archive/\n  templates/\n  ```\n- Set the attachment folder in Settings so embeds land in `90-assets/`.\n- **Moves/renames must happen inside Obsidian** so wikilinks update automatically\n  — do **not** use `move_file` for these, it breaks every `[[link]]`. From Desktop\n  Commander, only edit *content* (`edit_block` / `write_file`); leave moving and\n  renaming to the user in the app.\n\n## Deduplicate & rename\n\n- **Duplicates**: `start_search` titles/aliases to find near-identical notes;\n  merge into one, keep the most-linked filename, copy unique content with\n  `edit_block`, then `start_search` for inbound `[[links]]` to the discarded note\n  and repoint them before deleting it.\n- **Renames**: do them inside Obsidian (Rename note / `F2`) so backlinks update —\n  not via `move_file`. Keep an `aliases` entry for the old name if it was widely\n  referenced.\n- Standardize filenames: pick one convention (kebab-case or Title Case) and\n  apply it consistently; avoid the special characters listed above.\n\n## Prepare the vault for AI use\n\n- Ensure **consistent frontmatter** (same property names/types) so an agent can\n  filter and reason over metadata.\n- Maintain a **Home/Index MOC** as the single entry point an agent reads first.\n- Write a one-line `summary`/`description` property per note for quick scanning.\n- Reduce orphans and broken links so the link graph is a reliable map.\n- Keep notes **atomic** (one idea each) — easier for an agent to retrieve and cite.\n- Consider exporting wikilinks to standard Markdown links if the AI tool can't\n  parse `[[ ]]`.\n\n## Workflows\n\n- **Build navigation**: `write_file` topic MOCs → `edit_block` notes to link them\n  in → refresh the Home MOC → convert unlinked mentions.\n- **Normalize metadata**: `read_multiple_files` to audit properties → pick\n  canonical names → `edit_block` each note → add missing baseline properties.\n- **Cleanup pass**: `start_search` for orphans, broken links, and unlinked\n  mentions → dedupe → report what changed (renames stay in Obsidian).\n- **Dashboard**: confirm Dataview vs. Bases → `write_file` the view from properties/tags.\n\n## Checklist before finishing\n- [ ] New/changed notes have consistent frontmatter (canonical property names).\n- [ ] Renames/moves done inside Obsidian; no links broken.\n- [ ] New notes linked from at least one MOC or note (no new orphans).\n- [ ] Tags drawn from the controlled vocabulary.\n- [ ] Dashboards reference properties/tags that actually exist.\n- [ ] `updated` bumped on changed notes.\n","frontmatter":{"name":"obsidian-vault","version":"0.1.0","audience":"agent","description":"Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties, dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases plugins, or Obsidian Properties. Within that Obsidian context it covers creating Maps of Content, adding/fixing wikilinks, finding orphan notes, normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing folders, deduplicating or renaming notes, and preparing the vault for AI use. Do NOT use this skill for generic note-taking, Markdown, or knowledge-base requests that don't mention Obsidian."},"isInternal":false,"tokens":2293,"sizeBytes":8950},{"name":"SKILL.md","path":"plugins/claude/skills/terminal/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/terminal/SKILL.md","title":"terminal","category":"anthropic-skill","format":"markdown","content":"---\nname: terminal\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Use Desktop Commander for terminal and command-line work, especially anything\n  that needs a shell whose state persists across turns: Python/Node REPLs,\n  database shells, dev servers and other long-running processes, SSH into remote\n  machines, and Windows PowerShell. Also handles everyday terminal tasks —\n  navigating folders, choosing the right command for the user's shell\n  (PowerShell, cmd, bash, zsh), running Docker/curl/cloud-CLI commands,\n  inspecting processes and ports, and saving recurring workflows as scripts —\n  even when the user doesn't say \"Desktop Commander\" or \"terminal.\" Reach for it\n  on pasted errors like \"command not found\", \"permission denied\", \"EADDRINUSE\",\n  \"address already in use\", \"npm ERR!\", \"ModuleNotFoundError\", or \"ENOENT\", and\n  on intents like \"what's using port 3000\", \"kill that process\", \"ssh into my\n  server\", or \"why won't my dev server start\". Works on Windows, macOS, and\n  Linux. Never run destructive commands without explicit confirmation.\n---\n\n# Terminal Command Assistant\n\nBe a calm, safe, cross-platform terminal copilot. The user may be an expert or\nmay be opening a terminal for the first time — read their cues and match them.\nExplain what a command does in plain language, run it through Desktop Commander,\nread the real output, and explain the result. The user's machine is the source\nof truth; never assume the OS, shell, or installed tools — detect them.\n\n## 1. Detect the environment first (do this before suggesting commands)\n\nDifferent OSes and shells need different commands. Before recommending or running\nanything non-trivial, call **`get_config`** (Desktop Commander) and read\n`systemInfo`:\n\n- `platformName` / `isWindows` / `isMacOS` / `isLinux` — which OS.\n- `defaultShell` and `uiHints.availableShells` — which shell to target.\n- `pythonInfo`, `nodeInfo` — whether Python/Node exist and their versions.\n- `blockedCommands` — commands Desktop Commander refuses to run (see §7).\n- `allowedDirectories` — `[]` means full access; otherwise commands/paths are\n  scoped to those directories.\n\nThis one cheap call prevents the most common mistake: handing a macOS user a\nPowerShell command, or assuming `python3` exists when it doesn't. Cache what you\nlearn for the rest of the session; re-check only if something seems off.\n\n## 2. Choosing the right command for the shell\n\nPick syntax by the detected shell, not by habit. Common equivalents:\n\n| Task | bash / zsh (macOS, Linux) | PowerShell (Windows) | cmd (Windows) |\n|---|---|---|---|\n| List files | `ls -la` | `Get-ChildItem` / `ls` | `dir` |\n| Current dir | `pwd` | `Get-Location` / `pwd` | `cd` |\n| Find file | `find . -name \"*.log\"` | `Get-ChildItem -Recurse -Filter *.log` | `dir /s *.log` |\n| Search text | `grep -r \"TODO\" .` | `Get-ChildItem -Recurse \\| Select-String TODO` | `findstr /s TODO *` |\n| Env var | `echo $HOME` | `$env:USERPROFILE` | `echo %USERPROFILE%` |\n| Set env (session) | `export KEY=val` | `$env:KEY=\"val\"` | `set KEY=val` |\n| Delete file | `rm file` | `Remove-Item file` | `del file` |\n| Copy | `cp a b` | `Copy-Item a b` | `copy a b` |\n| Path separator | `/` | `\\` (or `/`) | `\\` |\n\nNotes that bite people: Windows paths use `\\` and often need quoting when they\ncontain spaces; PowerShell and bash quote/escape differently; `~` expands in\nbash/zsh but not in cmd. When in doubt, prefer the cross-platform tool the user\nalready has (e.g. `python`, `node`, `git`) over shell-specific syntax.\n\n## 3. Running commands with Desktop Commander\n\n**Always use absolute paths.** Relative paths depend on a working directory that\nisn't carried between calls, so they fail unpredictably.\n\n- **One-shot commands** → `start_process` with the command and a timeout. It\n  returns output and a PID. If output is truncated or the process is still\n  running, call `read_process_output` with the PID for more.\n- **Long-running / interactive sessions** (REPLs, SSH, DB shells, `npm create`,\n  anything that prompts) → `start_process` to launch, then\n  `interact_with_process(pid, \"...\")` to send input and `read_process_output`\n  to read responses. End with `force_terminate` if it won't exit on its own.\n- Navigation is just inspection: use `list_directory` and `get_file_info`\n  rather than relying on a persistent `cd`. If you must `cd`, do it inside the\n  same command (`cd /abs/path && some-command`).\n\n### Interactive REPL pattern (the workhorse)\n\nThis keeps state across calls and is the right way to drive Python, Node, a\ndatabase shell, or SSH:\n\n```\nstart_process(\"python3 -i\")          # or \"node -i\", \"ssh user@host\", \"psql ...\"\ninteract_with_process(pid, \"import pandas as pd\")\ninteract_with_process(pid, \"df = pd.read_csv('/abs/path/data.csv')\")\ninteract_with_process(pid, \"print(df.describe())\")\nread_process_output(pid)             # pull more output if needed\n```\n\n## 4. Running specific CLIs\n\n- **Python**: prefer `python3 -i` as an interactive session for multi-step work;\n  for a quick one-off use `python3 /abs/script.py`. Check `pythonInfo.command`\n  from §1 (`python` vs `python3`).\n- **Node**: `node -i` for an interactive session, `node /abs/script.js` for a\n  one-off. `npm`/`pnpm`/`yarn` installs can be slow — give a generous timeout and\n  read remaining output rather than assuming failure.\n- **Docker**: `docker ps`, `docker logs <id>`, `docker compose up -d`. Long\n  builds/runs: launch then poll with `read_process_output`. Treat\n  `docker system prune`, `docker rm`, `docker volume rm` as destructive (§7).\n- **SSH**: launch with `start_process(\"ssh user@host\")`, then drive it with\n  `interact_with_process`. Remote destructive commands deserve the same\n  confirmation rules as local ones.\n- **curl / HTTP**: fine for inspection (`curl -i https://...`). Be careful with\n  anything that pipes a downloaded script straight into a shell\n  (`curl ... | sh`) — that's untrusted code execution; show it and confirm first.\n- **Cloud CLIs** (`aws`, `gcloud`, `az`): read-only commands (`describe`, `list`,\n  `get`) are safe to run; anything that creates, deletes, scales, or changes IAM\n  is high-impact — preview the exact command and confirm. Never echo secrets or\n  credentials into the terminal output.\n\n## 5. Inspecting processes and ports\n\n- **Processes**: `list_processes` (Desktop Commander) for a structured view, or\n  `ps aux` (Unix) / `Get-Process` (PowerShell). Stop one with `kill_process` by\n  PID (`force_terminate` ends a session you started).\n- **What's using a port**:\n  - macOS/Linux: `lsof -i :3000` or `lsof -nP -iTCP -sTCP:LISTEN`\n  - Linux: `ss -ltnp`\n  - Windows PowerShell: `Get-NetTCPConnection -LocalPort 3000`\n  - Windows cmd: `netstat -ano | findstr :3000` (then map the PID)\n- When killing a process, confirm the PID belongs to what the user thinks it\n  does — show the process line before terminating it.\n\n## 6. Explaining errors in plain English\n\nWhen a command fails, don't just retry blindly:\n\n1. Read the **actual** error text from the process output — the real cause is\n   usually in the last few lines, not the first.\n2. Name the cause in one plain sentence (e.g. \"the port's already taken\",\n   \"that package isn't installed\", \"permission denied because the file's owned\n   by root\").\n3. Give the concrete fix command for *their* shell, and explain what it does.\n4. If the fix is risky or guesswork, say so and offer the safe diagnostic first.\n\nCommon ones worth recognizing fast: `command not found` / `not recognized`\n(not installed or not on PATH), `EADDRINUSE` (port in use — see §5),\n`permission denied` / `EACCES` (ownership/permissions, not always fixable with\nelevation), `ENOENT` (path doesn't exist — check absolute path), `npm ERR!`\nblocks (read the resolved error line), non-zero exit codes (report the code).\n\n## 7. Safety: destructive commands and chaining\n\nDesktop Commander already refuses a built-in `blockedCommands` list (things like\n`sudo`, `mkfs`, `format`, `dd`, `fdisk`, `shutdown`, `reboot`, `diskpart`,\n`reg`, `net`). Read the live list from `get_config`; don't assume it.\n\nBeyond that list, treat these as **destructive — never run without the user's\nexplicit confirmation**, even if they'd technically succeed:\n\n- Recursive/forced deletes: `rm -rf`, `Remove-Item -Recurse -Force`, `del /s`,\n  `rd /s`.\n- Overwriting or moving over existing files; wildcard deletes.\n- Disk/format/partition operations.\n- `git reset --hard`, `git clean -fd`, `git push --force` (history/data loss).\n- Database drops/truncates: `DROP`, `TRUNCATE`, `DELETE` without a `WHERE`.\n- `chmod -R` / `chown -R` on broad paths, `killall`, mass process kills.\n- Cloud deletes/scaling/IAM changes; `docker ... prune`/`rm`/volume removal.\n- Anything piping remote content into a shell (`curl ... | sh`).\n\nFor these: show the exact command, explain in one line what it will irreversibly\ndo, and wait for a clear \"yes\". Prefer a dry run or a read-only check first\n(e.g. `ls` the glob before `rm` it, `--dry-run` where the tool supports it).\n\n**Chaining safely**: `&&` runs the next only if the previous succeeded; `;` runs\nregardless; `||` runs only on failure. PowerShell historically uses `;` to\nsequence (it supports `&&`/`||` in v7+, but not all hosts). Keep chains short.\nIf any step in a chain is destructive, don't chain it — run the safe steps,\nconfirm, then run the risky one alone so a failure can't cascade.\n\n## 8. Turning repeated workflows into scripts\n\nWhen the user runs the same sequence repeatedly (or asks to \"save this\"), offer\nto capture it as a script instead of retyping:\n\n- Unix → a `.sh` file with `#!/usr/bin/env bash` (or `zsh`), `set -euo pipefail`\n  for safety, comments explaining each step; make it executable (`chmod +x`).\n- Windows → a `.ps1` (PowerShell) script with comment-based help at the top.\n- Write the file with `write_file` to an absolute path the user chooses, echo\n  it back, and explain how to run it. Parameterize the bits that change\n  (paths, names) rather than hard-coding.\n- If the workflow needs to run on both Windows and Unix, either keep the logic\n  in a cross-platform tool (a small Python/Node script) or provide both a `.sh`\n  and a `.ps1`. Don't pretend one shell script runs everywhere.\n\nKeep scripts small and readable — the goal is something the user can open, trust,\nand edit later, not a black box.\n\n## Operating etiquette\n\n- Preview risky commands before running; run read-only inspection first.\n- Use absolute paths; respect `allowedDirectories`.\n- Never print secrets, tokens, or passwords into output; redact if they appear.\n- Match the user's level: explain jargon when they seem new, stay terse when\n  they're fluent.\n- After a failed command, diagnose from the real output before retrying.\n","frontmatter":{"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."},"isInternal":false,"tokens":2789,"sizeBytes":10761},{"name":"claude-desktop-mcp.md","path":"plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md)","tokens":300,"sizeBytes":270},{"name":"hermes.md","path":"plugins/cursor/skills/ai-tools-setup/references/hermes.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/hermes.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/hermes.md)","tokens":300,"sizeBytes":246},{"name":"openclaw.md","path":"plugins/cursor/skills/ai-tools-setup/references/openclaw.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/openclaw.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/openclaw.md)","tokens":300,"sizeBytes":250},{"name":"SKILL.md","path":"plugins/cursor/skills/ai-tools-setup/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/SKILL.md","title":"ai-tools-setup","category":"anthropic-skill","format":"markdown","content":"# ai-tools-setup\n\nPath: `plugins/cursor/skills/ai-tools-setup/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/SKILL.md)","tokens":300,"sizeBytes":220},{"name":"linux.md","path":"plugins/cursor/skills/computer-health-check/references/linux.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/linux.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/linux.md)","tokens":300,"sizeBytes":258},{"name":"macos.md","path":"plugins/cursor/skills/computer-health-check/references/macos.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/macos.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/macos.md)","tokens":300,"sizeBytes":258},{"name":"windows.md","path":"plugins/cursor/skills/computer-health-check/references/windows.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/windows.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/windows.md)","tokens":300,"sizeBytes":262},{"name":"SKILL.md","path":"plugins/cursor/skills/computer-health-check/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/SKILL.md","title":"computer-health-check","category":"anthropic-skill","format":"markdown","content":"# computer-health-check\n\nPath: `plugins/cursor/skills/computer-health-check/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/SKILL.md)","tokens":300,"sizeBytes":241},{"name":"SKILL.md","path":"plugins/cursor/skills/desktop-commander-overview/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/desktop-commander-overview/SKILL.md","title":"desktop-commander-overview","category":"anthropic-skill","format":"markdown","content":"# desktop-commander-overview\n\nPath: `plugins/cursor/skills/desktop-commander-overview/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/desktop-commander-overview/SKILL.md)","tokens":300,"sizeBytes":256},{"name":"SKILL.md","path":"plugins/cursor/skills/knowledge-base/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/knowledge-base/SKILL.md","title":"knowledge-base","category":"anthropic-skill","format":"markdown","content":"# knowledge-base\n\nPath: `plugins/cursor/skills/knowledge-base/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/knowledge-base/SKILL.md)","tokens":300,"sizeBytes":220},{"name":"SKILL.md","path":"plugins/cursor/skills/obsidian-vault/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/obsidian-vault/SKILL.md","title":"obsidian-vault","category":"anthropic-skill","format":"markdown","content":"# obsidian-vault\n\nPath: `plugins/cursor/skills/obsidian-vault/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/obsidian-vault/SKILL.md)","tokens":300,"sizeBytes":220},{"name":"SKILL.md","path":"plugins/cursor/skills/terminal/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/terminal/SKILL.md","title":"terminal","category":"anthropic-skill","format":"markdown","content":"# terminal\n\nPath: `plugins/cursor/skills/terminal/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/terminal/SKILL.md)","tokens":300,"sizeBytes":202},{"name":"claude-desktop-mcp.md","path":"skills/ai-tools-setup/references/claude-desktop-mcp.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/claude-desktop-mcp.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/claude-desktop-mcp.md)","tokens":300,"sizeBytes":240},{"name":"hermes.md","path":"skills/ai-tools-setup/references/hermes.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/hermes.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/hermes.md)","tokens":300,"sizeBytes":216},{"name":"openclaw.md","path":"skills/ai-tools-setup/references/openclaw.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/openclaw.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/openclaw.md)","tokens":300,"sizeBytes":220},{"name":"SKILL.md","path":"skills/ai-tools-setup/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/SKILL.md","title":"ai-tools-setup","category":"anthropic-skill","format":"markdown","content":"---\nname: ai-tools-setup\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Set up, connect, validate, and repair Claude Desktop and MCP servers using\n  Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json,\n  getting MCP servers to connect, and diagnosing local AI tooling. Use when a\n  user wants to install, configure, connect, validate, or fix Claude Desktop, an\n  MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the\n  symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP\n  server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP\n  server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent\n  won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also\n  covers local agent gateways like OpenClaw and Hermes.\n---\n\n# AI Tools Setup Assistant\n\nHelp users install, configure, and repair AI tooling on their own machine using\nDesktop Commander's file and terminal tools. The work is usually\n**configure-and-troubleshoot**, not clean installs — assume something already\nexists and may be half-broken.\n\n## Golden rules (read before doing anything)\n\n1. **Detect the OS and shell first.** Read `get_config` and use its `systemInfo`\n   and `allowedDirectories` — file paths, commands, and config locations differ\n   across macOS, Windows, and Linux, so confirm the platform before assuming\n   anything.\n2. **Verify the model/API key works before you build.** The most common reason\n   these sessions dead-end is a provider auth or billing error discovered\n   *after* a lot of setup work. Make one tiny test call with `start_process` (a quick\n   curl to the provider) early, and tell the user plainly if the key is invalid\n   or out of credit.\n3. **Translate errors, don't dump them.** When a tool returns a raw JSON/HTTP\n   error, explain in one line what it means and what to do next. If a model is\n   missing, deprecated, rate-limited, or doesn't support tool-calling, suggest a\n   concrete working alternative instead of retrying the same thing.\n4. **Never echo secrets.** API keys, tokens, and passwords go *into the right\n   config or `.env` file* — never repeated back in chat. If a user pastes a live\n   secret, warn them, use it, and suggest they rotate it if it was shared\n   insecurely. Redact secrets in any output, logs, or summaries you produce.\n5. **Back up before you edit.** Copy the config to a `.bak` first with\n   `start_process` (`cp file.json file.json.bak`, or `copy` on Windows), then make\n   the change with `edit_block` so existing entries survive — reach for\n   `write_file` only on a from-scratch config. Validate the JSON after every edit\n   by parsing it with `start_process`.\n6. **Verify, then stop.** After a change, actually confirm it worked — use\n   `list_processes` to confirm the process is running and `start_process`\n   (`lsof`/`netstat`) to confirm the port is listening, then check the client\n   reconnected and its tools are listed. Don't declare success on a guess.\n7. **Make it repeatable.** Once something works, offer to save the steps as a\n   short note or script so the user can redo it later.\n\n## What this skill covers\n\nThis skill routes to one of three reference files depending on the task. Read\nthe relevant file before acting — they contain the exact paths, commands, and\nknown failure modes.\n\n- **Claude Desktop & MCP servers** — installing Claude Desktop, adding MCP\n  servers, and inspecting / validating / repairing MCP config files\n  (`claude_desktop_config.json`, `.claude/mcp.json`, `~/.lmstudio/mcp.json`,\n  and similar). Also connection health checks.\n  → Read [`references/claude-desktop-mcp.md`](references/claude-desktop-mcp.md)\n\n- **OpenClaw** — a self-hosted multi-channel gateway for AI agents. Install,\n  onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,\n  etc.), diagnose the gateway, and uninstall.\n  → Read [`references/openclaw.md`](references/openclaw.md)\n\n- **Hermes** — disambiguate first: **Hermes Agent** (the Nous Research\n  self-improving agent framework) vs. **Hermes 3** (just a local LLM you run via\n  Ollama). Install, run `hermes setup --portal`, configure providers, personality\n  (`SOUL.md`), memory/skills, MCP, and messaging.\n  → Read [`references/hermes.md`](references/hermes.md)\n\nWhen in doubt about a tool's current behavior, fetch the official docs:\nOpenClaw — https://docs.openclaw.ai/ ·\nHermes — https://hermes-agent.nousresearch.com/docs/\n\n## General workflow\n\n1. **Clarify the goal and platform.** Install vs. configure vs. fix? Which OS?\n   Which tool/client?\n2. **Inspect current state.** `read_file` the relevant config files and use\n   `list_processes` to check whether the relevant process/port/service is already\n   running before changing anything.\n3. **Read the matching reference file** for exact paths and commands.\n4. **Make the smallest change that moves forward**, backing up configs first.\n5. **Verify** the result concretely.\n6. **Summarize** what changed, where, and how to undo it — with secrets redacted.\n\n## A generic \"my agent isn't responding\" diagnostic\n\nUse this order for OpenClaw, Hermes, or any local agent/gateway:\n\n1. **Provider/auth** — is a valid API key configured for the active provider,\n   and does it have credit? (Most failures stop here.)\n2. **Model** — does the chosen model exist, and does it support tool-calling?\n   Local models especially often don't.\n3. **Process/port** — is the gateway/daemon actually running and listening on\n   its port? Is another process holding that port?\n4. **Connection** — for chat clients/websockets, does it connect but drop on\n   first message? That usually points back to provider/model, not networking.\n5. **Logs** — read the tool's logs for the first real error, not the last one.\n","frontmatter":{"name":"ai-tools-setup","version":"0.1.0","audience":"agent","description":"Set up, connect, validate, and repair Claude Desktop and MCP servers using Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json, getting MCP servers to connect, and diagnosing local AI tooling. Use when a user wants to install, configure, connect, validate, or fix Claude Desktop, an MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also covers local agent gateways like OpenClaw and Hermes."},"isInternal":false,"tokens":1431,"sizeBytes":5845},{"name":"linux.md","path":"skills/computer-health-check/references/linux.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/linux.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/linux.md)","tokens":300,"sizeBytes":228},{"name":"macos.md","path":"skills/computer-health-check/references/macos.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/macos.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/macos.md)","tokens":300,"sizeBytes":228},{"name":"windows.md","path":"skills/computer-health-check/references/windows.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/windows.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/windows.md)","tokens":300,"sizeBytes":232},{"name":"SKILL.md","path":"skills/computer-health-check/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/SKILL.md","title":"computer-health-check","category":"anthropic-skill","format":"markdown","content":"---\nname: computer-health-check\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Run a comprehensive, read-only health check on the user's computer and return a\n  scored chat summary with prioritized, plain-English recommendations and safe cleanup\n  suggestions. Use this whenever the user wants to check their computer's health, speed\n  it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check\n  battery health and wear, audit login & startup items, see pending updates, or asks for\n  a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop\n  healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan\n  so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\".\n  Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a\n  real local shell (start_process / interact_with_process) and is strictly read-only by\n  default — it never needs sudo and only performs cleanups the user explicitly approves.\n---\n\n# Computer Health Check\n\n## What this skill does\n\nGive the user a fast, trustworthy picture of their computer's health and a short list\nof actions worth taking — the way a good technician would: look first, explain plainly,\nfix only with permission.\n\nIt runs entirely through Desktop Commander's local shell, gathers a batch of **read-only**\ndiagnostics, scores each area, prints a concise summary **in the chat**, and then offers\ncleanup suggestions the user can approve one by one.\n\n## The safety contract (read this first)\n\nThis is the part that makes users trust the skill, so honor it strictly:\n\n- **Read-only by default.** The collection phase only *observes* (sizes, counts, status).\n  It changes nothing.\n- **Never use `sudo` or elevation.** DC blocks `sudo`, `shutdown`, `reboot`, `dd`, `mount`,\n  `mkfs`, `diskpart`, etc. for good reason. Every check below is designed to work without\n  them. If something seems to need elevation, skip it and say so — don't try to work around\n  the block.\n- **Cleanups are opt-in.** You may *suggest* cleanups freely, but only *execute* one after\n  the user explicitly approves that specific action, and only show the exact command first.\n- **Prefer reversible, non-destructive actions.** Emptying caches that regenerate, clearing\n  a package-manager download cache, or emptying Trash are fine to offer. Deleting user\n  documents, uninstalling apps, or editing system files are not — suggest those, let the\n  user do them.\n\n## Workflow\n\n### Step 1 — Detect the OS\n\nDetermine the platform before doing anything else, because the commands differ.\n\n- Quickest: read Desktop Commander's config (`get_config`) and use the\n  `systemInfo.isMacOS` / `isWindows` / `isLinux` booleans (or `platformName`) to\n  pick the platform.\n- Or run `uname` (macOS/Linux) — if it fails, assume Windows.\n\nThen open the matching reference file and use its command set:\n\n- macOS → [`references/macos.md`](references/macos.md)\n- Windows → [`references/windows.md`](references/windows.md)\n- Linux → [`references/linux.md`](references/linux.md)\n\nRead **only** the one that matches. Each file contains a single batched collection script\nplus interpretation notes and cleanup commands.\n\n### Step 2 — Collect (read-only)\n\nRun the batched collection script from the reference file with `start_process`. Batching\neverything into one call is much faster than many small calls and keeps the output tidy.\n\nGuidance:\n- Keep outputs bounded (`head`, `Select-Object -First`, etc.) so a long process list or\n  file listing doesn't flood the response.\n- Skip the genuinely slow / network checks (full OS-update list, internet speed test) on the\n  first pass unless the user asked about updates or network. Mention they're available.\n- If a single command errors (e.g., a tool isn't installed), continue — partial data is fine.\n\n### Step 3 — Score each area\n\nRate each category 🟢 Good / 🟡 Watch / 🔴 Act using the rubric below, then compute a simple\noverall score. Start at 100 and subtract 8 per 🟡 and 18 per 🔴; floor at 0. Report the\nnumber and a one-word verdict (90+ Excellent, 75–89 Good, 60–74 Fair, <60 Needs attention).\n\n| Area | 🟢 Good | 🟡 Watch | 🔴 Act |\n|---|---|---|---|\n| Free disk space | >20% free | 10–20% | <10% |\n| Disk health (SMART) | Verified / OK / PASSED | — | failing / not supported & errors present |\n| Memory pressure | low swap, free pages healthy | noticeable swap/compression | heavy swapping, near-zero free |\n| Battery (laptops) | ≥80% max capacity, Normal | 70–80% | <70% or \"Service/Replace\" |\n| Maintenance | uptime <7d, no pending updates | uptime 7–30d or minor updates | uptime >30d or security updates pending |\n| Startup load | few third-party login items | moderate | many heavy third-party agents |\n| Live resource hogs | nothing >50% at idle | one sustained heavy process | multiple / runaway processes |\n\nBattery is laptop-only — skip it on desktops/VMs. Reclaimable space is reported as an\ninformational figure, not scored.\n\n### Step 4 — Report in the chat\n\nUse this exact structure. Keep it tight and scannable — this is the deliverable.\n\n```\n🖥️  Health Check — <Model>, <OS version>     Score: <N>/100 (<verdict>)\n\n🟢/🟡/🔴  Storage      — <free> free of <total> (<%>). Reclaimable: ~<X> GB\n🟢/🟡/🔴  Memory       — <one-line state>\n🟢/🟡/🔴  Battery      — <cycles> cycles, <max capacity>%, <condition>\n🟢/🟡/🔴  Maintenance  — up <days>d, <updates state>\n🟢/🟡/🔴  Startup      — <count> login items (<notable ones>)\n🟢/🟡/🔴  Right now    — top: <proc> <cpu%>, <proc> <cpu%>\n\nTop recommendations\n1. <highest-impact action> (<expected benefit, e.g. frees ~13 GB>)\n2. <next>\n3. <next>\n```\n\nList at most the 3–5 highest-impact recommendations, ordered by benefit. Don't dump every\nfinding — the goal is signal, not a wall of text.\n\n### Step 5 — Suggest cleanups, execute only on approval\n\nFor each recommendation that maps to a concrete command (see the reference file's \"Cleanup\"\nsection), offer it and show the exact command. Then:\n\n- **Safe, reversible** (offer to run on a yes): empty Trash, package-manager cache cleanup\n  (`brew cleanup`, `npm cache clean`), clearing a regenerating user cache folder. (On Linux,\n  `apt-get clean` / `dnf clean` need root — suggest, don't auto-run.)\n- **Needs the user to decide / act** (suggest, don't auto-run): disabling login items,\n  installing OS updates (requires restart), uninstalling apps, deleting files in Downloads.\n- **Never**: anything requiring sudo/admin, removing system files, disk/partition operations.\n\nWhen the user approves a safe action, run it, then report what changed (e.g., space freed).\nRe-running Step 2's storage check afterward is a nice confirmation.\n\n## Recommendation rules (findings → advice)\n\nThese are the high-value mappings; adapt the wording to the platform.\n\n- **Uptime > 30 days** → \"Restart your computer — it's been up <N> days. A reboot clears\n  memory and applies pending updates.\" (Highest ROI, lowest effort.)\n- **Pending OS/security updates** → platform update step; flag security updates as higher\n  priority.\n- **Free space < 15%** → lead with the biggest reclaimable buckets you measured.\n- **Large Downloads / Caches / Trash** → empty Trash; review largest Downloads items by name;\n  clear caches that regenerate.\n- **Package manager has many outdated items / big cache** → `upgrade` + cache cleanup.\n- **Battery max capacity < 80%** → explain wear is normal; consider a battery service if it's\n  affecting runtime.\n- **Many third-party startup agents** → name them and suggest disabling the ones the user\n  doesn't recognize/need (point to System Settings / Task Manager — don't edit them directly).\n- **A process pinned high at idle** → name it and suggest quitting/investigating.\n\n## Notes & pitfalls\n\n- **Don't assume — measure.** Always run the commands and report real numbers. Never\n  fabricate sizes, cycle counts, or statuses.\n- **Bounded output.** Process and file listings can be huge; always cap them.\n- **Optional deep checks** (mention, run on request): internet speed test, full update list,\n  per-folder disk scan of the whole home directory, crash-report trend analysis.\n- **Privacy.** This reads local system metadata only. Don't send anything off the machine;\n  the public-IP check is optional and should be labeled.\n- **Cross-platform parity.** The three reference files mirror the same categories so the\n  report looks the same regardless of OS.\n","frontmatter":{"name":"computer-health-check","version":"0.1.0","audience":"agent","description":"Run a comprehensive, read-only health check on the user's computer and return a scored chat summary with prioritized, plain-English recommendations and safe cleanup suggestions. Use this whenever the user wants to check their computer's health, speed it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check battery health and wear, audit login & startup items, see pending updates, or asks for a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\". Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a real local shell (start_process / interact_with_process) and is strictly read-only by default — it never needs sudo and only performs cleanups the user explicitly approves."},"isInternal":false,"tokens":2117,"sizeBytes":8603},{"name":"SKILL.md","path":"skills/desktop-commander-overview/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/desktop-commander-overview/SKILL.md","title":"desktop-commander-overview","category":"anthropic-skill","format":"markdown","content":"---\nname: desktop-commander-overview\ndescription: Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.\nversion: 0.1.0\naudience: agent\n---\n\n# Desktop Commander MCP\n\nDesktop Commander gives the agent reach across the user's actual computer — files, folders, terminals, processes, structured documents, and remote machines reachable over SSH. The tools' detailed schemas (parameters, return shapes, format-specific behavior) live in the MCP itself; this skill explains what they enable and how they compose into common workflows.\n\n## What this MCP gives the agent\n\n**Persistent shell sessions.** Desktop Commander keeps a started process or session alive across tool calls. Inside a single long-lived shell, REPL, or SSH session, state carries forward — environment variables, working directory, activated virtualenvs, open connections, REPL variables — so the agent can `cd`, activate a venv, then send commands or code into that same session many turns later without re-setup. (Note: separate `start_process` calls open separate sessions and do **not** share shell state with each other; persistence is inside one session, not across them.)\n\n**Long-running processes.** Start a dev server, watcher, build, training run, or test suite in the background and keep working. The MCP returns a process handle the agent can tail, interact with, or terminate across many turns. Long-running commands don't need to block the workflow waiting for a foreground command to exit.\n\n**Filesystem reach beyond the IDE workspace.** Read, write, move, list, and inspect files anywhere the user has granted scope — Downloads, Documents, project folders outside the IDE, or any other granted folders. Useful for organize-and-clean tasks, batch document work, and any \"look at the file my coworker just sent me\" request that doesn't fit inside the IDE sandbox.\n\n**Surgical edits to existing files.** The `edit_block` tool does exact-string find-and-replace with built-in safety: ambiguous matches fail loudly instead of silently overwriting the wrong thing, and an `expected_replacements` count prevents partial-match disasters. Lower data-loss risk than rewriting whole files based on the slice you happened to read — though a wrong `old_string` or wrong `expected_replacements` can still corrupt content, so review the changed content before considering the edit done.\n\n**Binary and structured files handled directly by the MCP.** Excel, DOCX, and PDF are first-class — read and modified through format-specific mechanisms rather than text-only approximations: Excel via cell-range JSON, DOCX via raw-XML edits, PDF via page-level operations on a new output file. The result is the real file in its original format, not a regenerated approximation. Images and PDFs return as viewable content for the agent.\n\n**Search at scale.** Streaming, ripgrep-backed search across whole projects or folder trees. The agent picks between filename search and in-file content search, pages through results progressively without flooding context, and runs multiple concurrent searches when the query is ambiguous.\n\n**Remote machines via SSH.** A long-lived SSH session inside a persistent shell turns the agent into a real ops tool: connect once, then tail logs, run diagnostics, deploy, or debug across many turns without reconnecting each step.\n\n**Process management.** List, inspect, tail, and kill accessible processes (subject to OS permissions). Useful for cleaning up stale dev servers from previous sessions and for diagnosing CPU / memory issues.\n\n## Example workflows\n\nEach example names the actual tool sequence. Calls below are written in pseudocode shorthand (`tool_name(\"arg\", flag=value)`); the real tools take object-shaped arguments. Tool descriptions and full parameter sets live in the MCP itself.\n\n### \"Debug this production issue\"\n\nBefore running production-impacting SSH commands, explain the intended action and get user confirmation when the risk is non-trivial.\n\n`start_process(\"ssh user@prod.example.com\", timeout_ms=...)` opens a long-lived SSH session and returns a PID. `interact_with_process(pid, \"tail -f /var/log/app.log\\n\")` starts streaming logs. Subsequent turns: `read_process_output(pid, offset=-50)` to see the last 50 lines as they arrive, `interact_with_process(pid, \"...\")` to run diagnostic commands in the same session. `force_terminate(pid)` to close the session when done — for sessions opened by `start_process`, `force_terminate` is the correct cleanup tool; `kill_process` is for arbitrary OS PIDs found via `list_processes`.\n\n### \"Deploy this to staging\"\n\nBefore deploys, restarts, migrations, or other environment-changing commands, summarize the action and confirm with the user unless they already explicitly asked for that exact operation.\n\n`start_process` for the deploy command (could be a script, an SSH-piped command, or `kubectl`/`gh` etc.). `read_process_output` to track output and surface errors. If the deploy needs an interactive confirmation, `interact_with_process(pid, \"yes\\n\")`. The session stays alive while the agent watches for completion or rollback.\n\n### \"Run the dev server and iterate on the API\"\n\n`start_process(\"npm run dev\", timeout_ms=...)` keeps the server up. The agent then loops: `edit_block` on the route file, `read_process_output(pid, offset=-30)` to see the server's reload, `start_process(\"curl -s http://localhost:3000/api/...\")` for a one-shot test, repeat. The dev server never has to restart between code changes.\n\n### \"Refactor across this monorepo\"\n\n`start_search(pattern=\"oldFunctionName\", path=repo_root, searchType=\"content\")` scopes every call site. `get_more_search_results(sessionId)` pages through. `read_multiple_files(paths=[...])` confirms ambiguous hits in context. `edit_block(file_path, old_string, new_string)` per site, with `expected_replacements` set when the same substring legitimately appears multiple times in one file. Verify by re-running `start_search` on the old name and paging the results with `get_more_search_results(sessionId)` until the run completes — only then can you confirm zero remaining hits.\n\n### \"Update the Q3 numbers in this spreadsheet and tweak the summary in the report\"\n\n`read_file(path=\"/.../q3.xlsx\", sheet=\"Revenue\", range=\"A1:F50\")` returns the existing numbers as a JSON 2D array. `edit_block(file_path=\"/.../q3.xlsx\", range=\"Revenue!C12:C24\", content=[[12345], ...])` updates the cells in place. For the report, DOCX editing is a two-read flow: first `read_file(path=\"/.../report.docx\")` (offset 0) returns the document's outline (headings + paragraph text) so you can locate the summary section. Then `read_file(path=\"/.../report.docx\", offset=N, length=...)` with **`N > 0`** returns the raw underlying XML around that section — a non-zero offset is what flips the read into XML mode. Copy an XML fragment from that output as `old_string` and call `edit_block(file_path, old_string, new_string)` with the rewritten XML. The user gets back real `.xlsx` and `.docx` files, not regenerated approximations.\n\n### \"Generate the Q3 report as a PDF\"\n\nCompose markdown content (header, table, charts via embedded HTML), then call `write_pdf` to render it to a new PDF file. The MCP's `write_pdf` tool description specifies the exact parameters and filename rules — follow that.\n\n### \"Insert a cover page into this PDF\"\n\n`write_pdf` also supports modifying existing PDFs via an operations array (insert / delete pages). Use it for existing-PDF edits that produce a new PDF — adding a cover page, removing a section, merging in content from another file. See the `write_pdf` tool description for the operation shapes and parameter rules.\n\n### \"Analyze this 200MB CSV\"\n\n`start_process(\"python3 -i\", timeout_ms=...)` opens a Python REPL and returns a PID. `interact_with_process(pid, \"import pandas as pd; df = pd.read_csv('/abs/path.csv')\")` loads it once. Every subsequent question — `df.describe()`, `df.groupby('col').size()`, plot a chart — runs in the same already-loaded REPL. Libraries don't re-import, the dataframe doesn't re-load. The MCP itself recommends this workflow for any local data-file analysis.\n\n### \"Run a quick Node script\"\n\n`start_process(\"node:local\", timeout_ms=...)` opens a stateless Node execution mode on the MCP server itself — ES imports supported. `start_process` opens the runner; each piece of JS is sent via `interact_with_process(pid, \"<your JS here>\")` and runs independently (no shared state between calls). Good for one-shot transformations where keeping a long-lived REPL alive isn't worth it. Don't try to put code into the `start_process` command argument — only the runner type (`node:local`) goes there.\n\n### \"Explain this codebase\"\n\n`list_directory(path=repo_root, depth=3)` for shape. `start_search(pattern=\"export \", path=repo_root, searchType=\"content\")` to find the public surface. `read_multiple_files(paths=[entrypoints])` for the actual code. The agent can keep narrowing without re-asking the user where to look.\n\n### \"Organize my Downloads folder\"\n\nResolve the path to absolute first (e.g., `/Users/<user>/Downloads`, not `~/Downloads`). Then `list_directory(path=\"/Users/<user>/Downloads\", depth=1)` to see what's there. `start_search(pattern=\"*.pdf\", path=\"/Users/<user>/Downloads\", searchType=\"files\")` and similar for other types. `create_directory` for new folders. `move_file` per item. Preview the move plan before executing destructive ops.\n\n### \"Onboard me — what was happening last session?\"\n\n`get_recent_tool_calls(maxResults=200)` returns recent activity with arguments and outputs. `list_sessions` shows still-running terminal sessions. `list_searches` shows in-flight searches. `list_processes` shows what's still alive. Together they reconstruct the work without asking the user to recap.\n\n### \"Why isn't the REPL responding?\"\n\n`list_sessions` — if `Blocked: true`, the REPL is waiting for input rather than hung. `read_process_output(pid, offset=-100)` to see what it last printed (often a prompt). `interact_with_process(pid, \"<the input it's waiting for>\\n\")` unblocks it.\n\n## Core tool inventory\n\nGrouped index of the tools an agent reaches for most often. Not exhaustive — the MCP exposes additional config / diagnostics / feedback tools beyond this list. Detailed parameters and return shapes for every tool are in the MCP's own tool descriptions.\n\n- **Process / shell:** `start_process`, `interact_with_process`, `read_process_output`, `list_processes`, `list_sessions`, `kill_process`, `force_terminate`\n- **Files (read/write):** `read_file`, `read_multiple_files`, `write_file`, `edit_block`, `write_pdf`\n- **Filesystem:** `list_directory`, `get_file_info`, `move_file`, `create_directory`\n- **Search:** `start_search`, `get_more_search_results`, `list_searches`, `stop_search`\n- **Diagnostics / config:** `get_recent_tool_calls`, `get_config`\n\n## Conventions\n\n**Prefer absolute paths.** Relative paths may fail depending on the working directory, and tilde paths (`~/...`) may not expand in all contexts. Absolute paths are the most reliable; pass them whenever you can.\n\n**Allowed-directory scope.** File operations only work inside the user's configured `allowedDirectories`. Expect `[DENIED]` markers in `list_directory` output and rejections from `read_file` / `write_file` when the path is out of scope. Surface the rejected path to the user — don't retry.\n\n**When running on macOS:** default shell is zsh. Use `python3` not `python`. Some GNU tools have prefixed names (`gsed` for GNU sed). `brew` is the typical package manager. `open` opens files / apps from the terminal, `mdfind` is the fastest path to exact-filename search via Spotlight. Detect the host platform via `get_config` (or by inspecting `process.platform` / `uname` from a shell) before assuming any of the above — Windows and Linux hosts behave differently.\n\n**Pagination.** Long outputs (file reads, process output, search results) all support `offset` and `length`. Negative offsets read from the end (tail mode). Use these instead of dumping huge results into context.\n","frontmatter":{"name":"desktop-commander-overview","description":"Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.","version":"0.1.0","audience":"agent"},"isInternal":false,"tokens":2713,"sizeBytes":12282},{"name":"SKILL.md","path":"skills/knowledge-base/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/knowledge-base/SKILL.md","title":"knowledge-base","category":"anthropic-skill","format":"markdown","content":"---\nname: knowledge-base\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Create and maintain a Markdown knowledge base that any AI agent can read,\n  search, and update. Use when the user wants to start a knowledge base, add or\n  update notes, organize docs/notes for an agent or LLM to consume, build an\n  index of notes, or run a cleanup/maintenance pass on an existing MD knowledge\n  base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index\n  of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the\n  KB\".\n---\n\n# Knowledge Base (Markdown, agent-readable)\n\nA knowledge base (KB) here is a folder of Markdown files designed so **any** AI\nagent can navigate it without a vector database: the agent reads one index file,\npicks the relevant notes by their descriptions, and opens only those. Keep the\nwhole KB readable and the index lean — the index is what gets loaded into\ncontext, so it must be high-signal.\n\nApply the rules below when creating a new KB, adding/editing notes, or doing a\nmaintenance pass. When the user's request is ambiguous (new KB vs. add note vs.\ncleanup), ask which one before acting.\n\n## Core principles (the \"why\")\n\n1. **Index-first navigation.** The index is a map, not a container. An agent\n   reads `INDEX.md`, selects notes by their one-line descriptions, then opens\n   only those files. No note is \"in\" the KB unless it's registered in the index.\n2. **Atomicity.** One topic per note. If a title needs an \"and\", it's probably\n   two notes. Atomic notes are easier to find, link, and reuse.\n3. **Stable IDs.** Every note has a permanent ID that never changes and is never\n   reused, so links survive renames and moves.\n4. **Linked with reason.** When two notes connect, state *why* (prerequisite,\n   supports, contrasts, see-also). Connections carry as much value as the notes.\n5. **Lean instructions.** Keep `INDEX.md` instructions short and high-signal —\n   it competes for the agent's context budget. Bodies load on demand.\n6. **Structured for retrieval.** Clear H1 title and H2/H3 sections so an agent\n   can grab the relevant slice of a note, not the whole thing.\n\n## Folder structure (nested by topic)\n\n```\nknowledge-base/\n  INDEX.md                 # entry point: instructions + full note registry\n  topics/\n    <topic>/\n      _topic.md            # topic map: what this topic covers + its notes\n      <slug>.md            # one atomic note\n  assets/                  # images / attachments referenced by notes\n```\n\n- Topic folders are short, lowercase nouns (`auth`, `billing`, `deploys`).\n- `_topic.md` is the topic-level map of content (MOC): a short intro plus links\n  to every note in that topic. It is a convenience view; `INDEX.md` remains the\n  source of truth.\n\n## Naming rules\n\n- Lowercase **kebab-case**, predictable and greppable: `topics/auth/session-tokens.md`.\n- No spaces, no uppercase, no dates in filenames (dates live in frontmatter).\n- The filename slug should match the note's `id` slug portion.\n\n## Required frontmatter (every note)\n\n```yaml\n---\nid: 20260618-session-tokens     # ID scheme: YYYYMMDD-slug. Stable. Never reuse or change.\ntitle: Session tokens           # human title, also the note's H1\ntags: [auth, security]          # only tags from the controlled list in INDEX.md\ncreated: 2026-06-18\nupdated: 2026-06-18\nrelated: [20260618-auth-flow]    # IDs of linked notes\nsummary: One scannable sentence describing what this note covers.\n---\n```\n\n- `id`: `YYYYMMDD-slug`. Sortable, readable, stable. Different-titled same-day\n  notes differ by slug; if two same-day notes would collide on the same slug,\n  append `-2`, `-3`, … (check the `INDEX.md` registry before assigning). Once\n  assigned, the id is permanent.\n- `summary`: this exact sentence is what goes in the index registry — write it to\n  help an agent decide whether to open the note.\n- `updated`: bump it whenever the body changes.\n\n## Note body shape\n\n```markdown\n# Session tokens\n\n> Summary: One sentence (mirrors frontmatter summary).\n\n## Context\nWhy this note exists / when it applies.\n\n## Details\nThe actual content, in short H2/H3 sections.\n\n## Related\n- [Auth flow](auth-flow.md) — prerequisite: tokens are issued during the auth flow.\n- [Rate limiting](../api/rate-limiting.md) — see-also: tokens carry the rate-limit key.\n```\n\n- Use **relative links** between notes and annotate the relationship in a phrase.\n- Every link target should also appear in the note's `related` frontmatter.\n\n## INDEX.md (the single source of truth)\n\n`INDEX.md` has two parts: operating instructions for agents, and the registry.\n\n```markdown\n# Knowledge Base — Index\n\n## How to use this KB (for agents)\n1. Read this index first. Pick notes by their descriptions; open only those.\n2. To answer a question, prefer opening 1–3 specific notes over scanning everything.\n3. Cite the note `id` when you use information from it.\n\n## How to update this KB (for agents)\n- New idea → create a new note (atomic). Same idea changed → edit the note in place and bump `updated`.\n- Any create / rename / delete MUST update this registry and the topic's `_topic.md` in the same change.\n- Use only tags from the controlled vocabulary below; add a new tag here before using it.\n\n## Controlled tags\n`auth`, `security`, `billing`, `api`, `ops`   <!-- extend deliberately -->\n\n## Registry\n### auth\n- `20260618-auth-flow` — **Authentication flow** — `topics/auth/auth-flow.md` — How a user session is established end to end.\n- `20260618-session-tokens` — **Session tokens** — `topics/auth/session-tokens.md` — Token format, lifetime, and rotation.\n\n### billing\n- `20260618-invoicing` — **Invoicing** — `topics/billing/invoicing.md` — How invoices are generated and sent.\n```\n\nRegistry line format: `` `id` — **Title** — `path` — one-line description.``\n\n## _topic.md (topic map)\n\n```markdown\n# Auth\n\nNotes covering authentication, sessions, and access control.\n\n- [Authentication flow](auth-flow.md) — how a session is established.\n- [Session tokens](session-tokens.md) — token format, lifetime, rotation.\n```\n\n## Workflows\n\n### Create a new KB\n1. `create_directory` for the folder structure above.\n2. `write_file` `INDEX.md` with the instructions block, an empty controlled-tag\n   list, and an empty registry.\n3. Add the first topic folder + `_topic.md`, then the first note (each via `write_file`).\n4. Register the note in `INDEX.md` and link it from `_topic.md` — `edit_block`\n   both so you touch only the changed lines.\n\n### Add a note\n1. Pick or create the topic folder (`list_directory` to see what's there).\n2. `write_file` the note (kebab-case slug) with full frontmatter and the body shape.\n3. Add cross-links (and mirror them in `related`).\n4. Register it in `INDEX.md` and link it in `_topic.md` with `edit_block` — same change.\n\n### Update a note\n- Same idea, new information → `edit_block` the note in place, bump `updated`, and\n  `edit_block` the registry line if the scope changed.\n- Genuinely new idea → `write_file` a new atomic note instead of expanding this one.\n\n### Maintenance pass (run on demand)\nUse `start_search` (ripgrep) for text scans and `get_file_info` / `list_directory`\nfor existence checks — together they make this tractable at scale:\n- **Orphans** (no *inbound* links — outbound doesn't matter): `start_search` the\n  KB for the note's `id` and filename slug, then discount the self-matches that\n  always exist — the note's own file, `INDEX.md`, and its `_topic.md`. Anything\n  left is a genuine inbound reference; nothing left = orphan, so link it from a\n  relevant note/MOC or archive it.\n- **Broken links / drift**: don't infer resolution from a text hit — a string\n  existing doesn't mean the file does. Confirm each registry path and `related:`\n  target exists with `get_file_info` (or `list_directory` per topic), and that\n  every file on disk is registered. Use a text compare only for the\n  titles/summaries-out-of-sync half.\n- **Non-atomic notes**: notes that grew to cover multiple topics → split them.\n- **Duplicates**: near-identical notes → merge, keep one `id`, redirect links.\n- **Tag sprawl**: read the controlled list from `INDEX.md`, then `start_search`\n  the frontmatter `tags:` lines and flag any tag not on the list → reconcile.\nPull candidates in bulk with `read_multiple_files`, apply fixes with `edit_block`,\nand report what changed.\n\n## Checklist before finishing any KB edit\n- [ ] Every new/changed note has complete, valid frontmatter.\n- [ ] `id` is unique and unchanged; filename slug matches the id slug.\n- [ ] All links resolve and are mirrored in `related`.\n- [ ] `INDEX.md` registry and the topic `_topic.md` reflect the change.\n- [ ] Tags are from the controlled vocabulary.\n- [ ] `updated` bumped on every changed note.\n","frontmatter":{"name":"knowledge-base","version":"0.1.0","audience":"agent","description":"Create and maintain a Markdown knowledge base that any AI agent can read, search, and update. Use when the user wants to start a knowledge base, add or update notes, organize docs/notes for an agent or LLM to consume, build an index of notes, or run a cleanup/maintenance pass on an existing MD knowledge base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the KB\"."},"isInternal":false,"tokens":2170,"sizeBytes":8791},{"name":"SKILL.md","path":"skills/obsidian-vault/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/obsidian-vault/SKILL.md","title":"obsidian-vault","category":"anthropic-skill","format":"markdown","content":"---\nname: obsidian-vault\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties,\n  dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user\n  explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or\n  an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases\n  plugins, or Obsidian Properties. Within that Obsidian context it covers\n  creating Maps of Content, adding/fixing wikilinks, finding orphan notes,\n  normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing\n  folders, deduplicating or renaming notes, and preparing the vault for AI use.\n  Do NOT use this skill for generic note-taking, Markdown, or knowledge-base\n  requests that don't mention Obsidian.\n---\n\n# Obsidian Vault Assistant\n\nHelp the user organize and maintain an Obsidian vault: build navigation with\nMOCs and wikilinks, normalize metadata, generate dashboards, find and fix\norphans, organize folders, deduplicate/rename, and prepare the vault for AI use.\n\nObsidian-specific facts that shape every rule here:\n- Links are **wikilinks** resolved by **filename**, not path: `[[Note title]]`.\n  Renaming a note auto-updates links inside Obsidian, but moving files outside\n  Obsidian breaks them — always rename via Obsidian when possible.\n- Metadata is **Properties** (YAML frontmatter) at the top of a note.\n- Dashboards come from **Dataview** (query language, read-only, flexible) or\n  **Bases** (native, editable tables, fast on big vaults, properties-only).\n\nBefore acting, confirm the vault's root folder and whether the user has the\nDataview plugin installed (Bases is built in since Obsidian 1.9). When a request\nis ambiguous (organize vs. clean up vs. dashboard), ask which task.\n\n## Wikilinks\n\n- Basic: `[[Three laws of motion]]` — resolves by filename, no extension/path.\n- Display text (pipe): `[[atomic-habits|James Clear — Atomic Habits]]`.\n- Heading link: `[[Note#Section]]`. Block link: `[[Note#^block-id]]`.\n- Embed/transclude: `![[Note]]`, `![[Note#Section]]`, `![[image.png]]`.\n- Aliases: add an `aliases` property so the note resolves under other names.\n- Avoid `# | ^ : %` and `[ ]` in filenames — they have special meaning in links.\n- Prefer wikilinks for internal navigation; use standard Markdown links only if\n  the vault is also published to a tool that can't parse wikilinks.\n\nWhen adding links, also surface **unlinked mentions**: if a note's title appears\nas plain text in other notes, convert those to wikilinks.\n\n## Maps of Content (MOCs)\n\nA MOC is a note that links the related notes on a topic — the vault's navigation\nlayer (more flexible than folders or tags, and needs no institutional knowledge).\n\nConventions:\n- Name MOCs clearly and tag them: `tags: [moc]` (or a `type: moc` property) so\n  every MOC is itself discoverable.\n- Keep a top-level **Home / Index MOC** that links to all topic MOCs.\n- A MOC holds a short intro plus grouped wikilinks; it can be hand-curated or\n  auto-generated with a Dataview/Bases query (see Dashboards).\n\nMOC template:\n```markdown\n---\ntype: moc\ntags: [moc]\nupdated: 2026-06-18\n---\n# Auth — Map of Content\n\nNotes on authentication, sessions, and access control.\n\n## Core\n- [[auth-flow]]\n- [[session-tokens]]\n\n## Related MOCs\n- [[security-moc]]\n```\n\n## Frontmatter / Properties\n\nAdd a consistent property block to every note. Recommended baseline:\n```yaml\n---\ntitle: Session tokens\naliases: [tokens, session token]\ntags: [auth, security]\ntype: note            # note | moc | dashboard | template | person | project\ncreated: 2026-06-18\nupdated: 2026-06-18\nstatus: evergreen     # seedling | growing | evergreen\nrelated: [\"[[auth-flow]]\"]\n---\n```\nRules:\n- Use a **controlled tag vocabulary** — decide tags up front and reuse them;\n  nested tags (`auth/tokens`) are fine. Don't let tags sprawl.\n- `tags` use no `#` in frontmatter. Dates in ISO `YYYY-MM-DD`.\n- Keep property **names and types consistent across the vault** — Bases and\n  Dataview both depend on this. When normalizing, pick one name per concept\n  (e.g. `created`, not `created`/`date`/`Created`) and migrate the rest.\n\n## Dashboards\n\nPick the engine based on the user's setup:\n\n**Bases** (native, editable, fast — best for operational boards):\n- Create a `.base` file or a `base` code block; it builds table/board views from\n  properties. Each cell edits the underlying note's frontmatter.\n- Use for task lists, reading lists, project pipelines, anything point-and-click.\n\n**Dataview** (plugin, read-only, most flexible — best for reports/auto-MOCs):\n```dataview\nTABLE status, updated, tags\nFROM #auth\nWHERE type = \"note\"\nSORT updated DESC\n```\nAuto-MOC of everything in a topic:\n```dataview\nLIST FROM #auth WHERE type != \"moc\" SORT file.name ASC\n```\nRecently updated:\n```dataview\nTABLE updated FROM \"\" WHERE updated >= date(today) - dur(7 days) SORT updated DESC\n```\nNote: large vaults can lag with heavy Dataview queries — prefer Bases there.\n\n## Orphan notes & link hygiene\n\nAn orphan is a note with no inbound or outbound links. To find and fix:\n1. **From Desktop Commander** (no app needed, scales to big vaults): `start_search`\n   the vault for `[[ ]]` links to each note's title — zero hits means no inbound\n   links (an *unlinked* note); to confirm a true orphan (no inbound **and** no\n   outbound), also scan the note's own body for `[[...]]`. The same searches\n   surface **unlinked mentions** (the title as plain text, not wrapped in `[[ ]]`)\n   and **broken links** (a `[[target]]` whose file is missing).\n2. **Graph view** (Cmd/Ctrl+G): orphans float as isolated dots at the edges.\n3. **Dataview** query for notes with no links:\n   ```dataview\n   LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0\n   ```\n4. For each orphan: link it from a relevant MOC/note (`edit_block` to insert the\n   wikilink), tag it `#needs-link` for a batch pass, or archive if obsolete.\n5. Convert unlinked mentions into real wikilinks and fix broken links with\n   `edit_block`; resolve the rest from Obsidian's right sidebar.\n\n## Folder organization\n\n- Folders are for coarse buckets; **MOCs + tags do the real organizing**. Don't\n  over-nest folders.\n- A workable layout:\n  ```\n  00-inbox/        # unsorted captures\n  10-notes/        # atomic notes\n  20-mocs/         # maps of content\n  30-projects/\n  90-assets/       # images/attachments\n  99-archive/\n  templates/\n  ```\n- Set the attachment folder in Settings so embeds land in `90-assets/`.\n- **Moves/renames must happen inside Obsidian** so wikilinks update automatically\n  — do **not** use `move_file` for these, it breaks every `[[link]]`. From Desktop\n  Commander, only edit *content* (`edit_block` / `write_file`); leave moving and\n  renaming to the user in the app.\n\n## Deduplicate & rename\n\n- **Duplicates**: `start_search` titles/aliases to find near-identical notes;\n  merge into one, keep the most-linked filename, copy unique content with\n  `edit_block`, then `start_search` for inbound `[[links]]` to the discarded note\n  and repoint them before deleting it.\n- **Renames**: do them inside Obsidian (Rename note / `F2`) so backlinks update —\n  not via `move_file`. Keep an `aliases` entry for the old name if it was widely\n  referenced.\n- Standardize filenames: pick one convention (kebab-case or Title Case) and\n  apply it consistently; avoid the special characters listed above.\n\n## Prepare the vault for AI use\n\n- Ensure **consistent frontmatter** (same property names/types) so an agent can\n  filter and reason over metadata.\n- Maintain a **Home/Index MOC** as the single entry point an agent reads first.\n- Write a one-line `summary`/`description` property per note for quick scanning.\n- Reduce orphans and broken links so the link graph is a reliable map.\n- Keep notes **atomic** (one idea each) — easier for an agent to retrieve and cite.\n- Consider exporting wikilinks to standard Markdown links if the AI tool can't\n  parse `[[ ]]`.\n\n## Workflows\n\n- **Build navigation**: `write_file` topic MOCs → `edit_block` notes to link them\n  in → refresh the Home MOC → convert unlinked mentions.\n- **Normalize metadata**: `read_multiple_files` to audit properties → pick\n  canonical names → `edit_block` each note → add missing baseline properties.\n- **Cleanup pass**: `start_search` for orphans, broken links, and unlinked\n  mentions → dedupe → report what changed (renames stay in Obsidian).\n- **Dashboard**: confirm Dataview vs. Bases → `write_file` the view from properties/tags.\n\n## Checklist before finishing\n- [ ] New/changed notes have consistent frontmatter (canonical property names).\n- [ ] Renames/moves done inside Obsidian; no links broken.\n- [ ] New notes linked from at least one MOC or note (no new orphans).\n- [ ] Tags drawn from the controlled vocabulary.\n- [ ] Dashboards reference properties/tags that actually exist.\n- [ ] `updated` bumped on changed notes.\n","frontmatter":{"name":"obsidian-vault","version":"0.1.0","audience":"agent","description":"Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties, dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases plugins, or Obsidian Properties. Within that Obsidian context it covers creating Maps of Content, adding/fixing wikilinks, finding orphan notes, normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing folders, deduplicating or renaming notes, and preparing the vault for AI use. Do NOT use this skill for generic note-taking, Markdown, or knowledge-base requests that don't mention Obsidian."},"isInternal":false,"tokens":2293,"sizeBytes":8950},{"name":"SKILL.md","path":"skills/terminal/SKILL.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/terminal/SKILL.md","title":"terminal","category":"anthropic-skill","format":"markdown","content":"---\nname: terminal\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Use Desktop Commander for terminal and command-line work, especially anything\n  that needs a shell whose state persists across turns: Python/Node REPLs,\n  database shells, dev servers and other long-running processes, SSH into remote\n  machines, and Windows PowerShell. Also handles everyday terminal tasks —\n  navigating folders, choosing the right command for the user's shell\n  (PowerShell, cmd, bash, zsh), running Docker/curl/cloud-CLI commands,\n  inspecting processes and ports, and saving recurring workflows as scripts —\n  even when the user doesn't say \"Desktop Commander\" or \"terminal.\" Reach for it\n  on pasted errors like \"command not found\", \"permission denied\", \"EADDRINUSE\",\n  \"address already in use\", \"npm ERR!\", \"ModuleNotFoundError\", or \"ENOENT\", and\n  on intents like \"what's using port 3000\", \"kill that process\", \"ssh into my\n  server\", or \"why won't my dev server start\". Works on Windows, macOS, and\n  Linux. Never run destructive commands without explicit confirmation.\n---\n\n# Terminal Command Assistant\n\nBe a calm, safe, cross-platform terminal copilot. The user may be an expert or\nmay be opening a terminal for the first time — read their cues and match them.\nExplain what a command does in plain language, run it through Desktop Commander,\nread the real output, and explain the result. The user's machine is the source\nof truth; never assume the OS, shell, or installed tools — detect them.\n\n## 1. Detect the environment first (do this before suggesting commands)\n\nDifferent OSes and shells need different commands. Before recommending or running\nanything non-trivial, call **`get_config`** (Desktop Commander) and read\n`systemInfo`:\n\n- `platformName` / `isWindows` / `isMacOS` / `isLinux` — which OS.\n- `defaultShell` and `uiHints.availableShells` — which shell to target.\n- `pythonInfo`, `nodeInfo` — whether Python/Node exist and their versions.\n- `blockedCommands` — commands Desktop Commander refuses to run (see §7).\n- `allowedDirectories` — `[]` means full access; otherwise commands/paths are\n  scoped to those directories.\n\nThis one cheap call prevents the most common mistake: handing a macOS user a\nPowerShell command, or assuming `python3` exists when it doesn't. Cache what you\nlearn for the rest of the session; re-check only if something seems off.\n\n## 2. Choosing the right command for the shell\n\nPick syntax by the detected shell, not by habit. Common equivalents:\n\n| Task | bash / zsh (macOS, Linux) | PowerShell (Windows) | cmd (Windows) |\n|---|---|---|---|\n| List files | `ls -la` | `Get-ChildItem` / `ls` | `dir` |\n| Current dir | `pwd` | `Get-Location` / `pwd` | `cd` |\n| Find file | `find . -name \"*.log\"` | `Get-ChildItem -Recurse -Filter *.log` | `dir /s *.log` |\n| Search text | `grep -r \"TODO\" .` | `Get-ChildItem -Recurse \\| Select-String TODO` | `findstr /s TODO *` |\n| Env var | `echo $HOME` | `$env:USERPROFILE` | `echo %USERPROFILE%` |\n| Set env (session) | `export KEY=val` | `$env:KEY=\"val\"` | `set KEY=val` |\n| Delete file | `rm file` | `Remove-Item file` | `del file` |\n| Copy | `cp a b` | `Copy-Item a b` | `copy a b` |\n| Path separator | `/` | `\\` (or `/`) | `\\` |\n\nNotes that bite people: Windows paths use `\\` and often need quoting when they\ncontain spaces; PowerShell and bash quote/escape differently; `~` expands in\nbash/zsh but not in cmd. When in doubt, prefer the cross-platform tool the user\nalready has (e.g. `python`, `node`, `git`) over shell-specific syntax.\n\n## 3. Running commands with Desktop Commander\n\n**Always use absolute paths.** Relative paths depend on a working directory that\nisn't carried between calls, so they fail unpredictably.\n\n- **One-shot commands** → `start_process` with the command and a timeout. It\n  returns output and a PID. If output is truncated or the process is still\n  running, call `read_process_output` with the PID for more.\n- **Long-running / interactive sessions** (REPLs, SSH, DB shells, `npm create`,\n  anything that prompts) → `start_process` to launch, then\n  `interact_with_process(pid, \"...\")` to send input and `read_process_output`\n  to read responses. End with `force_terminate` if it won't exit on its own.\n- Navigation is just inspection: use `list_directory` and `get_file_info`\n  rather than relying on a persistent `cd`. If you must `cd`, do it inside the\n  same command (`cd /abs/path && some-command`).\n\n### Interactive REPL pattern (the workhorse)\n\nThis keeps state across calls and is the right way to drive Python, Node, a\ndatabase shell, or SSH:\n\n```\nstart_process(\"python3 -i\")          # or \"node -i\", \"ssh user@host\", \"psql ...\"\ninteract_with_process(pid, \"import pandas as pd\")\ninteract_with_process(pid, \"df = pd.read_csv('/abs/path/data.csv')\")\ninteract_with_process(pid, \"print(df.describe())\")\nread_process_output(pid)             # pull more output if needed\n```\n\n## 4. Running specific CLIs\n\n- **Python**: prefer `python3 -i` as an interactive session for multi-step work;\n  for a quick one-off use `python3 /abs/script.py`. Check `pythonInfo.command`\n  from §1 (`python` vs `python3`).\n- **Node**: `node -i` for an interactive session, `node /abs/script.js` for a\n  one-off. `npm`/`pnpm`/`yarn` installs can be slow — give a generous timeout and\n  read remaining output rather than assuming failure.\n- **Docker**: `docker ps`, `docker logs <id>`, `docker compose up -d`. Long\n  builds/runs: launch then poll with `read_process_output`. Treat\n  `docker system prune`, `docker rm`, `docker volume rm` as destructive (§7).\n- **SSH**: launch with `start_process(\"ssh user@host\")`, then drive it with\n  `interact_with_process`. Remote destructive commands deserve the same\n  confirmation rules as local ones.\n- **curl / HTTP**: fine for inspection (`curl -i https://...`). Be careful with\n  anything that pipes a downloaded script straight into a shell\n  (`curl ... | sh`) — that's untrusted code execution; show it and confirm first.\n- **Cloud CLIs** (`aws`, `gcloud`, `az`): read-only commands (`describe`, `list`,\n  `get`) are safe to run; anything that creates, deletes, scales, or changes IAM\n  is high-impact — preview the exact command and confirm. Never echo secrets or\n  credentials into the terminal output.\n\n## 5. Inspecting processes and ports\n\n- **Processes**: `list_processes` (Desktop Commander) for a structured view, or\n  `ps aux` (Unix) / `Get-Process` (PowerShell). Stop one with `kill_process` by\n  PID (`force_terminate` ends a session you started).\n- **What's using a port**:\n  - macOS/Linux: `lsof -i :3000` or `lsof -nP -iTCP -sTCP:LISTEN`\n  - Linux: `ss -ltnp`\n  - Windows PowerShell: `Get-NetTCPConnection -LocalPort 3000`\n  - Windows cmd: `netstat -ano | findstr :3000` (then map the PID)\n- When killing a process, confirm the PID belongs to what the user thinks it\n  does — show the process line before terminating it.\n\n## 6. Explaining errors in plain English\n\nWhen a command fails, don't just retry blindly:\n\n1. Read the **actual** error text from the process output — the real cause is\n   usually in the last few lines, not the first.\n2. Name the cause in one plain sentence (e.g. \"the port's already taken\",\n   \"that package isn't installed\", \"permission denied because the file's owned\n   by root\").\n3. Give the concrete fix command for *their* shell, and explain what it does.\n4. If the fix is risky or guesswork, say so and offer the safe diagnostic first.\n\nCommon ones worth recognizing fast: `command not found` / `not recognized`\n(not installed or not on PATH), `EADDRINUSE` (port in use — see §5),\n`permission denied` / `EACCES` (ownership/permissions, not always fixable with\nelevation), `ENOENT` (path doesn't exist — check absolute path), `npm ERR!`\nblocks (read the resolved error line), non-zero exit codes (report the code).\n\n## 7. Safety: destructive commands and chaining\n\nDesktop Commander already refuses a built-in `blockedCommands` list (things like\n`sudo`, `mkfs`, `format`, `dd`, `fdisk`, `shutdown`, `reboot`, `diskpart`,\n`reg`, `net`). Read the live list from `get_config`; don't assume it.\n\nBeyond that list, treat these as **destructive — never run without the user's\nexplicit confirmation**, even if they'd technically succeed:\n\n- Recursive/forced deletes: `rm -rf`, `Remove-Item -Recurse -Force`, `del /s`,\n  `rd /s`.\n- Overwriting or moving over existing files; wildcard deletes.\n- Disk/format/partition operations.\n- `git reset --hard`, `git clean -fd`, `git push --force` (history/data loss).\n- Database drops/truncates: `DROP`, `TRUNCATE`, `DELETE` without a `WHERE`.\n- `chmod -R` / `chown -R` on broad paths, `killall`, mass process kills.\n- Cloud deletes/scaling/IAM changes; `docker ... prune`/`rm`/volume removal.\n- Anything piping remote content into a shell (`curl ... | sh`).\n\nFor these: show the exact command, explain in one line what it will irreversibly\ndo, and wait for a clear \"yes\". Prefer a dry run or a read-only check first\n(e.g. `ls` the glob before `rm` it, `--dry-run` where the tool supports it).\n\n**Chaining safely**: `&&` runs the next only if the previous succeeded; `;` runs\nregardless; `||` runs only on failure. PowerShell historically uses `;` to\nsequence (it supports `&&`/`||` in v7+, but not all hosts). Keep chains short.\nIf any step in a chain is destructive, don't chain it — run the safe steps,\nconfirm, then run the risky one alone so a failure can't cascade.\n\n## 8. Turning repeated workflows into scripts\n\nWhen the user runs the same sequence repeatedly (or asks to \"save this\"), offer\nto capture it as a script instead of retyping:\n\n- Unix → a `.sh` file with `#!/usr/bin/env bash` (or `zsh`), `set -euo pipefail`\n  for safety, comments explaining each step; make it executable (`chmod +x`).\n- Windows → a `.ps1` (PowerShell) script with comment-based help at the top.\n- Write the file with `write_file` to an absolute path the user chooses, echo\n  it back, and explain how to run it. Parameterize the bits that change\n  (paths, names) rather than hard-coding.\n- If the workflow needs to run on both Windows and Unix, either keep the logic\n  in a cross-platform tool (a small Python/Node script) or provide both a `.sh`\n  and a `.ps1`. Don't pretend one shell script runs everywhere.\n\nKeep scripts small and readable — the goal is something the user can open, trust,\nand edit later, not a black box.\n\n## Operating etiquette\n\n- Preview risky commands before running; run read-only inspection first.\n- Use absolute paths; respect `allowedDirectories`.\n- Never print secrets, tokens, or passwords into output; redact if they appear.\n- Match the user's level: explain jargon when they seem new, stay terse when\n  they're fluent.\n- After a failed command, diagnose from the real output before retrying.\n","frontmatter":{"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."},"isInternal":false,"tokens":2789,"sizeBytes":10761},{"name":"marketplace.json","path":".claude-plugin/marketplace.json","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/.claude-plugin/marketplace.json","title":"Claude Plugin Marketplace Catalog","category":"marketplace","format":"json","content":"# Claude Plugin Marketplace Catalog\n\nPath: `.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/.claude-plugin/marketplace.json)","tokens":300,"sizeBytes":211},{"name":"marketplace.json","path":".cursor-plugin/marketplace.json","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/.cursor-plugin/marketplace.json","title":"Claude Plugin Marketplace Catalog","category":"marketplace","format":"json","content":"# Claude Plugin Marketplace Catalog\n\nPath: `.cursor-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/.cursor-plugin/marketplace.json)","tokens":300,"sizeBytes":211},{"name":"plugin.json","path":"plugin.json","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugin.json","title":"Plugin Plugin Manifest","category":"plugin-manifest","format":"json","content":"# Plugin Plugin Manifest\n\nPath: `plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugin.json)","tokens":300,"sizeBytes":160},{"name":"plugin.json","path":"plugins/claude/.claude-plugin/plugin.json","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/.claude-plugin/plugin.json","title":"claude-plugin Plugin Manifest","category":"plugin-manifest","format":"json","content":"# claude-plugin Plugin Manifest\n\nPath: `plugins/claude/.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/.claude-plugin/plugin.json)","tokens":300,"sizeBytes":227},{"name":"README.md","path":"plugins/claude/README.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/README.md","title":"claude Documentation","category":"plugin-manifest","format":"markdown","content":"# claude Documentation\n\nPath: `plugins/claude/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/README.md)","tokens":300,"sizeBytes":184},{"name":"plugin.json","path":"plugins/cursor/.cursor-plugin/plugin.json","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/.cursor-plugin/plugin.json","title":"cursor-plugin Plugin Manifest","category":"plugin-manifest","format":"json","content":"# cursor-plugin Plugin Manifest\n\nPath: `plugins/cursor/.cursor-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/.cursor-plugin/plugin.json)","tokens":300,"sizeBytes":227},{"name":"README.md","path":"plugins/cursor/README.md","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/README.md","title":"cursor Documentation","category":"plugin-manifest","format":"markdown","content":"# cursor Documentation\n\nPath: `plugins/cursor/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/README.md)","tokens":300,"sizeBytes":184},{"name":"smithery.yaml","path":"smithery.yaml","rawUrl":"https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/smithery.yaml","title":"Model Context Protocol (MCP) Configuration","category":"mcp-config","format":"yaml","content":"# Model Context Protocol (MCP) Configuration\n\nPath: `smithery.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/smithery.yaml)","tokens":300,"sizeBytes":184}],"systemPromptSnippet":"<yakaai_skills repo=\"wonderwhy-er/DesktopCommanderMCP\">\n<!-- File: plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/claude-desktop-mcp.md)\n\n<!-- File: plugins/claude/skills/ai-tools-setup/references/hermes.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/hermes.md)\n\n<!-- File: plugins/claude/skills/ai-tools-setup/references/openclaw.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/claude/skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/ai-tools-setup/references/openclaw.md)\n\n<!-- File: plugins/claude/skills/ai-tools-setup/SKILL.md (Tokens: ~1431 | Category: anthropic-skill) -->\n---\nname: ai-tools-setup\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Set up, connect, validate, and repair Claude Desktop and MCP servers using\n  Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json,\n  getting MCP servers to connect, and diagnosing local AI tooling. Use when a\n  user wants to install, configure, connect, validate, or fix Claude Desktop, an\n  MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the\n  symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP\n  server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP\n  server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent\n  won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also\n  covers local agent gateways like OpenClaw and Hermes.\n---\n\n# AI Tools Setup Assistant\n\nHelp users install, configure, and repair AI tooling on their own machine using\nDesktop Commander's file and terminal tools. The work is usually\n**configure-and-troubleshoot**, not clean installs — assume something already\nexists and may be half-broken.\n\n## Golden rules (read before doing anything)\n\n1. **Detect the OS and shell first.** Read `get_config` and use its `systemInfo`\n   and `allowedDirectories` — file paths, commands, and config locations differ\n   across macOS, Windows, and Linux, so confirm the platform before assuming\n   anything.\n2. **Verify the model/API key works before you build.** The most common reason\n   these sessions dead-end is a provider auth or billing error discovered\n   *after* a lot of setup work. Make one tiny test call with `start_process` (a quick\n   curl to the provider) early, and tell the user plainly if the key is invalid\n   or out of credit.\n3. **Translate errors, don't dump them.** When a tool returns a raw JSON/HTTP\n   error, explain in one line what it means and what to do next. If a model is\n   missing, deprecated, rate-limited, or doesn't support tool-calling, suggest a\n   concrete working alternative instead of retrying the same thing.\n4. **Never echo secrets.** API keys, tokens, and passwords go *into the right\n   config or `.env` file* — never repeated back in chat. If a user pastes a live\n   secret, warn them, use it, and suggest they rotate it if it was shared\n   insecurely. Redact secrets in any output, logs, or summaries you produce.\n5. **Back up before you edit.** Copy the config to a `.bak` first with\n   `start_process` (`cp file.json file.json.bak`, or `copy` on Windows), then make\n   the change with `edit_block` so existing entries survive — reach for\n   `write_file` only on a from-scratch config. Validate the JSON after every edit\n   by parsing it with `start_process`.\n6. **Verify, then stop.** After a change, actually confirm it worked — use\n   `list_processes` to confirm the process is running and `start_process`\n   (`lsof`/`netstat`) to confirm the port is listening, then check the client\n   reconnected and its tools are listed. Don't declare success on a guess.\n7. **Make it repeatable.** Once something works, offer to save the steps as a\n   short note or script so the user can redo it later.\n\n## What this skill covers\n\nThis skill routes to one of three reference files depending on the task. Read\nthe relevant file before acting — they contain the exact paths, commands, and\nknown failure modes.\n\n- **Claude Desktop & MCP servers** — installing Claude Desktop, adding MCP\n  servers, and inspecting / validating / repairing MCP config files\n  (`claude_desktop_config.json`, `.claude/mcp.json`, `~/.lmstudio/mcp.json`,\n  and similar). Also connection health checks.\n  → Read [`references/claude-desktop-mcp.md`](references/claude-desktop-mcp.md)\n\n- **OpenClaw** — a self-hosted multi-channel gateway for AI agents. Install,\n  onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,\n  etc.), diagnose the gateway, and uninstall.\n  → Read [`references/openclaw.md`](references/openclaw.md)\n\n- **Hermes** — disambiguate first: **Hermes Agent** (the Nous Research\n  self-improving agent framework) vs. **Hermes 3** (just a local LLM you run via\n  Ollama). Install, run `hermes setup --portal`, configure providers, personality\n  (`SOUL.md`), memory/skills, MCP, and messaging.\n  → Read [`references/hermes.md`](references/hermes.md)\n\nWhen in doubt about a tool's current behavior, fetch the official docs:\nOpenClaw — https://docs.openclaw.ai/ ·\nHermes — https://hermes-agent.nousresearch.com/docs/\n\n## General workflow\n\n1. **Clarify the goal and platform.** Install vs. configure vs. fix? Which OS?\n   Which tool/client?\n2. **Inspect current state.** `read_file` the relevant config files and use\n   `list_processes` to check whether the relevant process/port/service is already\n   running before changing anything.\n3. **Read the matching reference file** for exact paths and commands.\n4. **Make the smallest change that moves forward**, backing up configs first.\n5. **Verify** the result concretely.\n6. **Summarize** what changed, where, and how to undo it — with secrets redacted.\n\n## A generic \"my agent isn't responding\" diagnostic\n\nUse this order for OpenClaw, Hermes, or any local agent/gateway:\n\n1. **Provider/auth** — is a valid API key configured for the active provider,\n   and does it have credit? (Most failures stop here.)\n2. **Model** — does the chosen model exist, and does it support tool-calling?\n   Local models especially often don't.\n3. **Process/port** — is the gateway/daemon actually running and listening on\n   its port? Is another process holding that port?\n4. **Connection** — for chat clients/websockets, does it connect but drop on\n   first message? That usually points back to provider/model, not networking.\n5. **Logs** — read the tool's logs for the first real error, not the last one.\n\n<!-- File: plugins/claude/skills/computer-health-check/references/linux.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/linux.md)\n\n<!-- File: plugins/claude/skills/computer-health-check/references/macos.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/macos.md)\n\n<!-- File: plugins/claude/skills/computer-health-check/references/windows.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/claude/skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/claude/skills/computer-health-check/references/windows.md)\n\n<!-- File: plugins/claude/skills/computer-health-check/SKILL.md (Tokens: ~2117 | Category: anthropic-skill) -->\n---\nname: computer-health-check\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Run a comprehensive, read-only health check on the user's computer and return a\n  scored chat summary with prioritized, plain-English recommendations and safe cleanup\n  suggestions. Use this whenever the user wants to check their computer's health, speed\n  it up, free up / reclaim disk space, find what's eating CPU / memory / storage, check\n  battery health and wear, audit login & startup items, see pending updates, or asks for\n  a \"tune-up\", \"checkup\", \"system report\", \"health check\", or \"is my Mac/PC/laptop\n  healthy\". Trigger even on casual phrasing like \"my laptop feels slow\", \"why is my fan\n  so loud\", \"my computer is laggy\", \"running out of space\", or \"clean up my machine\".\n  Works on macOS, Windows, and Linux. This is a Desktop Commander skill: it relies on a\n  real local shell (start_process / interact_with_process) and is strictly read-only by\n  default — it never needs sudo and only performs cleanups the user explicitly approves.\n---\n\n# Computer Health Check\n\n## What this skill does\n\nGive the user a fast, trustworthy picture of their computer's health and a short list\nof actions worth taking — the way a good technician would: look first, explain plainly,\nfix only with permission.\n\nIt runs entirely through Desktop Commander's local shell, gathers a batch of **read-only**\ndiagnostics, scores each area, prints a concise summary **in the chat**, and then offers\ncleanup suggestions the user can approve one by one.\n\n## The safety contract (read this first)\n\nThis is the part that makes users trust the skill, so honor it strictly:\n\n- **Read-only by default.** The collection phase only *observes* (sizes, counts, status).\n  It changes nothing.\n- **Never use `sudo` or elevation.** DC blocks `sudo`, `shutdown`, `reboot`, `dd`, `mount`,\n  `mkfs`, `diskpart`, etc. for good reason. Every check below is designed to work without\n  them. If something seems to need elevation, skip it and say so — don't try to work around\n  the block.\n- **Cleanups are opt-in.** You may *suggest* cleanups freely, but only *execute* one after\n  the user explicitly approves that specific action, and only show the exact command first.\n- **Prefer reversible, non-destructive actions.** Emptying caches that regenerate, clearing\n  a package-manager download cache, or emptying Trash are fine to offer. Deleting user\n  documents, uninstalling apps, or editing system files are not — suggest those, let the\n  user do them.\n\n## Workflow\n\n### Step 1 — Detect the OS\n\nDetermine the platform before doing anything else, because the commands differ.\n\n- Quickest: read Desktop Commander's config (`get_config`) and use the\n  `systemInfo.isMacOS` / `isWindows` / `isLinux` booleans (or `platformName`) to\n  pick the platform.\n- Or run `uname` (macOS/Linux) — if it fails, assume Windows.\n\nThen open the matching reference file and use its command set:\n\n- macOS → [`references/macos.md`](references/macos.md)\n- Windows → [`references/windows.md`](references/windows.md)\n- Linux → [`references/linux.md`](references/linux.md)\n\nRead **only** the one that matches. Each file contains a single batched collection script\nplus interpretation notes and cleanup commands.\n\n### Step 2 — Collect (read-only)\n\nRun the batched collection script from the reference file with `start_process`. Batching\neverything into one call is much faster than many small calls and keeps the output tidy.\n\nGuidance:\n- Keep outputs bounded (`head`, `Select-Object -First`, etc.) so a long process list or\n  file listing doesn't flood the response.\n- Skip the genuinely slow / network checks (full OS-update list, internet speed test) on the\n  first pass unless the user asked about updates or network. Mention they're available.\n- If a single command errors (e.g., a tool isn't installed), continue — partial data is fine.\n\n### Step 3 — Score each area\n\nRate each category 🟢 Good / 🟡 Watch / 🔴 Act using the rubric below, then compute a simple\noverall score. Start at 100 and subtract 8 per 🟡 and 18 per 🔴; floor at 0. Report the\nnumber and a one-word verdict (90+ Excellent, 75–89 Good, 60–74 Fair, <60 Needs attention).\n\n| Area | 🟢 Good | 🟡 Watch | 🔴 Act |\n|---|---|---|---|\n| Free disk space | >20% free | 10–20% | <10% |\n| Disk health (SMART) | Verified / OK / PASSED | — | failing / not supported & errors present |\n| Memory pressure | low swap, free pages healthy | noticeable swap/compression | heavy swapping, near-zero free |\n| Battery (laptops) | ≥80% max capacity, Normal | 70–80% | <70% or \"Service/Replace\" |\n| Maintenance | uptime <7d, no pending updates | uptime 7–30d or minor updates | uptime >30d or security updates pending |\n| Startup load | few third-party login items | moderate | many heavy third-party agents |\n| Live resource hogs | nothing >50% at idle | one sustained heavy process | multiple / runaway processes |\n\nBattery is laptop-only — skip it on desktops/VMs. Reclaimable space is reported as an\ninformational figure, not scored.\n\n### Step 4 — Report in the chat\n\nUse this exact structure. Keep it tight and scannable — this is the deliverable.\n\n```\n🖥️  Health Check — <Model>, <OS version>     Score: <N>/100 (<verdict>)\n\n🟢/🟡/🔴  Storage      — <free> free of <total> (<%>). Reclaimable: ~<X> GB\n🟢/🟡/🔴  Memory       — <one-line state>\n🟢/🟡/🔴  Battery      — <cycles> cycles, <max capacity>%, <condition>\n🟢/🟡/🔴  Maintenance  — up <days>d, <updates state>\n🟢/🟡/🔴  Startup      — <count> login items (<notable ones>)\n🟢/🟡/🔴  Right now    — top: <proc> <cpu%>, <proc> <cpu%>\n\nTop recommendations\n1. <highest-impact action> (<expected benefit, e.g. frees ~13 GB>)\n2. <next>\n3. <next>\n```\n\nList at most the 3–5 highest-impact recommendations, ordered by benefit. Don't dump every\nfinding — the goal is signal, not a wall of text.\n\n### Step 5 — Suggest cleanups, execute only on approval\n\nFor each recommendation that maps to a concrete command (see the reference file's \"Cleanup\"\nsection), offer it and show the exact command. Then:\n\n- **Safe, reversible** (offer to run on a yes): empty Trash, package-manager cache cleanup\n  (`brew cleanup`, `npm cache clean`), clearing a regenerating user cache folder. (On Linux,\n  `apt-get clean` / `dnf clean` need root — suggest, don't auto-run.)\n- **Needs the user to decide / act** (suggest, don't auto-run): disabling login items,\n  installing OS updates (requires restart), uninstalling apps, deleting files in Downloads.\n- **Never**: anything requiring sudo/admin, removing system files, disk/partition operations.\n\nWhen the user approves a safe action, run it, then report what changed (e.g., space freed).\nRe-running Step 2's storage check afterward is a nice confirmation.\n\n## Recommendation rules (findings → advice)\n\nThese are the high-value mappings; adapt the wording to the platform.\n\n- **Uptime > 30 days** → \"Restart your computer — it's been up <N> days. A reboot clears\n  memory and applies pending updates.\" (Highest ROI, lowest effort.)\n- **Pending OS/security updates** → platform update step; flag security updates as higher\n  priority.\n- **Free space < 15%** → lead with the biggest reclaimable buckets you measured.\n- **Large Downloads / Caches / Trash** → empty Trash; review largest Downloads items by name;\n  clear caches that regenerate.\n- **Package manager has many outdated items / big cache** → `upgrade` + cache cleanup.\n- **Battery max capacity < 80%** → explain wear is normal; consider a battery service if it's\n  affecting runtime.\n- **Many third-party startup agents** → name them and suggest disabling the ones the user\n  doesn't recognize/need (point to System Settings / Task Manager — don't edit them directly).\n- **A process pinned high at idle** → name it and suggest quitting/investigating.\n\n## Notes & pitfalls\n\n- **Don't assume — measure.** Always run the commands and report real numbers. Never\n  fabricate sizes, cycle counts, or statuses.\n- **Bounded output.** Process and file listings can be huge; always cap them.\n- **Optional deep checks** (mention, run on request): internet speed test, full update list,\n  per-folder disk scan of the whole home directory, crash-report trend analysis.\n- **Privacy.** This reads local system metadata only. Don't send anything off the machine;\n  the public-IP check is optional and should be labeled.\n- **Cross-platform parity.** The three reference files mirror the same categories so the\n  report looks the same regardless of OS.\n\n<!-- File: plugins/claude/skills/desktop-commander-overview/SKILL.md (Tokens: ~2713 | Category: anthropic-skill) -->\n---\nname: desktop-commander-overview\ndescription: Use for Desktop Commander MCP capabilities — persistent shells and REPLs, long-running processes, filesystem beyond the workspace, structured files (.xlsx, .docx, .pdf, images) and large local data files such as CSVs, ripgrep search at scale, SSH, or cross-turn state.\nversion: 0.1.0\naudience: agent\n---\n\n# Desktop Commander MCP\n\nDesktop Commander gives the agent reach across the user's actual computer — files, folders, terminals, processes, structured documents, and remote machines reachable over SSH. The tools' detailed schemas (parameters, return shapes, format-specific behavior) live in the MCP itself; this skill explains what they enable and how they compose into common workflows.\n\n## What this MCP gives the agent\n\n**Persistent shell sessions.** Desktop Commander keeps a started process or session alive across tool calls. Inside a single long-lived shell, REPL, or SSH session, state carries forward — environment variables, working directory, activated virtualenvs, open connections, REPL variables — so the agent can `cd`, activate a venv, then send commands or code into that same session many turns later without re-setup. (Note: separate `start_process` calls open separate sessions and do **not** share shell state with each other; persistence is inside one session, not across them.)\n\n**Long-running processes.** Start a dev server, watcher, build, training run, or test suite in the background and keep working. The MCP returns a process handle the agent can tail, interact with, or terminate across many turns. Long-running commands don't need to block the workflow waiting for a foreground command to exit.\n\n**Filesystem reach beyond the IDE workspace.** Read, write, move, list, and inspect files anywhere the user has granted scope — Downloads, Documents, project folders outside the IDE, or any other granted folders. Useful for organize-and-clean tasks, batch document work, and any \"look at the file my coworker just sent me\" request that doesn't fit inside the IDE sandbox.\n\n**Surgical edits to existing files.** The `edit_block` tool does exact-string find-and-replace with built-in safety: ambiguous matches fail loudly instead of silently overwriting the wrong thing, and an `expected_replacements` count prevents partial-match disasters. Lower data-loss risk than rewriting whole files based on the slice you happened to read — though a wrong `old_string` or wrong `expected_replacements` can still corrupt content, so review the changed content before considering the edit done.\n\n**Binary and structured files handled directly by the MCP.** Excel, DOCX, and PDF are first-class — read and modified through format-specific mechanisms rather than text-only approximations: Excel via cell-range JSON, DOCX via raw-XML edits, PDF via page-level operations on a new output file. The result is the real file in its original format, not a regenerated approximation. Images and PDFs return as viewable content for the agent.\n\n**Search at scale.** Streaming, ripgrep-backed search across whole projects or folder trees. The agent picks between filename search and in-file content search, pages through results progressively without flooding context, and runs multiple concurrent searches when the query is ambiguous.\n\n**Remote machines via SSH.** A long-lived SSH session inside a persistent shell turns the agent into a real ops tool: connect once, then tail logs, run diagnostics, deploy, or debug across many turns without reconnecting each step.\n\n**Process management.** List, inspect, tail, and kill accessible processes (subject to OS permissions). Useful for cleaning up stale dev servers from previous sessions and for diagnosing CPU / memory issues.\n\n## Example workflows\n\nEach example names the actual tool sequence. Calls below are written in pseudocode shorthand (`tool_name(\"arg\", flag=value)`); the real tools take object-shaped arguments. Tool descriptions and full parameter sets live in the MCP itself.\n\n### \"Debug this production issue\"\n\nBefore running production-impacting SSH commands, explain the intended action and get user confirmation when the risk is non-trivial.\n\n`start_process(\"ssh user@prod.example.com\", timeout_ms=...)` opens a long-lived SSH session and returns a PID. `interact_with_process(pid, \"tail -f /var/log/app.log\\n\")` starts streaming logs. Subsequent turns: `read_process_output(pid, offset=-50)` to see the last 50 lines as they arrive, `interact_with_process(pid, \"...\")` to run diagnostic commands in the same session. `force_terminate(pid)` to close the session when done — for sessions opened by `start_process`, `force_terminate` is the correct cleanup tool; `kill_process` is for arbitrary OS PIDs found via `list_processes`.\n\n### \"Deploy this to staging\"\n\nBefore deploys, restarts, migrations, or other environment-changing commands, summarize the action and confirm with the user unless they already explicitly asked for that exact operation.\n\n`start_process` for the deploy command (could be a script, an SSH-piped command, or `kubectl`/`gh` etc.). `read_process_output` to track output and surface errors. If the deploy needs an interactive confirmation, `interact_with_process(pid, \"yes\\n\")`. The session stays alive while the agent watches for completion or rollback.\n\n### \"Run the dev server and iterate on the API\"\n\n`start_process(\"npm run dev\", timeout_ms=...)` keeps the server up. The agent then loops: `edit_block` on the route file, `read_process_output(pid, offset=-30)` to see the server's reload, `start_process(\"curl -s http://localhost:3000/api/...\")` for a one-shot test, repeat. The dev server never has to restart between code changes.\n\n### \"Refactor across this monorepo\"\n\n`start_search(pattern=\"oldFunctionName\", path=repo_root, searchType=\"content\")` scopes every call site. `get_more_search_results(sessionId)` pages through. `read_multiple_files(paths=[...])` confirms ambiguous hits in context. `edit_block(file_path, old_string, new_string)` per site, with `expected_replacements` set when the same substring legitimately appears multiple times in one file. Verify by re-running `start_search` on the old name and paging the results with `get_more_search_results(sessionId)` until the run completes — only then can you confirm zero remaining hits.\n\n### \"Update the Q3 numbers in this spreadsheet and tweak the summary in the report\"\n\n`read_file(path=\"/.../q3.xlsx\", sheet=\"Revenue\", range=\"A1:F50\")` returns the existing numbers as a JSON 2D array. `edit_block(file_path=\"/.../q3.xlsx\", range=\"Revenue!C12:C24\", content=[[12345], ...])` updates the cells in place. For the report, DOCX editing is a two-read flow: first `read_file(path=\"/.../report.docx\")` (offset 0) returns the document's outline (headings + paragraph text) so you can locate the summary section. Then `read_file(path=\"/.../report.docx\", offset=N, length=...)` with **`N > 0`** returns the raw underlying XML around that section — a non-zero offset is what flips the read into XML mode. Copy an XML fragment from that output as `old_string` and call `edit_block(file_path, old_string, new_string)` with the rewritten XML. The user gets back real `.xlsx` and `.docx` files, not regenerated approximations.\n\n### \"Generate the Q3 report as a PDF\"\n\nCompose markdown content (header, table, charts via embedded HTML), then call `write_pdf` to render it to a new PDF file. The MCP's `write_pdf` tool description specifies the exact parameters and filename rules — follow that.\n\n### \"Insert a cover page into this PDF\"\n\n`write_pdf` also supports modifying existing PDFs via an operations array (insert / delete pages). Use it for existing-PDF edits that produce a new PDF — adding a cover page, removing a section, merging in content from another file. See the `write_pdf` tool description for the operation shapes and parameter rules.\n\n### \"Analyze this 200MB CSV\"\n\n`start_process(\"python3 -i\", timeout_ms=...)` opens a Python REPL and returns a PID. `interact_with_process(pid, \"import pandas as pd; df = pd.read_csv('/abs/path.csv')\")` loads it once. Every subsequent question — `df.describe()`, `df.groupby('col').size()`, plot a chart — runs in the same already-loaded REPL. Libraries don't re-import, the dataframe doesn't re-load. The MCP itself recommends this workflow for any local data-file analysis.\n\n### \"Run a quick Node script\"\n\n`start_process(\"node:local\", timeout_ms=...)` opens a stateless Node execution mode on the MCP server itself — ES imports supported. `start_process` opens the runner; each piece of JS is sent via `interact_with_process(pid, \"<your JS here>\")` and runs independently (no shared state between calls). Good for one-shot transformations where keeping a long-lived REPL alive isn't worth it. Don't try to put code into the `start_process` command argument — only the runner type (`node:local`) goes there.\n\n### \"Explain this codebase\"\n\n`list_directory(path=repo_root, depth=3)` for shape. `start_search(pattern=\"export \", path=repo_root, searchType=\"content\")` to find the public surface. `read_multiple_files(paths=[entrypoints])` for the actual code. The agent can keep narrowing without re-asking the user where to look.\n\n### \"Organize my Downloads folder\"\n\nResolve the path to absolute first (e.g., `/Users/<user>/Downloads`, not `~/Downloads`). Then `list_directory(path=\"/Users/<user>/Downloads\", depth=1)` to see what's there. `start_search(pattern=\"*.pdf\", path=\"/Users/<user>/Downloads\", searchType=\"files\")` and similar for other types. `create_directory` for new folders. `move_file` per item. Preview the move plan before executing destructive ops.\n\n### \"Onboard me — what was happening last session?\"\n\n`get_recent_tool_calls(maxResults=200)` returns recent activity with arguments and outputs. `list_sessions` shows still-running terminal sessions. `list_searches` shows in-flight searches. `list_processes` shows what's still alive. Together they reconstruct the work without asking the user to recap.\n\n### \"Why isn't the REPL responding?\"\n\n`list_sessions` — if `Blocked: true`, the REPL is waiting for input rather than hung. `read_process_output(pid, offset=-100)` to see what it last printed (often a prompt). `interact_with_process(pid, \"<the input it's waiting for>\\n\")` unblocks it.\n\n## Core tool inventory\n\nGrouped index of the tools an agent reaches for most often. Not exhaustive — the MCP exposes additional config / diagnostics / feedback tools beyond this list. Detailed parameters and return shapes for every tool are in the MCP's own tool descriptions.\n\n- **Process / shell:** `start_process`, `interact_with_process`, `read_process_output`, `list_processes`, `list_sessions`, `kill_process`, `force_terminate`\n- **Files (read/write):** `read_file`, `read_multiple_files`, `write_file`, `edit_block`, `write_pdf`\n- **Filesystem:** `list_directory`, `get_file_info`, `move_file`, `create_directory`\n- **Search:** `start_search`, `get_more_search_results`, `list_searches`, `stop_search`\n- **Diagnostics / config:** `get_recent_tool_calls`, `get_config`\n\n## Conventions\n\n**Prefer absolute paths.** Relative paths may fail depending on the working directory, and tilde paths (`~/...`) may not expand in all contexts. Absolute paths are the most reliable; pass them whenever you can.\n\n**Allowed-directory scope.** File operations only work inside the user's configured `allowedDirectories`. Expect `[DENIED]` markers in `list_directory` output and rejections from `read_file` / `write_file` when the path is out of scope. Surface the rejected path to the user — don't retry.\n\n**When running on macOS:** default shell is zsh. Use `python3` not `python`. Some GNU tools have prefixed names (`gsed` for GNU sed). `brew` is the typical package manager. `open` opens files / apps from the terminal, `mdfind` is the fastest path to exact-filename search via Spotlight. Detect the host platform via `get_config` (or by inspecting `process.platform` / `uname` from a shell) before assuming any of the above — Windows and Linux hosts behave differently.\n\n**Pagination.** Long outputs (file reads, process output, search results) all support `offset` and `length`. Negative offsets read from the end (tail mode). Use these instead of dumping huge results into context.\n\n<!-- File: plugins/claude/skills/knowledge-base/SKILL.md (Tokens: ~2170 | Category: anthropic-skill) -->\n---\nname: knowledge-base\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Create and maintain a Markdown knowledge base that any AI agent can read,\n  search, and update. Use when the user wants to start a knowledge base, add or\n  update notes, organize docs/notes for an agent or LLM to consume, build an\n  index of notes, or run a cleanup/maintenance pass on an existing MD knowledge\n  base. Triggers include \"knowledge base\", \"KB\", \"notes for the agent\", \"index\n  of notes\", \"second brain\", \"docs for AI context\", \"add a note\", \"update the\n  KB\".\n---\n\n# Knowledge Base (Markdown, agent-readable)\n\nA knowledge base (KB) here is a folder of Markdown files designed so **any** AI\nagent can navigate it without a vector database: the agent reads one index file,\npicks the relevant notes by their descriptions, and opens only those. Keep the\nwhole KB readable and the index lean — the index is what gets loaded into\ncontext, so it must be high-signal.\n\nApply the rules below when creating a new KB, adding/editing notes, or doing a\nmaintenance pass. When the user's request is ambiguous (new KB vs. add note vs.\ncleanup), ask which one before acting.\n\n## Core principles (the \"why\")\n\n1. **Index-first navigation.** The index is a map, not a container. An agent\n   reads `INDEX.md`, selects notes by their one-line descriptions, then opens\n   only those files. No note is \"in\" the KB unless it's registered in the index.\n2. **Atomicity.** One topic per note. If a title needs an \"and\", it's probably\n   two notes. Atomic notes are easier to find, link, and reuse.\n3. **Stable IDs.** Every note has a permanent ID that never changes and is never\n   reused, so links survive renames and moves.\n4. **Linked with reason.** When two notes connect, state *why* (prerequisite,\n   supports, contrasts, see-also). Connections carry as much value as the notes.\n5. **Lean instructions.** Keep `INDEX.md` instructions short and high-signal —\n   it competes for the agent's context budget. Bodies load on demand.\n6. **Structured for retrieval.** Clear H1 title and H2/H3 sections so an agent\n   can grab the relevant slice of a note, not the whole thing.\n\n## Folder structure (nested by topic)\n\n```\nknowledge-base/\n  INDEX.md                 # entry point: instructions + full note registry\n  topics/\n    <topic>/\n      _topic.md            # topic map: what this topic covers + its notes\n      <slug>.md            # one atomic note\n  assets/                  # images / attachments referenced by notes\n```\n\n- Topic folders are short, lowercase nouns (`auth`, `billing`, `deploys`).\n- `_topic.md` is the topic-level map of content (MOC): a short intro plus links\n  to every note in that topic. It is a convenience view; `INDEX.md` remains the\n  source of truth.\n\n## Naming rules\n\n- Lowercase **kebab-case**, predictable and greppable: `topics/auth/session-tokens.md`.\n- No spaces, no uppercase, no dates in filenames (dates live in frontmatter).\n- The filename slug should match the note's `id` slug portion.\n\n## Required frontmatter (every note)\n\n```yaml\n---\nid: 20260618-session-tokens     # ID scheme: YYYYMMDD-slug. Stable. Never reuse or change.\ntitle: Session tokens           # human title, also the note's H1\ntags: [auth, security]          # only tags from the controlled list in INDEX.md\ncreated: 2026-06-18\nupdated: 2026-06-18\nrelated: [20260618-auth-flow]    # IDs of linked notes\nsummary: One scannable sentence describing what this note covers.\n---\n```\n\n- `id`: `YYYYMMDD-slug`. Sortable, readable, stable. Different-titled same-day\n  notes differ by slug; if two same-day notes would collide on the same slug,\n  append `-2`, `-3`, … (check the `INDEX.md` registry before assigning). Once\n  assigned, the id is permanent.\n- `summary`: this exact sentence is what goes in the index registry — write it to\n  help an agent decide whether to open the note.\n- `updated`: bump it whenever the body changes.\n\n## Note body shape\n\n```markdown\n# Session tokens\n\n> Summary: One sentence (mirrors frontmatter summary).\n\n## Context\nWhy this note exists / when it applies.\n\n## Details\nThe actual content, in short H2/H3 sections.\n\n## Related\n- [Auth flow](auth-flow.md) — prerequisite: tokens are issued during the auth flow.\n- [Rate limiting](../api/rate-limiting.md) — see-also: tokens carry the rate-limit key.\n```\n\n- Use **relative links** between notes and annotate the relationship in a phrase.\n- Every link target should also appear in the note's `related` frontmatter.\n\n## INDEX.md (the single source of truth)\n\n`INDEX.md` has two parts: operating instructions for agents, and the registry.\n\n```markdown\n# Knowledge Base — Index\n\n## How to use this KB (for agents)\n1. Read this index first. Pick notes by their descriptions; open only those.\n2. To answer a question, prefer opening 1–3 specific notes over scanning everything.\n3. Cite the note `id` when you use information from it.\n\n## How to update this KB (for agents)\n- New idea → create a new note (atomic). Same idea changed → edit the note in place and bump `updated`.\n- Any create / rename / delete MUST update this registry and the topic's `_topic.md` in the same change.\n- Use only tags from the controlled vocabulary below; add a new tag here before using it.\n\n## Controlled tags\n`auth`, `security`, `billing`, `api`, `ops`   <!-- extend deliberately -->\n\n## Registry\n### auth\n- `20260618-auth-flow` — **Authentication flow** — `topics/auth/auth-flow.md` — How a user session is established end to end.\n- `20260618-session-tokens` — **Session tokens** — `topics/auth/session-tokens.md` — Token format, lifetime, and rotation.\n\n### billing\n- `20260618-invoicing` — **Invoicing** — `topics/billing/invoicing.md` — How invoices are generated and sent.\n```\n\nRegistry line format: `` `id` — **Title** — `path` — one-line description.``\n\n## _topic.md (topic map)\n\n```markdown\n# Auth\n\nNotes covering authentication, sessions, and access control.\n\n- [Authentication flow](auth-flow.md) — how a session is established.\n- [Session tokens](session-tokens.md) — token format, lifetime, rotation.\n```\n\n## Workflows\n\n### Create a new KB\n1. `create_directory` for the folder structure above.\n2. `write_file` `INDEX.md` with the instructions block, an empty controlled-tag\n   list, and an empty registry.\n3. Add the first topic folder + `_topic.md`, then the first note (each via `write_file`).\n4. Register the note in `INDEX.md` and link it from `_topic.md` — `edit_block`\n   both so you touch only the changed lines.\n\n### Add a note\n1. Pick or create the topic folder (`list_directory` to see what's there).\n2. `write_file` the note (kebab-case slug) with full frontmatter and the body shape.\n3. Add cross-links (and mirror them in `related`).\n4. Register it in `INDEX.md` and link it in `_topic.md` with `edit_block` — same change.\n\n### Update a note\n- Same idea, new information → `edit_block` the note in place, bump `updated`, and\n  `edit_block` the registry line if the scope changed.\n- Genuinely new idea → `write_file` a new atomic note instead of expanding this one.\n\n### Maintenance pass (run on demand)\nUse `start_search` (ripgrep) for text scans and `get_file_info` / `list_directory`\nfor existence checks — together they make this tractable at scale:\n- **Orphans** (no *inbound* links — outbound doesn't matter): `start_search` the\n  KB for the note's `id` and filename slug, then discount the self-matches that\n  always exist — the note's own file, `INDEX.md`, and its `_topic.md`. Anything\n  left is a genuine inbound reference; nothing left = orphan, so link it from a\n  relevant note/MOC or archive it.\n- **Broken links / drift**: don't infer resolution from a text hit — a string\n  existing doesn't mean the file does. Confirm each registry path and `related:`\n  target exists with `get_file_info` (or `list_directory` per topic), and that\n  every file on disk is registered. Use a text compare only for the\n  titles/summaries-out-of-sync half.\n- **Non-atomic notes**: notes that grew to cover multiple topics → split them.\n- **Duplicates**: near-identical notes → merge, keep one `id`, redirect links.\n- **Tag sprawl**: read the controlled list from `INDEX.md`, then `start_search`\n  the frontmatter `tags:` lines and flag any tag not on the list → reconcile.\nPull candidates in bulk with `read_multiple_files`, apply fixes with `edit_block`,\nand report what changed.\n\n## Checklist before finishing any KB edit\n- [ ] Every new/changed note has complete, valid frontmatter.\n- [ ] `id` is unique and unchanged; filename slug matches the id slug.\n- [ ] All links resolve and are mirrored in `related`.\n- [ ] `INDEX.md` registry and the topic `_topic.md` reflect the change.\n- [ ] Tags are from the controlled vocabulary.\n- [ ] `updated` bumped on every changed note.\n\n<!-- File: plugins/claude/skills/obsidian-vault/SKILL.md (Tokens: ~2293 | Category: anthropic-skill) -->\n---\nname: obsidian-vault\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties,\n  dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user\n  explicitly refers to Obsidian — by naming \"Obsidian\", an Obsidian \"vault\", or\n  an Obsidian-specific feature such as wikilinks (\"[[ ]]\"), the Dataview or Bases\n  plugins, or Obsidian Properties. Within that Obsidian context it covers\n  creating Maps of Content, adding/fixing wikilinks, finding orphan notes,\n  normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing\n  folders, deduplicating or renaming notes, and preparing the vault for AI use.\n  Do NOT use this skill for generic note-taking, Markdown, or knowledge-base\n  requests that don't mention Obsidian.\n---\n\n# Obsidian Vault Assistant\n\nHelp the user organize and maintain an Obsidian vault: build navigation with\nMOCs and wikilinks, normalize metadata, generate dashboards, find and fix\norphans, organize folders, deduplicate/rename, and prepare the vault for AI use.\n\nObsidian-specific facts that shape every rule here:\n- Links are **wikilinks** resolved by **filename**, not path: `[[Note title]]`.\n  Renaming a note auto-updates links inside Obsidian, but moving files outside\n  Obsidian breaks them — always rename via Obsidian when possible.\n- Metadata is **Properties** (YAML frontmatter) at the top of a note.\n- Dashboards come from **Dataview** (query language, read-only, flexible) or\n  **Bases** (native, editable tables, fast on big vaults, properties-only).\n\nBefore acting, confirm the vault's root folder and whether the user has the\nDataview plugin installed (Bases is built in since Obsidian 1.9). When a request\nis ambiguous (organize vs. clean up vs. dashboard), ask which task.\n\n## Wikilinks\n\n- Basic: `[[Three laws of motion]]` — resolves by filename, no extension/path.\n- Display text (pipe): `[[atomic-habits|James Clear — Atomic Habits]]`.\n- Heading link: `[[Note#Section]]`. Block link: `[[Note#^block-id]]`.\n- Embed/transclude: `![[Note]]`, `![[Note#Section]]`, `![[image.png]]`.\n- Aliases: add an `aliases` property so the note resolves under other names.\n- Avoid `# | ^ : %` and `[ ]` in filenames — they have special meaning in links.\n- Prefer wikilinks for internal navigation; use standard Markdown links only if\n  the vault is also published to a tool that can't parse wikilinks.\n\nWhen adding links, also surface **unlinked mentions**: if a note's title appears\nas plain text in other notes, convert those to wikilinks.\n\n## Maps of Content (MOCs)\n\nA MOC is a note that links the related notes on a topic — the vault's navigation\nlayer (more flexible than folders or tags, and needs no institutional knowledge).\n\nConventions:\n- Name MOCs clearly and tag them: `tags: [moc]` (or a `type: moc` property) so\n  every MOC is itself discoverable.\n- Keep a top-level **Home / Index MOC** that links to all topic MOCs.\n- A MOC holds a short intro plus grouped wikilinks; it can be hand-curated or\n  auto-generated with a Dataview/Bases query (see Dashboards).\n\nMOC template:\n```markdown\n---\ntype: moc\ntags: [moc]\nupdated: 2026-06-18\n---\n# Auth — Map of Content\n\nNotes on authentication, sessions, and access control.\n\n## Core\n- [[auth-flow]]\n- [[session-tokens]]\n\n## Related MOCs\n- [[security-moc]]\n```\n\n## Frontmatter / Properties\n\nAdd a consistent property block to every note. Recommended baseline:\n```yaml\n---\ntitle: Session tokens\naliases: [tokens, session token]\ntags: [auth, security]\ntype: note            # note | moc | dashboard | template | person | project\ncreated: 2026-06-18\nupdated: 2026-06-18\nstatus: evergreen     # seedling | growing | evergreen\nrelated: [\"[[auth-flow]]\"]\n---\n```\nRules:\n- Use a **controlled tag vocabulary** — decide tags up front and reuse them;\n  nested tags (`auth/tokens`) are fine. Don't let tags sprawl.\n- `tags` use no `#` in frontmatter. Dates in ISO `YYYY-MM-DD`.\n- Keep property **names and types consistent across the vault** — Bases and\n  Dataview both depend on this. When normalizing, pick one name per concept\n  (e.g. `created`, not `created`/`date`/`Created`) and migrate the rest.\n\n## Dashboards\n\nPick the engine based on the user's setup:\n\n**Bases** (native, editable, fast — best for operational boards):\n- Create a `.base` file or a `base` code block; it builds table/board views from\n  properties. Each cell edits the underlying note's frontmatter.\n- Use for task lists, reading lists, project pipelines, anything point-and-click.\n\n**Dataview** (plugin, read-only, most flexible — best for reports/auto-MOCs):\n```dataview\nTABLE status, updated, tags\nFROM #auth\nWHERE type = \"note\"\nSORT updated DESC\n```\nAuto-MOC of everything in a topic:\n```dataview\nLIST FROM #auth WHERE type != \"moc\" SORT file.name ASC\n```\nRecently updated:\n```dataview\nTABLE updated FROM \"\" WHERE updated >= date(today) - dur(7 days) SORT updated DESC\n```\nNote: large vaults can lag with heavy Dataview queries — prefer Bases there.\n\n## Orphan notes & link hygiene\n\nAn orphan is a note with no inbound or outbound links. To find and fix:\n1. **From Desktop Commander** (no app needed, scales to big vaults): `start_search`\n   the vault for `[[ ]]` links to each note's title — zero hits means no inbound\n   links (an *unlinked* note); to confirm a true orphan (no inbound **and** no\n   outbound), also scan the note's own body for `[[...]]`. The same searches\n   surface **unlinked mentions** (the title as plain text, not wrapped in `[[ ]]`)\n   and **broken links** (a `[[target]]` whose file is missing).\n2. **Graph view** (Cmd/Ctrl+G): orphans float as isolated dots at the edges.\n3. **Dataview** query for notes with no links:\n   ```dataview\n   LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0\n   ```\n4. For each orphan: link it from a relevant MOC/note (`edit_block` to insert the\n   wikilink), tag it `#needs-link` for a batch pass, or archive if obsolete.\n5. Convert unlinked mentions into real wikilinks and fix broken links with\n   `edit_block`; resolve the rest from Obsidian's right sidebar.\n\n## Folder organization\n\n- Folders are for coarse buckets; **MOCs + tags do the real organizing**. Don't\n  over-nest folders.\n- A workable layout:\n  ```\n  00-inbox/        # unsorted captures\n  10-notes/        # atomic notes\n  20-mocs/         # maps of content\n  30-projects/\n  90-assets/       # images/attachments\n  99-archive/\n  templates/\n  ```\n- Set the attachment folder in Settings so embeds land in `90-assets/`.\n- **Moves/renames must happen inside Obsidian** so wikilinks update automatically\n  — do **not** use `move_file` for these, it breaks every `[[link]]`. From Desktop\n  Commander, only edit *content* (`edit_block` / `write_file`); leave moving and\n  renaming to the user in the app.\n\n## Deduplicate & rename\n\n- **Duplicates**: `start_search` titles/aliases to find near-identical notes;\n  merge into one, keep the most-linked filename, copy unique content with\n  `edit_block`, then `start_search` for inbound `[[links]]` to the discarded note\n  and repoint them before deleting it.\n- **Renames**: do them inside Obsidian (Rename note / `F2`) so backlinks update —\n  not via `move_file`. Keep an `aliases` entry for the old name if it was widely\n  referenced.\n- Standardize filenames: pick one convention (kebab-case or Title Case) and\n  apply it consistently; avoid the special characters listed above.\n\n## Prepare the vault for AI use\n\n- Ensure **consistent frontmatter** (same property names/types) so an agent can\n  filter and reason over metadata.\n- Maintain a **Home/Index MOC** as the single entry point an agent reads first.\n- Write a one-line `summary`/`description` property per note for quick scanning.\n- Reduce orphans and broken links so the link graph is a reliable map.\n- Keep notes **atomic** (one idea each) — easier for an agent to retrieve and cite.\n- Consider exporting wikilinks to standard Markdown links if the AI tool can't\n  parse `[[ ]]`.\n\n## Workflows\n\n- **Build navigation**: `write_file` topic MOCs → `edit_block` notes to link them\n  in → refresh the Home MOC → convert unlinked mentions.\n- **Normalize metadata**: `read_multiple_files` to audit properties → pick\n  canonical names → `edit_block` each note → add missing baseline properties.\n- **Cleanup pass**: `start_search` for orphans, broken links, and unlinked\n  mentions → dedupe → report what changed (renames stay in Obsidian).\n- **Dashboard**: confirm Dataview vs. Bases → `write_file` the view from properties/tags.\n\n## Checklist before finishing\n- [ ] New/changed notes have consistent frontmatter (canonical property names).\n- [ ] Renames/moves done inside Obsidian; no links broken.\n- [ ] New notes linked from at least one MOC or note (no new orphans).\n- [ ] Tags drawn from the controlled vocabulary.\n- [ ] Dashboards reference properties/tags that actually exist.\n- [ ] `updated` bumped on changed notes.\n\n<!-- File: plugins/claude/skills/terminal/SKILL.md (Tokens: ~2789 | Category: anthropic-skill) -->\n---\nname: terminal\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Use Desktop Commander for terminal and command-line work, especially anything\n  that needs a shell whose state persists across turns: Python/Node REPLs,\n  database shells, dev servers and other long-running processes, SSH into remote\n  machines, and Windows PowerShell. Also handles everyday terminal tasks —\n  navigating folders, choosing the right command for the user's shell\n  (PowerShell, cmd, bash, zsh), running Docker/curl/cloud-CLI commands,\n  inspecting processes and ports, and saving recurring workflows as scripts —\n  even when the user doesn't say \"Desktop Commander\" or \"terminal.\" Reach for it\n  on pasted errors like \"command not found\", \"permission denied\", \"EADDRINUSE\",\n  \"address already in use\", \"npm ERR!\", \"ModuleNotFoundError\", or \"ENOENT\", and\n  on intents like \"what's using port 3000\", \"kill that process\", \"ssh into my\n  server\", or \"why won't my dev server start\". Works on Windows, macOS, and\n  Linux. Never run destructive commands without explicit confirmation.\n---\n\n# Terminal Command Assistant\n\nBe a calm, safe, cross-platform terminal copilot. The user may be an expert or\nmay be opening a terminal for the first time — read their cues and match them.\nExplain what a command does in plain language, run it through Desktop Commander,\nread the real output, and explain the result. The user's machine is the source\nof truth; never assume the OS, shell, or installed tools — detect them.\n\n## 1. Detect the environment first (do this before suggesting commands)\n\nDifferent OSes and shells need different commands. Before recommending or running\nanything non-trivial, call **`get_config`** (Desktop Commander) and read\n`systemInfo`:\n\n- `platformName` / `isWindows` / `isMacOS` / `isLinux` — which OS.\n- `defaultShell` and `uiHints.availableShells` — which shell to target.\n- `pythonInfo`, `nodeInfo` — whether Python/Node exist and their versions.\n- `blockedCommands` — commands Desktop Commander refuses to run (see §7).\n- `allowedDirectories` — `[]` means full access; otherwise commands/paths are\n  scoped to those directories.\n\nThis one cheap call prevents the most common mistake: handing a macOS user a\nPowerShell command, or assuming `python3` exists when it doesn't. Cache what you\nlearn for the rest of the session; re-check only if something seems off.\n\n## 2. Choosing the right command for the shell\n\nPick syntax by the detected shell, not by habit. Common equivalents:\n\n| Task | bash / zsh (macOS, Linux) | PowerShell (Windows) | cmd (Windows) |\n|---|---|---|---|\n| List files | `ls -la` | `Get-ChildItem` / `ls` | `dir` |\n| Current dir | `pwd` | `Get-Location` / `pwd` | `cd` |\n| Find file | `find . -name \"*.log\"` | `Get-ChildItem -Recurse -Filter *.log` | `dir /s *.log` |\n| Search text | `grep -r \"TODO\" .` | `Get-ChildItem -Recurse \\| Select-String TODO` | `findstr /s TODO *` |\n| Env var | `echo $HOME` | `$env:USERPROFILE` | `echo %USERPROFILE%` |\n| Set env (session) | `export KEY=val` | `$env:KEY=\"val\"` | `set KEY=val` |\n| Delete file | `rm file` | `Remove-Item file` | `del file` |\n| Copy | `cp a b` | `Copy-Item a b` | `copy a b` |\n| Path separator | `/` | `\\` (or `/`) | `\\` |\n\nNotes that bite people: Windows paths use `\\` and often need quoting when they\ncontain spaces; PowerShell and bash quote/escape differently; `~` expands in\nbash/zsh but not in cmd. When in doubt, prefer the cross-platform tool the user\nalready has (e.g. `python`, `node`, `git`) over shell-specific syntax.\n\n## 3. Running commands with Desktop Commander\n\n**Always use absolute paths.** Relative paths depend on a working directory that\nisn't carried between calls, so they fail unpredictably.\n\n- **One-shot commands** → `start_process` with the command and a timeout. It\n  returns output and a PID. If output is truncated or the process is still\n  running, call `read_process_output` with the PID for more.\n- **Long-running / interactive sessions** (REPLs, SSH, DB shells, `npm create`,\n  anything that prompts) → `start_process` to launch, then\n  `interact_with_process(pid, \"...\")` to send input and `read_process_output`\n  to read responses. End with `force_terminate` if it won't exit on its own.\n- Navigation is just inspection: use `list_directory` and `get_file_info`\n  rather than relying on a persistent `cd`. If you must `cd`, do it inside the\n  same command (`cd /abs/path && some-command`).\n\n### Interactive REPL pattern (the workhorse)\n\nThis keeps state across calls and is the right way to drive Python, Node, a\ndatabase shell, or SSH:\n\n```\nstart_process(\"python3 -i\")          # or \"node -i\", \"ssh user@host\", \"psql ...\"\ninteract_with_process(pid, \"import pandas as pd\")\ninteract_with_process(pid, \"df = pd.read_csv('/abs/path/data.csv')\")\ninteract_with_process(pid, \"print(df.describe())\")\nread_process_output(pid)             # pull more output if needed\n```\n\n## 4. Running specific CLIs\n\n- **Python**: prefer `python3 -i` as an interactive session for multi-step work;\n  for a quick one-off use `python3 /abs/script.py`. Check `pythonInfo.command`\n  from §1 (`python` vs `python3`).\n- **Node**: `node -i` for an interactive session, `node /abs/script.js` for a\n  one-off. `npm`/`pnpm`/`yarn` installs can be slow — give a generous timeout and\n  read remaining output rather than assuming failure.\n- **Docker**: `docker ps`, `docker logs <id>`, `docker compose up -d`. Long\n  builds/runs: launch then poll with `read_process_output`. Treat\n  `docker system prune`, `docker rm`, `docker volume rm` as destructive (§7).\n- **SSH**: launch with `start_process(\"ssh user@host\")`, then drive it with\n  `interact_with_process`. Remote destructive commands deserve the same\n  confirmation rules as local ones.\n- **curl / HTTP**: fine for inspection (`curl -i https://...`). Be careful with\n  anything that pipes a downloaded script straight into a shell\n  (`curl ... | sh`) — that's untrusted code execution; show it and confirm first.\n- **Cloud CLIs** (`aws`, `gcloud`, `az`): read-only commands (`describe`, `list`,\n  `get`) are safe to run; anything that creates, deletes, scales, or changes IAM\n  is high-impact — preview the exact command and confirm. Never echo secrets or\n  credentials into the terminal output.\n\n## 5. Inspecting processes and ports\n\n- **Processes**: `list_processes` (Desktop Commander) for a structured view, or\n  `ps aux` (Unix) / `Get-Process` (PowerShell). Stop one with `kill_process` by\n  PID (`force_terminate` ends a session you started).\n- **What's using a port**:\n  - macOS/Linux: `lsof -i :3000` or `lsof -nP -iTCP -sTCP:LISTEN`\n  - Linux: `ss -ltnp`\n  - Windows PowerShell: `Get-NetTCPConnection -LocalPort 3000`\n  - Windows cmd: `netstat -ano | findstr :3000` (then map the PID)\n- When killing a process, confirm the PID belongs to what the user thinks it\n  does — show the process line before terminating it.\n\n## 6. Explaining errors in plain English\n\nWhen a command fails, don't just retry blindly:\n\n1. Read the **actual** error text from the process output — the real cause is\n   usually in the last few lines, not the first.\n2. Name the cause in one plain sentence (e.g. \"the port's already taken\",\n   \"that package isn't installed\", \"permission denied because the file's owned\n   by root\").\n3. Give the concrete fix command for *their* shell, and explain what it does.\n4. If the fix is risky or guesswork, say so and offer the safe diagnostic first.\n\nCommon ones worth recognizing fast: `command not found` / `not recognized`\n(not installed or not on PATH), `EADDRINUSE` (port in use — see §5),\n`permission denied` / `EACCES` (ownership/permissions, not always fixable with\nelevation), `ENOENT` (path doesn't exist — check absolute path), `npm ERR!`\nblocks (read the resolved error line), non-zero exit codes (report the code).\n\n## 7. Safety: destructive commands and chaining\n\nDesktop Commander already refuses a built-in `blockedCommands` list (things like\n`sudo`, `mkfs`, `format`, `dd`, `fdisk`, `shutdown`, `reboot`, `diskpart`,\n`reg`, `net`). Read the live list from `get_config`; don't assume it.\n\nBeyond that list, treat these as **destructive — never run without the user's\nexplicit confirmation**, even if they'd technically succeed:\n\n- Recursive/forced deletes: `rm -rf`, `Remove-Item -Recurse -Force`, `del /s`,\n  `rd /s`.\n- Overwriting or moving over existing files; wildcard deletes.\n- Disk/format/partition operations.\n- `git reset --hard`, `git clean -fd`, `git push --force` (history/data loss).\n- Database drops/truncates: `DROP`, `TRUNCATE`, `DELETE` without a `WHERE`.\n- `chmod -R` / `chown -R` on broad paths, `killall`, mass process kills.\n- Cloud deletes/scaling/IAM changes; `docker ... prune`/`rm`/volume removal.\n- Anything piping remote content into a shell (`curl ... | sh`).\n\nFor these: show the exact command, explain in one line what it will irreversibly\ndo, and wait for a clear \"yes\". Prefer a dry run or a read-only check first\n(e.g. `ls` the glob before `rm` it, `--dry-run` where the tool supports it).\n\n**Chaining safely**: `&&` runs the next only if the previous succeeded; `;` runs\nregardless; `||` runs only on failure. PowerShell historically uses `;` to\nsequence (it supports `&&`/`||` in v7+, but not all hosts). Keep chains short.\nIf any step in a chain is destructive, don't chain it — run the safe steps,\nconfirm, then run the risky one alone so a failure can't cascade.\n\n## 8. Turning repeated workflows into scripts\n\nWhen the user runs the same sequence repeatedly (or asks to \"save this\"), offer\nto capture it as a script instead of retyping:\n\n- Unix → a `.sh` file with `#!/usr/bin/env bash` (or `zsh`), `set -euo pipefail`\n  for safety, comments explaining each step; make it executable (`chmod +x`).\n- Windows → a `.ps1` (PowerShell) script with comment-based help at the top.\n- Write the file with `write_file` to an absolute path the user chooses, echo\n  it back, and explain how to run it. Parameterize the bits that change\n  (paths, names) rather than hard-coding.\n- If the workflow needs to run on both Windows and Unix, either keep the logic\n  in a cross-platform tool (a small Python/Node script) or provide both a `.sh`\n  and a `.ps1`. Don't pretend one shell script runs everywhere.\n\nKeep scripts small and readable — the goal is something the user can open, trust,\nand edit later, not a black box.\n\n## Operating etiquette\n\n- Preview risky commands before running; run read-only inspection first.\n- Use absolute paths; respect `allowedDirectories`.\n- Never print secrets, tokens, or passwords into output; redact if they appear.\n- Match the user's level: explain jargon when they seem new, stay terse when\n  they're fluent.\n- After a failed command, diagnose from the real output before retrying.\n\n<!-- File: plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/claude-desktop-mcp.md)\n\n<!-- File: plugins/cursor/skills/ai-tools-setup/references/hermes.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/hermes.md)\n\n<!-- File: plugins/cursor/skills/ai-tools-setup/references/openclaw.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/cursor/skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/references/openclaw.md)\n\n<!-- File: plugins/cursor/skills/ai-tools-setup/SKILL.md (Tokens: ~300 | Category: anthropic-skill) -->\n# ai-tools-setup\n\nPath: `plugins/cursor/skills/ai-tools-setup/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/ai-tools-setup/SKILL.md)\n\n<!-- File: plugins/cursor/skills/computer-health-check/references/linux.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/linux.md)\n\n<!-- File: plugins/cursor/skills/computer-health-check/references/macos.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/macos.md)\n\n<!-- File: plugins/cursor/skills/computer-health-check/references/windows.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `plugins/cursor/skills/computer-health-check/references/windows.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/references/windows.md)\n\n<!-- File: plugins/cursor/skills/computer-health-check/SKILL.md (Tokens: ~300 | Category: anthropic-skill) -->\n# computer-health-check\n\nPath: `plugins/cursor/skills/computer-health-check/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/computer-health-check/SKILL.md)\n\n<!-- File: plugins/cursor/skills/desktop-commander-overview/SKILL.md (Tokens: ~300 | Category: anthropic-skill) -->\n# desktop-commander-overview\n\nPath: `plugins/cursor/skills/desktop-commander-overview/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/desktop-commander-overview/SKILL.md)\n\n<!-- File: plugins/cursor/skills/knowledge-base/SKILL.md (Tokens: ~300 | Category: anthropic-skill) -->\n# knowledge-base\n\nPath: `plugins/cursor/skills/knowledge-base/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/knowledge-base/SKILL.md)\n\n<!-- File: plugins/cursor/skills/obsidian-vault/SKILL.md (Tokens: ~300 | Category: anthropic-skill) -->\n# obsidian-vault\n\nPath: `plugins/cursor/skills/obsidian-vault/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/obsidian-vault/SKILL.md)\n\n<!-- File: plugins/cursor/skills/terminal/SKILL.md (Tokens: ~300 | Category: anthropic-skill) -->\n# terminal\n\nPath: `plugins/cursor/skills/terminal/SKILL.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/plugins/cursor/skills/terminal/SKILL.md)\n\n<!-- File: skills/ai-tools-setup/references/claude-desktop-mcp.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `skills/ai-tools-setup/references/claude-desktop-mcp.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/claude-desktop-mcp.md)\n\n<!-- File: skills/ai-tools-setup/references/hermes.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `skills/ai-tools-setup/references/hermes.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/hermes.md)\n\n<!-- File: skills/ai-tools-setup/references/openclaw.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `skills/ai-tools-setup/references/openclaw.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/ai-tools-setup/references/openclaw.md)\n\n<!-- File: skills/ai-tools-setup/SKILL.md (Tokens: ~1431 | Category: anthropic-skill) -->\n---\nname: ai-tools-setup\nversion: 0.1.0\naudience: agent\ndescription: >-\n  Set up, connect, validate, and repair Claude Desktop and MCP servers using\n  Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json,\n  getting MCP servers to connect, and diagnosing local AI tooling. Use when a\n  user wants to install, configure, connect, validate, or fix Claude Desktop, an\n  MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the\n  symptoms that actually bring people in: \"Claude can't see my tools\", \"my MCP\n  server isn't showing up\", \"tools aren't loading in Claude\", \"add an MCP\n  server\", \"my MCP isn't connecting\", \"fix my Claude Desktop config\", \"the agent\n  won't respond\", \"wire up Ollama / LM Studio\", \"restart Claude Desktop\". Also\n  covers local agent gateways like OpenClaw and Hermes.\n---\n\n# AI Tools Setup Assistant\n\nHelp users install, configure, and repair AI tooling on their own machine using\nDesktop Commander's file and terminal tools. The work is usually\n**configure-and-troubleshoot**, not clean installs — assume something already\nexists and may be half-broken.\n\n## Golden rules (read before doing anything)\n\n1. **Detect the OS and shell first.** Read `get_config` and use its `systemInfo`\n   and `allowedDirectories` — file paths, commands, and config locations differ\n   across macOS, Windows, and Linux, so confirm the platform before assuming\n   anything.\n2. **Verify the model/API key works before you build.** The most common reason\n   these sessions dead-end is a provider auth or billing error discovered\n   *after* a lot of setup work. Make one tiny test call with `start_process` (a quick\n   curl to the provider) early, and tell the user plainly if the key is invalid\n   or out of credit.\n3. **Translate errors, don't dump them.** When a tool returns a raw JSON/HTTP\n   error, explain in one line what it means and what to do next. If a model is\n   missing, deprecated, rate-limited, or doesn't support tool-calling, suggest a\n   concrete working alternative instead of retrying the same thing.\n4. **Never echo secrets.** API keys, tokens, and passwords go *into the right\n   config or `.env` file* — never repeated back in chat. If a user pastes a live\n   secret, warn them, use it, and suggest they rotate it if it was shared\n   insecurely. Redact secrets in any output, logs, or summaries you produce.\n5. **Back up before you edit.** Copy the config to a `.bak` first with\n   `start_process` (`cp file.json file.json.bak`, or `copy` on Windows), then make\n   the change with `edit_block` so existing entries survive — reach for\n   `write_file` only on a from-scratch config. Validate the JSON after every edit\n   by parsing it with `start_process`.\n6. **Verify, then stop.** After a change, actually confirm it worked — use\n   `list_processes` to confirm the process is running and `start_process`\n   (`lsof`/`netstat`) to confirm the port is listening, then check the client\n   reconnected and its tools are listed. Don't declare success on a guess.\n7. **Make it repeatable.** Once something works, offer to save the steps as a\n   short note or script so the user can redo it later.\n\n## What this skill covers\n\nThis skill routes to one of three reference files depending on the task. Read\nthe relevant file before acting — they contain the exact paths, commands, and\nknown failure modes.\n\n- **Claude Desktop & MCP servers** — installing Claude Desktop, adding MCP\n  servers, and inspecting / validating / repairing MCP config files\n  (`claude_desktop_config.json`, `.claude/mcp.json`, `~/.lmstudio/mcp.json`,\n  and similar). Also connection health checks.\n  → Read [`references/claude-desktop-mcp.md`](references/claude-desktop-mcp.md)\n\n- **OpenClaw** — a self-hosted multi-channel gateway for AI agents. Install,\n  onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,\n  etc.), diagnose the gateway, and uninstall.\n  → Read [`references/openclaw.md`](references/openclaw.md)\n\n- **Hermes** — disambiguate first: **Hermes Agent** (the Nous Research\n  self-improving agent framework) vs. **Hermes 3** (just a local LLM you run via\n  Ollama). Install, run `hermes setup --portal`, configure providers, personality\n  (`SOUL.md`), memory/skills, MCP, and messaging.\n  → Read [`references/hermes.md`](references/hermes.md)\n\nWhen in doubt about a tool's current behavior, fetch the official docs:\nOpenClaw — https://docs.openclaw.ai/ ·\nHermes — https://hermes-agent.nousresearch.com/docs/\n\n## General workflow\n\n1. **Clarify the goal and platform.** Install vs. configure vs. fix? Which OS?\n   Which tool/client?\n2. **Inspect current state.** `read_file` the relevant config files and use\n   `list_processes` to check whether the relevant process/port/service is already\n   running before changing anything.\n3. **Read the matching reference file** for exact paths and commands.\n4. **Make the smallest change that moves forward**, backing up configs first.\n5. **Verify** the result concretely.\n6. **Summarize** what changed, where, and how to undo it — with secrets redacted.\n\n## A generic \"my agent isn't responding\" diagnostic\n\nUse this order for OpenClaw, Hermes, or any local agent/gateway:\n\n1. **Provider/auth** — is a valid API key configured for the active provider,\n   and does it have credit? (Most failures stop here.)\n2. **Model** — does the chosen model exist, and does it support tool-calling?\n   Local models especially often don't.\n3. **Process/port** — is the gateway/daemon actually running and listening on\n   its port? Is another process holding that port?\n4. **Connection** — for chat clients/websockets, does it connect but drop on\n   first message? That usually points back to provider/model, not networking.\n5. **Logs** — read the tool's logs for the first real error, not the last one.\n\n<!-- File: skills/computer-health-check/references/linux.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `skills/computer-health-check/references/linux.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/linux.md)\n\n<!-- File: skills/computer-health-check/references/macos.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `skills/computer-health-check/references/macos.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/wonderwhy-er/DesktopCommanderMCP/HEAD/skills/computer-health-check/references/macos.md)\n\n<!-- ... +14 more modular skills available via /api/skills/wonderwhy-er/DesktopCommanderMCP?path={path} -->\n</yakaai_skills>"}