AGENT SKILL
triage-bug
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-09-25
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
Triage Bug
Use when a Ruby bug report needs a reproduction test before a fix.
Pattern
# frozen_string_literal: true
require 'minitest/autorun'
require_relative 'discount'
class DiscountReproductionTest < Minitest::Test
def test_ten_percent_off_999_cents
assert_equal 99, Discount.apply(cents: 999, percent: 10)
end
end
Hard rules
- Do not patch production code until a test fails for the reported case.
- The first failing test must fail on the assertion (wrong value), not LoadError or syntax.
- Name observed behavior, expected behavior, and the smallest file to change.
- Fix only that behavior. Do not refactor, extract a service, or add unrelated docs.
- Re-run the full fixture tests after the fix.