noora-yes-or-no-choice-prompt

Installation
SKILL.md

Noora Yes Or No Choice Prompt

Use this skill when a Swift CLI needs a binary decision and the answer should be keyboard-driven rather than typed free-form.

Basic Pattern

import Noora

let shouldAuthenticate = Noora().yesOrNoChoicePrompt(
    title: "Authentication",
    question: "Would you like to authenticate?",
    defaultAnswer: true,
    description: "Authentication is required for remote actions.",
    collapseOnSelection: true
)

Guidance

  • Set defaultAnswer deliberately. Defaulting to true is appropriate when the safe or expected path is opt-in.
  • Use a short description only when the consequence of the choice is not obvious from the question.
  • Use this for boolean gates such as analytics, telemetry, authentication, cache reset, or confirmation flows.

Avoid

  • Using yes/no when there are really three or more choices.
  • Writing vague questions like “Continue?” without saying what will happen.
  • Defaulting destructive actions to true.
Related skills
Installs
1
First Seen
Mar 31, 2026