Preview what learnings would be captured from current session without creating files
Preview what learnings would be captured from current session without creating files
/plugin marketplace add griffnb/claude-plugins/plugin install backend@claude-pluginsPreview what learnings would be captured from the current session without actually creating or modifying any skill files.
/review-session
This command runs the learning analyzer in preview mode to show what would be captured without writing any files or staging changes.
The command provides:
Analysis Summary:
Skills Preview:
Key Learnings:
Recommendations:
Use this command when:
Especially useful:
| /review-session | /capture-learning |
|---|---|
| No files written | Creates/updates skills |
| No git staging | Stages changes (if enabled) |
| Safe to run anytime | Modifies repository |
| Shows preview only | Commits to creating skills |
| Can run multiple times | Should run when ready |
# 1. Work on problem and solve it
[development work happens]
# 2. Preview what would be captured
/review-session
# 3. Review the output
# - Are the learnings valuable?
# - Are the skills well-structured?
# - Should anything be adjusted?
# 4. If satisfied, capture for real
/capture-learning
# 5. Verify with git
git status
git diff .claude/skills/
Uses the same settings as /capture-learning:
.claude/session-learner.local.mdNote: Always runs in dry-run mode regardless of settings file.
When this command is invoked:
Invoke the learning-analyzer agent using the Task tool with explicit preview instructions:
agent learning-analyzer "Analyze current session in PREVIEW MODE. Show what learnings would be captured and what skills would be created/updated, but DO NOT write any files or stage any changes. Provide a detailed summary for review."
The agent will:
Display the agent's preview output to the user
Important: Ensure the agent knows this is preview mode. The agent should analyze and report but not create files or stage changes.
## Session Learning Preview
**Analysis Result:** Found 2 valuable patterns worth capturing
**Quality Check:** ✅ Passed (session had 15 tool calls, 8 minutes of technical work)
**Skills That Would Be Created:**
1. **api-rate-limit-handling** (v1.0.0)
- Location: .claude/skills/api-rate-limit-handling/SKILL.md
- Content: Patterns for detecting and handling API rate limits with exponential backoff
- Sections: Overview, Detection Strategies, Backoff Algorithms, Code Examples
**Skills That Would Be Updated:**
1. **error-handling-patterns** (v1.0.1 → v1.0.2)
- Location: .claude/skills/error-handling-patterns/SKILL.md
- Changes: Add section on retry logic with circuit breaker pattern
- New examples: Circuit breaker implementation from today's work
**Key Learnings:**
- API rate limiting detection pattern (check response headers + status codes)
- Exponential backoff with jitter to avoid thundering herd
- Circuit breaker pattern for failing gracefully after repeated failures
**Recommendation:** ✅ Worth capturing - these are reusable patterns applicable to future API integration work
**Next Steps:**
- Run `/capture-learning` to create these skills
- Or adjust session work and re-run `/review-session`
/capture-learning - Actually create the skills shown in preview/git-status - Check repository status (preview doesn't modify)/git-diff - View changes (preview has none)