feat(adk): improve skill middleware prompt for better LLM understanding#724
Merged
feat(adk): improve skill middleware prompt for better LLM understanding#724
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #724 +/- ##
==========================================
+ Coverage 81.77% 81.79% +0.01%
==========================================
Files 129 129
Lines 12419 12416 -3
==========================================
Hits 10156 10156
+ Misses 1508 1504 -4
- Partials 755 756 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
meguminnnnnnnnn
approved these changes
Jan 29, 2026
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
This PR optimizes the skill middleware prompts to improve LLM understanding and consistency.
Changes
1. Use English XML tags in Chinese prompts
<技能>,<名称>) to English tags (<skill>,<name>)toolDescriptionTemplateChinesevariable since it's now identical to the English version2. Use "Skill" terminology in Chinese prompts
3. Clarify skill name usage
<name>tag as the skill name"4. Add relative path conversion guidance
5. Remove product-specific rules
Files Changed
adk/middlewares/skill/prompt.go: Updated prompts and removed duplicate templateadk/middlewares/skill/skill.go: SimplifiedrenderToolDescriptionfunction