diff --git a/backend/open_webui/utils/skills.py b/backend/open_webui/utils/skills.py index e49a1bc220..a07a2c37ed 100644 --- a/backend/open_webui/utils/skills.py +++ b/backend/open_webui/utils/skills.py @@ -104,9 +104,9 @@ def _build_skill_create_prompt(user_request: str) -> str: '2. Apply every requirement, focus, and constraint in the request to what ' 'the skill covers and emphasizes.\n' '3. Author one SKILL.md using the standards below.\n' - '4. Save with the selected terminal tools. Run `printf %s "$HOME"` ' - 'through `run_command`, then write SKILL.md at ' - '/.agents/skills//SKILL.md. If the skill ' + '4. Save with the selected terminal tools. Run `pwd` through ' + '`run_command`, then write SKILL.md at ' + '/.agents/skills//SKILL.md. If the skill ' 'needs supporting files, add them under scripts/, references/, ' 'templates/, or assets/.\n\n' f'{OPEN_WEBUI_SKILL_AUTHORING_STANDARDS}\n\n'