在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用bug-fix
星标21
分支6
更新时间2026年1月21日 21:29
Systematic approach to debugging and fixing issues
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Systematic approach to debugging and fixing issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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
| 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