context-maintenance

context-maintenance is a skill for Claude Code from parisgroup-ai/imersao-ia-setup. It costs 75 tokens per session (955 once invoked), scanned A, original, MIT.

A maintenance review for project instructions and memory files, checking them against the current codebase.

In plain words
What is it for?
Use it after a long gap, configuration or backend changes, feature additions, or whenever project context may no longer match the code.
Why use it?
It helps prevent a coding agent from relying on outdated details about services, packages, configuration, or project structure.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the imersao plugin — 51 skills, 7 commands shipped together

Good fit Use it after a long gap, configuration or backend changes, feature additions, or whenever project context may no longer match the code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parisgroup-ai/imersao-ia-setup/context-maintenance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add parisgroup-ai/imersao-ia-setup --skill context-maintenance
Clone the repo
git clone --depth 1 https://github.com/parisgroup-ai/imersao-ia-setup

Made for: Claude Code.

Or install imersao, the plugin that ships this one along with the rest of its 51 skills, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-maintenance

README.md
[![agentmods](https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/context-maintenance/github.svg)](https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/context-maintenance)
Your own site
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/context-maintenance"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/context-maintenance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-maintenance

Your own site · 80×15
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/context-maintenance"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/context-maintenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.00955
Opus 5 $0.00037 $0.00477
Sonnet 5 $0.00015 $0.00191
Haiku 4.5 $0.00007 $0.00096

Measured 12d ago against content hash 185ac8cabc0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

context-maintenance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/imersao/skills/context-maintenance/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context Maintenance

Audits all Claude context sources (memory files, CLAUDE.md, AGENTS.md) against the actual codebase to find and fix stale information. Prevents wrong context from persisting across conversations.

Problem This Solves

Claude loads memory files and AGENTS.md at session start. If these contain outdated information (wrong model IDs, missing services, stale counts), every conversation starts with incorrect assumptions — leading to wrong suggestions, wasted debugging, and repeated mistakes.

When to Use

  • Starting a session after >7 days away from the project
  • After changing configurations, services, or infrastructure
  • After adding/removing features, API routes, or packages
  • User asks to check context freshness
  • You notice memory says X but code says Y

Checks

Run in parallel where possible. Adapt to the project's structure.

1. Memory Index Health

wc -l MEMORY.md → must be < 100 lines

MEMORY.md should be a concise index with links to topic files — not inline content. If over limit, extract content into topic files.

2. Memory vs Code Drift

For each memory topic file:

  • Identify claims about code (model names, file counts, service lists, API configurations)
  • Verify against actual code using Grep/Glob
  • Flag discrepancies as DRIFT

Common drift sources:

  • Service/function/endpoint counts and lists
  • Model or library version references
  • File paths that were moved or renamed
  • Configuration values that changed

3. AGENTS.md Completeness

For each AGENTS.md in the project:

  • Compare documented services/features against actual directory listings
  • Check counts match reality (e.g., "15 functions" vs ls | wc -l)
  • Verify listed tools/models match what code actually uses

4. Stale Topic Files

For each file in memory/:

  • Check description field still matches content
  • Flag files older than 30 days for review
  • Verify no content duplicates what's already in AGENTS.md
  • Check "Known Issues" — verify they still exist in code

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 111 lines · 75 tokens per session scan A 185ac8cabc0c

Subscribe to this mod's changes

context-maintenance is a skill published in the GitHub repository parisgroup-ai/imersao-ia-setup (1 stars, last pushed 29d ago), licensed MIT. It adds 75 tokens to every session and 955 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

closing-lite

A lightweight session-closing skill that saves important issues, lessons, and preferences to the agent’s persistent memory.

kingkingburger/plugin-mh · 113 tokens

client-context-system

Sets up a complete per-client workspace in Cowork with isolated context, preferences, deliverable templates, running notes, decision log, and automatic status reporting. For consultants, agencies, and professional services. Useful when onboarding a new client, during engagement kickoffs, for organizing existing client…

EAIconsulting/cowork-skills-library · 105 tokens

context-manager

Teaches you how to break large tasks into stages, save your place between sessions, and recover smoothly when a task gets interrupted. Use when planning a multi-day project, for breaking down large work into manageable stages, during recovery from an interrupted session, when managing complex ongoing work, or when the…

EAIconsulting/cowork-skills-library · 137 tokens

memory-system

Sets up a file-based memory system so Cowork always knows who you are, how you work, and where your projects stand. For eliminating repetitive re-introductions at session start, when building persistent context across multiple projects, or during initial Cowork onboarding. Use when the user says "claude doesn't…

EAIconsulting/cowork-skills-library · 105 tokens

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens

traction-eos

Implement the Entrepreneurial Operating System (EOS) to align vision and execution across a company. Use when the user mentions "EOS", "Entrepreneurial Operating System", "V/TO", "quarterly rocks", "Level 10 meetings", "accountability chart", "IDS process", "my company feels chaotic", "we keep having the same…

wondelai/skills · 147 tokens