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.
npx skills add eaglesakura/agent-skills --skill markdown-searchgit clone --depth 1 https://github.com/eaglesakura/agent-skillsWrote 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.
[](https://agentmods.dev/skills/eaglesakura/agent-skills/markdown-search)<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/markdown-search"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/markdown-search.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00162 | $0.01727 |
| Opus 5 | $0.00081 | $0.00864 |
| Sonnet 5 | $0.00032 | $0.00345 |
| Haiku 4.5 | $0.00016 | $0.00173 |
Grade A, and why
markdown-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.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ドキュメント検索(Context 最適化)
実装・設計・レビューの前に、既存ドキュメントから必要最小限だけを Context に載せる SKILL である。 全文をいきなり読まず、見出し一覧(行範囲)→ 指定範囲 →(必要なら)全文 の順で深さを上げる。
段階の意図は references/context-loading.md を参照する。
いつ使うか
- コーディング・詳細設計・レビュー前のナレッジ収集
- 「どこに書いてあるか」を探すとき
### DO:/### DO NOT:を横断したいとき- 大きな
*.mdを読む前に構造だけ把握したいとき
優先して見る配置
リポジトリルート(.git があるディレクトリ)からの相対パス:
AGENTS.mdやRule/Instructionによって指定されたプロジェクト固有ディレクトリdocs/: 標準ドキュメントディレクトリREADME.md: 標準README.cursor/skills/.agents/skills/apm_modules/.ai-agent/memory/(場所はworkspace-layout/ 用途はworkspace-agent-temporary)
同梱スクリプト
行範囲付き TOC と範囲抽出は、この SKILL の scripts/md_section.py を使う(Python 3 / 標準ライブラリのみ)。
SKILL_DIR は本 SKILL.md があるディレクトリ(.cursor/skills/・.agents/skills/・packages/.../.apm/skills/ いずれでも可)。
SCRIPT="$SKILL_DIR/scripts/md_section.py"
# Stage 1: 見出し + 行範囲(子見出しを含む終端)
# 内容 SHA-256 が同一のファイルは、先に現れた 1 件だけ対象にする(コピー二重ロード防止)
python3 "$SCRIPT" toc path/to/file.md
python3 "$SCRIPT" toc --max-level 2 path/to/dir
python3 "$SCRIPT" toc --grep 'DO NOT' path/to/file.md
# 内容重複を落とした path 一覧だけ欲しいとき
python3 "$SCRIPT" unique path/to/directory
python3 "$SCRIPT" unique -v path/a.md path/b.md # 除外した path を stderr に出す
# Stage 2: 指定範囲だけ出力
python3 "$SCRIPT" print path/to/file.md 629 637
python3 "$SCRIPT" print path/to/file.md --at 675
python3 "$SCRIPT" print path/to/file.md --title '循環参照'
path:start-end が既に分かっているときは sed -n 'start,endp' file でもよい。
コードフェンス内の # は見出し扱いにしない。終端は同レベル以上の次見出しの直前(末尾空行は trim)。
toc / unique は既定で内容ハッシュ重複を除外する。意図的に全コピーを見たいときだけ toc --keep-duplicates を使う。
把握手順(3 段階)
Stage 1 — 見出し一覧と行範囲を取る
- 対象 path(ファイルまたは少数の候補)を決め、TOC を取る
- 複数ファイル横断の当たり付けは
--max-level 2から始め、必要ならレベルを下げる - 出力の
path:start-endと見出しテキストだけで関連性を判断する(この時点で本文を読まない) - HQ / APM で同内容が複数 path にコピーされていることがある。内容ハッシュが一致するファイルは先頭 1 件だけを候補にし、以降の Stage でも同じ本文を二重ロードしない
DO / DO NOT を探すときも、まず TOC か見出し grep で当たりを付ける。
横断検索の前に unique で重複を落とし、一致する内容は最初の 1 ファイルだけを対象にする:
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 8d ago First seen · 116 lines · 162 tokens per session scan A 976ee7728a01
markdown-search is a skill published in the GitHub repository eaglesakura/agent-skills (2 stars, last pushed 2d ago), licensed MIT. It adds 162 tokens to every session and 1,727 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-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…