apply-learnings
Analyze Claude Code session history to extract learnings that would have been helpful if provided earlier, then persist them for future sessions. Use when the user asks to "apply learnings", "extract learnings", "what did we learn", "save session learnings", or "analyze session".
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ajitsingh25/apply-learningsApply Learnings Skill
Analyze Claude Code session history to extract learnings that would have been helpful if provided earlier, then persist them for future sessions.
Overview
This skill performs comprehensive analysis of session transcripts to identify:
- Code Pattern Learnings - Framework conventions, idioms, and best practices discovered during the session
- Architectural Preferences - Where validation/logic should live, layer responsibilities
- Tool Usage Patterns - Failed tool calls, user corrections, successful retries
- Missing Context - Information the user had to provide that could be documented upfront
Usage
Analyze Current Session
python3 ~/.claude/skills/apply-learnings/scripts/analyze_session.py --scope current
Analyze All Historical Sessions
python3 ~/.claude/skills/apply-learnings/scripts/analyze_session.py --scope all
Analyze Specific Project
python3 ~/.claude/skills/apply-learnings/scripts/analyze_session.py --project /path/to/project
Workflow
When the user invokes this skill:
Step 1: Ask User for Scope
Ask which scope to analyze:
- Current session - Only the current conversation
- Current project - All sessions for the current working directory
- All sessions - Complete history across all projects
Step 2: Run Analysis
Execute the analysis script:
python3 ~/.claude/skills/apply-learnings/scripts/analyze_session.py --scope <scope>
Step 3: Present Findings
Present findings organized by category:
Code Pattern Learnings
Conventions and idioms specific to the codebase/framework:
- Dependency injection patterns (e.g., "use glue logger from context, not DI")
- Error handling conventions
- Naming patterns
- Testing patterns
Architectural Preferences
Where different concerns should be handled:
- Validation location (e.g., "validate at handler/mapper, not in controllers")
- Error transformation boundaries
- Layer responsibilities
Tool Usage Improvements
From the original tool-self-improver:
- Failed tool calls and corrections
- Common error patterns
- Successful retry patterns
Missing Context
Information that would have helped earlier:
- Project-specific conventions not in CLAUDE.md
- Framework quirks
- Team preferences
Step 4: Classify Destination for Each Learning
For each learning, determine the best destination. Do NOT put everything in CLAUDE.md — route to the most specific location:
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ajitsingh25-apply-learnings": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
claude-code-statusline
Install and configure a custom Claude Code status line showing real-time token usage, context window percentage, git branch, and color-coded warnings. Use when the user asks to "install statusline", "setup statusline", "configure statusline", "setup status line", "install status bar", "show token usage", "context window display", "statusline colors", "statusline thresholds", or wants to customize their Claude Code status bar display.
India NRI Legal & Tax Advisor
Expert guidance on Indian tax, NRI legal affairs, and Netherlands-India cross-border matters. Use when: asking about NRI tax filing, DTAA India-Netherlands, FEMA compliance, Indian income tax (ITR), Exidian Pvt Ltd director obligations, Box 3 wealth tax on Indian assets, 30% ruling, NRE/NRO accounts, Indian property/inheritance, or any India-Netherlands legal/tax question.
arh-pr-workflow
Expert guidance for managing Pull Requests and feature branches using Uber's arh CLI tool. Use when creating features, publishing PRs, managing stacked PRs, merging PRs, rebasing branches, running lint/tests, or navigating feature branches in Uber's web-code monorepo.
placed-career-tools
This skill should be used when the user wants to "match resume to job", "generate cover letter", "optimize resume for job", "get interview questions for company", "generate LinkedIn profile", "check application status", "get salary insights", "negotiate salary", "research company", "analyze resume gaps", or wants to use AI career tools from the Placed platform at placed.exidian.tech.
check-deployment-status
Check deployment status of PRs and commits using continuous-deployment MCP and UCS deployer MCP. Use when user asks "is this deployed", "check deployment", "deployment status", "is PR merged and deployed", "check UP status", "introduced to production", or provides a GitHub PR URL and wants deployment info.