ask-user

ask-user is a skill for Claude Code, Codex from timurgaleev/memex. It costs 60 tokens per session (2,069 once invoked), scanned A, a copy of ask-user, MIT.

A choice-and-confirmation pattern for coding agents. It presents a small set of clear options, pauses, and continues only after the user chooses one.

In plain words
What is it for?
Use it for routing decisions, ambiguous requests, deletion or overwrite confirmations, and any workflow where the agent must wait for a human choice before acting.
Why use it?
It prevents an agent from guessing when a request has several valid interpretations or could cause a destructive change. It also gives the user an explicit way to skip or cancel.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/timurgaleev/memex/ask-user
Any agent
npx skills add timurgaleev/memex --skill ask-user
Clone the repo
git clone --depth 1 https://github.com/timurgaleev/memex

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/timurgaleev/memex/ask-user.svg)](https://agentmods.dev/skills/timurgaleev/memex/ask-user)
Your own site
<a href="https://agentmods.dev/skills/timurgaleev/memex/ask-user"><img src="https://agentmods.dev/badge/skills/timurgaleev/memex/ask-user.svg" alt="Measured on agentmods" 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,069 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod 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 $0.00060 $0.02069
Opus 5 $0.00030 $0.01035
Sonnet 5 $0.00012 $0.00414
Haiku 4.5 $0.00006 $0.00207

Measured 3d ago against content hash abd9680c4cad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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

This is a copy

94% identical to ask-user — 22 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

deploy/skills/ask-user/SKILL.md · 255 lines

How it starts

The opening of the file, as written. The whole thing — 255 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 memex-connected 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 · 255 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. 3d ago First seen · 255 lines · 60 tokens per session scan A abd9680c4cad

Subscribe to this mod's changes

ask-user is a skill published in the GitHub repository timurgaleev/memex (8 stars, last pushed 9d ago), licensed MIT. It adds 60 tokens to every session and 2,069 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to ask-user, differing in 22 lines, and is treated as a copy.

Related

Other skills, from other repositories

design-mcp-server

Design the tool surface, resources, and service layer for a new MCP server. Use when starting a new server, planning a major feature expansion, or when the user describes a domain/API they want to expose via MCP. Produces a design doc at docs/design.md that drives implementation.

cyanheads/obsidian-mcp-server · 62 tokens

api-context

Canonical reference for the unified Context object passed to every tool and resource handler in @cyanheads/mcp-ts-core. Covers the full interface, its RequestContext base, all sub-APIs (ctx.log, ctx.state, ctx.requestInput, ctx.inputs, ctx.enrich, ctx.content), and when to use each.

cyanheads/obsidian-mcp-server · 79 tokens

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/obsidian-mcp-server · 85 tokens

api-testing

Testing patterns for MCP tool/resource handlers using createMockContext and Vitest. Covers mock context options, handler testing, McpError assertions, format testing, Vitest config setup, and test isolation conventions.

cyanheads/obsidian-mcp-server · 46 tokens

field-test

Exercise tools, resources, and prompts against a live HTTP server via MCP JSON-RPC over curl. Starts the server, surfaces the catalog, runs real and adversarial inputs, and produces a tight report with concrete findings and numbered follow-up options. Use after adding or modifying definitions, or when the user asks to…

cyanheads/obsidian-mcp-server · 76 tokens

api-config

Reference for core and server configuration in @cyanheads/mcp-ts-core. Covers env var tables with defaults, priority order, server-specific Zod schema pattern, and Workers lazy-parsing requirement.

cyanheads/obsidian-mcp-server · 43 tokens