Skip to main content

edit

Replace an exact, unique string in an existing file. Use for targeted single-occurrence edits to files from the IPython kernel instead of rewriting the whole file.

Informações da origem

Repositório
CaseMark/prime-linc
Última atividade na origem
5 de agosto de 2026 às 20:50
Idioma detectado do SKILL.md
inglês
Estrelas
0
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
4 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
edit
description
Replace an exact, unique string in an existing file. Use for targeted single-occurrence edits to files from the IPython kernel instead of rewriting the whole file.
# 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(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). Or from a shell cell: !edit --path pkg/file.py --old-str "..." --new-str "..."
Ver no GitHub