Skip to content

fix: point skill prompt at exact custom skill paths#2084

Open
LittleChenLiya wants to merge 1 commit intobytedance:mainfrom
LittleChenLiya:Admire/fix-issue-2083
Open

fix: point skill prompt at exact custom skill paths#2084
LittleChenLiya wants to merge 1 commit intobytedance:mainfrom
LittleChenLiya:Admire/fix-issue-2083

Conversation

@LittleChenLiya
Copy link
Copy Markdown
Contributor

@LittleChenLiya LittleChenLiya commented Apr 10, 2026

Summary

  • expose each injected skill's exact absolute SKILL.md path as a path attribute in the prompt
  • explicitly tell the model not to guess alternate skill directories and clarify the /mnt/skills/public vs /mnt/skills/custom split
  • add prompt coverage for custom skill paths so nested custom skills keep their exact runtime location

Root cause

The skills prompt told the model to use a path attribute from each skill tag, but the tag only exposed a nested <location> field and did not spell out the custom-skill directory convention clearly. That left the model to infer custom skill paths on its own, which could send it to the wrong directory.

Fixes #2083.

Testing

  • uv run --directory backend pytest tests/test_lead_agent_skills.py -q
  • uv run --directory backend python - to inspect the generated prompt and verify a custom skill is injected as /mnt/skills/custom/.../SKILL.md

@LittleChenLiya LittleChenLiya marked this pull request as draft April 10, 2026 07:55
@LittleChenLiya LittleChenLiya marked this pull request as ready for review April 10, 2026 08:53
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.

web页面对话框无法自主查找到已经存在的SKILL.md,导致用户自定义skills不被使用。

1 participant