Loading...
Loading...
Use this when unexpected failures occur in tasks, when users provide corrections, when requests for missing capabilities are made, or when reusable project patterns are discovered. It is responsible for depositing high-value experiences into `.learnings/` and deciding whether to elevate them to project rules or independent skills.
npx skill4agent add alleneee/skill-agent self-improvement| Scenario | Action |
|---|---|
| Command/Tool Failure | Record to |
| User Corrected You | Record to |
| User Requests Missing Capability | Record to |
| External API Failure | Record to |
| Outdated Knowledge | Record to |
| Better Practice Discovered | Record to |
| Similar to Existing Entry | Link with |
| Widely Applicable Experience | Elevate to |
.learnings/
├── LEARNINGS.md
├── ERRORS.md
└── FEATURE_REQUESTS.md.learnings/AGENTS.md## [LRN-YYYYMMDD-XXXXXX] correction | knowledge_gap | best_practice
**Logged**: 2026-03-23T10:00:00+00:00
**Priority**: low | medium | high | critical
**Status**: pending
**Area**: frontend | backend | infra | tests | docs | config | runtime
### Summary
One-sentence explanation of what was learned
### Details
Explain the wrong assumption at the time, trigger conditions, and correct approach
### Suggested Action
How to avoid making the same mistake in the future
### Metadata
- Source: user_feedback | error | conversation
- Related Files: path/to/file.py
- Tags: tag1, tag2
- See Also: LRN-20260320-001 (if related to existing entry)
- Pattern-Key: correction.api_format (optional, for repeating pattern tracking)
- Recurrence-Count: 1 (optional)
---## [ERR-YYYYMMDD-XXXXXX] auto_logged_error
**Logged**: 2026-03-23T10:00:00+00:00
**Priority**: medium | high
**Status**: pending
**Area**: runtime
### Summary
One-sentence explanation of where the failure occurred
### Error
```text
Specific error content
```
### Context
- Step: 3
- Tool: `bash`
- Task: Current task summary
### Suggested Fix
Explain how to review or correct it later
### Metadata
- Reproducible: yes | no | unknown
- Related Files: N/A
- Pattern-Key: tool_error.bash (optional)
- Recurrence-Count: 2 (optional)
---## [FEAT-YYYYMMDD-XXXXXX] capability_name
**Logged**: 2026-03-23T10:00:00+00:00
**Priority**: medium
**Status**: pending
**Area**: runtime
### Requested Capability
What capability the user needs
### User Context
Why they need it
### Complexity Estimate
simple | medium | complex
### Suggested Implementation
Feasible minimal implementation idea
### Metadata
- Frequency: first_time | recurring
- Related Features: N/A
---| Status | Meaning |
|---|---|
| New record, pending processing |
| Being processed |
| Fixed/resolved |
| Elevated to CLAUDE.md / AGENTS.md / new skill |
| Decision not to process (explain reason in Resolution) |
### Resolution
- **Resolved**: 2026-03-24T09:00:00Z
- **Commit/PR**: abc123 or #42
- **Notes**: Brief description of what was donegrep -r "keyword" .learnings/See Also| Priority | Applicable Scenarios |
|---|---|
| Blocks core functionality, risk of data loss, security issues |
| Significant impact, common workflows blocked, recurring issues |
| Moderate impact, has workaround |
| Minor inconvenience, edge cases |
| Area | Scope |
|---|---|
| UI, components, client-side code |
| APIs, services, server-side code |
| CI/CD, deployment, Docker, cloud |
| Test files, testing tools |
| Documentation, comments |
| Configuration files, environment variables |
| Agent runtime, tool execution |
| Learning Type | Elevation Target | Example |
|---|---|---|
| Project Convention | | "Use uv as package manager, not pip" |
| Workflow Rule | | "Must regenerate client after API changes" |
| Reusable Pattern | New skill | Patterns complex enough to require dedicated guidance |
promoted**Promoted**: CLAUDE.mdSelfImprovementHookERRORS.mdLEARNINGS.mdFEATURE_REQUESTS.md.learnings/grep -h "Status\*\*: pending" .learnings/*.md | wc -l
grep -B5 "Priority\*\*: high" .learnings/*.md | grep "^## \["