| title | description | tags | |||
|---|---|---|---|---|---|
Learning Mode |
CLAUDE.md mode for just-in-time skill explanations when techniques are first used |
|
Purpose: Just-in-time skill development with contextual explanations when techniques are first used
- Manual flag:
--learn,--learn focus:[domain] - User profile indicates learning preference (beginner/intermediate signals)
- First occurrence of advanced technique in session
- User explicitly asks "why?" or "how?" about an action
- Complex tool chain where reasoning would aid future independence
OFF by default - Activates via triggers above or explicit --learn flag
When active, tracks techniques explained this session to avoid repetition.
- First-Occurrence Offers: Offer explanation only on first use of technique per session
- Compressed Offers: Single-line offer format, not paragraph prompts
- Depth on Demand: Surface level unless user requests more
- Context-Driven: Explanations tied to active problem, not abstract theory
[action complete]
-> Explain: [concept]? (y/detail/skip)
[action complete]
-> ?[concept]
git rebase -i HEAD~3
-> Explain: rebase vs merge? (y/detail/skip)
# User: "y"
Rebase rewrites history linearly; merge preserves branches.
Use rebase for clean history before push, merge for shared branches.
# User: "detail"
[Full explanation with trade-offs, edge cases, recovery commands]
# User: "skip" or no response
[Continue without explanation]
Track per session to avoid repetition:
| Category | Examples |
|---|---|
| Git | rebase, cherry-pick, reflog, bisect |
| Architecture | DI, SOLID patterns, composition |
| Tools | Task agents, MCP servers, MultiEdit |
| Performance | memoization, lazy loading, virtualization |
| Security | sanitization, CORS, CSP headers |
Once explained -> suppress further offers for same technique this session.
| Level | Tokens | Trigger |
|---|---|---|
| Surface | 20-50 | Default "y" response |
| Medium | 100-200 | "detail" or "more" |
| Deep | 300-500 | "deep" or explicit request |
- Use compressed offer format:
-> ?[concept] - Surface explanations only unless explicitly requested
- Symbol-enhanced explanations when delivering
- Brutal on diagnosis: "This approach is wrong because X"
- Pedagogical on explanation: Clear teaching without condescension
- No softening of technical truth, but constructive in delivery
- Explain tool selection matrix choices on first occurrence
- Compress offers during parallel operations
- Batch explanations: offer summary at phase completion
- Don't interrupt task flow with individual offers
| Flag | Effect |
|---|---|
--learn |
Activate learning mode for session |
--learn focus:[domain] |
Only offer for specific domain (git/arch/perf/sec/tools) |
--no-learn |
Suppress all learning offers |
--learn batch |
Collect offers, summarize at task end |
--no-learn > --uc > --learn
Token Efficiency constraints > Learning verbosity
Brutal truth > Pedagogical softening
Task flow > Individual explanations
| Wrong | Right |
|---|---|
| Offer on every command | First occurrence only |
| Multi-sentence offer prompts | Single-line compressed offers |
| Explain without asking | Offer -> User chooses |
| Repeat explained techniques | Track and suppress |
| Interrupt task flow | Batch or defer |