edit
БесплатноБез исполняемых скриптовНе проверенReplace an exact, unique string in an existing file. Use for targeted single-occurrence edits to files from the Python kernel instead of rewriting the whole…
от gabrielmoreira★ 23 звезды на GitHubОб этом скилле
Edit
Make a targeted edit to an existing file by replacing one exact, unique
occurrence of a string. old_str must appear exactly once in the file.
Call directly from the kernel:
await edit.run(path="pkg/file.py", old_str=old, new_str=new)
Use exact old/new strings. If the text contains triple double quotes, use
triple single-quoted variables (old = '''...''') or build old/new from
inspected file slices. Returns a short confirmation; raises if old_str is
missing or matches more than once (widen the snippet to make it unique).
If the edit CLI is installed in the host environment, invoke it through
host-mediated shell execution:
result = await bash('edit --path pkg/file.py --old-str "..." --new-str "..."')
Use the Python API for complex strings to avoid shell quoting mistakes. Do
not use IPython ! shell escapes to bypass host approval or sandbox policy.
Установить edit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл edit?
Replace an exact, unique string in an existing file. Use for targeted single-occurrence edits to files from the Python kernel instead of rewriting the whole file.
Как установить скилл edit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл edit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic