fix(templates): replace Claude-only AskUserQuestion instruction with neutral ask-the-user guidance - #1464
Conversation
…neutral ask-the-user guidance The workflow skill/command templates told agents to use the AskUserQuestion tool, which only exists in Claude Code. The same templates generate skills and commands for every supported tool, so OpenCode (whose tool is named question), Factory Droid (whose native AskUser parser errors on the instruction), Codex, and the rest were instructed to use a tool they don't have. The guidance is now runtime-neutral, matching the TodoWrite fix in #1403. Fixes #920 Fixes #717 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (22)
📝 WalkthroughWalkthroughWorkflow templates and generated skills replace explicit ChangesTool-neutral user guidance
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying openspec-docs with
|
| Latest commit: |
ee8f706
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ee3cdd2a.openspec-docs.pages.dev |
| Branch Preview URL: | https://fix-generic-ask-user-guidanc.openspec-docs.pages.dev |
alfred-openspec
left a comment
There was a problem hiding this comment.
Reviewed at 16bf214. The neutral phrasing preserves selection, multi-select, confirmation, and clarification semantics; 19 parity/vocabulary tests, build, lint, generation for every supported tool with zero forbidden tool references, the 2,279-test cross-platform suite, and all CI/security checks pass.
Closes #920
Closes #717
Status
Ready. Full suite green (2,279 tests), parity/vocabulary/completion meta-tests pass, e2e verified across all supported tools, three independent adversarial reviews found no defects.
What was wrong
Every workflow skill/command template told agents to "Use the AskUserQuestion tool" — a tool that only exists in Claude Code. The same templates generate assets for every supported tool, so:
question; agents tried to call a tool that doesn't exist.Error: Invalid AskUser questionnaire format at line 1.28 references across 10 workflow templates, plus the 15 mirrored lines in the committed
skills/*/SKILL.mdfiles thatnpx skills add Fission-AI/OpenSpecinstalls verbatim.How it was fixed
Same shape as the merged TodoWrite fix (#1403): the instruction is now runtime-neutral. Every interaction constraint the old text encoded survives:
Claude Code still surfaces its native question UI from the neutral phrasing (same accepted tradeoff as #1403).
skills/*/SKILL.mdregenerated viapnpm generate:skills; golden hashes viapnpm regen:parity-hashes; patch changeset included, so existing users pick up the new text through the normalopenspec updatefull-file rewrite.Proof
openspec init --tools allon this branch: 0 occurrences ofAskUserQuestion/TodoWrite/Task tool/subagent_typein any generated asset (all three tool-name complaints in Skills assume Claude Code tool API when using with OpenCode #920 now resolved); the neutral phrasing appears in 124 generated files, including.opencode/and.factory/.vitest run: 112 files, 2,279 tests pass, includingskill-templates-parity,skillssh-parity(regenerates SKILL.md from source and diffs), vocabulary sweep, and completion registry.src/parses the old string — the Factory adapter passes template text through untouched, which is exactly why the fix belongs at the template layer.Notes
🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Tests