Skip to content

Add bug reproduction requirement to TDD rules#31

Merged
jrenaldi79 merged 1 commit intomainfrom
claude/debug-plugin-install-error-7o4LI
Mar 26, 2026
Merged

Add bug reproduction requirement to TDD rules#31
jrenaldi79 merged 1 commit intomainfrom
claude/debug-plugin-install-error-7o4LI

Conversation

@jrenaldi79
Copy link
Copy Markdown
Owner

Summary

  • Add "Bug Fix Workflow — Reproduce First" section to both TDD rule files
  • Remove config file exemption from TDD skip list — bug fixes are never exempt
  • Add red flags for merging fixes without reproduction tests

Files changed:

  • .claude/rules/tdd.md — repo's own TDD rule
  • skills/setup/templates/rules/tdd.md — template shipped to /setup users

Why

The ENAMETOOLONG bug fix (PR #29) was merged without reproducing the error first. The marketplace.json change was treated as a "config file fix" (TDD-exempt), skipping reproduction. This rule change closes that gap.

Test plan

  • 234/234 unit tests pass
  • No code changes, only rule file updates

https://claude.ai/code/session_01JQrEpoK2PjaQ55CTFkHxy6

Both the repo's TDD rule and the setup template now require reproducing
bugs in a failing test before writing any fix. Config file changes are
no longer exempt from TDD — the ENAMETOOLONG bug was in marketplace.json
and was merged without reproduction, which is exactly what this prevents.

https://claude.ai/code/session_01JQrEpoK2PjaQ55CTFkHxy6
@jrenaldi79 jrenaldi79 merged commit 2ee89e8 into main Mar 26, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants