mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-27 01:40:33 -04:00
refac
This commit is contained in:
@@ -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 '
|
||||
'<terminal-cwd>/.agents/skills/<skill-name>/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: '
|
||||
'<terminal-root-cwd>/.agents/skills/<skill-name>/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.'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user