context-surfing
Monitors context window health during large, long-running, multi-session, or explicitly context-sensitive work. Uses bounded…
Revalidate persistent agent knowledge by classifying why it can become stale and how quickly it changes, then retain, revise, externalize, or retire it. Use when reviewing skills, stored instructions, facts, preferences, assumptions, or workflows; when an owner, decision, or
Claude Code
$ npx -y skills add pskoett/pskoett-ai-skills --skill context-decay --agent claude-code
Codex
$ npx skills add pskoett/pskoett-ai-skills --skill context-decay -a codex -y
Cursor
$ npx skills add pskoett/pskoett-ai-skills --skill context-decay -a cursor -y
Gemini CLI
$ npx skills add pskoett/pskoett-ai-skills --skill context-decay -a gemini-cli -y
GitHub Copilot
$ npx skills add pskoett/pskoett-ai-skills --skill context-decay -a github-copilot -y
OpenCode
$ npx skills add pskoett/pskoett-ai-skills --skill context-decay -a opencode -y
Windsurf
$ npx skills add pskoett/pskoett-ai-skills --skill context-decay -a windsurf -y
name: context-decay description: > Revalidate persistent agent knowledge by classifying why it can become stale and how quickly it changes, then retain, revise, externalize, or retire it. Use when reviewing skills, stored instructions, facts, preferences, assumptions, or workflows; when an owner, decision, or dependency changes; or when self-improvement captures, reviews, or promotes a learning. Works independently of self-improvement. Not for runtime context-window degradation, unsaved task observations, or age-based deletion.
Persistent context needs a theory of how it could stop being useful. **Decay type determines how to revalidate. Decay rate determines when.** Age alone proves neither that context is wrong nor that it should be removed. Truth and usefulness must be assessed separately.
gh skill install pskoett/pskoett-skills context-decay
Fallback using the Agent Skills CLI:
npx skills add pskoett/pskoett-skills/skills/context-decay
Work on the context the user selected, context affected by an observed change, or a learning being saved, reviewed, or promoted, including one-off entries. Do not inventory the whole repository on every turn or classify unsaved observations. For a broad audit, prioritize context whose staleness could affect the current work.
Standalone inputs can be authored or installed skills, instruction files, project facts, product priorities, research assumptions, user preferences, or workflow guidance. No learning log, memory service, hook, or scheduled process is required.
For skills, review both whole-skill applicability and individual instructions, references, scripts, and dependencies. They need not share one decay rate. Read [references/skill-review.md](references/skill-review.md) for the review and approval workflow; no source learning is required. Skill changes are proposals until the user explicitly approves the scoped changes. A general maintenance, learning, or repair request is not approval to rewrite a skill.
validity and representation after selection for persistent use.
session. It does not determine whether stored knowledge is still correct.
diagnosis and verification workflow with a context audit.
Read the exact claim, its scope, and any existing evidence or contract. Split mixed claims when their sources or invalidation triggers differ. A dated historical measurement remains a historical observation; it becomes misleading when reused as a current value.
Identify the authoritative source and the person or role accountable for it when known. Record unknown authority or ownership honestly; do not invent an owner or treat a copied instruction as independent proof of itself. Follow existing source precedence. If equally authoritative sources conflict, report the conflict rather than silently choosing the newest timestamp.
Distinguish the accountable owner from the page's author or last editor. When known, link downstream decisions, automations, or derived outputs to the specific source claim they rely on; a page link alone does not explain the dependency. Keep these links in the existing context contract or inventory, and state when downstream coverage is unknown or incomplete.
Choose the primary decay type; add another only when it changes the check.
| Type | What changes | How to revalidate | |------|--------------|-------------------| | `reality` | The underlying environment or facts | Read the authoritative source; retrieve live values when needed | | `decision` | A later decision supersedes an earlier one | Find an applicable superseding decision from the responsible authority | | `dependency` | A model, tool, API, schema, or platform changes | Compare the relevant version/configuration and check the claim against current behavior or documentation | | `relevance` | Context stays true but its value in the current scope changes | Check task applicability, usage evidence, recurrence, and cost of omitting it |
| Rate | Default timing | |------|----------------| | `fast` | Check at use; prefer retrieving a value to storing it | | `medium` | Set a source-appropriate review point or cadence; check earlier on a trigger | | `slow` | Check at relevant maintenance milestones or when affected work resumes | | `durable` | No passive expiry; reconsider on contradiction, explicit review, or an invalidating event |
Rates are qualitative planning judgments, not measured probabilities. Explain the basis briefly. Use an exact interval only when an actual source policy or operational need supports it. Do not assign universal half-lives.
Durable is a rate, not a fifth cause: a preference can be `decision` + `durable`. Events override cadence. A new ownership decision invalidates an old one immediately even if its periodic review is months away. Where change events cannot be observed reliably, use a source check at use or a review fallback.
On an observed ownership change, verify the handoff against the authoritative source and record the new owner, evidence, and affected scope. Flag known downstream uses that rely on the previous owner or their authority as needing revalidation, even if their documents were recently updated. A handoff is not proof that every policy or output is wrong: check whether the relied-on claim still holds. Preserve prior validation evidence; leave unconfirmed ownership or downstream checks unresolved rather than silently assigning an owner or rewriting dependent decisions and automations.
Use the consequence of staleness to choose urgency and unavailable-source behavior. High-consequence actions need current evidence b
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.
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…
[Beta] CI-only learning aggregation workflow using gh-aw (GitHub Agentic Workflows). Scans .learnings/ files on a schedule,…
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,…