agentsclimarketplace

Ai rag defense

Skill ebarti/skills/ai-rag-defense

📚 Agent skills distilled from technical books — AI Engineering, Context Engineering, Designing Data-Intensive Applications, and more. Agent-agnostic, plain Markdown. Give your AI agent a bookshelf.

Install
npx -y skills add ebarti/skills --skill ai-rag-defense

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Token reduction, retrieval fidelity, and prompt-injection defense layers for the Context Engine. Covers a Summarizer agent for proactive context reduction, micro-context engineering (prompt design inside agents), high-fidelity RAG with source-metadata citations, layered untrusted-context defenses against prompt injection, and grounded-reasoning validation that prevents hallucination. Use this skill when: - Reducing token costs by adding a Summarizer agent - Designing system prompts inside specialist agents (micro-context) - Adding citations and source metadata to RAG outputs - Defending agents against prompt injection / data poisoning - Validating agent reliability across high-fidelity / summarization / grounded test cases - Preventing hallucination when retrieval returns no result

SKILL.md

2.1 KB, as published. Nobody here has run it

AI RAG Defense

Knowledge from "Context Engineering for Multi-Agent Systems" (Chapters 6-7). The reduction, fidelity, and defense layers that turn a working engine into a trustworthy one.

Quick Start

  1. Check guidelines.md to find which files to load
  2. Load only relevant files (each topic has knowledge.md, rules.md, examples.md)
  3. Apply guidance to your work

Contents

References

CategoryPurpose
summarizer-agentCost-management agent for proactive context reduction
micro-context-engineeringPrompt design inside agents (macro vs micro)
high-fidelity-ragSource-metadata-on-chunks pattern, citations-mandatory Researcher
input-sanitizationUntrusted context boundary, prompt-injection threat model + smells
grounded-reasoningReport-negative-finding pattern, multi-case validation

Workflows

WorkflowPurpose
workflows/add-summarizer.mdIntegrate Summarizer agent for proactive context reduction
workflows/add-citations.mdUpgrade RAG to high-fidelity (source metadata + cite)
workflows/defend-against-injection.mdAdd untrusted-context boundary + run grounded-reasoning validation suite

Guidelines

See guidelines.md for task-based file selection.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.