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★ 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
- Read the exact target source. Never edit from map output alone.
- Check relevant callers/tests with
agent-loop map relatedwhen shared behavior changes. - Apply
coding-simplicitywhen installed; it owns implementation minimization. This role owns only the bounded workflow/edit contract. - Apply the smallest correct change in the owning layer.
- 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>'
- Otherwise edit only the verified target ranges.
- Run the narrowest meaningful validation, then the required repository gate.
- 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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…