AGENT SKILL
edit-format-compliance
Produce syntactically valid edit blocks or unified diffs that apply cleanly.
- License 许可
- MIT
- 所属仓库
- syr-cn/PluginRSI
- 最近更新
- 2026-10-18
- Stars
- ★ 61
- Forks
- 1
01 前言 Front Matter
- name
- edit-format-compliance
- description
- Produce syntactically valid edit blocks or unified diffs that apply cleanly.
03 SKILL.md 正文
Edit-format Compliance
Internal ID: S21
Category: patching
Tier: optional
Output: ValidatedEdits
Activate when
- The workflow reaches the
patchingstage and the required inputs are present.
Applicable roles
- Editor
- Solver
Required inputs
planned_editstarget_file_contentsedit_format
Procedure
- Use exact current context around every edit.
- Avoid overlapping or ambiguous edit blocks.
- Apply the edit and inspect parser/application errors.
- Regenerate only the failed edit rather than rewriting unrelated content.
Verification
- All edits apply cleanly to the current revision.
- The resulting diff matches intended semantics.
Stop conditions
- The patch applies and source files remain syntactically parseable.
Constraints
- Do not rewrite whole files for a small edit unless the format requires it.
Allowed tools
apply_patchgit_diffread_range
Provenance
Synthesized from design patterns in aider, swe-agent.
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