Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ai-shifu/interaction-user-input-defaults
当 ai-shifu 与 markdown-flow-ui 之间需要同步交互式 markdown 状态时使用本技能。将原始 `user_input` 持久化在应用状态中,把 `userInput` 传给 `ContentRender` 或 `MarkdownFlow`,并让 markdown-flow-ui 负责推导按钮、输入框和已选项默认值,避免在业务代码重复解析。
Passed 20 of 22 test cases with the skill, and 9 of 22 without it.
and 10 more in the full report
11 fixed9 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
In an interactive card with a text prompt input, who is responsible for populating the text box default value when a message re-renders from saved state?
| Checked | Without skill | With skill |
|---|---|---|
| Delegates text input default restoration by passing the userInput prop. | Missed | Passed |
The instructions your model reads when the skill loads.
user_input)在应用层模型中以原始 user_input 保存交互状态,并向下传递给 markdown-flow-ui。
不要在业务代码中重复实现 user_input -> defaultButtonText/defaultInputText/defaultSelectedValues 的解析逻辑。
“是否重新生成”的判定必须基于最后一个真实业务 element(如 content/interaction),不能直接使用列表尾项;需要排除 LIKE_STATUS、ASK、loading 等辅助项。
OnSendContentParams 时,只做一次转换,得到稳定的 user_input 字符串。user_input 保存到聊天项或预览项。userInput 的 ContentRender 或 MarkdownFlow 渲染交互内容。selectedValues、inputText、buttonText。user_input 要可序列化,以便 UI 默认值稳定恢复。test cases passed, vs 9 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.