Forgent unified-diff-patch-generator
Generate minimal unified diff patches for Python bug fixes-based skill consuming issue_analysis, python_codebase to produce unified_diff_patch
install
source · Clone the upstream repo
git clone https://github.com/mirandaguillaume/forgent
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mirandaguillaume/forgent "$T" && mkdir -p ~/.claude/skills && cp -r "$T/internal/bench/fixtures/swebench-imported/aider-editblock/output-standard/skills/unified-diff-patch-generator" ~/.claude/skills/mirandaguillaume-forgent-unified-diff-patch-generator && rm -rf "$T"
manifest:
internal/bench/fixtures/swebench-imported/aider-editblock/output-standard/skills/unified-diff-patch-generator/SKILL.mdsource content
Unified Diff Patch Generator
Guardrails
- Do not change existing function or class names
- Only use standard Python libraries
- Make minimal changes focused only on the bug fix
- Preserve existing code style and conventions
- Maintain proper Python indentation
- Maximum 15 minutes per patch generation
- Changes must be in unified diff format
Context
Consumes: issue_analysis, python_codebase Produces: unified_diff_patch Memory: short-term
Output Format
Output: Unified_diff_patch
--- a/path/to/file.py +++ b/path/to/file.py @@ -line,count +line,count @@ context -old line +new line context
Strategy
Approach: Generate minimal unified diff patches for Python bug fixes Tools: read_file, edit_file
Steps
- Review the issue analysis to understand required changes
- Make minimal code changes to fix the identified bug
- Generate unified diff patch with proper context
Security
- Filesystem: read-only
- Network: none