session-gate

Validate MEMORY.md structure against the defined template at session boundaries.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/gerardloupecyb/claude-code-project-template --skill session-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-gate
Source: https://github.com/gerardloupecyb/claude-code-project-template/tree/main/.claude/skills/session-gate
Command: npx skills add https://github.com/gerardloupecyb/claude-code-project-template --skill session-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill validates MEMORY.md against the defined template rules at session boundaries, preventing drift and ensuring memory integrity without modifying user data.

Core Features & Use Cases

  • Reads and verifies memory/MEMORY.md structure, headings, and last/next session timestamps.
  • Executes a deterministic checklist of 18 mechanical validations to surface actionable guidance.
  • Provides advisory, read-only checks that do not block sessions and can trigger an audit workflow when issues are detected.

Quick Start

Invoke the /session-gate command at session boundaries to perform the mechanical checks and surface results without blocking the session.

Frequently Asked Questions about session-gate

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

FAQPage Schema
How do I validate MEMORY.md structure at session boundaries?

Validating MEMORY.md structure at session boundaries involves checking headings, timestamps, and template rules. This skill performs 18 deterministic mechanical validations using read-only analysis and git state, ensuring memory consistency without modifying user data.

What is memory consistency validation for markdown session files?

Memory consistency validation for markdown session files is a read-only quality assurance process that detects structural drift in MEMORY.md. It checks defined template rules, headings, and last/next session timestamps to surface guidance without blocking the session.

Can I run non-blocking quality assurance checks on MEMORY.md?

Yes, you can run non-blocking quality assurance checks on MEMORY.md. The validation executes as advisory, read-only checks that surface results without blocking sessions, and can trigger an audit workflow when issues are detected.

Does session-gate modify user data during markdown validation?

No, session-gate does not modify user data during markdown validation. It implements deterministic checks using read-only analysis and git state to enforce mechanical integrity of MEMORY.md, applying validation at session gates and explicit invocations.

What's the best way to enforce memory template rules without blocking sessions?

The best way to enforce memory template rules without blocking sessions is to apply advisory, read-only validation at session boundaries. This skill detects structural drift in MEMORY.md and surfaces actionable guidance, triggering an audit workflow only when issues are found.

When do I need to check MEMORY.md integrity for session management?

You need to check MEMORY.md integrity for session management at session boundaries and through explicit invocations. This prevents drift and ensures memory consistency by validating structure against defined template rules, catching issues before they compound across sessions.