context-decay
Revalidate persistent agent knowledge by classifying why it can become stale and how quickly it changes, then retain, revise,…
Captures learnings, errors, corrections, and feature requests to enable continuous improvement. Use when: (1) User corrects Claude ('No, that's wrong...', 'Actually...'), (2) User requests a capability that doesn't exist, (3) Claude realizes its knowledge is outdated or
Claude Code
$ npx -y skills add pskoett/pskoett-ai-skills --skill self-improvement --agent claude-code
Codex
$ npx skills add pskoett/pskoett-ai-skills --skill self-improvement -a codex -y
Cursor
$ npx skills add pskoett/pskoett-ai-skills --skill self-improvement -a cursor -y
Gemini CLI
$ npx skills add pskoett/pskoett-ai-skills --skill self-improvement -a gemini-cli -y
GitHub Copilot
$ npx skills add pskoett/pskoett-ai-skills --skill self-improvement -a github-copilot -y
OpenCode
$ npx skills add pskoett/pskoett-ai-skills --skill self-improvement -a opencode -y
Windsurf
$ npx skills add pskoett/pskoett-ai-skills --skill self-improvement -a windsurf -y
name: self-improvement
description: "Captures learnings, errors, corrections, and feature requests to enable continuous improvement. Use when: (1) User corrects Claude ('No, that's wrong...', 'Actually...'), (2) User requests a capability that doesn't exist, (3) Claude realizes its knowledge is outdated or incorrect, (4) A better approach is discovered for a recurring task, (5) Receiving a Handoff block from self-healing (a recurring verified heal with Recurrence-Count at least 3) to distill into a memory file or new skill. For ACTIVE runtime failures where the agent needs to apply and verify a fix mid-task, use `self-healing` instead (it files HEAL- entries with proof; self-improvement promotes accumulated patterns). Also review learnings before major tasks. For CI-only/headless learning capture, use self-improvement-ci."Log learnings and errors to markdown files for continuous improvement. Coding agents can later process these into fixes, and important learnings get promoted to project memory.
For installation commands, see [references/installation.md](references/installation.md). For optional agent activation and hooks, see [references/hooks-setup.md](references/hooks-setup.md). Read these only when installing or configuring the skill.
**Pair with [`self-healing`](../self-healing/SKILL.md):** self-healing is the active runtime recovery primitive — it diagnoses, patches, verifies, and files `HEAL-` entries to `.learnings/HEALS.md` when something breaks mid-task. Self-improvement (this skill) is the passive accumulation and promotion layer — it logs corrections, knowledge gaps, and feature requests, and promotes recurring heal handoffs to permanent memory. They share `.learnings/` but write to different files; verify discipline lives in self-healing, promotion logic lives here.
| Situation | Action | |-----------|--------| | Active failure mid-task — agent needs to fix it now | **Use `self-healing` instead** (files verified HEAL- to `.learnings/HEALS.md`) | | Command/operation failed in the past (not actively healing) | Log to `.learnings/ERRORS.md` | | User corrects you | Log to `.learnings/LEARNINGS.md` with category `correction` | | User wants missing feature | Log to `.learnings/FEATURE_REQUESTS.md` | | API/external tool fails | Log to `.learnings/ERRORS.md` with integration details | | Self-healing Handoff block meets promotion rule (see Promotion Rule below) | Promote the Distilled Rule to `CLAUDE.md` / `AGENTS.md` / new skill | | Knowledge was outdated | Log to `.learnings/LEARNINGS.md` with category `knowledge_gap` | | Found better approach | Log to `.learnings/LEARNINGS.md` with category `best_practice` | | Simplify/Harden recurring patterns | Log/update `.learnings/LEARNINGS.md` with `Source: simplify-and-harden` and a stable `Pattern-Key` | | Similar to existing entry | Link with `**See Also**`, consider priority bump | | Broadly applicable learning | Promote to `CLAUDE.md`, `AGENTS.md`, and/or `.github/copilot-instructions.md` |
Create `.learnings/` directory in project root if it doesn't exist:
mkdir -p .learnings
Copy the file templates from `assets/` (`LEARNINGS.md`, `ERRORS.md`, `FEATURE_REQUESTS.md`) or create files with headers.
Append to `.learnings/LEARNINGS.md`:
Every saved learning gets maintenance fields at capture, even if never promoted. Use [references/context-maintenance.md](references/context-maintenance.md); keep unknowns explicit.
## [LRN-YYYYMMDD-XXX] category **Logged**: ISO-8601 timestamp **Priority**: low | medium | high | critical **Status**: pending **Area**: frontend | backend | infra | tests | docs | config ### Summary One-line description of what was learned ### Details Full context: what happened, what was wrong, what's correct ### Suggested Action Specific fix or improvement to make ### Metadata - Source: conversation | error | user_feedback - Related Files: path/to/file.ext - Tags: tag1, tag2 - See Also: LRN-20250110-001 (if related to existing entry) - Pattern-Key: simplify.dead_code | harden.input_validation (optional, for recurring-pattern tracking) - Recurrence-Count: 1 (optional) - First-Seen: 2025-01-15 (optional) - Last-Seen: 2025-01-15 (optional) ### Context Maintenance - Decay-Type: reality | decision | dependency | relevance | unknown - Decay-Rate: fast | medium | slow | durable | unknown (brief basis) - Authority: source or unknown; Owner: known role or unknown - Revalidation: method; invalidating triggers; when to check; unavailable-source behavior - Validation: pending | verified | unresolved; Last-Validated: date or none; Evidence: checked source or none - Disposition: unassessed | retain | revise | externalize | retire; Application: proposed | applied ---
Append to `.learnings/ERRORS.md`:
## [ERR-YYYYMMDD-XXX] skill_or_command_name **Logged**: ISO-8601 timestamp **Priority**: high **Status**: pending **Area**: frontend | backend | infra | tests | docs | config ### Summary Brief description of what failed ### Error
Actual error message or output
### Context - Command/operation attempted - Input or parameters used - Environment details if relevant ### Suggested Fix If identifiable, what might resolve this ### Metadata - Reproducible: yes | no | unknown - Related Files: path/to/file.ext - See Also: ERR-20250110-001 (if recurring) ---
Append to `.learnings/FEATURE_REQUESTS.md`:
## [FEAT-YYYYMMDD-XXX] capability_name **Logged**: ISO-8601 timestamp **Priority**: medium **Status**: pending **Area**: frontend | backend | infra | tests | docs | config ### Requested Capability What the user wanted to do ### User Context Why they needed it, what problem they're solving ### Complexity Estimate simple | medium | complex ### Suggested Implementation How this could be built, what it might extend ### Metad
I use this repository to build and test skills for AI agents. The skills follow the Agent Skills specification, and the repo includes an Agent Plugins 1.0 portable package.
Revalidate persistent agent knowledge by classifying why it can become stale and how quickly it changes, then retain, revise,…
Monitors context window health during large, long-running, multi-session, or explicitly context-sensitive work. Uses bounded…
Control-plane workflow for coordinating multi-agent, multi-session project work from a single Codex, GitHub Copilot, or agent-app…
[Beta] CI-only eval regression runner using gh-aw (GitHub Agentic Workflows). Runs all eval cases in .evals/ on a schedule or…
[Beta] Creates permanent eval cases from promoted learnings and runs regression checks against them. Turns failures into test…
Frames coding-agent work sessions with explicit intent capture and drift monitoring. Use when a session transitions from…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…