Command Palette

Search for a command to run...

Назад к скиллам
скилл № 39359

agent-loop-surgical-edit

Apply an already-localized 1-2 file PHP change with the smallest verified diff. Use agent-map evidence, load coding-simplicity for implementation choices when…

БесплатноБез исполняемых скриптов
vokuот voku★ 33 звезды на GitHub

Установить agent-loop-surgical-edit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Agent Loop Surgical Edit

Use only when the target and required behavior are already understood and the expected change is bounded to one or two existing files.

Contract

  1. Read the exact target source. Never edit from map output alone.
  2. Check relevant callers/tests with agent-loop map related when shared behavior changes.
  3. Apply coding-simplicity when installed; it owns implementation minimization. This role owns only the bounded workflow/edit contract.
  4. Apply the smallest correct change in the owning layer.
  5. Prefer deterministic execution for exact replacements:
tools/agent-loop/vendor/bin/agent-loop edit '<Class>::<method>' \
  --runner=auto \
  --replace-old='<old>' \
  --replace-new='<new>' -- \
  '<exact requested behavior>'
  1. Otherwise edit only the verified target ranges.
  2. Run the narrowest meaningful validation, then the required repository gate.
  3. Re-read the changed range and inspect the complete raw diff.

Do Not Expand Silently

No new abstraction, dependency, configuration switch, compatibility layer, cleanup, or unrelated refactor unless the request or validation requires it.

If the correct fix needs 3+ files, a new architectural seam, an irreversible/risk decision, or unresolved product intent, stop the surgical role. Broader work belongs in the normal governed workflow.

Terminal Result Contract

Return exactly one terminal STATUS first. Do not bury escalation in prose.

Successful bounded edit:

STATUS: applied
CHANGE: <path>:<line-range> — <short change>.
EVIDENCE: <exact validation command> — exit <code>; re-read <path>:<line-range>.

Verified scope exceeds this role:

STATUS: scope_expanded
EVIDENCE: <verified paths/reason>.
NEXT: main governed workflow must re-plan; do not widen here.

A real human decision is required:

STATUS: human_gate
GATE: <exact irreversible action, risk ownership, or missing product-intent decision>.

The requested behavior is not yet objectively resolvable:

STATUS: ambiguous
UNKNOWN: <single missing fact that prevents a correct edit>.

Validation proves the edit regressed behavior and the fix does not fit this role:

STATUS: regressed
EVIDENCE: <exact failing command/error>.

human_gate is not a generic request for permission. Reads, edits, tests, source inspection, and diagnostics the agent can run are agent work. ambiguous preserves an unknown fact; it must not be replaced by a plausible guess.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл agent-loop-surgical-edit?

Apply an already-localized 1-2 file PHP change with the smallest verified diff. Use agent-map evidence, load coding-simplicity for implementation choices when installed, prefer deterministic agent-loop edit when possible, and escalate instead of silently widening scope.

Как установить скилл agent-loop-surgical-edit?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-loop-surgical-edit запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-loop-surgical-edit с