[dotnet-code] Extract skill deduplication helper#351
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR refactors the skills provider to extract the skill name deduplication logic into a dedicated helper function, keeping the existing behavior while improving local readability and reuse within the skills package.
Changes:
- Extracted source-skill deduplication logic into
deduplicateSkillsByName. - Updated
loadSkillsto delegate deduplication and return the deduplicated slice.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment has been minimized.
This comment has been minimized.
Cross-Repo API Consistency ReviewResult: ✅ No parity issues found — change is Go-internal only This PR extracts inline skill deduplication logic from the unexported
This change is out of scope for cross-repo parity review. No comparison against the upstream Python or .NET implementations is needed.
|
This pull request refactors the skill deduplication logic in
provider.goto improve code organization and reusability. The deduplication code is extracted into a new helper function, making the main function cleaner and separating concerns.Code organization and refactoring:
loadSkillsinto a new helper functiondeduplicateSkillsByName, improving readability and reusability. (agent/skills/provider.go, agent/skills/provider.goL311-R326)agent/skills/provider.go, agent/skills/provider.goL311-R326)