feat(understand): auto-detect conversation language on first run#378
Merged
Lum1104 merged 2 commits intoJun 4, 2026
Merged
Conversation
When /understand runs with no --language flag and no stored outputLanguage, step 3.6 now infers the conversation language and — only when it is non-English — confirms once before generating, then persists the choice to config.json. English conversations keep the exact same silent `en` path; --language flag and stored config still take priority. README documents the behavior; version bumped 2.7.5 -> 2.7.6 across all five manifests (user-visible behavior change). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On the first
/understandrun in a project (no--languageflag, no storedoutputLanguage), the skill now detects the conversation language and — only when it is non-English — confirms once before generating, persisting the choice toconfig.json. This fixes the silent English-default surprise for non-English users, who previously only discovered the mismatch after paying the full cost of an analysis run.The confirmation gate fires only when the detected language is non-English and no language has been chosen yet. English conversations follow the exact same silent
enpath as before. The--languageflag and stored config both take priority over detection. Non-interactive invocations fall back to the detected language with a notice instead of blocking.Linked issue(s)
Refs #141 (the
--languagefoundation this builds on). Complementary to #374 (dashboard runtime switcher) — this sets the generation-time default rather than the view-time UI.How I tested this
zhpersisted; (2) re-run uses stored config, no gate; (3) English conversation → silent, no gate (no regression); (4)--language ja→ flag wins; (5) override at gate (zhdetected, typeen) →en.pnpm test— not run; this is a markdown-only change (SKILL.md prompt + README), no code paths touched.Versioning
Design + plan included under
docs/superpowers/(consistent with the repo's existing specs there).🤖 Generated with Claude Code