update-context
Skill4 starsChanged 7 months agoMITView on GitHub
Lightweight update of project context for a feature branch. Updates plan status, review items, PR comments, and recent git activity without re-extracting API docs or re-analyzing source code. Supports both tiered contexts (`api-context.md` + `project-context.md`) and legacy single-file `context.md` branches. Use when user says "update context", "refresh context", or between sessions when the full /build-context is overkill.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- nexus-a1/claude-skillstheir own version, first seen Sep 27, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- nexus-a1/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ai-workspace-projections.mdcCursor rule
- .cursor/rules/mcp-tool-configs.mdcCursor rule
- .cursor/rules/node-typescript.mdcCursor rule
- .cursor/rules/runstore-listruns-cache.mdcCursor rule
- .cursor/rules/worker-posture.mdcCursor rule
- .cursor/rules/worker-safety.mdcCursor rule
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- mergeprepSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- resolve-review-findingsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 12 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
After merging PRs or resolving review comments
- Distinctive: line 13
After updating plans or completing tasks
- Very specific: line 14
When /load-context warns that project context is stale
- Distinctive: line 18
After significant code restructuring (must-read files may have changed)
- Distinctive: line 19
When upstream-integration or third-party docs have been updated
- Very specific: line 26
Check for tiered context files at contexts/{branch-name}/api-context.md and contexts/{branch-name}/project-context.md
- Distinctive: line 27
If both exist, operate in tiered mode
- Distinctive: line 29
If the legacy file exists, operate in legacy mode
- Distinctive: line 30
If neither tiered nor legacy context exists:
- Very specific: line 40
Read plans/{branch-name}/ to extract:
- Distinctive: line 46
If no plans directory exists, note "No plans found for this branch."
- Distinctive: line 50
Use the available GitHub/PR review tooling in the current environment to check for open PRs on the current branch and read their comments.
- Distinctive: line 57
If no open PRs, note "No open PRs for this branch." If GitHub/PR tooling is unavailable, note that PR comments could not be refreshed.
- Distinctive: line 73
Read the existing context file(s) for the current mode:
- Very specific: line 75
Tiered mode: read contexts/{branch-name}/project-context.md to preserve sections that aren't being refreshed (must-read files, architecture …
- Very specific: line 76
Legacy mode: read contexts/{branch-name}/context.md and preserve every section except the ones being refreshed.
- Distinctive: line 80
Update the current-mode project context:
- Very specific: line 83
Update the generated_at timestamp in the YAML front matter
- Very specific: line 98
Update the top-level Generated: date if present
- Very specific: line 106
Only in tiered mode, read contexts/{branch-name}/context.md, then update it:
- Very specific: line 108
Update the Project Context: date in the header
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update Context
Lightweight update of the dynamic project context (~1 min). Skips API docs (cached), source code analysis (stable), and test analysis (stable). Only refreshes what actually changes between sessions: plan status, review items, PR comments, and git activity.
When to use:
- Between sessions on the same feature branch
- After merging PRs or resolving review comments
- After updating plans or completing tasks
- When
/load-contextwarns that project context is stale
When NOT to use — use /build-context instead:
- First time on a new feature (no context files exist)
- After significant code restructuring (must-read files may have changed)
- When upstream-integration or third-party docs have been updated
Instructions
Step 1: Validate Context Exists
- Get the current git branch:
git branch --show-current - Check for tiered context files at
contexts/{branch-name}/api-context.mdandcontexts/{branch-name}/project-context.md - If both exist, operate in tiered mode
- Otherwise, check for legacy single-file context at
contexts/{branch-name}/context.md - If the legacy file exists, operate in legacy mode
- If neither tiered nor legacy context exists:
- Tell the user: "Context files not found for
{branch-name}. Run/build-contextfirst." - Stop here.
- Tell the user: "Context files not found for
Step 2: Gather Fresh Data (parallel)
Launch up to 3 lightweight operations in parallel:
2a. Plans & Reviews
Read plans/{branch-name}/ to extract:
- Current plan task statuses (done, in progress, blocked)
- Open review items and severity
- Key decisions and rationale
- Remaining work items
If no plans directory exists, note "No plans found for this branch."
2b. PR Comments (if applicable)
Use the available GitHub/PR review tooling in the current environment to check for open PRs on the current branch and read their comments.
Extract:
- Open review comments and resolution status
- Reviewer feedback themes
- Requested changes not yet addressed
If no open PRs, note "No open PRs for this branch." If GitHub/PR tooling is unavailable, note that PR comments could not be refreshed.
2c. Recent Git Activity
# Commits since the last context build
git log --oneline --since="{project-context generated_at}" --no-mergesSummarize:
- Number of commits since last context
- Key changes (from commit messages)
- Files changed (high-level: "5 handler files, 3 test files")
Step 3: Read Current Project Context
Read the existing context file(s) for the current mode:
- Tiered mode: read
contexts/{branch-name}/project-context.mdto preserve sections that aren't being refreshed (must-read files, architecture patterns, source code insights, test patterns, review rules). Also readcontexts/{branch-name}/context.mdso the combined file can be updated without disturbing unrelated sections. - Legacy mode: read
contexts/{branch-name}/context.mdand preserve every section except the ones being refreshed.
Step 4: Update Project Context
Update the current-mode project context:
- Tiered mode: edit
contexts/{branch-name}/project-context.md- Update the
generated_attimestamp in the YAML front matter - Replace the
## Plan Statussection with fresh data from Step 2a - Replace the
## Open Review Itemssection with fresh data from Step 2b - Add/update a
## Recent Activitysection after Open Review Items:## Recent Activity {N} commits since last context build ({date}): - {commit summary 1} - {commit summary 2} ... - Preserve all other sections unchanged (Critical Path, Current State & Gaps, Must-Read Files, Internal Architecture, Source Code Insights, Test Patterns, Review Rules)
- Update the
- Legacy mode: edit
contexts/{branch-name}/context.mddirectly- Update the top-level
Generated:date if present - Replace or add the
## Plan Statussection with fresh data from Step 2a - Replace or add the
## Open Review Itemssection with fresh data from Step 2b - Replace or add a
## Recent Activitysection after Open Review Items - Preserve all other sections unchanged
- Update the top-level
Step 5: Re-assemble Combined Context
Only in tiered mode, read contexts/{branch-name}/context.md, then update it:
- Update the
Project Context:date in the header - Replace the
## Plan Statussection with the fresh version - Replace the
## Open Review Itemssection with the fresh version - Replace or add the
## Recent Activitysection with the fresh version - Preserve all other sections unchanged
In legacy mode, skip this step because context.md was already updated in Step 4.
Step 6: Summary
Context refreshed for branch `{branch-name}`.
Mode: {tiered | legacy}
Updated:
- Plan status: {N} completed, {N} in progress, {N} remaining
- Review items: {N} open ({N} new since last refresh)
- Git activity: {N} commits since {last context date}
Unchanged:
- Must-read files: {N} critical, {N} important
- Source code insights, test patterns, review rules
{If tiered mode:}
- API context: {api-context generated_at}
{End if}
Files updated:
{If tiered mode:}
- contexts/{branch-name}/project-context.md
- contexts/{branch-name}/context.md
{Else legacy mode:}
- contexts/{branch-name}/context.md
{End if}Critical Rules
- Support both formats — tiered contexts use
api-context.md+project-context.md; legacy branches may only havecontext.md. Do not force a rebuild solely because the branch still uses the legacy format. - Never touch api-context.md in tiered mode — that's Tier 1 (cached). Only
/build-context --forcerebuilds it. - Preserve non-refreshed sections — must-read files, architecture patterns, source code insights, test patterns, and review rules are expensive to rebuild. Only replace plan status, review items, and activity.
- Edit, don't rewrite — use targeted edits on project-context.md and context.md rather than full rewrites to minimize diff noise.
- Fail fast if no context exists — this is an update skill, not a build skill.
- Include git activity — recent commits since last context build are cheap to gather and high-value for orientation.
- Use environment-appropriate PR tooling — describe the action generically and use whichever GitHub/PR review tooling is available.
Checklist
- Context files exist for current branch (tiered or legacy)
- Plan status refreshed from plans/{branch-name}/
- PR comments checked via available PR tooling (or explicitly noted unavailable)
- Recent git activity gathered
- project context updated (project-context.md in tiered mode, context.md in legacy mode)
- context.md re-assembled in tiered mode
- Summary presented with what changed vs what's preserved
Reference
.agents/skills/build-context/SKILL.md— full context build with tiered caching.agents/skills/load-context/SKILL.md— read-only context loading into conversation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

