Skip to content

Match skill responses to the user's language#679

Open
shrektan wants to merge 2 commits intogarrytan:mainfrom
shrektan:codex/match-user-language-in-skills
Open

Match skill responses to the user's language#679
shrektan wants to merge 2 commits intogarrytan:mainfrom
shrektan:codex/match-user-language-in-skills

Conversation

@shrektan
Copy link
Copy Markdown

This adds a small but explicit language rule to the shared skill voice preamble:

  • match the user's language by default
  • if the user is writing mostly in Chinese, respond in Chinese
  • only switch languages when the user asks, or when the source material is clearer in its original language

Why:
Many skills have long English instructions, which can unintentionally override the user's language context. In practice, that can make the agent reply in English even when the user is clearly interacting in Chinese.

Implementation:

  • update the shared voice generator in scripts/resolvers/preamble.ts
  • regenerate affected SKILL.md files
  • add a validation test so the rule does not regress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant