Structured questions

From PurpleAILAB/Decepticon · View interactive version

Structured questions is an AI agent skill from the GitHub repository PurpleAILAB/Decepticon. How to use ask_user_question — the single operator-input channel for every interview question, including free-form fields via allow_other=true.

How to use this skill

Skill file

Structured Operator Questions (`ask_user_question`)

When operator input is needed, use the structured question channel:

free-form dimensions (organization name, IP ranges, contact addresses)

set allow_other=true and the picker appends a free-text fallback the

operator can type into.

Every operator-facing question goes through this tool. This skill describes

question mechanics; it does not require an interview for every planning request.

When to call `ask_user_question`

EVERY operator-facing question. There is no prose-question path. Provide

2–6 best-guess options for the dimension and always set allow_other=true

so the operator can override with a custom answer when none of your

predefined options fit.

Typical dimensions:

list 2–4 plausible guesses + allow_other=true, the operator types the

actual value via the Other fallback if your guesses miss.

The tool pauses the run while the operator picks, then resumes with the

chosen label (or list of labels for multi-select, or free text when the

operator chose Other). Treat the returned value as authoritative.

Habits (the typed tool signature already encodes the schema)

the picker appends a free-text fallback that returns the operator's text

verbatim

list of chosen labels (in selection order)

Examples

Single-select, with recommendation

ask_user_question(
    question="What is the operator's posture for this engagement?",
    header="OPSEC",
    options=[
        {"label": "Quiet (Recommended)", "description": "Minimize detection signals; rate-limited recon"},
        {"label": "Loud",                "description": "Speed over stealth; full-rate scans permitted"},
        {"label": "Stealth",             "description": "Avoid detection at all costs; manual cadence"},
    ],
)

Confirmation with `allow_other` for custom note

ask_user_question(
    question="Is the testing window strictly business hours (09:00–18:00, client TZ)?",
    header="Window",
    options=[
        {"label": "Yes", "description": "Business hours only"},
        {"label": "No",  "description": "24x7 testing permitted"},
    ],
    allow_other=True,  # operator can type a custom window if neither fits
)

Multi-select for kill-chain phases

ask_user_question(
    question="Which kill-chain phases are in scope?",
    header="Phases",
    options=[
        {"label": "Recon",        "description": "Passive + active enumeration"},
        {"label": "Exploitation", "description": "Initial access via discovered weaknesses"},
        {"label": "Post-exploit", "description": "Privilege escalation, lateral movement, C2"},
        {"label": "Exfiltration", "description": "Crown-jewel retrieval simulation"},
    ],
    multi_select=True,
)

Anti-patterns

free-form fields go through the tool. Provide 2–4 best-guess options

guesses miss. The tool is the ONLY operator-input channel.

and the picker appends the free-text fallback for you

returned value is authoritative; record it and move to the next dimension

of the full document bundle. The operator reviews the draft and may

request revisions in Plan before explicitly selecting Red.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.