AGENT SKILL
minimal-patch
Implement the smallest coherent source change that repairs a validated root cause.
- License 许可
- MIT
- 所属仓库
- syr-cn/PluginRSI
- 最近更新
- 2026-10-18
- Stars
- ★ 61
- Forks
- 1
01 前言 Front Matter
- name
- minimal-patch
- description
- Implement the smallest coherent source change that repairs a validated root cause.
03 SKILL.md 正文
Minimal Patch
Internal ID: S16
Category: patching
Tier: core
Output: CandidatePatch
Activate when
- The workflow reaches the
patchingstage and the required inputs are present.
Applicable roles
- Solver
- Reviser
Required inputs
diagnosisedit_locationsrepository_rules
Optional inputs
public_contractsfocused_tests
Procedure
- Translate the root-cause mechanism into the smallest semantic change.
- Preserve surrounding style, interfaces, and error behavior.
- Avoid new abstractions unless the fix would otherwise be duplicated or unsafe.
- Review each changed hunk against the issue and remove incidental edits.
Verification
- Every changed hunk contributes to the repair or required validation.
- The patch preserves stated invariants.
Stop conditions
- A coherent patch is ready for focused verification.
Constraints
- Do not create a new top-level directory unless the issue explicitly requires it.
- Do not reorganize the repository or refactor unrelated code.
- Do not modify tests merely to hide a failure.
- Do not change dependencies, lockfiles, build files, or CI configuration unless causally necessary.
- Prefer the smallest coherent source patch that satisfies the issue and preserves public behavior.
Allowed tools
apply_patchread_rangegit_diff
Provenance
Synthesized from design patterns in mini-swe-agent, agentless, superpowers.
This file is a normalized reusable abstraction, not a verbatim copy of an upstream skill.
04 同仓库更多 Skills
v0001
暂无简介
★ 61
v0001
暂无简介
★ 61
v0001
暂无简介
★ 61
trajectory-to-lesson
Extract a bounded transferable procedure or anti-pattern from a completed trajectory.
★ 61
test-output-interpretation
Turn noisy command output into a localized failure signature without overclaiming.
★ 61
symbol-localization
Rank functions, classes, methods, or configuration blocks inside selected files.
★ 61