mags-docs-search

mags-docs-search is a skill for Claude Code from doancan/mags. It costs 11 tokens per session (205 once invoked), scanned A, original, MIT.

A full-text search tool for finding information across a project’s documents. It returns matching files with relevant excerpts ranked by usefulness.

In plain words
What is it for?
Use it to search documentation for a topic, phrase, or technical question and review the matching passages.
Why use it?
It saves developers from opening documents one by one when they need to find a rule, design decision, or other project detail.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the mags plugin — 17 skills, 2 agents shipped together

Good fit Use it to search documentation for a topic, phrase, or technical question and review the matching passages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/doancan/mags/mags-docs-search
View source ↗ doancan/mags
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 doancan/mags --skill mags-docs-search
Clone the repo
git clone --depth 1 https://github.com/doancan/mags

Made for: Claude Code.

Or install mags, the plugin that ships this one along with the rest of its 17 skills, 2 agents.

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 mags-docs-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/doancan/mags/mags-docs-search/github.svg)](https://agentmods.dev/skills/doancan/mags/mags-docs-search)
Your own site
<a href="https://agentmods.dev/skills/doancan/mags/mags-docs-search"><img src="https://agentmods.dev/badge/skills/doancan/mags/mags-docs-search/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 mags-docs-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/doancan/mags/mags-docs-search"><img src="https://agentmods.dev/badge/skills/doancan/mags/mags-docs-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 205 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 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.1 $0.00011 $0.00205
Opus 5 $0.00005 $0.00102
Sonnet 5 $0.00002 $0.00041
Haiku 4.5 $0.00001 $0.00020

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

Security

Grade A, and why

mags-docs-search 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 8d 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.

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.

skills/mags-docs-search/SKILL.md · 38 lines

What it actually says

Search across all project documents using full-text search.

Usage

/mags-docs-search <query>

Steps

  1. Parse the query from the argument.
  2. Call mags_search_docs with the query string.
  3. Display results ranked by relevance:
    == Search: "<query>" ==
    
    1. docs/architecture/overview.md
       ...matching excerpt with context...
    
    2. docs/rules/backend.md
       ...matching excerpt with context...
    
    Found <N> results.
    
  4. If no results, suggest: "No matches. Try broader terms or run /mags-docs to browse."
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. 8d ago First seen · 38 lines · 11 tokens per session scan A 805f1c6e5b98

Subscribe to this mod's changes

mags-docs-search is a skill published in the GitHub repository doancan/mags (3 stars, last pushed 7mo ago), licensed MIT. It adds 11 tokens to every session and 205 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

portable-text-conversion

Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers…

sanity-io/agent-toolkit · 94 tokens

dokmatiq-docgen

Dokmatiq DocGen skill for Codex, Claude Code, and MCP-enabled AI assistants. Use this skill when the user wants to generate, transform, or analyze documents — including PDF, DOCX, ODT, or Excel/XLSX files — with optional stationery overlay (Briefpapier/letterhead/company letterhead branding applied to generated PDFs).…

dokmatiq/docgen-sdks · 308 tokens

n8n-binary-and-data

Handle files and binary data in n8n correctly. Use when working with files, images, PDFs, attachments, uploads or downloads, base64, vision/multimodal input, or when an AI agent needs a file as tool input or output — and whenever the user mentions $binary, binaryPropertyName, "read the PDF", "attach the file", "send…

czlonkowski/n8n-mcp · 135 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens

wiki

Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to 400K words.

SethGammon/Citadel · 56 tokens

excel-mcp

Excel MCP Server skill for Windows workbook automation. Use when an assistant needs rich MCP tools to create, inspect, modify, format, or analyze Excel files. Supports Power Query (M), Data Model/DAX, PivotTables, Tables, Ranges, Charts, Slicers, formatting, screenshots, VBA macros, connections, and calculation mode.…

sbroenne/mcp-server-excel · 106 tokens