Skip to content

Use AskUserQuestion tool on Claude Code for structured user input #745

Closed

Description

@peterdrier

Context

Superpowers is cross-platform (Claude Code, Cursor, Codex, OpenCode, Gemini CLI), so skills use plain text for user questions. This is the right default. However, Claude Code provides a dedicated AskUserQuestion tool with structured UI — selectable options, multi-select, headers, and previews — and skills could use it when available.

Problem

Skills like brainstorming and writing-plans frequently pause for user input (confirming designs, choosing between options, clarifying requirements). Plain text works but misses the structured UX that Claude Code offers:

  • Clear, scannable options instead of reading paragraphs to find the question
  • Structured responses that reduce ambiguity
  • Visual distinction between output and questions

Proposed Solution

Add platform-aware guidance to skills that pause for user input: prefer AskUserQuestion when available, fall back to text otherwise. Since Claude Code makes AskUserQuestion available as a tool, skills can simply reference it conditionally:

"When asking the user a question with discrete options, use the AskUserQuestion tool if available. Otherwise, present options as numbered text."

This keeps cross-platform compatibility intact while improving UX on Claude Code.

Skills affected

Any skill that pauses for user input, primarily:

  • brainstorming — multiple rounds of clarifying questions
  • writing-plans — spec confirmation checkpoints
  • executing-plans — "ready to proceed?" gates
  • requesting-code-review — review scope selection

Acceptance Criteria

  • Skills that pause for user input prefer AskUserQuestion when the tool is available
  • Falls back to plain text on platforms without the tool
  • No breaking changes for non-Claude-Code environments

Activity

  1. added a commit that references this issue on Mar 15, 2026
    486863a
  2. obra commented on Mar 15, 2026

    @obra
    Owner

    Dupe of #114 - See #114 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions