rag-data-safety

Enforce data safety controls for RAG systems with provenance and access management.

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/gamingshadow608-star/agent-building-skills --skill rag-data-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag-data-safety
Source: https://github.com/gamingshadow608-star/agent-building-skills/tree/main/rag-data-safety
Command: npx skills add https://github.com/gamingshadow608-star/agent-building-skills --skill rag-data-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill safeguards sensitive information and maintains data integrity within Retrieval Augmented Generation (RAG) systems by enforcing strict controls on data retrieval, storage, and memory operations.

Core Features & Use Cases

  • Data Provenance: Ensures all data has traceable origins and trust levels.
  • Access Control & Filtering: Implements rules to filter malicious content and control data access.
  • Lifecycle Management: Manages data quarantine, retention, and deletion policies.
  • Use Case: Protect a customer support chatbot's long-term memory from ingesting and acting upon untrusted user inputs that might contain PII or malicious instructions.

Quick Start

Use the rag-data-safety skill to enforce provenance and define retention rules for all memory writes.

Frequently Asked Questions about rag-data-safety

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

FAQPage Schema
How do I prevent retrieval poisoning in a RAG system?

To prevent retrieval poisoning in a RAG system, you must enforce data provenance, establish trust boundaries, and filter malicious content before it reaches vector stores and retrievers. This prevents untrusted inputs from manipulating generation.

How do I protect a chatbot's long-term memory from malicious user inputs?

Protecting chatbot long-term memory requires implementing strict access control and filtering rules to block memory injection attacks. This ensures the system quarantines untrusted user inputs containing PII or malicious instructions before memory writes occur.

What is data provenance in retrieval augmented generation?

Data provenance in retrieval augmented generation ensures all data has traceable origins and assigned trust levels. Tracking data origins allows you to audit memory surfaces and verify that only trusted information informs generation outputs.

How do I implement data retention and deletion policies for vector stores?

Implementing data retention and deletion policies for vector stores requires defining explicit lifecycle management rules for data quarantine and deletion. This ensures outdated or compromised embeddings are systematically purged from memory surfaces.

Do I need to define a trust model to secure RAG memory management?

Yes, securing RAG memory management requires explicit definition of trust models and regular data flow audits. Defining trust boundaries is essential to prevent data exfiltration and control access across retrievers and embeddings.

What is the best way to audit data flow in retrieval augmented generation systems?

The best way to audit data flow in retrieval augmented generation systems is to enforce traceable data provenance alongside strict access control. Auditing data flows allows you to identify retrieval poisoning risks across memory surfaces and vector stores.