بنقرة واحدة
moai-alfred-ask-user-questions
Guide Alfred sub-agents to actively invoke AskUserQuestion for ambiguous decisions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Guide Alfred sub-agents to actively invoke AskUserQuestion for ambiguous decisions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
19-agent team structure, decision trees for agent selection, Haiku vs Sonnet model selection, and agent collaboration principles. Use when deciding which sub-agent to invoke, understanding team responsibilities, or learning multi-agent orchestration.
Master-Clone pattern implementation guide for complex multi-step tasks with full project context
Systematic code review guidance and automation. Apply TRUST 5 principles, check code quality, validate SOLID principles, identify security issues, and ensure maintainability. Use when conducting code reviews, setting review standards, or implementing review automation.
.moai/config.json official schema documentation, structure validation, project metadata, language settings, and configuration migration guide. Use when setting up project configuration or understanding config.json structure.
Claude Code context window optimization strategies, JIT retrieval, progressive loading, memory file patterns, and cleanup practices. Use when optimizing context usage, managing large projects, or implementing efficient workflows.
Guides agents through SPEC-First TDD workflow with context engineering, TRUST principles, and @TAG traceability. Essential for /alfred:1-plan, /alfred:2-run, /alfred:3-sync commands. Covers EARS requirements, JIT context loading, TDD RED-GREEN-REFACTOR cycle, and TAG chain validation.
| name | moai-alfred-ask-user-questions |
| version | 3.1.0 |
| created | "2025-10-22T00:00:00.000Z" |
| updated | "2025-11-04T00:00:00.000Z" |
| status | active |
| description | Guide Alfred sub-agents to actively invoke AskUserQuestion for ambiguous decisions. |
| keywords | ["interactive","clarification","decision-making","AskUserQuestion"] |
| allowed-tools | ["AskUserQuestion"] |
| 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