Forgent generate-code-patch
minimal code changes to resolve identified issue-based skill consuming bug_analysis, code_context 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/autocoderover-patch/output-standard/skills/generate-code-patch" ~/.claude/skills/mirandaguillaume-forgent-generate-code-patch && rm -rf "$T"
manifest:
internal/bench/fixtures/swebench-imported/autocoderover-patch/output-standard/skills/generate-code-patch/SKILL.mdsource content
Generate Code Patch
Guardrails
- timeout: 600s
- minimal_changes_only: true
- preserve_existing_functionality: true
- no_test_file_modifications: true
- proper_python_indentation: required
Context
Consumes: bug_analysis, code_context Produces: unified_diff_patch Memory: short-term
Output Format
Output: Unified_diff_patch
--- a/full/path/to/file.py +++ b/full/path/to/file.py @@ -start,count +start,count @@ context line -line to remove +line to add context line
The patch should be enclosed in
<patch> and </patch> tags and follow unified diff format with proper Python indentation.
Strategy
Approach: minimal code changes to resolve identified issue Tools: read_file, edit_file, grep
Steps
- identify exact locations requiring changes
- implement minimal fixes preserving functionality
- add necessary imports if required
- generate unified diff format
Security
- Filesystem: read-only
- Network: none