File editor

From event4u-app/agent-config · View interactive version

File editor is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when opening edited files in the user's IDE. Reads settings from .agent-settings.yml to determine IDE and whether auto-open is enabled.

How to use this skill

Skill file

<!-- cloud_safe: noop -->

file-editor

When to use

This skill applies automatically whenever:

Do NOT use when:

Procedure: Open files in IDE

  1. Read settings — Check personal.open_edited_files and personal.ide in .agent-settings.yml.
  2. Skip if disabled — If personal.open_edited_files is false, do nothing.
  3. Open files — Use the IDE CLI command to open each edited file.
  4. Verify — Confirm the command succeeded (exit code 0).

Settings file

Settings are stored in .agent-settings.yml (project root, git-ignored).

See .augment/templates/agent-settings.md for the full settings reference.

Relevant settings for this skill:

| Key | Values | Default | Description |

|---|---|---|---|

| personal.ide | code, cursor, windsurf, phpstorm, webstorm, idea, goland, rubymine, pycharm, rider, subl, vim, nvim, emacs, zed | _(empty)_ | CLI command to open files |

| personal.open_edited_files | true, false | false | Whether to auto-open edited files |

Behavior

1. Read settings

At the start of a conversation (or on first file edit), read .agent-settings.yml:

cat .agent-settings.yml 2>/dev/null

2. Open files after edits

After editing one or more files, open them using the ide setting.

Always jump to the first edited line. The syntax depends on the IDE:

JetBrains IDEs (personal.ide: phpstorm / webstorm / idea / pycharm / goland / rubymine / rider):

phpstorm --line {line} {file}        # PHP
webstorm --line {line} {file}        # JS / TS
idea     --line {line} {file}        # Java / Kotlin / general
pycharm  --line {line} {file}        # Python
goland   --line {line} {file}        # Go

VS Code-family (personal.ide: code / cursor / windsurf):

code    --goto {file}:{line}
cursor  --goto {file}:{line}
windsurf --goto {file}:{line}

Zed (personal.ide: zed):

zed {file}:{line}

Terminal editors (personal.ide: vim / nvim / emacs):

vim  +{line} {file}
nvim +{line} {file}
emacs +{line} {file}

For multiple files, run one command per file:

# JetBrains (PhpStorm / WebStorm / GoLand / PyCharm)
phpstorm --line 42 src/Services/UserService.php
webstorm --line 15 src/services/user-service.ts
goland   --line 27 internal/user/service.go
pycharm  --line 88 app/services/user_service.py

# VS Code-family
code     --goto src/services/user-service.ts:15
cursor   --goto app/services/user_service.py:88

# Open file without jumping to a line
code     src/services/user-service.ts
phpstorm src/Services/UserService.php

Rules

IDE CLI commands

| IDE | Command | Install |

|---|---|---|

| VS Code | code {file} | Shell Command: Install 'code' in PATH |

| Cursor | cursor {file} | Settings → "Install 'cursor' shell command" |

| Windsurf | windsurf {file} | Settings → "Install 'windsurf' shell command" |

| Zed | zed {file} | Settings → "Install CLI" (creates zed in PATH) |

| PhpStorm | phpstorm {file} | JetBrains Toolbox CLI or Tools → Create command-line launcher in PhpStorm |

| WebStorm | webstorm {file} | JetBrains Toolbox CLI or Tools → Create command-line launcher in WebStorm |

| IntelliJ IDEA | idea {file} | JetBrains Toolbox CLI or Tools → Create command-line launcher in IDEA |

| PyCharm | pycharm {file} | JetBrains Toolbox CLI or Tools → Create command-line launcher in PyCharm |

| GoLand | goland {file} | JetBrains Toolbox CLI or Tools → Create command-line launcher in GoLand |

| Vim / Neovim | vim {file} / nvim {file} | Bundled with most distros |

Output format

  1. Files opened in the configured IDE (if enabled)
  2. No output if personal.open_edited_files is disabled

Auto-trigger keywords

Gotcha

Do NOT

Cloud Behavior

On cloud surfaces (Claude.ai Web, Skills API) this skill is fully inert —

there is no local IDE to open files in, no .agent-settings.yml to read, and

no shell handler available. The cloud agent simply finishes its edits and

reports back; file-opening is a local-agent concern.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.