context-mode
Keep Claude Code sessions productive across resets with output filtering, session logging, and auto-resume. Use when starting a long or complex coding session, when previous sessions lost context mid-task, or when you need Claude to resume exactly where it left off after a reset. Produces a session.log at the project root, filtered command output that preserves context, and automatic resume of in-progress tasks after any reset.
npx skills add mohitagw15856/pm-claude-skills --skill context-mode --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Context Mode Skill Fix the two session killers that end most Claude Code sessions in under 30 minutes: context bloat from raw command output, and memory loss after a reset. Context Mode runs three systems simultaneously to keep sessions alive: - **Output Filtering** — strips verbose command output before it enters context - **Session Log** — writes a running log of everything that happened - **Auto-Resume** — reads the log on reset and picks up exactly where you left off > **Credit:** Inspired by a skill from Nate Herk's YouTube channel — adapted and extended for this library. --- ## Required Inputs No inputs required. Context Mode activates on command. Optional: user can specify a custom log file path if they don't want `session.log` in the project root. --- ## How Context Mode Works ### Part 1 — Output Filtering The problem: every time Claude Code runs a command, the full raw output enters the context window. A single `npm install` can dump hundreds of lines. A test suite run? Thousands. Within 30 minutes, the context is full of noise and Claude resets. The fix: before any command output enters context, filter it to the useful summary only. **What gets kept:** - Last 10 lines o
- Required Inputs
- How Context Mode Works
- Part 1 — Output Filtering
- Part 2 — Session Log
- Part 3 — Resume on Reset
- Activation Response
- Output Structure
- On activation
- On command execution (filtered output format)
- On reset / new session (resume announcement)
- CLAUDE.md Installation Text
- Context Mode
- Output Filtering
- Session Log
What does the context-mode skill do?
Keep Claude Code sessions productive across resets with output filtering, session logging, and auto-resume. Use when starting a long or complex coding session, when previous sessions lost context mid-task, or when you need Claude to resume exactly where it left off after a reset. Produces a session.log at the project root, filtered command output that preserves context, and automatic resume of in-progress tasks after any reset.
How do I install it?
Run `npx skills add mohitagw15856/pm-claude-skills --skill context-mode --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From mohitagw15856/pm-claude-skills, a repository with 1,255 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
