Soul edit

From samttoo22-MewCat/OpenSoul · View interactive version

Soul edit is an AI agent skill from the GitHub repository samttoo22-MewCat/OpenSoul. 使用 diff 精確修改 SOUL.md 人格檔案的指定片段,避免覆蓋整個檔案

How to use this skill

Skill file

編輯 SOUL.md(Diff 模式)

優先使用 diff 指令——只替換指定的舊文字片段,不重寫整個檔案。

Diff 模式(精確修改,推薦)

cd /Users/mac/Desktop/coding/py/OpenSoul/OpenSoul
python scripts/edit_soul_skill.py --command diff \
  --old "要被替換的舊文字(需與 SOUL.md 完全一致)" \
  --new "替換後的新文字"

注意事項:

讀取當前內容

python scripts/edit_soul_skill.py --command read

Append 模式(在末尾新增)

python scripts/edit_soul_skill.py --command append --text "新增的內容"

Replace 模式(整體替換,謹慎使用)

python scripts/edit_soul_skill.py --command replace --text "完整的新內容"

使用流程

  1. 先 read 確認當前 SOUL.md 內容
  2. 找出要修改的精確片段
  3. 用 diff 指令替換,提供完整的 --old 與 --new
  4. 再次 read 確認修改結果
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.