Agent skill

Edit File

by openakita in openakita/openakita

Edit file by exact string replacement. An agent skill from openakita/openakita.

AGPL-3.0Auto-check passed

Install Edit File

skills CLI
$ npx skills add openakita/openakita --skill edit-file -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openakita/openakita edit-file --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openakita/openakita.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/system/edit-file .claude/skills/edit-file && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
edit-file
GitHub stars
2k
Token cost
~277 tokens
SKILL.md length
56 words
Files
2
Skills in repo
29
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Edit file by exact string replacement. An agent skill from openakita/openakita.

  • SKILL.md covers Parameters, Examples, Notes and Related Skills
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Edit File is an agent skill from openakita/openakita. Edit file by exact string replacement. Finds oldstring and replaces with newstring. Safer and more token-efficient than writefile for modifying existing files. Auto-handles Windows CRLF line endings.

Its SKILL.md is about 280 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

The repository describes itself as: An open-source AI assistant framework with skills and agent architecture. The licence is AGPL-3.0.

Example prompts

  • “/edit-file”

What it can do on your machine

Read from SKILL.md and the folder at commit 5f5b38d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Edit File loads about 277 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 56 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~277

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openakita/openakita at commit 5f5b38d, republished under its AGPL-3.0 licence (© openakita). 56 words, ~277 tokens.

Download SKILL.mdSave it as .claude/skills/edit-file/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
edit-file
description
Edit file by exact string replacement. Finds old_string and replaces with new_string. Safer and more token-efficient than write_file for modifying existing files. Auto-handles Windows CRLF line endings.
system
true
handler
filesystem
tool-name
edit_file
category
File System

Edit File

精确字符串替换式编辑文件。

Parameters

参数类型必填说明
pathstring是文件路径
old_stringstring是要替换的原文本(须精确匹配)
new_stringstring是替换后的新文本
replace_allboolean否是否替换所有匹配项(默认 false)

Examples

修改函数名:

json
{
  "path": "src/main.py",
  "old_string": "def old_name():",
  "new_string": "def new_name():"
}

批量替换变量名:

json
{
  "path": "src/config.py",
  "old_string": "old_var",
  "new_string": "new_var",
  "replace_all": true
}

Notes

  • 修改前请先用 read_file 确认文件内容
  • old_string 必须精确匹配(包括缩进和空格)
  • 如果 old_string 匹配多处且未设 replace_all,会报错
  • 自动兼容 Windows CRLF 和 Unix LF 换行符
  • 优先使用此工具而非 write_file 来编辑现有文件
  • read-file: 先读取文件确认内容
  • write-file: 创建新文件或完全覆盖
  • grep: 搜索要编辑的内容位置

© openakita, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/system/edit-file of openakita/openakita.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 5f5b38d

Compare with similar skills

Edit File next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Edit File compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Edit File this skillopenakita/openakita2k—~277Automated safety check: PassAGPL-3.0
Find Replaceaiskillstore/marketplace4301 repos~527Automated safety check: NotesMIT
Find Releaseflutter/flutter179k—~545Automated safety check: PassBSD-3-Clause
Translation Stringsthedaviddias/Front-End-Checklist74k—~494Automated safety check: PassMIT
Fd Findpenpot/penpot61k—~882Automated safety check: PassMPL-2.0
React18 String Refsgithub/awesome-copilot40k1 repos~527Automated safety check: PassMIT

Similar skills

  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Find Release

    flutter/flutter

    A skill to find the lowest Dart and Flutter release containing a given commit.

    179k GitHub stars~545 tokensUpdated today
    MobileAuto-check passed
  • Translation Strings

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing a codebase for internationalisation readiness, setting up an i18n library, or preparing strings for a new locale.

    74k GitHub stars~494 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Fd Find

    penpot/penpot

    A fast and user-friendly alternative to 'find' - simple syntax, smart defaults, respects gitignore.

    61k GitHub stars~882 tokensUpdated today
    Auto-check passed
  • React18 String Refs

    github/awesome-copilot

    Official

    Provides exact migration patterns for React string refs (ref="name" + this.refs.name) to React.createRef() in class components.

    40k GitHub starsUsed in 1 repo~527 tokens
    Auto-check passed
  • String Database

    davila7/claude-code-templates

    Query STRING API for protein-protein interactions (59M proteins, 20B interactions).

    32k GitHub starsUsed in 10 repos~4.5k tokens
    Auto-check passed

More from openakita/openakita

All 29 skills in this repo
  • Smtp Email Sender

    openakita/openakita

    Send emails via SMTP (Gmail, Outlook, etc.). An agent skill from openakita/openakita.

    2k GitHub stars~693 tokensUpdated 15 days ago
    Auto-check: notes
  • Deliver Artifacts

    openakita/openakita

    Deliver artifacts (files/images/voice) to current IM chat via gateway, returning a receipt.

    2k GitHub stars~288 tokensUpdated 15 days ago
    Auto-check passed
  • Switch Persona

    openakita/openakita

    Switch Agent persona preset. An agent skill from openakita/openakita.

    2k GitHub stars~286 tokensUpdated 15 days ago
    Auto-check passed
  • Toggle Proactive

    openakita/openakita

    Toggle proactive messaging mode. An agent skill from openakita/openakita.

    2k GitHub stars~228 tokensUpdated 15 days ago
    Auto-check passed
  • Browser Task

    openakita/openakita

    Smart browser task agent - describe what you want done in natural language and it completes automatically.

    2k GitHub stars~715 tokensUpdated 15 days ago
    Auto-check passed
  • CLI Anything

    openakita/openakita

    Control desktop software (GIMP, Blender, LibreOffice, etc.) through CLI-Anything generated command-line interfaces.

    2k GitHub stars~507 tokensUpdated 15 days ago
    Auto-check passed

Questions about Edit File

What does Edit File do?

Edit file by exact string replacement. An agent skill from openakita/openakita. Edit File is an agent skill from openakita/openakita. Edit file by exact string replacement.

How do I install Edit File in Claude Code?

Run `npx skills add openakita/openakita --skill edit-file -a claude-code`. Or copy the skill folder (skills/system/edit-file in openakita/openakita) into .claude/skills/edit-file in your project. Claude Code loads it when a task matches its description.

How do I install Edit File in Codex?

Run `npx skills add openakita/openakita --skill edit-file -a codex`. Or copy the skill folder (skills/system/edit-file in openakita/openakita) into .agents/skills/edit-file in your project. Codex loads it when a task matches its description.

Can I use Edit File in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openakita/openakita --skill edit-file -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/edit-file, .gemini/skills/edit-file, .github/skills/edit-file and .opencode/skills/edit-file in your project.

What does Edit File need to run?

SKILL.md names no scripts, command-line tools or credentials: Edit File is instructions for the agent only.

Does Edit File access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Edit File safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Edit File use?

Edit File is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Edit File use?

About 277 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Edit File?

Skills that share tags, products or a category with Edit File: Find Replace (aiskillstore/marketplace, 430 stars), Find Release (flutter/flutter, 179k stars), Translation Strings (thedaviddias/Front-End-Checklist, 74k stars) and Fd Find (penpot/penpot, 61k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Edit File?

openakita (a GitHub user) maintains it in openakita/openakita, which has 2,002 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on September 24, 2026.

Source: openakita/openakita on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.