Skip to content

fix(skill): upload resource files under skill name#1919

Open
guslegend0510 wants to merge 5 commits into
agentscope-ai:mainfrom
guslegend0510:fix/issue-1906-skill-upload-path
Open

fix(skill): upload resource files under skill name#1919
guslegend0510 wants to merge 5 commits into
agentscope-ai:mainfrom
guslegend0510:fix/issue-1906-skill-upload-path

Conversation

@guslegend0510

Copy link
Copy Markdown
Contributor

AgentScope-Java Version

2.0.0-SNAPSHOT

Description

Fixes issue #1906: when a skill directory contains files other than SKILL.md, uploadSkillFiles() previously used skillId as the upload directory. For classpath-based skills, skillId may include a source-qualified prefix, which causes resource files to be written to the wrong path. This PR switches the upload target to skill.getName() and adds a regression test for uploading sibling resources such as SOUL.md.

Changes Made

  • Use the skill name as the upload directory for synthesized skills.
  • Add a regression test to verify resource files are written under the skill name directory.

How to Test

  • mvn -pl agentscope-core -Dtest=SkillBoxTest test

Related Issue

@guslegend0510 guslegend0510 requested a review from a team June 25, 2026 14:51
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

[Bug]:当skill目录下存在其他文件时,使用会存在问题

2 participants