Skip to content

[Bug]: 单技能仓库(无 skills 子目录)无法加载技能 #1790

Open
chcodex/agentscope-java
#1

Description

@chcodex

问题描述

当技能仓库的 baseDir 根目录直接包含 SKILL.md 文件时(即单技能仓库结构),当前实现无法识别并加载该技能。

复现步骤

  1. 创建一个技能仓库,SKILL.md 直接放在仓库根目录(无 skills/ 子目录)
  2. 调用 getAllSkills() 或 loadSkill()
  3. 技能无法被发现或加载

期望行为

支持以下两种仓库结构:

  • 多技能仓库: baseDir/skills/<skill-name>/SKILL.md
  • 单技能仓库: baseDir/SKILL.md(根目录直接包含 SKILL.md)

实际行为

只有多技能仓库结构被识别,单技能仓库结构被忽略。

关联 PR

Activity

  1. added
    bug
    on Jun 17, 2026
  2. chcodex commented on Jun 17, 2026

    @chcodex
    ContributorAuthor
    Image Image 这个去 /tmp/agentscope-git-skills-xxx的子目录找则永远找不到SKILL.md,因为它就在当前目录而不是子目录
  3. added
    area/ext/integration
    on Jun 17, 2026
  4. moved this from Backlog to In progress in AgentScope Javaon Jun 17, 2026
  5. moved this from In progress to Done in AgentScope Javaon Jun 17, 2026
  6. moved this from Done to In progress in AgentScope Javaon Jun 17, 2026
  7. changed the title [-][Bug]:JGit CloneCommand 与 git clone 有差异[/-] [+][Bug]: 单技能仓库(无 skills 子目录)无法加载技能[/+] on Jun 29, 2026
  8. chcodex commented on Jun 29, 2026

    @chcodex
    ContributorAuthor

    @AlbumenJ @chickenlj 你好,这个 issue 已经关联了 PR #1824,修复了单技能仓库无法加载的问题。麻烦帮忙 review 一下,谢谢!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ext/integrationbug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions