ワンクリックで
edit
Replace exact text in a file. Use when modifying existing files with precise text replacement, making targeted edits, or deleting code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Replace exact text in a file. Use when modifying existing files with precise text replacement, making targeted edits, or deleting code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Renders markdown to self-contained HTML with a custom dark stylesheet and opens in browser. Use when previewing markdown documents, generating styled HTML from README or report files.
Inform the user what is happening — skip passive lookups
Manage version control with Jujutsu (jj) — no staging area, immediate changes, smart rebasing. Use when navigating history, squashing, or pushing to Git remotes.
Programmatic hunk selection for Jujutsu — split, commit, or squash specific hunks without interactive prompts. Use when making partial commits or selective squashes.
Gather facts from the web using evidence-first approach with mandatory citations. Use when researching topics, answering factual questions, or any task requiring web-sourced evidence.
Model minimum-move problems as BFS over a state space. Use when solving bucket pouring puzzles, sliding tiles, or any problem asking for the shortest sequence of moves to reach a goal.
| name | edit |
| description | Replace exact text in a file. Use when modifying existing files with precise text replacement, making targeted edits, or deleting code. |
| token_cost | 150 |
| related | ["read","write"] |
| keywords | ["edit","fix","modify","update","patch","change","replace","amend","correct","adjust"] |
Replace exact text in a file. This is the default tool for changing any existing file — prefer it over Write for anything except creating a new file from scratch.
REQUIRED: path (absolute), edits (array of {oldText, newText}) OPTIONAL: none
RULES:
oldText must match EXACTLY (whitespace, indentation, line endings all matter)oldText must be unique in the file — include 2-3 lines of surrounding context if needededits is matched against the original file, not after earlier edits apply — do not overlap or nestnewText to ""edits[] entriesEXAMPLE (single change):
{"name": "Edit", "input": {"path": "/absolute/path/file.py", "edits": [{"oldText": "def hello():\n return 1", "newText": "def hello():\n return 2"}]}}
EXAMPLE (two changes in one call):
{"name": "Edit", "input": {"path": "/absolute/path/file.py", "edits": [{"oldText": "MAX = 10", "newText": "MAX = 20"}, {"oldText": "TIMEOUT = 5", "newText": "TIMEOUT = 30"}]}}
RECOVERY WHEN Edit FAILS:
oldText is unique, then retry EditoldText, retry. Write is almost always the wrong recovery here for an existing file.oldText matches precisely (whitespace, indentation, line endings)edits[] entries for disjoint changes in one call