Skip to content
Back to skills

Context

ASecurity

Use when habits reports that the session's context has grown large, when a session has run long or been compacted, or when you notice signs of context rot: forgetting earlier instructions, repeating a failed approach, contradicting an earlier decision, or the user correcting the same thing twice.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 3, 2026
ai-agentsgo

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add e-reitbauer/habits --skill context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/e-reitbauer-context/badge)](https://www.skillsdirectory.com/skills/e-reitbauer-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context
description: >
  Use when habits reports that the session's context has grown large, when a session has run long or been
  compacted, or when you notice signs of context rot: forgetting earlier instructions, repeating a failed approach,
  contradicting an earlier decision, or the user correcting the same thing twice.
---

# Context rot check

In a long context, early instructions, decisions and details get followed less reliably, even though they are still there. This check catches that before it causes mistakes. Run it when habits nudges you, and on your own whenever a warning sign shows up.

## 1. Look for the warning signs

Go through these honestly; one is enough to act on.

- You don't remember, without scrolling back, the user's explicit constraints for this task (what not to touch, which style, which approach they rejected).
- You tried an approach that already failed earlier in the session, or are about to.
- Something you said or did contradicts a decision made earlier (a naming choice, an architecture, a "don't do X").
- The user corrected the same kind of mistake more than once.
- You are relying on your memory of a file's contents from many turns ago instead of its current state.
- The current task has drifted far from the one the session started with.

## 2. Restore what matters

- Restate, in a few lines to yourself, the current task, the user's standing preferences and constraints from this session, and the decisions already made. If you can't, scroll back and find them before going on.
- Re-read the files you are about to change; never edit from memory.
- Reload the units for the technologies you're working in (`habits load <id>`), and reload any skill whose rules you're applying (commit, ship, branching).
- Check your next step against the constraints you just restated.

## 3. If the session is too far gone

Signs: several warning signs at once, a context well past half the window, or work that has moved to an unrelated task.

- Tell the user plainly that the context has grown long enough to hurt quality, and why you think so.
- Offer a handoff: a short note with the goal, decisions, constraints, current state, open items and the files involved. With the note in hand, suggest either `/compact` with a focus instruction (e.g. `/compact keep the habits plugin decisions and the open TODOs`), or a fresh session started from the note.
- Don't compact or restart on your own; the user decides.

## 4. Afterwards

Carry on with the restored constraints in front of you. If the user agreed to compact or restart, habits reloads the relevant units automatically in the new context.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.