Agent skill
refresh-context
Update stale workspace context.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/refresh-context
SKILL.md
Refresh Context
The Planner drives this workflow with Orchestrator support. Verify and update the workspace context file when it may be outdated by scanning the codebase for changes and reconciling with documented state.
Prerequisites: Existing workspace context file, access to codebase.
Phase 1: Read Current Context
Understand what the workspace context currently states.
Steps
- Read the existing workspace context file
- Summarize what it contains
- Note the last-updated timestamp
Phase 2: Scan Codebase
Detect changes since last context refresh.
Steps
- Look for new directories or modules
- Check for changed file patterns
- Review updated configuration
- Check for moved documentation
- Verify convention adherence
Phase 3: Report Inconsistencies
Present findings for human review.
Steps
- Compare current context against detected state
- List items that need updating, removal, or verification
- Highlight questions about ambiguous changes
Staleness Indicators
- References files that no longer exist
- Mentions patterns not seen in recent code
- Lists stack components that have changed
- Documentation links are broken
- Conventions don't match observed code
Output
## Context Anchors
- **Phase:** Report Inconsistencies
## Inconsistencies Found
| Item | Current State | Detected State | Action Needed |
| ------ | ------------- | -------------- | ---------------------- |
| <item> | <current> | <detected> | <update/remove/verify> |
## Questions
- <ambiguous change needing input>
## Next Step
Approve changes before applying.
**Approval Required:** Yes
⛔ CHECKPOINT
STOP. Await human input before making changes.
Phase 4: Apply Updates
Update the workspace context file with approved changes.
Steps
- Apply approved corrections
- Add new discoveries
- Remove obsolete content
- Update timestamp
Output
## Changes Applied
- Updated: <list>
- Added: <list>
- Removed: <list>
## Next Step
Context refreshed.
**Approval Required:** No
Error Handling
| Error | Recovery |
|---|---|
| No workspace context file exists | Offer to create one via setup workflow |
| File has incompatible format | Note format issues, propose migration |
| Too many changes to review at once | Batch into sections, process incrementally |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?