restore

A restore command for Claude RAG, which stores searchable records from past conversations and tool results. It brings back data that was previously soft-deleted, meaning hidden rather than permanently erased.

In plain words
What is it for?
Restoring a specified project, showing what came back, and confirming that its records are searchable again.
Why use it?
It lets deleted project data return to search without recreating it.

Skill for Claude CodeCodex

Part of the claude-rag plugin — 9 skills, 19 commands, 6 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/thisisyoyodev/claude-rag/restore
Any agent
npx skills add ThisisYoYoDev/claude-rag --skill restore
Clone the repo
git clone --depth 1 https://github.com/ThisisYoYoDev/claude-rag

Made for: Claude Code, Codex.

Or install claude-rag, the plugin that ships this one along with the rest of its 9 skills, 19 commands, 6 hooks, 1 MCP server.

Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 264 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.00264
Opus 5 $0.00010 $0.00132
Sonnet 5 $0.00004 $0.00053
Haiku 4.5 $0.00002 $0.00026

Measured 3d ago against content hash a975769244fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

restore scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/plugins/claude-rag/config.json 2>/dev/null || echo '{"connection":{"endpoint":"https://api.clauderag.io"}}'

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(curl *), AskUserQuestion
skills/restore/SKILL.md · 34 lines

What it actually says

RAG Restore

Restore soft-deleted data from the RAG database.

Instructions

  1. Read the plugin config:

    cat ~/.claude/plugins/claude-rag/config.json 2>/dev/null || echo '{"connection":{"endpoint":"https://api.clauderag.io"}}'
    
  2. If "$ARGUMENTS" is provided, find and restore that project:

    curl -s -X POST <endpoint>/api/v1/projects/<id>/restore
    
  3. If no argument, list all projects (including deleted) and let the user choose:

    • First show active projects
    • Then query for deleted projects (this would need a backend endpoint — for now, inform the user to provide the project ID)
  4. After restore, show:

    • What was restored (project name, event counts)
    • Confirm data is back in search results
  5. Remind: "Restored data will appear in search results again immediately."

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 34 lines · 19 tokens per session scan B a975769244fd

Subscribe to this mod's changes

restore is a skill published in the GitHub repository ThisisYoYoDev/claude-rag (9 stars, last pushed 5mo ago), licensed MIT. It adds 19 tokens to every session and 264 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cli-anything-chromadb

Command-line interface for ChromaDB - A stateless CLI for managing vector database collections, documents, and semantic search. Designed for AI agents and automation via the ChromaDB HTTP API v2.

HKUDS/CLI-Anything · 47 tokens

pgvector-semantic-search

Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…

timescale/pg-aiguide · 190 tokens

postgres-hybrid-text-search

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…

timescale/pg-aiguide · 162 tokens

byted-bytehouse-hybrid-search

ByteHouse 混合检索 Skill,支持全文检索 + 向量检索,结合 RRF 重排算法实现更精准的检索结果。当用户需要在ByteHouse数据库中进行全文检索 + 向量检索,结合 RRF 重排算法实现更精准的检索结果时,使用此Skill。.

bytedance/agentkit-samples · 79 tokens

digoal

Portable digital employee distilled from digoal's personal blog for PostgreSQL, PolarDB, DuckDB, AI+database, vector/RAG, database operations, source-code reading, technical content creation, open-source community strategy, and "德说" style strategic analysis. Use when asked to answer as 德哥/digoal, mine a local…

digoal/blog · 151 tokens

qdrant-clients-sdk

Qdrant provides client SDKs for various programming languages, allowing easy integration with Qdrant deployments.

qdrant/skills · 28 tokens