skills: preserve natural chinese phrasing for telegram buttons

This commit is contained in:
Eve
2026-04-15 23:05:21 +08:00
parent 16079fe27d
commit a1e7d02406

View File

@@ -30,6 +30,17 @@ Treat these as button-worthy even if they are not written as direct questions:
These are usually implicit binary decisions and should default to inline buttons such as `[好,繼續] [先不要]` rather than requiring free-text confirmation.
## Natural-language preservation rule
When the original sentence is already natural Chinese, preserve the original wording as much as possible. Prefer changing only the reply mechanism to inline buttons instead of rewriting the sentence into a stiffer or more mechanical question.
Good:
- Original: `如果你要,我現在就幫你開跑。`
- Keep the sentence, add buttons: `[好,開始] [先不要]`
Avoid unnecessary rewrites like:
- `請問是否要立即執行?`
- `是否要我現在開始處理此事項?`
## Button design
- Keep labels short: 1-4 words
- 2-4 buttons is ideal
@@ -37,6 +48,7 @@ These are usually implicit binary decisions and should default to inline buttons
- Keep `callback_data` stable and unique per flow step, e.g. `reminder_time_15m`, `deploy_confirm_yes`
- When the source prompt is a numbered list, convert each visible option into a short button label while preserving the original order
- When the source prompt is implicit yes/no, convert it into a clear binary choice without changing the underlying intent
- Prefer preserving natural Chinese phrasing and only replacing the free-text reply path with buttons
Recommended layouts:
- Binary: one row `[Yes] [No]`
@@ -122,5 +134,11 @@ Buttons: `[1] [2] [3]` or `[xxx] [ooo] [yyy]`
Text: `如果你要,我可以現在幫你處理。`
Buttons: `[好,繼續] [先不要]`
### Natural Chinese phrasing
Text: `如果你要,我現在就幫你開跑。`
Buttons: `[好,開始] [先不要]`
## Decision rule
Default to buttons whenever Eric is being asked to choose, confirm, defer, or select the next action on Telegram. This includes numbered lists that would otherwise require a reply like `1`, `2`, or `3`, and implicit yes/no prompts that would otherwise require a reply like `好` or `不用`.
When the original wording is already natural Chinese, keep the wording and just turn the response path into buttons.