ask-questions

ask-questions is a command for Claude Code from davistroy/claude-marketplace. It costs 8 tokens per session (4,195 once invoked), scanned A, original, MIT.

An interactive command that walks through questions stored in a JSON file. JSON is a structured text format commonly used to store data and configuration.

In plain words
What is it for?
Use it with a question file created by the define-questions command. It supports an optional force mode when the input or output does not pass validation.
Why use it?
It makes it easier to answer a prepared set of requirements questions in sequence. Validation helps catch an incorrectly formed question file before the session starts.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument.

Part of the personal-plugin plugin — 29 skills, 23 commands, 10 agents, 2 hooks shipped together

Good fit Use it with a question file created by the define-questions command. It supports an optional force mode when the input or output does not pass validation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/davistroy/claude-marketplace/ask-questions
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/davistroy/claude-marketplace

Made for: Claude Code.

Or install personal-plugin, the plugin that ships this one along with the rest of its 29 skills, 23 commands, 10 agents, 2 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/davistroy/claude-marketplace/ask-questions/github.svg)](https://agentmods.dev/commands/davistroy/claude-marketplace/ask-questions)
Your own site
<a href="https://agentmods.dev/commands/davistroy/claude-marketplace/ask-questions"><img src="https://agentmods.dev/badge/commands/davistroy/claude-marketplace/ask-questions/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-questions

Your own site · 80×15
<a href="https://agentmods.dev/commands/davistroy/claude-marketplace/ask-questions"><img src="https://agentmods.dev/badge/commands/davistroy/claude-marketplace/ask-questions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,195 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.00008 $0.04195
Opus 5 $0.00004 $0.02098
Sonnet 5 $0.00002 $0.00839
Haiku 4.5 $0.00001 $0.00419

Measured 11d ago against content hash 027a983ce926, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ask-questions 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.

plugins/personal-plugin/commands/ask-questions.md · 487 lines

How it starts

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

Ask Questions Command

Interactively walk the user through answering questions from a JSON file produced by the /define-questions command.

Pipeline component: This command walks through a JSON question file interactively. For the combined extract → answer → update workflow, use /finish-document.

Input Validation

Required Arguments:

  • <questions-file> - Path to the JSON file created by /define-questions

Optional Arguments:

  • --force - Proceed even if input or output schema validation fails (not recommended)

Validation: If the questions file path is missing, display:

Usage: /ask-questions <questions-file> [--force]
Example: /ask-questions questions-PRD-20260110-143052.json
Example: /ask-questions reference/questions-requirements-20260114.json

Input

The user will provide a JSON file path after the slash command (e.g., /ask-questions questions-PRD-20260110.json). This file must follow the structure created by /define-questions.

Instructions

1. Load and Validate

  • Read the specified JSON file
  • Validate it conforms to the questions schema structure (see validation rules below)
  • Verify it contains the required questions array and metadata
  • Load the original source document referenced in metadata.source_document
  • Check for existing answer file (resume support - see below)
  • Report the total number of questions to the user

1.1 Resume Support

Before starting the Q&A session, check for an incomplete previous session:

  1. Use the Glob tool to find existing answers-[source-document]-*.json files in the same directory as the questions file

  2. If found, read the file and check metadata.status. If status is "in_progress": Report the session state as prose — previous file, progress (15 of 47 answered (32%)), and last activity — then ask with AskUserQuestion, exactly as specified in references/patterns/workflow.md:

    {
      "questions": [
        {
          "question": "How would you like to proceed with the interrupted session?",
          "header": "Resume",
          "multiSelect": false,
          "options": [
            {
              "label": "Resume (Recommended)",
              "description": "Continue from question 16 with all previous answers preserved"
            },
            {
              "label": "Start Fresh",
              "description": "Begin a new session; previous answers are backed up to a .bak file first"
            },
            {
              "label": "Abort",
              "description": "Exit without making changes"
            }
          ]
        }
      ]
    }
    
  3. On resume: Load existing answers and continue from metadata.last_question_answered + 1. Each answer entry has an answered: true/false field to identify which questions have responses.

  4. On start fresh: Backup existing file (rename with .bak suffix) and start from question 1

Read the full file on GitHub · 487 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 First seen · 487 lines · 8 tokens per session scan A 027a983ce926

Subscribe to this mod's changes

ask-questions is a command published in the GitHub repository davistroy/claude-marketplace (5 stars, last pushed 4d ago), licensed MIT. It adds 8 tokens to every session and 4,195 once invoked, about $0.0000 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-31.