generate-code-patch
minimal code changes to resolve identified issue-based skill consuming bug_analysis, code_context to produce unified_diff_patch
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- generate-code-patch
- description
- minimal code changes to resolve identified issue-based skill consuming bug_analysis, code_context to produce unified_diff_patch
03 SKILL.md 正文
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
04 同仓库更多 Skills
identify-root-cause
Identify the root cause of the issue through detailed code examination-based skill consuming code_analysis, issue_description to produce root_cause
generate-code-fix
Generate minimal code changes that resolve the identified issue-based skill consuming root_cause, issue_description to produce code_patch
analyze-code-repository
Systematically analyze repository structure to locate code relevant to the issue-based skill consuming repository, issue_description to produce code_analysis
analyze-bug-root-cause
systematic code analysis to identify root cause-based skill consuming issue_description, code_context to produce bug_analysis
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
github-issue-analyzer
Analyze GitHub issues to understand bugs in Python code-based skill consuming github_issue, python_codebase to produce issue_analysis