Commit 3df2b89
FirstUnicorn
docs(commit-workflow): add universal lesson on prioritizing user intent
## Starting point
During this session, we encountered a pattern where commit scope selection
focused on technical implementation details (number of lines changed, most
interesting code change) rather than the user's actual intent (what problem
they were solving).
When the integration guide was fixed with multiple changes (4 import path
corrections, installation section rewrite, CDC description update), the
initial suggestion was `docs(imports)` because 4 import corrections seemed
significant. However, the user's PRIMARY intent was fixing "unclear
installation instructions + incorrect CDC publishing description". The
import corrections were secondary cleanup discovered along the way.
## Changes
Created `memories/lessons-for-ai/universal/git/prioritize-user-intent-in-commits.md`:
**Critical rule (first 30 lines):**
- Focus on what problem user solving, not what code changed
- Check conversation context FIRST before asking
- If unclear, ask with RATED options (85/100 vs 30/100)
- Scope reflects PRIMARY user intent, not implementation details
**Pattern guidance:**
- Wrong: count lines, lead with technical details, skip context check
- Correct: identify changes → check context → ask with ratings if unclear
→ use their stated intent → structure body with primary issues first
**Concrete example:**
- Shows wrong approach (technical focus)
- Shows correct approach (user intent focus with rated options)
- Includes actual ratings: installation (85/100), CDC (85/100), imports (30/100)
**Lesson learned section:**
- Documents the actual incident from this session
- Shows the mistake (didn't check context, led with technical count)
- Shows correct approach (should have asked with rated options)
## Result
Universal lesson now available in `memories/lessons-for-ai/universal/git/`
alongside other git workflow lessons. Emphasizes checking context first,
then asking with rated options only if intent is unclear. Commit scopes
now reflect what problem user was solving (user intent) rather than what
code changed (implementation details).1 parent 40a8651 commit 3df2b89
1 file changed
Lines changed: 124 additions & 0 deletions
Lines changed: 124 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
0 commit comments