session-mode

Lock the current session into debug, refactor, or feature mode.

6|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/opmau/claude-code-framework --skill session-mode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-mode
Source: https://github.com/opmau/claude-code-framework/tree/main/templates/.claude/skills/session-mode
Command: npx skills add https://github.com/opmau/claude-code-framework --skill session-mode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Locks the current coding session into a defined operating mode to prevent drift and ensure consistent behavior.

Core Features & Use Cases

  • Enforces a single active mode at a time across the session.
  • Supports debug, refactor, and feature modes with explicit constraints.
  • Persists until explicitly changed; integrates with docs/CURRENT_SPRINT.md for traceability.

Quick Start

Activate a mode by running /session-mode and then follow the on-screen prompts to set the mode.

Frequently Asked Questions about session-mode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I lock a coding session to prevent mode drift during refactoring?

Locking a coding session prevents mode drift by enforcing a single active mode with explicit constraints. You can lock the session by running the command and following the prompts to set the mode.

Can I enforce a single debugging mode across an entire project session?

Yes, you can enforce a single debugging mode across an entire project session. The tool supports debug, refactor, and feature modes, applying explicit constraints from the start of the session.

How does mode persistence work for coding sessions?

Mode persistence works by maintaining mode enforcement until it is explicitly changed. The active mode is recorded in docs/CURRENT_SPRINT.md to ensure traceability and consistent behavior across the session.

What is the best way to maintain mode enforcement for code reviews?

The best way to maintain mode enforcement for code reviews is to lock the session into a specific operating mode from the start. This prevents drift and ensures consistent behavior throughout the review process.

Does this tool require specific dependencies to lock session modes?

No, this tool does not require specific dependencies to lock session modes. It operates independently to enforce constraints and integrate with your project documentation for traceability.

When should I not use mode-based constraints for my coding tasks?

You should not use mode-based constraints when your coding tasks require frequent switching between different modes without explicit changes. The tool maintains enforcement until manually changed, which may limit flexibility.