local-rag

local-rag is a skill for Claude Code, Codex from nigo81/nigo-skills. It costs 159 tokens per session (2,433 once invoked), scanned A, original, no licence file.

A local document knowledge base that supports semantic search, meaning it finds related passages by meaning rather than exact words. It manages separate projects containing DOCX, PDF, and Markdown files and uses a two-stage search with text matching and result ranking.

In plain words
What is it for?
Use it to import documents, search internal policies and regulations, find applicable clauses, retrieve information from files, and compare two policy documents.
Why use it?
It helps locate relevant rules or passages across large collections of Chinese policy and procedure documents. Separate projects keep documents from different work areas isolated.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to import documents, search internal policies and regulations, find applicable clauses, retrieve information from files, and compare two policy documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nigo81/nigo-skills/local-rag
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.

Any agent
npx skills add nigo81/nigo-skills --skill local-rag
Clone the repo
git clone --depth 1 https://github.com/nigo81/nigo-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for local-rag

README.md
[![agentmods](https://agentmods.dev/badge/skills/nigo81/nigo-skills/local-rag/github.svg)](https://agentmods.dev/skills/nigo81/nigo-skills/local-rag)
Your own site
<a href="https://agentmods.dev/skills/nigo81/nigo-skills/local-rag"><img src="https://agentmods.dev/badge/skills/nigo81/nigo-skills/local-rag/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-rag

Your own site · 80×15
<a href="https://agentmods.dev/skills/nigo81/nigo-skills/local-rag"><img src="https://agentmods.dev/badge/skills/nigo81/nigo-skills/local-rag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,433 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.1 $0.00159 $0.02433
Opus 5 $0.00079 $0.01216
Sonnet 5 $0.00032 $0.00487
Haiku 4.5 $0.00016 $0.00243

Measured 11d ago against content hash ae8620cc0e89, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

local-rag scanned grade A with 0 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 11d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (mcp_server.py, src/__init__.py, src/__main__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

local-rag/SKILL.md · 210 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 11d ago First seen · 210 lines · 159 tokens per session scan A ae8620cc0e89

Subscribe to this mod's changes

local-rag is a skill published in the GitHub repository nigo81/nigo-skills (124 stars, last pushed 19d ago), with no licence file. It adds 159 tokens to every session and 2,433 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

markitdown

Convert heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 61 tokens

azure-ai

Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.

microsoft/skills · 76 tokens

doc-parse

A document parser that converts PDFs, PowerPoint files, spreadsheets, and Word files into structured Markdown with metadata and a confidence score.

anbeime/skill · 43 tokens

edgeparse

Extract structured content from any PDF for AI agents, RAG pipelines, and Copilot Skills. Use this skill whenever the user wants to read, analyze, or reason about a PDF document; needs to feed document content to an LLM; mentions PDF extraction, parsing, or conversion; wants tables, headings, or bounding boxes from a…

pleaseai/claude-code-plugins · 0 tokens

ingest

Process unstructured documents into search-ready chunks. Use this skill when the user wants to process PDFs or unstructured documents into JSONL chunks using Docling. Activate even if the user says document processing, chunking, Docling, PDF processing, or chunk quality evaluation. For cloud-scale ingestion via OSIS…

opensearch-project/opensearch-agent-skills · 74 tokens

opendataloader-pdf

A tool for extracting structured content from PDF files, such as text, tables, formulas, and scanned pages. It can produce Markdown, JSON with page positions, or HTML for use in search and AI document systems.

chujianyun/skills · 137 tokens