context-guard

Persist AI coding agent context to external safeguard files across sessions.

1|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/oldmangrizzz/REAL_JARVIS --skill context-guard-oldmangrizzz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-guard
Source: https://github.com/oldmangrizzz/REAL_JARVIS/tree/main/claude-skills/_journey/context-guard/.claude/skills/context-guard
Command: npx skills add https://github.com/oldmangrizzz/REAL_JARVIS --skill context-guard-oldmangrizzz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Preserves an AI coding agent's learned context across sessions by storing safeguard data in external files, preventing loss during rate limits, crashes, or context compaction.

Core Features & Use Cases

  • External safeguard files survive across sessions and model changes, enabling full recovery.
  • Five command-driven capabilities: /start, /save, /audit, /end, /itemise to manage lifecycle, auditing, and handoffs.
  • Created artifacts for traceability and continuity, including CLAUDE.md, SESSION_LOG.md, TASK_REGISTRY.md, DECISIONS.md, and more.
  • Optional reporting prompt to communicate outcomes and provide diagnostic fields.

Quick Start

Start the Context Guard in your Claude-based project by running your agent and entering /start to initialize safeguard files and enable session-wide context recovery.

Frequently Asked Questions about context-guard

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

FAQPage Schema
How do I preserve AI agent context across session boundaries?

You preserve AI agent context across session boundaries by writing learned state to external safeguard files such as CLAUDE.md and SESSION_LOG.md, which survive crashes, rate limits, and context compaction for seamless recovery.

What is the best way to recover an AI coding session after a crash?

The best way to recover an AI coding session after a crash is to use command-driven lifecycle management with /start, /save, and /audit commands to validate external state files and resume the project seamlessly.

How do I create an audit trail for long-running AI coding projects?

You create an audit trail for long-running AI coding projects by generating traceability artifacts like DECISIONS.md and TASK_REGISTRY.md, using the /audit and /itemise commands to manage validation and handoffs across different models.

Does external state persistence work across different AI models and runtimes?

Yes, external state persistence works across different AI models and runtimes because the safeguard files are stored externally, allowing context to survive model changes and enabling full recovery regardless of the underlying agent runtime.

How do I prevent context loss during AI agent rate limits or compaction?

You prevent context loss during AI agent rate limits or compaction by actively persisting learned context to external state files using the /save command, ensuring that session data is not lost when the context window is compacted or limited.

How do I initialize safeguard files for AI context recovery?

You initialize safeguard files for AI context recovery by running your agent and entering the /start command, which sets up the necessary external files to enable session-wide context protection and recovery.