用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/michaelbleterman/ai-scrum --skill defect-handling命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | Defect Handling |
| description | Test-first bug fixing workflow for DEFECT and BUG tasks |
This skill provides the workflow for fixing bugs using test-driven development.
CRITICAL: The test must assert the CORRECT/EXPECTED behavior.
# CORRECT - Tests what SHOULD happen
def test_add_returns_correct_sum():
result = add(2, 3)
assert result == 5 # Expected behavior
# WRONG - Don't test the buggy value
def test_add_bug():
result = add(2, 3)
assert result == -1 # This proves bug exists, not that fix works
pytest tests/test_defect.py -v
# Expected: FAILED (confirms bug exists)
Modify the source to correct the behavior.
pytest tests/test_defect.py -v
# Expected: PASSED (confirms fix works)
Include test output in task completion log:
DEFECT FIXED:
- Test: test_add_returns_correct_sum
- Before: FAILED (returned -1)
- After: PASSED (returns 5)
❌ Don't just verify the bug exists
❌ Don't mark complete without running tests
❌ Don't leave # TODO: fix later comments
✅ Do create test with expected behavior
✅ Do show before/after test results
✅ Do run full test suite to check for regressions