codegen-bug-fix
Fix bugs using TDD starting from README + Issue (following codegen-test), aligning with existing implementation conventions, and leveraging Serena MCP semantic search/editing to implement changes with high performance and race-safety in mind.
Security Assessment
About codegen-bug-fix
The codegen-bug-fix skill is designed to systematically address and resolve software bugs in Go projects using a test-driven development (TDD) approach. It focuses on understanding the bug from both the README and the associated Issue, ensuring that fixes align with the existing implementation conventions and do not introduce unintended changes. By leveraging Serena MCP's semantic search and editing tools, the skill allows developers to make precise modifications that are high-performance and safe from race conditions, minimizing the risk of regressions while maintaining code integrity.
The skill's main capabilities include identifying the relevant Issue, confirming requirements, and analyzing the project's existing coding style to ensure consistency. It provides a structured workflow for writing tests that reproduce the bug, transitioning from failing to passing tests, and implementing production code that satisfies those tests. The approach emphasizes minimal, targeted changes, idiomatic Go code, and adherence to performance and safety considerations. The skill also integrates tightly with Serena MCP tools for efficient symbol discovery and pinpoint edits, reducing unnecessary reading of large code files and improving development efficiency.
This skill is primarily aimed at Go developers who need to fix bugs in a controlled, reliable manner without altering unrelated functionality. It is particularly useful for teams focused on maintaining high code quality, performance, and race-safety. Typical use cases include addressing specific Issues reported in a project, ensuring that fixes are accompanied by corresponding tests, and making updates that conform to existing code conventions. Users benefit from a structured, TDD-based methodology that reduces debugging time and enhances code maintainability.
FAQ
How do I start using the codegen-bug-fix skill?
Begin by identifying the current branch and extracting the relevant Issue number. Review the Issue and README to confirm the requirements and acceptance criteria, then proceed with test-driven development following the skill's structured workflow.
Is this skill compatible with projects in languages other than Go?
No, the skill is specifically designed for Go projects and relies on Go-specific conventions, tools, and idiomatic practices.
Can I use this skill for refactoring existing code?
No, the skill focuses on minimal, targeted bug fixes. Refactoring should be handled separately and tracked with a new Issue.
Does the skill automatically create tests?
The skill guides you to write tests that reproduce the bug and verify the fix. It follows the generate-test skill instructions but requires manual creation and validation of test cases.
Are there performance considerations when using this skill?
Yes, the skill emphasizes high-performance and race-safe implementations. Changes should be minimal and maintain efficiency, following idiomatic Go practices.
Install codegen-bug-fix
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
nihiyama/ffq