From a096961a31499be23890b98a040ecf2917405568 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 14 Sep 2026 17:57:09 -0400 Subject: [PATCH] refac --- backend/open_webui/utils/skills.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/open_webui/utils/skills.py b/backend/open_webui/utils/skills.py index a07a2c37ed..5adc071986 100644 --- a/backend/open_webui/utils/skills.py +++ b/backend/open_webui/utils/skills.py @@ -104,11 +104,12 @@ 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 `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' + '4. Save with the selected terminal tools under the terminal root cwd: ' + '/.agents/skills//SKILL.md. Do not save ' + 'under a browsed subfolder or transient shell pwd. If the terminal root ' + 'is unavailable, use `pwd` as the fallback. If the skill needs ' + 'supporting files, add them under scripts/, references/, templates/, ' + 'or assets/.\n\n' f'{OPEN_WEBUI_SKILL_AUTHORING_STANDARDS}\n\n' 'When done, tell the user the skill name, location, and one-line summary.' )