diff --git a/pipeline_service/agent_loop.py b/pipeline_service/agent_loop.py index 1e34f90..8694be4 100644 --- a/pipeline_service/agent_loop.py +++ b/pipeline_service/agent_loop.py @@ -1096,6 +1096,7 @@ async def _load_skill_by_name(sor, project_id, role, org_id, name, file_path=Non - 不带 file_path:返回技能 SKILL.md 全文 + 关联文件清单(references/scripts/templates/assets)。 - 带 file_path:返回 skill 目录下对应子文件内容(仅限 references/scripts/templates/assets)。 """ + role = _normalize_role(role) # 归一化:裸名 'qc'/'pm' → 'agent.qc'/'agent.pm',否则加载不到角色技能目录 name = (name or '').strip() if not name: return 'FAIL: 需要技能名称'