From ctx
Knowledge about AI context file locations, staleness patterns, and maintenance rules across 10+ tool ecosystems. Loaded when working with or near context files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ctx:context-hygieneThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When working in this repository, be aware that AI context files (CLAUDE.md, AGENTS.md, Serena memories, Cursor rules, etc.) can become stale and contradictory. This skill helps you maintain context hygiene.
When working in this repository, be aware that AI context files (CLAUDE.md, AGENTS.md, Serena memories, Cursor rules, etc.) can become stale and contradictory. This skill helps you maintain context hygiene.
| Tool | Memory files | Config | Output/Planning |
|---|---|---|---|
| Claude Code | CLAUDE.md | .claude/settings*.json, .claude/commands/, .claude/skills/ | claudedocs/* |
| GitHub Copilot/Codex | AGENTS.md, .github/agents/* | .codex/config.toml, .vscode/mcp.json | — |
| Gemini | GEMINI.md | .gemini/ | — |
| Cursor | .cursorrules, .cursor/rules/*.mdc | .cursor/ | — |
| Serena | .serena/memories/* | .serena/project.yml | — |
| spec-kit | .specify/memory/* | .specify/templates/* | specs/* |
| Roo/Cline | .roo/*, .clinerules | .roo/mcp.json | — |
| Continue | .continuerules | .continue/config.json | — |
| Aider | .aider.conf.yml | — | — |
| Windsurf | .windsurfrules | — | — |
After making significant changes (renaming files, changing versions, restructuring modules, adding/removing dependencies), check whether any context files reference the things you changed. Update them if so.
Pay special attention to:
Treat claims in context files with appropriate skepticism. Cross-reference against actual code before relying on:
The authoritative sources are (in order):
If you create planning docs, completion reports, or similar output:
claudedocs/ for Claude Code)Use the /ctx command to run a comprehensive context hygiene audit anytime. Use /ctx:check for a quick staleness check, or /ctx:drift to find contradictions between files.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub knitli/toolshed --plugin ctx