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 agentmods add skills/edlsh/pi-ask-user/ask-usernpx skills add edlsh/pi-ask-user --skill ask-usergit clone --depth 1 https://github.com/edlsh/pi-ask-userWrote 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/edlsh/pi-ask-user/ask-user)<a href="https://agentmods.dev/skills/edlsh/pi-ask-user/ask-user"><img src="https://agentmods.dev/badge/skills/edlsh/pi-ask-user/ask-user.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 | $0.00048 | $0.01371 |
| Opus 5 | $0.00024 | $0.00685 |
| Sonnet 5 | $0.00010 | $0.00274 |
| Haiku 4.5 | $0.00005 | $0.00137 |
Grade A, and why
ask-user 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 yesterday.
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 — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ask User Decision Gate
Use this skill to force explicit user alignment before consequential decisions.
This skill is about decision control, not general chit-chat.
Non-negotiable rule
Invoke ask_user before proceeding when any of the following is true:
- The next step changes architecture, schema, API contracts, deployment strategy, or security posture.
- The work is costly to undo (large refactor, migration, destructive edit, production-facing behavior change).
- Requirements, constraints, or success criteria are unclear, conflicting, or missing.
- Multiple valid options exist and the trade-off is preference-dependent.
- You are about to assume something that can materially change implementation.
Do not skip this gate unless the user has already provided a clear, explicit decision for the exact trade-off.
Agent Protocol Handshake (required)
Follow this handshake in order.
1) Detect boundary
Classify the current step as:
high_stakesambiguousbothclear(no gate needed)
If classification is not clear, continue.
2) Gather evidence first
Before asking, gather context from available tools (read, bash, exa, ref, etc.).
Do not ask the user to decide blind.
3) Synthesize context
Prepare a short neutral summary (3-7 bullets or short paragraph) covering:
- current state
- key constraints
- trade-offs
- recommendation (if any)
4) Ask one focused question
Call ask_user with one decision at a time:
question: concrete decision promptcontext: synthesized summaryoptions: 2-5 clear choices when possibleallowMultiple:falseunless independent selections are genuinely neededallowFreeform: usuallytruedisplayMode(optional):"overlay"(default) or"inline". Use"inline"when preceding assistant context (summary, trade-offs, recommendation) is essential to the decision and should remain visible — overlays cover the conversation underneath. The user may set a personal default via thePI_ASK_USER_DISPLAY_MODEenvironment variable; only pass this when you intentionally want to override it for one call.contextExpanded(optional):trueopens oversized context fully expanded instead of collapsed behind a one-line summary. The user may set a personal default viaPI_ASK_USER_CONTEXT_EXPANDED; only pass this when the context is the evidence the user needs to weigh the options.
What ships with it
1 file 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.
- yesterday Changed · +1 lines 6ed9c3ef88a7
- 5d ago First seen · 163 lines · 48 tokens per session scan A 4e7615a29066
ask-user is a skill published in the GitHub repository edlsh/pi-ask-user (149 stars, last pushed 2d ago), licensed MIT. It adds 48 tokens to every session and 1,371 once invoked, about $0.0002 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-30.
Other skills, from other repositories
agent-release-swarm
Agent skill for release-swarm - invoke with $agent-release-swarm.
agent-code-analyzer
Agent skill for code-analyzer - invoke with $agent-code-analyzer.
add-resend
Add Resend (email) channel integration via Chat SDK.
add-macos-statusbar
Add a macOS menu bar status indicator for NanoClaw. Shows a bolt icon with a green/red dot indicating whether NanoClaw is running, with Start, Stop, and Restart controls. macOS only.
git-commit
Generate well-formatted git commit messages following conventional commit standards.
text-normalization-and-large-file-processing
对Excel文件进行文本标准化清洗(如去除异常前缀、提取纯中文字符等),并,最终输出清洗后的Excel文件并提供下载链接。.