agentleFS
PaldomPaldom/mac-os-setup-skills/skills/editor-setup/SKILL.md

editor-setup

Skill0 starsChanged 3 months agoMITView on GitHub

Installs and configures code editors on macOS - VS Code plus Cursor by default (Zed alternative), the code/cursor shell commands, a merged settings.json baseline, extensions, Settings Sync. Use for "install VS Code/Cursor/Zed", "code command not found", "editor settings baseline", "which extensions". Not for terminal emulators, JetBrains/Neovim config, or linter and LSP debugging.

  • Installs packages

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never replace an existing settings.json wholesale: Read it, merge keys, back up first (cp settings.json settings.json.bak).

    line 25
  2. Distinctive:

    Don't force one global formatter for every language — set formatters per language when a project needs them.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Editor Setup

Installs the editors, makes their CLI launchers work, and applies a small, defensible settings baseline. Default pair: VS Code (largest ecosystem) and Cursor (AI-first fork — imports VS Code's settings, so they stay in sync at install time); Zed (fast native) on request. Skip either half of the pair if the user wants only one.

When NOT to use

  • Terminal emulators (Ghostty/iTerm2/Warp) → mac-dev-apps
  • JetBrains IDEs → install jetbrains-toolbox cask via mac-dev-apps and manage IDEs inside it; Neovim config → out of scope
  • Project linters/formatters/LSP issues → project work, not machine setup
  • EDITOR/git editor variables → zsh-setup / git-ssh-identity

Safety rails

  • Never replace an existing settings.json wholesale. Read it, merge keys, back up first (cp settings.json settings.json.bak). It lives at ~/Library/Application Support/Code/User/settings.json.
  • Install only extensions the user confirms — extension bloat slows startup and each one is third-party code.

Workflow

1. Install

brew install --cask visual-studio-code cursor    # default pair; zed on request

2. CLI launchers

The casks link code and cursor into brew's bin — verify both with --version in a fresh shell. If missing (e.g. .dmg install): Command Palette (⇧⌘P) → "Shell Command: Install 'code' command in PATH" (same palette command inside Cursor); Zed installs zed via its own palette command.

3. Settings baseline (merge, don't replace)

Back up first (cp settings.json settings.json.bak.$(date +%Y%m%d%H%M%S)), then merge. The first three keys rewrite source files on save — great defaults, but confirm them with the user (surprise whole-file diffs on shared repos otherwise), and exempt Markdown where trailing spaces are hard line breaks:

// merge into ~/Library/Application Support/Code/User/settings.json
{
  "editor.formatOnSave": true,              // opt-in: rewrites files on save
  "files.trimTrailingWhitespace": true,     // opt-in
  "files.insertFinalNewline": true,         // opt-in
  "[markdown]": { "files.trimTrailingWhitespace": false },
  "files.trimFinalNewlines": true,
  "editor.renderWhitespace": "boundary",
  "terminal.integrated.defaultProfile.osx": "zsh",
  "git.autofetch": true,                    // note: background network fetches
  "workbench.startupEditor": "none",
  "editor.fontFamily": "'JetBrainsMono Nerd Font', Menlo, monospace" // if Nerd Font installed (zsh-setup)
}

Don't force one global formatter for every language — set formatters per language when a project needs them.

4. Minimal extension set (confirm each)

code --install-extension editorconfig.editorconfig
code --install-extension eamodio.gitlens            # or skip; taste
code --install-extension ms-vscode-remote.remote-ssh
code --install-extension ms-azuretools.vscode-docker     # if containers are used

Language extensions: install the official one for languages the user actually works in (ask), not a prophylactic pile. Track extensions in the Brewfile via vscode "publisher.ext" entries (brew bundle dump captures them when VS Code is installed).

5. Cross-machine sync

Settings Sync: manual sign-in (GitHub/Microsoft) via the account icon — syncs settings, keybindings, extensions. Alternative: keep settings.json in the dotfiles repo (→ dotfiles-setup) — pick one mechanism, not both.

6. Cursor / Zed specifics

  • Cursor (installed above): offers to import VS Code settings + extensions on first launch — do that after step 3 so the baseline carries over; settings live at ~/Library/Application Support/Cursor/ User/settings.json; extensions via cursor --install-extension; AI features need its account sign-in (manual).
  • Zed (brew install --cask zed): fastest of the three, leaner extension ecosystem; zed CLI via its palette; settings are JSON at ~/.config/zed/settings.json (different keys — don't copy VS Code's).

7. Verify

code --version (fresh shell); code --list-extensions matches the confirmed set; open a scratch JSON file, add stray whitespace, save — formatting applies (JSON has a built-in formatter, so this test needs no extension).

Output spec

Done means: editor installed, CLI launcher works in a new shell, baseline merged with backup of the previous settings, confirmed extensions installed, sync mechanism chosen (or consciously skipped).

Gotchas

  • Two sync mechanisms (Settings Sync + dotfiles-tracked settings.json) fight each other — silent overwrites; pick one.
  • code works in the install terminal but not new ones → the palette "Install code command" writes to a path not in PATH on some setups; brew-cask installs avoid this.
  • settings.json is JSON-with-comments — plain jq round-trips strip comments; edit textually when comments exist.
  • Cursor and VS Code coexist fine but fight over file-type default-open associations; that's a Finder setting, not an editor bug.
  • Electron editors auto-update themselves (cask auto_updates) — plain brew upgrade skips them by design (see mac-maintenance).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.