context-security-guardian

Validate .ai-context artifacts before loading to block high-severity threats.

Updated Feb 19, 2026
One-click install
npx skills add https://github.com/jonnathan-ls/ai-context-kit --skill context-security-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-security-guardian
Source: https://github.com/jonnathan-ls/ai-context-kit/tree/main/skills/context-security-guardian
Command: npx skills add https://github.com/jonnathan-ls/ai-context-kit --skill context-security-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

The context-security-guardian provides a pre-load security gate that validates every artifact in the AI context before loading or executing it, preventing risky instructions from being activated.

Core Features & Use Cases

  • Automatic pre-load validation across skills, agents, rules, and workflows to detect dangerous patterns such as data exfiltration, destructive commands, policy bypass, and unauthorized access.
  • Quarantine and reporting workflows that block offending artifacts, preserve evidence, and log findings for remediation.
  • Transparent operation with guardrails to ensure safe artifact loading and quick remediation when threats are detected.

Quick Start

Place the context-security-guardian under .ai-context and ensure it runs before any artifact is processed.

Frequently Asked Questions about context-security-guardian

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

FAQPage Schema
How do I validate AI context artifacts before loading them to prevent credential theft?

To validate AI context artifacts before loading, use a pre-loading security gate that scans every artifact in .ai-context to detect credential theft, data exfiltration, and destructive commands before activation. It returns a JSON object with blocked status, severity, and findings.

What is pre-load security validation for AI context workflows?

Pre-load security validation for AI context is a middleware mechanism that inspects skills, agents, rules, and workflows for high-severity threats before they are applied. It blocks offending artifacts, preserves evidence, and logs findings for remediation.

How do I quarantine dangerous instructions found in AI context rules?

To quarantine dangerous instructions in AI context rules, the validator blocks the offending artifact from loading, preserves the evidence, and logs the findings for remediation. This ensures risky instructions are never activated while maintaining a transparent audit trail.

Does AI context security validation work with agent selections and context edits?

Yes, AI context security validation operates automatically across skill activations, agent selections, rule applications, and context edits. It detects high-severity threats across the entire context to ensure safe artifact loading and quick remediation when threats are detected.

Can I use a security middleware to block data exfiltration and policy bypass in AI context?

Yes, you can use a security middleware to block data exfiltration and policy bypass in AI context. The pre-loading validator detects dangerous patterns like unauthorized access and destructive commands, returning a JSON object to control artifact loading and reporting.

What are the limitations of pre-loading security gates for AI context?

Pre-loading security gates for AI context require the validator to run before any artifact is processed, meaning it must be placed correctly under .ai-context. It specifically targets high-severity threats, and effective remediation depends on reviewing the logged findings and blocked artifacts.