PlaygroundCatalog › Context Mode
CM

Context Mode

🔵 Stable🕐 updated 2026-06-24 🔷 SkillSpec L3 pm-engineering

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.

▶ Run it free — no key needed 📝 Grade your existing draft View SKILL.md ↗

🗣 Say this to your agent

“Enable context mode”“Turn on context mode for this session”“Activate long session mode”“I keep losing context — fix it”“Set up session logging”

✅ The bar it holds itself to

Every skill in this library self-verifies — these are this skill's own quality checks, straight from its definition.

`session.log` was initialised immediately on activation (not deferred)
Log path shown to user is the absolute path, not relative
Output filtering is applied on the very next command run — not just announced
Filtered output format includes: command, status, summary, errors, and tail — all five fields
Session log tracks all four categories: files edited, commands run, tasks in progress, last prompt
Resume announcement reads the actual log contents — not a generic template
On resume, Claude continues the work without prompting the user for instructions
CLAUDE.md installation text was offered after activation

⚠️ What it refuses to do

Logging verbatim command output instead of a filtered summary (defeats the context savings)
A resume announcement from a generic template that ignores what the log actually says
Appending to "Last User Prompt" / "Last Action Taken" instead of replacing them (the log bloats)
Activating silently without offering the CLAUDE.md install, so it doesn't persist across sessions
On resume, asking the user what to do instead of continuing the in-progress task

Install

npx pm-claude-skills add --agent claude   # or codex · cursor · gemini · hermes
# or one-line MCP (every skill, any client):
claude mcp add pm-skills -- npx -y pm-claude-skills-mcp

Start with

Related skills

🔌 Embed this skill

Drop this on your blog, docs, or site — it renders a "Run this skill" card:

<div data-pm-skill="context-mode"></div>
<script src="https://mohitagw15856.github.io/pm-claude-skills/embed.js" async></script>

💬 Discussion

Context Mode is one of 1153 open-source professional AI agent skills — all SkillSpec L3. Try them all in the browser · ⭐ Star on GitHub · Browse the full catalog