diff --git a/plugins/compound-engineering/CLAUDE.md b/plugins/compound-engineering/CLAUDE.md index 18196f8..d21246c 100644 --- a/plugins/compound-engineering/CLAUDE.md +++ b/plugins/compound-engineering/CLAUDE.md @@ -75,6 +75,11 @@ When adding or modifying skills, verify compliance with skill-creator spec: - [ ] Use imperative/infinitive form (verb-first instructions) - [ ] Avoid second person ("you should") - use objective language ("To accomplish X, do Y") +### AskUserQuestion Usage + +- [ ] If the skill uses `AskUserQuestion`, it must include an "Interaction Method" preamble explaining the numbered-list fallback for non-Claude environments +- [ ] Prefer avoiding `AskUserQuestion` entirely (see `brainstorming/SKILL.md` pattern) for skills intended to run cross-platform + ### Quick Validation Command ```bash diff --git a/src/utils/codex-agents.ts b/src/utils/codex-agents.ts index 620e1ce..23cc05a 100644 --- a/src/utils/codex-agents.ts +++ b/src/utils/codex-agents.ts @@ -18,7 +18,7 @@ Tool mapping: - Glob: use rg --files or find - LS: use ls via shell_command - WebFetch/WebSearch: use curl or Context7 for library docs -- AskUserQuestion/Question: ask the user in chat +- AskUserQuestion/Question: present choices as a numbered list in chat and wait for a reply number. For multi-select (multiSelect: true), accept comma-separated numbers. Never skip or auto-configure — always wait for the user's response before proceeding. - Task/Subagent/Parallel: run sequentially in main thread; use multi_tool_use.parallel for tool calls - TodoWrite/TodoRead: use file-based todos in todos/ with file-todos skill - Skill: open the referenced SKILL.md and follow it