Document a TCR failure to build pattern recognition and learning
Logs TCR failures to build pattern recognition and learn from mistakes.
/plugin marketplace add colek42/claude-plugins/plugin install nk-dev-practices@nkennedy-personalDocument what you tried, why it failed, and what you learned when TCR reverts your code.
Every TCR revert is a teaching moment. Documenting failures helps you:
When TCR reverts your code, immediately document:
Creates or appends to TCR-LEARNINGS.md in current directory.
## [Date] [Time] - [Brief description]
**What I tried:** [The change you attempted]
**Why it failed:** [Test failure, error message, or behavior]
**What I learned:** [Pattern or insight]
**Next time:** [How to avoid or what to do differently]
**Step size:** Too big | Just right but timing wrong | Other: [explain]
**Time of day:** [Morning/Afternoon/Evening - track fatigue patterns]
---
## 2025-01-20 14:30 - Extract validation and rename together
**What I tried:** Extract email validation to helper function AND rename emailAddr to email
**Why it failed:** Tests failed because they expected old variable name in error messages
**What I learned:** Extract and rename are two separate steps, even if they feel related
**Next time:**
1. Extract with existing names first
2. Verify tests pass
3. THEN rename in a second TCR cycle
**Step size:** Too big - combined two logical changes
**Time of day:** Early afternoon (2:30pm) - moderate fatigue
**Pattern:** This is the 3rd time I've failed combining extract + rename. Need to internalize this!
---
If $ARGUMENTS provided, use as brief description. Otherwise, prompt for:
Then append to TCR-LEARNINGS.md with template filled in.
Periodically review your TCR-LEARNINGS.md to:
Execute the logging and confirm the entry was added to the file.