From rolepod
Use when the session is long, the repo is unfamiliar, the work is multi-file, you are stuck, or you need to escalate to a stronger model. Context budget, session hygiene, zoom-out, deep triage, escalate, onboarding. Phase = Recovery / Re-context / Escalate.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rolepod:manage-contextWhen to use
when context feels heavy or stale, when you are mid-session and forgetting earlier constraints, when starting in an unfamiliar repo, when stuck after multiple attempts, or when the model class you are running on cannot make further progress
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Recovery-phase skill. Keep work stable when context grows long, the codebase is unfamiliar, attention drifts, or the model is stuck. Combines context budget, session hygiene, zoom-out, deep triage, escalate, and onboarding.
Recovery-phase skill. Keep work stable when context grows long, the codebase is unfamiliar, attention drifts, or the model is stuck. Combines context budget, session hygiene, zoom-out, deep triage, escalate, and onboarding.
Owns:
Does not own:
Return / hand off:
using-rolepod or the current phase skill.references/cli-fallbacks.md)| Symptom | Mode |
|---|---|
| Context window past ~60-80% (or bar yellow/red) | Context budget |
| Forgot a stated constraint | Session hygiene |
| Same bug at 3 surfaces | Zoom-out |
| 3+ failed fix attempts on the same target | Escalate |
| Multi-file edits beyond the plan | Deep triage |
| Unfamiliar repo, no clear entry point | Onboarding |
If context is heavy:
/compact <focus> — keep the relevant work, drop the rest/clear — start fresh between unrelated tasks/rewind — undo a recent path you regretclaude --continue after /rename to switch session focusThese are Claude commands; for the Codex / Gemini equivalents see references/cli-fallbacks.md.
Only load what the current task actually needs. Tier 1 skills + the touched files is usually enough.
Starting fresh instead of /compact → fill templates/handoff-brief.md so the next session resumes without re-asking. The brief, not the CLI command, is what makes work resumable.
Re-read the original request literally. List the constraints still in force. Verify the touched files match what you remember; they may have changed since you last read them.
Step back from the immediate edit. Ask: what is the user actually trying to accomplish? Is the current path of attempts still aligned with that goal, or have you started solving a sub-problem you invented?
Map the actual surface: list every file you have edited or planned to edit. Group by concern. Re-check the plan against the spec. If the surface is wider than the plan, write a new plan, do not keep widening edits.
If stuck after multiple attempts:
Three failed attempts is the trigger. Do not "try one more thing" past that.
Before any edit:
README.md, CLAUDE.md if presentpackage.json / pyproject.toml / Cargo.toml / MakefileDelegate the recovery action to the closest specialist:
system-architect for multi-file refactor scope decisionsqa-tester when the recurring failure is in test disciplineuniversal-reviewer to read your in-flight diff with fresh contextBrief: original user request, what has been tried, what failed, what you suspect is wrong.
Execute as Lead with this minimum viable checklist:
references/cli-fallbacks.md)Mode: <context budget | session hygiene | zoom-out | escalate | triage | onboarding>
Trigger: <what tipped this skill>
Action taken: <command run / re-read / escalation>
State after: <what is loaded, what is dropped>
Next: <which skill resumes work>
When starting a fresh session, the durable artifact is templates/handoff-brief.md.
Non-blocking — read only when unsure how to recover or hand off:
examples/context-examples.md — a zoom-out recovery and a session handoff, each a good/bad pair with a "why good wins" table. Read the whole file; the contrast is the lesson.Load only when the task needs it:
references/cli-fallbacks.md — context-management commands per CLI (Claude / Codex / Gemini)Full Rolepod improves this phase by surfacing context-budget reminders via SessionStart hooks (where the CLI supports them), the escalation pattern, the deep triage checklist, and onboarding on first session in a new repo.
write-spec, write-plan, implement-plan, debug-issue, check-work, review-code, finish-work, or simplify-code.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub nuttaruj/rolepod --plugin rolepod