원클릭으로
bug-fix
Systematic approach to debugging and fixing issues
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Systematic approach to debugging and fixing issues
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Create well-formatted commits following conventional commit standards
Create well-documented pull requests with proper descriptions
Safe code refactoring with proper testing and incremental changes
Guide for integrating external APIs securely and correctly
Reviews pull requests for code quality, security, and conventions
Test-Driven Development workflow - write tests first, then implement
SOC 직업 분류 기준
| name | Bug Fix |
| description | Systematic approach to debugging and fixing issues |
| triggers | ["/bug-fix","fix bug","debug this","find the bug"] |
| allowed-tools | ["Read","Write","Edit","Glob","Grep","Bash(npm run test*)","Bash(pnpm test*)","Bash(yarn test*)","Bash(git log*)","Bash(git blame*)"] |
A systematic approach to identifying, debugging, and fixing issues.
Before fixing, confirm you can reproduce it:
# Check recent changes that might have caused it
git log --oneline -20
# Find who last modified relevant code
git blame src/problematic-file.ts
# Search for related code
grep -r "functionName" src/
Narrow down the scope:
Debugging techniques:
git bisect)Before fixing, write a test that fails due to the bug:
describe('checkout', () => {
it('should not duplicate items when clicked rapidly', () => {
// This test should FAIL before the fix
const cart = new Cart();
// Simulate rapid clicks
cart.addItem('product-1');
cart.addItem('product-1');
expect(cart.items).toHaveLength(1);
expect(cart.items[0].quantity).toBe(2);
});
});
# Run the specific test
npm run test -- --grep "should not duplicate"
# Run related tests
npm run test -- src/cart/
# Run full test suite
npm run test
git add .
git commit -m "$(cat <<'EOF'
fix(cart): prevent duplicate items on rapid clicks
The add-to-cart handler wasn't debounced, allowing multiple
clicks to create duplicate cart entries before the UI updated.
Added 300ms debounce to the click handler.
Fixes #456
EOF
)"
.length - 1 carefully# Start bisect
git bisect start
# Mark current as bad
git bisect bad
# Mark known good commit
git bisect good abc123
# Git will checkout commits for you to test
# Mark each as good or bad
git bisect good # or git bisect bad
# When found, git shows the first bad commit
# End bisect
git bisect reset