ask-question

Prompt users with option-based questions and aggregate multiple questions into one interaction.

2|Updated Nov 27, 2017
One-click install
npx skills add https://github.com/tomoasleep/dotfiles --skill ask-question-tomoasleep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ask-question
Source: https://github.com/tomoasleep/dotfiles/tree/main/config/opencode/skills/ask-question
Command: npx skills add https://github.com/tomoasleep/dotfiles --skill ask-question-tomoasleep

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill facilitates asking users questions and collecting confirmations when a decision depends on user input.

Core Features & Use Cases

  • Question with options: Present choices to the user with clear headers and labels.
  • Multi-question aggregation: Consolidate several questions into a single interaction to streamline user decisions.
  • Use Case: When you need to confirm a choice or collect input from the user before proceeding.

Quick Start

Use the ask-question skill to prompt the user with a simple choice. Example invocation: question({ questions: [{ question: "Which option do you choose?", header: "Choice", options: [ { label: "Option A", description: "Description" } ] }] })

Frequently Asked Questions about ask-question

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prompt users with options and collect confirmations in an AI workflow?

To prompt users with options and collect confirmations, you can use a structured question tool to present choices with clear headers and labels. This aggregates multiple questions into a single interaction, streamlining user decisions before the AI proceeds.

What is the best way to consolidate multiple user questions into a single interaction?

Consolidating multiple user questions into a single interaction requires aggregating option-based prompts. You construct structured questions with headers, labels, and descriptions, allowing the AI to render and process all confirmations at once.

How do I structure a question with options for user interaction?

To structure a question with options for user interaction, define a question object containing a header, the question text, and an array of options. Each option should include a label and description to clearly present choices to the user.

When do I need to use option-based prompts for user decisions?

You need to use option-based prompts for user decisions when a workflow depends on user input. This mechanism ensures the AI pauses to collect necessary confirmations or choices before proceeding with the next action.

Does the ask-question skill work without external dependencies?

The ask-question skill works without external dependencies, relying solely on a built-in question tool. The AI is expected to render the provided structured prompts and process the user's selected options directly.

What are the limitations of aggregating multiple questions for user interaction?

A limitation of aggregating multiple questions is that the AI must correctly render and process the entire structured prompt simultaneously. The skill expects the system to handle the question tool natively, without relying on external components.