context-refresh
Skill52 starsChanged 20 days agoMITView on GitHub
Rebuild session context from the scratchpad after compaction or when resuming work — restores current feature, branch, wave and slice progress, and reports context health.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- hushh-labs/hushh-researchtheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- hushh-labs/hushh-research★ 40same 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 repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- src/claude.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- bootstrap-featureSkill
- design-foundationSkill
- develop-featureSkill
- implement-sliceSkill
- merge-readySkill
- sdlc-fastSkill
- sdlc-quickSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Read .claude/scratchpad.md and extract:
- Distinctive: line 27
Check if scratchpad matches current state:
- Distinctive: line 34
If scratchpad is stale:
- Distinctive: line 36
Add new constraints or decisions
- Distinctive: line 40
If scratchpad exceeds 100 lines:
- Very specific: line 42
Keep only the current wave and next wave in ## Plan
- Very specific: line 43
Keep only the last 3 entries in ## Completed
- Distinctive: line 53
Stale: Update scratchpad with current state
- Very specific: line 54
Overwhelming: Consider starting a fresh session with claude -c
- Distinctive: line 71
After completing a major milestone
- Distinctive: line 72
When feeling lost in details
- Distinctive: line 73
Before planning a new feature
- Distinctive: line 74
When conversation is getting long
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Command: Context Refresh
Rebuild context from scratchpad to maintain clarity during long sessions.
Arguments
$mode (also available as $ARGUMENTS) optionally requests a specific mode. Literal-token flag rule: a documented flag is active ONLY if its literal token appears in $ARGUMENTS. Never infer that a flag was passed because the documentation describes it.
Process
1. Read Scratchpad
Read .claude/scratchpad.md and extract:
- Feature name and branch (
## Feature:,## Branch:) - Current status (
## Status:— idle/bootstrapping/implementing wave W slice N/M/implementing slice N/M/quality-gates/complete/blocked) - Plan progress by wave (if
### Wave Nsubheadings exist): which waves are complete, which wave is current, per-slice status within the current wave. If no wave subheadings, extract flat slice progress as before - Any blockers (
## Blockers) - Recent work from
## Completedsection
2. Verify Accuracy
Check if scratchpad matches current state:
- Are goals still accurate?
- Have new decisions been made?
- Are next steps still relevant?
- Has the git branch changed?
3. Update if Needed
If scratchpad is stale:
- Update current goal
- Add new constraints or decisions
- Log recent commits and changes
- Revise next steps based on progress
If scratchpad exceeds 100 lines:
- Move completed waves (all slices DONE) from
## Planto## Archiveas a unit — keep the### Wave Nblock together. If no wave subheadings, move completed slices individually - Keep only the current wave and next wave in
## Plan - Keep only the last 3 entries in
## Completed - This prevents the scratchpad itself from consuming excessive context
4. Summarize Context
Provide concise summary of where we are.
5. Recommend Action
Based on context health:
- Clean: Continue with current work
- Noisy: Suggest which details can be archived
- Stale: Update scratchpad with current state
- Overwhelming: Consider starting a fresh session with
claude -c
Output Format
Context Summary:
- Goal: [current goal]
- Branch: [current git branch]
- Progress: [what's done — e.g., "Wave 1 complete (3/3), Wave 2 in progress (1/2)" or flat "5/8 slices done"]
- Next: [top 3 items]
Status: [Clean/Noisy/Stale/Overwhelming]
Recommendation: [specific action]When to Use
- Starting a new work session
- After completing a major milestone
- When feeling lost in details
- Before planning a new feature
- When conversation is getting long
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

