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 DuanZGit/D-Hub --skill ask-megit clone --depth 1 https://github.com/DuanZGit/D-HubWrote 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/duanzgit/d-hub/ask-me)<a href="https://agentmods.dev/skills/duanzgit/d-hub/ask-me"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/ask-me/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.
<a href="https://agentmods.dev/skills/duanzgit/d-hub/ask-me"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/ask-me.svg" alt="Reviewed on agentmods" width="80" 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.00059 | $0.01199 |
| Opus 5.5 | $0.00024 | $0.00480 |
| Sonnet 5.5 | $0.00012 | $0.00240 |
| Haiku 4.5 | $0.00006 | $0.00120 |
Grade A, and why
ask-me 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 14d 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 — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ask-me
一件事对应一个技能就够了。这个技能只干一件事:把你现在要干的事对到一两个技能上。
不打字面匹配——先 route.py 算分,再在候选里挑。候选外的技能不许自己另起一个,那是路由失败,要重写 query。
1. 跑一次
python3 <skill-base-dir>/scripts/route.py "<你现在要做的事,原话>"
原话直接丢进去,别翻译成技能术语。用户说「这破玩意儿跑不起来」就传这句, 不要改写成「故障诊断与排查」——索引里存的就是人话。
默认出 1 条,多给几条用 --top 3。想看懂为什么用它加 --explain:
python3 <skill-base-dir>/scripts/route.py "帮我看看这段代码为啥这么写" --top 3 --explain
2. 挑,别列
拿到结果只看前两条,然后:
- 第 1 条分数 ≥ 第 2 条 2 倍 → 只报第 1 条,别把第二名也说出来
- 两条接近 → 一起报,各一句话说明差在哪(用户自己选)
- 都没命中(脚本直接说「无对口技能」)→ 说实话「没有对口技能,我直接做」,然后直接做。 脚本自带 8 分门槛,低于门槛它会自己拒答;不要自己去翻后面的候选往上凑,那一步等于把噪声当信号。
输出就三行:技能名、路径、为什么是它。不要三档清单、不要「Primary/Supporting/Optional」, 不要贴分数,不要说「另外还有一些相关技能」。用户要的是答案不是菜单。
3. 什么时候别用
- 用户已经点名技能 → 直接用,别路由
- 任务一眼看穿只有一条路(改个错字、查个文件)→ 直接做
- 自己知道该用哪个 → 用,别绕一圈求确认
路由是给「拿不准」用的,不是给每件事套的流程。
4. 索引过期时重建
技能增删、改描述、改触发词之后:
python3 <skill-base-dir>/scripts/build_index.py
扫的是 ~/.pi/agent/skills、~/.agents/skills、~/.pi/agent/npm/node_modules/*/skills、
~/.pi/agent/extensions/*/skills、项目级 .pi/skills 等 8 个根。索引存
scripts/index.json(121 个技能约 267KB),--check-index 能报出没登记进
~/.agents/skills/INDEX.md 的用户级技能。
5. 触发词表
scripts/triggers.json 是人写的补充表,键是技能名、值是用户真会说的那句话。
自动切词切不出「复盘」「挂单」「看不懂」这类口语,靠这张表补。
加词的标准:用户会说出这句话,但不会报技能名。加之前先跑
route.py "<你想的那句话>" --explain,看是不是已经有别的技能在抢这个说法。
6. 显式/自动的台账
scripts/apply_modes.py 按 KEEP_AUTO 名单统一改各技能 frontmatter 的
disable-model-invocation:在名单里就删掉(变自动,模型能看见),不在就加上(变显式,省上下文)。
python3 <skill-base-dir>/scripts/apply_modes.py --check # 只看差异
python3 <skill-base-dir>/scripts/apply_modes.py --apply # 真改盘
bash <skill-base-dir>/scripts/selftest.sh # 17 条断言
ask-me 自己不在名单里(2026-11-21 用户要求关闭自动触发),别把它加回去。
7. 改完要回灌
真源在 ~/projects/D-Hub/skills/ask-me,pi 读的是
~/.config/magpie/library/skills/ask-me 的软链。改完真源必须:
cp -a ~/projects/D-Hub/skills/ask-me/. ~/.config/magpie/library/skills/ask-me/
再更新 ~/.agents/skills/.sources.json 里该技能的 local_hash(sha256(SKILL.md)[:16]),
然后 commit + push。只改真源不回灌 = 改动不生效。
What ships with it
7 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.
- 14d ago Changed · -14 lines · -11 tokens per session b075a55db96b
- 29d ago First seen · 109 lines · 70 tokens per session scan A e33151ad678e
ask-me is a skill published in the GitHub repository DuanZGit/D-Hub (0 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 1,199 once invoked, about $0.0002 per session on Opus 5.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-11-06.
ask-me compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ask-meDuanZGit/D-Hub | Skill | 0 | yesterday | MIT | A | 59 | Claude Code |
| edgeone skill scannerTencent/AI-Infra-Guard | Skill | 7.9k | 3d ago | Apache-2.0 | A | 148 | Claude Code, Codex |
| babysitkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 45 | Claude Code |
| rubber-duckkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 161 | Claude Code, Codex |
| project-wikiGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 63 | Claude Code, Codex |
| mindos-zhGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 490 | Claude Code |
| mindos-maxGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 145 | Claude Code |