minimal-fix-generation
Generate minimal code fixes based on bug analysis to resolve issues without breaking existing functionality-based skill consuming bug_location_analysis, codebase_files to produce unified_diff_patch
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- minimal-fix-generation
- description
- Generate minimal code fixes based on bug analysis to resolve issues without breaking existing functionality-based skill consuming bug_location_analysis, codebase_files to produce unified_diff_patch
03 SKILL.md 正文
Minimal Fix Generation
Guardrails
- Only modify files necessary to fix the reported bug
- Preserve all existing program functionality
- Do not refactor unrelated code
- Do not modify test files or write new tests
- Use proper Python indentation and syntax
- Make minimal changes to resolve the issue
- Import necessary libraries only if needed for the fix
- timeout: 300
Context
Consumes: bug_location_analysis, codebase_files Produces: unified_diff_patch Memory: short-term
Output Format
Output: Unified_diff_patch
Generate a unified diff patch that fixes the issue. The patch should:
- Only modify the files necessary to fix the bug
- Preserve existing program functionality
- Use proper Python indentation
- Not modify test files or write tests
Output the patch between <patch> and </patch> tags as a unified diff format:
--- a/path/to/file.py
+++ b/path/to/file.py
@@ -line,count +line,count @@
context line
-removed line
+added line
context line
Strategy
Approach: Generate minimal code fixes based on bug analysis to resolve issues without breaking existing functionality Tools: read_file, edit_file
Steps
- Review bug location analysis and root cause findings
- Generate minimal code changes that fix the identified issue
- Ensure changes preserve existing program functionality
- Output unified diff patch in proper format
Security
- Filesystem: read-write
- 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
generate-code-patch
minimal code changes to resolve identified issue-based skill consuming bug_analysis, code_context to produce unified_diff_patch
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