Agent skill · Workflow & Productivity

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.

mohitagw15856github.com/mohitagw15856GitHub ↗
claude-codecursorMIT
Install
npx skills add mohitagw15856/pm-claude-skills --skill context-mode --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/context-mode/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,255
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Required Inputs
  2. How Context Mode Works
  3. Part 1 — Output Filtering
  4. Part 2 — Session Log
  5. Part 3 — Resume on Reset
  6. Activation Response
  7. Output Structure
  8. On activation
  9. On command execution (filtered output format)
  10. On reset / new session (resume announcement)
  11. CLAUDE.md Installation Text
  12. Context Mode
  13. Output Filtering
  14. Session Log
More from pm-claude-skills
All skills →
About this skill
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.

Keep going