ask-me

ask-me is a skill for Claude Code from DuanZGit/D-Hub. It costs 59 tokens per session (1,199 once invoked), scanned A, original, MIT.

A skill directory and task-routing helper that scans installed skills, updates their index, and recommends which ones to use and in what order. It can also identify skills that are hidden from the agent.

In plain words
What is it for?
Use it when a task could match several skills or when you do not know which skill to select. It can scan, check the index, report skills whose automatic or explicit status has changed, and provide paths to skill instructions.
Why use it?
It reduces the chance of choosing the wrong skill or missing an installed one. It uses the current installation instead of relying only on a possibly outdated list.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it when a task could match several skills or when you do not know which skill to select. It can scan, check the index, report skills whose automatic or explicit status has changed, and provide paths to skill instructions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duanzgit/d-hub/ask-me
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 DuanZGit/D-Hub --skill ask-me
Clone the repo
git clone --depth 1 https://github.com/DuanZGit/D-Hub

Made for: Claude Code.

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 ask-me

README.md
[![agentmods](https://agentmods.dev/badge/skills/duanzgit/d-hub/ask-me/github.svg)](https://agentmods.dev/skills/duanzgit/d-hub/ask-me)
Your own site
<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.

agentmods 80×15 button for ask-me

Your own site · 80×15
<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>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,199 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.00059 $0.01199
Opus 5.5 $0.00024 $0.00480
Sonnet 5.5 $0.00012 $0.00240
Haiku 4.5 $0.00006 $0.00120

Measured 14d ago against content hash b075a55db96b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/apply_modes.py, scripts/build_index.py, scripts/route.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.

skills/ask-me/SKILL.md · 95 lines

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。只改真源不回灌 = 改动不生效。

Read the full file on GitHub · 95 lines

Files

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.

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. 14d ago Changed · -14 lines · -11 tokens per session b075a55db96b
  2. 29d ago First seen · 109 lines · 70 tokens per session scan A e33151ad678e

Subscribe to this mod's changes

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.

Related

ask-me compared with skills from other repositories

ask-me next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ask-meDuanZGit/D-HubSkill0yesterdayMITA59Claude Code
edgeone skill scannerTencent/AI-Infra-GuardSkill7.9k3d agoApache-2.0A148Claude Code, Codex
babysitkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A45Claude Code
rubber-duckkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A161Claude Code, Codex
project-wikiGeminiLight/MindOSSkill707yesterdayMITA63Claude Code, Codex
mindos-zhGeminiLight/MindOSSkill707yesterdayMITA490Claude Code
mindos-maxGeminiLight/MindOSSkill707yesterdayMITA145Claude Code