home / skills / bdambrosio / cognitive_workbench / is-question
This skill detects whether input text is a question and returns a boolean signal to guide conversational flows.
npx playbooks add skill bdambrosio/cognitive_workbench --skill is-questionReview the files below or copy the command above to add this skill to your agents.
---
name: is-question
description: Check if text contains a question
type: prompt_augmentation
parameters: none
examples:
- '{"type":"if","condition":{"type":"tool_condition","tool":"is-question","target":"$input"},"then":[...]}'
---
# Is Question
Determines if the input text is a question or contains a question.
## Purpose
Boolean condition for identifying interrogative content in control flow.
## Input Format
Accepts:
- Plain text string
## Output Format
**CRITICAL**: Return ONLY the word "true" or "false", nothing else.
- Return "true" if the text is a question or contains a question
- Return "false" if the text is not a question
Do NOT include explanations, punctuation, or any other text. Only output "true" or "false".
## Examples
Input: "What is the weather like today?"
Output: true
Input: "The weather is nice today."
Output: false
Input: "I wonder if it will rain. Should I bring an umbrella?"
Output: true
This skill detects whether a given text is a question or contains one. It returns a strict boolean indicator to drive control flow or filters in pipelines. The output is deliberately minimal to support automated decision-making. Use it wherever you need an unambiguous question/non-question signal.
The skill analyzes the input plain text for interrogative patterns, punctuation, and common question words to determine if the text is a question or contains a question. It supports single sentences and multi-sentence inputs and flags true if any part appears interrogative. The skill returns ONLY the word "true" or "false" with no extra characters or explanation.
What exactly does the skill return?
It returns only the word "true" or "false" with no additional text or punctuation.
Can it handle multi-sentence inputs?
Yes — it returns true if any sentence in the input appears to be a question.
Should I expect contextual or intent classification?
No — this skill strictly detects interrogative form; use additional classifiers for intent.