local-seek

local-seek is a skill for Claude Code, Codex from taxueseek/argo. It costs 0 tokens per session (1,744 once invoked), scanned A, original, MIT.

A Chinese-language local file-search workflow that first locates matching files, then shows nearby lines, and finally reads only the needed sections.

In plain words
What is it for?
Use it to search file names or contents, count matches, view small context windows, filter by file type, return structured JSON, or search more broadly when ordinary local search is insufficient.
Why use it?
It reduces time and output when searching a computer by avoiding full-file reading before the relevant files and passages are known. It is intended for local files, alongside a separate tool for web searches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search file names or contents, count matches, view small context windows, filter by file type, return structured JSON, or search more broadly when ordinary local search is insufficient.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taxueseek/argo/local-seek
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 taxueseek/argo --skill local-seek
Clone the repo
git clone --depth 1 https://github.com/taxueseek/argo

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-seek

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/taxueseek/argo/local-seek"><img src="https://agentmods.dev/badge/skills/taxueseek/argo/local-seek.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,744 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.01744
Opus 5 $0.00000 $0.00872
Sonnet 5 $0.00000 $0.00349
Haiku 4.5 $0.00000 $0.00174

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

Security

Grade A, and why

local-seek 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 5d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/eval_seek.py, scripts/seek.py, tests/test_rank_pinyin.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.

sub-skills/local-seek/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

local-seek — 本地高效搜索(v1.2.0)

搜本地文件与内容的第一入口。核心承诺:工具输出即答案,模型零探索成本。 与 Argo(联网搜索)互补:Argo 搜网络,本 skill 搜本机。

三层渐进式策略(token 纪律的核心)

不要一上来就读文件。按层递进,每层输出都是压缩过的:

干什么 命令 输出量
L1 定位 找到「在哪个文件」 seek.py "词" --count 或 --filename 每文件一行
L2 上下文 看命中位置附近 seek.py "词" --context 2 每命中 3 行
L3 精读 读关键段落 read_file 按行号局部读取 按需

任何一次搜索,先想清楚该停在哪一层。默认只做 L1。

统一入口

所有搜索走本 skill 内 scripts/seek.py(相对 argo 根:sub-skills/local-seek/scripts/seek.py), 让它决定路由,不要自己拼 rg/fd 参数:

# 以下以 argo 安装根为 cwd;或写死 $ARGO_HOME/sub-skills/local-seek/scripts/seek.py
python3 sub-skills/local-seek/scripts/seek.py "查询词"                 # 默认:当前目录全文
python3 sub-skills/local-seek/scripts/seek.py "查询词" --path ~/notes   # 指定目录
python3 sub-skills/local-seek/scripts/seek.py "查询词" --count          # 先数命中,再决定是否深入
python3 sub-skills/local-seek/scripts/seek.py "查询词" --filename       # 按文件名
python3 sub-skills/local-seek/scripts/seek.py "查询词" --spotlight      # 全盘兜底(PDF/邮件/笔记)
python3 sub-skills/local-seek/scripts/seek.py "查询词" --type py,ts
python3 sub-skills/local-seek/scripts/seek.py "查询词" --json           # 结构化输出
python3 sub-skills/local-seek/scripts/seek.py "查询词" --exact          # 关闭中文扩展,精确匹配
python3 sub-skills/local-seek/scripts/seek.py "查询词" --exclude 某文件 # 额外排除(可重复)
python3 sub-skills/local-seek/scripts/seek.py --outline 文件路径        # 文件结构(def/class/标题/顶层key)
python3 sub-skills/local-seek/scripts/seek.py --lines 10-50 文件路径    # 按行读取,替代 read_file 全文
python3 sub-skills/local-seek/scripts/seek.py "裸except" --structural   # 结构搜索(空catch/裸except/装饰函数等)
python3 sub-skills/local-seek/scripts/seek.py --git-log 文件路径        # 文件的最近提交历史
python3 sub-skills/local-seek/scripts/seek.py --git-blame 12 文件路径   # 第 12 行的提交归属

内置智能行为(无需手动指定):

  • 固定字符串:查询是纯字面量时自动用 rg -F;含 regex 元字符但解析失败 (如 interface{})自动回退 -F。
  • 中文扩展:中文查询自动「精确优先、扩展兜底」,精确无命中时按 2-gram 放宽(如「数据抓取」放宽到「数据」「抓取」),提升召回;--exact 关闭。
  • PCRE2 检测:查询含 look-around 时检查本机 rg 是否支持,不支持给出 明确提示而非报错。
  • 结构搜索:--structural 按语义检索代码模式(裸 except、空 catch、 装饰函数、函数/类定义),中英文别名都认,零安装(rg -U 多行实现)。
  • Git 联动:--git-log / --git-blame 直接回答「这行谁改的、最近动过什么」, 文件不在仓库或未跟踪时给出明确区分,不报错。

Read the full file on GitHub · 99 lines

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. 5d ago Changed 3c9c189d38d4
  2. 10d ago First seen · 99 lines · 0 tokens per session scan A 497757d25579

Subscribe to this mod's changes

local-seek is a skill published in the GitHub repository taxueseek/argo (119 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,744 tokens. 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.