custom-clarifying-questions-slash-command

custom-clarifying-questions-slash-command is a command for Claude Code from runnithan/claudex-setup. It costs 0 tokens per session (349 once invoked), scanned A, original, MIT.

A custom slash command that asks clarifying questions before making a non-trivial code change. A slash command is a reusable instruction invoked with a command such as /clarify.

In plain words
What is it for?
Use it to restate a task, collect answers, draft a plan, and wait for approval before code is written.
Why use it?
It exposes missing scope, constraints, edge cases, and completion criteria before implementation begins.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the claudex-setup plugin — 3 skills, 21 commands, 6 agents shipped together

Good fit Use it to restate a task, collect answers, draft a plan, and wait for approval before code is written.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/runnithan/claudex-setup/custom-clarifying-questions-slash-command
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.

Clone the repo
git clone --depth 1 https://github.com/runnithan/claudex-setup

Made for: Claude Code.

Or install claudex-setup, the plugin that ships this one along with the rest of its 3 skills, 21 commands, 6 agents.

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 custom-clarifying-questions-slash-command

README.md
[![agentmods](https://agentmods.dev/badge/commands/runnithan/claudex-setup/custom-clarifying-questions-slash-command.svg)](https://agentmods.dev/commands/runnithan/claudex-setup/custom-clarifying-questions-slash-command)
Your own site
<a href="https://agentmods.dev/commands/runnithan/claudex-setup/custom-clarifying-questions-slash-command"><img src="https://agentmods.dev/badge/commands/runnithan/claudex-setup/custom-clarifying-questions-slash-command.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 349 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.00000 $0.00349
Opus 5 $0.00000 $0.00175
Sonnet 5 $0.00000 $0.00070
Haiku 4.5 $0.00000 $0.00035

Measured 7d ago against content hash 631b6c34f008, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

custom-clarifying-questions-slash-command 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 7d 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.

lessons/commands/custom-clarifying-questions-slash-command.md · 27 lines

What it actually says

Build a Custom Slash Command That Asks Clarifying Questions First

TL;DR

Package the "ask before you build" habit into a reusable custom slash command: it captures the task, asks ~5 clarifying questions, drafts a plan, and waits for approval before executing.

Why it matters

Tristen O'Brien reports a ~43% output-quality improvement from a custom command that forces clarity up front. The win isn't the questions themselves, it's making the behavior repeatable as a one-word command instead of re-typing the spec-developer preamble every session. This turns the existing [[spec-developer-workflow-with-clarifying-questions]] prompt into reusable infrastructure.

How to apply

Create .claude/commands/<name>.md (e.g. clarify.md) whose body instructs Claude to:

  1. Restate the task in its own words.
  2. Ask 5+ clarifying questions covering scope, constraints, edge cases, and the definition of done.
  3. Wait for answers, then produce a plan.
  4. Pause for explicit approval before writing any code.

Invoke it with /clarify <task> at the start of any non-trivial work. Pair with [[plan-mode-before-every-nontrivial-change]] so the plan is reviewable before execution.

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. 7d ago First seen · 27 lines · 0 tokens per session scan A 631b6c34f008

Subscribe to this mod's changes

custom-clarifying-questions-slash-command is a command published in the GitHub repository runnithan/claudex-setup (1 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 349 tokens. 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-31.