Detect persistent-memory poisoning and RAG/knowledge-base contamination via dialogue testing. Use when the agent has long-term memory, a user/preference store, or writes to a retrievable knowledge base.
安装
npx skills add Tencent/AI-Infra-Guard --skill memory-rag-poisoning-detectionnpx skills add Tencent/AI-Infra-Guard --skill memory-rag-poisoning-detection -a claude-code -gnpx skills add Tencent/AI-Infra-Guard --skill memory-rag-poisoning-detection -a codex -ggemini skills install https://github.com/Tencent/AI-Infra-Guard.git --path agent-scan/agent_scan/prompt/skills/memory-rag-poisoning-detectiongh skill install Tencent/AI-Infra-Guard memory-rag-poisoning-detectiongit clone --depth 1 https://github.com/Tencent/AI-Infra-Guard /tmp/Tencent__AI-Infra-Guard
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/Tencent__AI-Infra-Guard/agent-scan/agent_scan/prompt/skills/memory-rag-poisoning-detection ~/.claude/skills/memory-rag-poisoning-detection # Claude Code
cp -R /tmp/Tencent__AI-Infra-Guard/agent-scan/agent_scan/prompt/skills/memory-rag-poisoning-detection ~/.agents/skills/memory-rag-poisoning-detection # Codex, Cursor, Gemini CLI, Copilot, OpenCode