ask-user

ask-user is a skill for Claude Code from garrytan/gbrain. It costs 60 tokens per session (2,220 once invoked), scanned A, original, MIT.

A reusable way for an agent to present two to four clear choices and wait for the user’s answer before continuing. It works across interfaces such as chat buttons, Discord, and the command line.

In plain words
What is it for?
Use it when choosing where to file information, deciding how to interpret a request, or confirming bulk deletions and overwrites. The user’s response determines the next action.
Why use it?
It prevents an agent from guessing during ambiguous, risky, or destructive decisions. It also provides an explicit way to skip or cancel.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: built for gbrain.

Part of the gbrain plugin — 46 skills, 2 plugins shipped together

Good fit Use it when choosing where to file information, deciding how to interpret a request, or confirming bulk deletions and overwrites. The user’s response determines the next action.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/garrytan/gbrain/ask-user
About the project

GBrain is a memory and retrieval layer for AI agents that searches, connects, and synthesizes information from stored sources. It is used to give coding agents and autonomous agents access to knowledge beyond their current code, including shared company information with access controls. The catalogue add-ons help agents operate GBrain and connect it to agent workflows.

garrytan/gbrain · 33,897 stars · on GitHub

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 garrytan/gbrain --skill ask-user
Clone the repo
git clone --depth 1 https://github.com/garrytan/gbrain

Made for: Claude Code.

Or install gbrain, the plugin that ships this one along with the rest of its 46 skills, 2 plugins.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/garrytan/gbrain/ask-user"><img src="https://agentmods.dev/badge/skills/garrytan/gbrain/ask-user.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,220 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
  • Snyk pass 7 Sept 2026
  • 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.00060 $0.02220
Opus 5.5 $0.00024 $0.00888
Sonnet 5.5 $0.00012 $0.00444
Haiku 4.5 $0.00006 $0.00222

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

Security

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 11d 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.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

  • ask-user — 97% identical, 16 lines differ
  • ask-user — 97% identical, 16 lines differ
  • ask-user — 94% identical, 29 lines differ
plugin/skills/ask-user/SKILL.md · 260 lines

How it starts

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

Ask User — Choice Gate Pattern

Contract

  • Present 2-4 options (no more — decision paralysis kicks in past 4).
  • Always include an escape hatch (Skip, Cancel, or "none of these").
  • Stop the turn immediately after presenting choices. No follow-up tool calls, no preemptive action, no default-and-proceed.
  • The user's response triggers the next turn. Acknowledge briefly, then branch.
  • One question per message — never stack multiple choice gates.
  • Self-explanatory option labels: action verb plus brief qualifier, not "Option 1".

What This Is

A formalized pattern for presenting users with 2-4 options and stopping execution until they respond. This is the canonical way to gate on user input in any GBrain-powered agent.

This is NOT a traditional async/await. In an LLM agent, "gating" means:

  1. Present the choices (buttons or numbered options)
  2. Explicitly stop the current turn (do not proceed)
  3. The user's response triggers the next turn
  4. Read the response and branch accordingly

When To Use

  • Ambiguous requests with multiple valid interpretations
  • Destructive operations (bulk deletes, overwrites)
  • Filing/routing decisions ("where should this go?")
  • Priority triage ("which should I do first?")
  • Cold-start phase gates ("ready for the next import source?")
  • Any fork where the wrong default wastes significant work

When NOT To Use

  • Clear, unambiguous instructions → just do it
  • Low-stakes decisions → pick the best option and mention it
  • Time-critical operations where delay costs more than a wrong choice
  • When the user has already expressed a preference

How To Present Choices

Platform-agnostic format (works everywhere)

Present choices as a clear question with numbered or labeled options:

🔀 **How should I handle this?**

[context about the decision — 1-3 lines max]

1. **Option A** — short description
2. **Option B** — short description
3. **Option C** — short description
4. **Skip** — do nothing for now

With inline buttons (Telegram, Discord, Slack)

Read the full file on GitHub · 260 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. 11d ago Changed · -1 lines 744f58e61e24
  2. 1mo ago Changed 63f535500e5e
  3. 1mo ago Changed · +1 lines f0bfe573fc3a
  4. 2mo ago Changed · +7 lines bbf43870cb9f
  5. 3mo ago First seen · 253 lines · 60 tokens per session scan A 3eb82b0aeb87

Subscribe to this mod's changes

ask-user is a skill published in the GitHub repository garrytan/gbrain (33,897 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 2,220 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-08-30.

Related

ask-user compared with skills from other repositories

ask-user next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ask-usergarrytan/gbrainSkill34ktodayMITA60Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code