xiaohongshu
xiaohongshu
moai-alfred-ask-user-questions
Guide Alfred sub-agents to actively invoke AskUserQuestion for ambiguous decisions.
Full skill instructions
| Field | Value |
|---|---|
| Skill Name | moai-alfred-ask-user-questions |
| Version | 3.1.0 (2025-10-27) |
| Core Tool | AskUserQuestion (Claude Code built-in) |
| Auto-load | When Alfred detects ambiguity in requests |
| Tier | Alfred (Workflow Orchestration) |
Purpose: Empower Alfred sub-agents to actively ask clarifying questions whenever user intent is ambiguous, rather than guessing.
Leverages Claude Code's native AskUserQuestion tool to collect explicit, structured user input that transforms vague requests into precise specifications.
Key capabilities:
Golden Rule: When in doubt, ask the user instead of guessing.
Why:
Pattern:
Ambiguous request detected
↓
Call AskUserQuestion({questions: [...]})
↓
User selects from clear options
↓
Proceed with confirmed specifications
const answer = await AskUserQuestion({
questions: [
{
question: "How should we implement this?",
header: "Approach", // max 12 chars
multiSelect: false,
options: [
{
label: "Option 1", // 1-5 words
description: "What it does and why you'd pick it."
},
{
label: "Option 2",
description: "Alternative with different trade-offs."
}
]
}
]
});
// Returns: { "Approach": "Option 1" }
| Constraint | Reason |
|---|---|
| 1-4 questions max | Avoid user fatigue |
| 2-4 options per Q | Prevent choice overload |
| Header ≤12 chars | TUI layout fit |
| Label 1-5 words | Quick scanning |
| Description required | Enables informed choice |
| Auto "Other" option | Always available for custom input |
Trigger: "Add feature X" or "Build Y" without specifics
Trigger: Destructive action (delete, migrate, reset)
Trigger: "Which framework/library/approach?"
Trigger: "Which features to enable/include?"
Trigger: Dependent decisions (Q2 depends on Q1 answer)
Detailed examples and code: See examples.md
| Sub-agent | When to Ask | Example Trigger |
|---|---|---|
spec-builder (/alfred:1-plan) | SPEC title vague, scope undefined | "Add feature" without specifics |
code-builder (/alfred:2-run) | Implementation approach unclear | Multiple valid implementation paths |
doc-syncer (/alfred:3-sync) | Sync scope unclear | Full vs partial sync decision |
Detailed integration patterns: See reference.md
Complete best practices guide: See reference.md
try {
const answer = await AskUserQuestion({...});
} catch (error) {
console.log("User cancelled survey");
// Fall back to default or abort
}
const answer = await AskUserQuestion({...});
if (answer["Header"] === "Other" || !VALID_OPTIONS.includes(answer["Header"])) {
validateCustomInput(answer["Header"]);
}
moai-alfred-spec-metadata-validation (SPEC clarity)moai-alfred-ears-authoring (requirement phrasing)moai-foundation-specs (SPEC structure)When to use:
How:
AskUserQuestion({ questions: [...] })Benefits:
For detailed API specifications: reference.md
For real-world examples: examples.md
End of Skill | Refactored 2025-10-27
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience