jamiebrynes7/dotfiles/maintaining-project-context
Claude Code and agent skill by jamiebrynes7/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Use when completing development phases or branches to identify and update CLAUDE.md or AGENTS.md files that may have become stale - analyzes what changed, determines affected contracts and documentation, and coordinates updates
Install
npx vskill@latest install jamiebrynes7/dotfiles/maintaining-project-contextSKILL.md
Maintaining Project Context
REQUIRED SUB-SKILL: Use writing-claude-md-files for all context file creation and updates — it owns the section structure, the freshness date, and the length budget.
Core Principle
Context files document contracts and architectural intent. Update them when contracts change, not when implementation changes. A changed export, interface, invariant, dependency, or architectural decision needs documenting; a bug fix, a refactor with the same behaviour, or a new test does not. Stale documentation is worse than none.
Trigger: end of a development phase or branch, or any work that changed contracts, APIs, or domain structure.
Format Detection (do this first)
An AGENTS.md at the root means the repo is AGENTS.md-canonical: read the existing file before editing, write content to AGENTS.md, and give each one a companion CLAUDE.md alongside it containing exactly:
Otherwise the repo is CLAUDE.md-canonical — edit CLAUDE.md files directly. Either way the content uses our structure (Purpose, Contracts, Dependencies, Invariants, …); the filename is only about cross-platform agent compatibility.
The Process
Diff against the base — the branch point or the start of the phase:
Sort the changes into structural (new or moved directories), contract (changed exports, interfaces, public APIs), behavioural (changed invariants or guarantees), and internal. Only the first three warrant an update.
Then, for each one that does:
- Place it at the lowest level where it applies. Domain-specific contracts belong in that domain's context file, not the root; project-wide patterns belong at the root; a cross-domain dependency touches both.
- Read the existing file before editing it, and verify against the code rather than the diff — do the documented contracts, dependencies, and invariants still hold?
- Remove what went stale, don't only append.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghome/lib/ai/skills/maintaining-project-context/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jamiebrynes7/dotfiles/maintaining-project-context)