context-guard

Preserve active plans, safety files, and intent anchors during FlowDeck session compaction.

20|3|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/DVNghiem/FlowDeck --skill context-guard-dvnghiem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-guard
Source: https://github.com/DVNghiem/FlowDeck/tree/main/src/skills/context-guard
Command: npx skills add https://github.com/DVNghiem/FlowDeck --skill context-guard-dvnghiem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protect critical session context from pruning during compaction by preserving active plans, safety files, pending operations, and user intent anchors.

Core Features & Use Cases

FlowDeck ships with a default registry of protected patterns, a guard protocol that enumerates, resolves, and blocks removals of protected items, and a template registry to override defaults. It integrates with the pruning pipeline to ensure planning state, decision logs, and intent anchors survive compaction, with anti-pattern guidance to prevent over-protection.

Quick Start

Configure and run the context guard before pruning to preserve planning state, safety files, and user intent anchors.

Frequently Asked Questions about context-guard

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

FAQPage Schema
How do I protect critical session context from pruning during compaction?

You can protect critical session context from pruning by applying a guard protocol that preserves active plans, safety files, pending operations, and user intent anchors during state compaction. This ensures planning state survives the pruning pipeline.

What is context governance and how does it work during state compaction?

Context governance during state compaction works by enumerating and resolving protected items against a default pattern registry, blocking the removal of active plans and safety buffers. It ensures only safe removals occur while allowing project-specific template overrides.

How do I configure a guard protocol to preserve planning artifacts and decision logs?

To configure the guard protocol, set up and run the context guard before pruning begins. You can use the default protected-pattern registry or apply project-specific template overrides to ensure your decision logs and planning artifacts survive.

Can I override the default protected-pattern registry for specific FlowDeck sessions?

Yes, you can override the default protected-pattern registry using a template registry designed for project-specific configurations. This allows you to customize exactly which intent anchors and safety files are guarded during FlowDeck session compaction.

What are the limitations of over-protecting context during state compaction?

Over-protecting context during state compaction limits the effectiveness of the pruning pipeline by preserving unnecessary state. The guard protocol includes anti-pattern guidance to prevent over-protection and ensure only genuinely critical planning artifacts and safety buffers remain.