fix(learn): extend existing skills during relearning
This commit is contained in:
@@ -201,10 +201,15 @@ def build_learn_prompt(user_request: str) -> str:
|
||||
"1b. Apply every requirement, focus, and constraint in the request to "
|
||||
"the skill you author — these govern what the SKILL.md covers and "
|
||||
"emphasizes, not just which sources you read.\n"
|
||||
"2. Author the skill and save it with the `skill_manage` tool "
|
||||
"(action=\"create\"). Pick a sensible category. If the procedure needs "
|
||||
"a non-trivial script, add it under the skill's `scripts/` with "
|
||||
"`skill_manage` write_file and reference it by relative path.\n"
|
||||
"2. Save the skill with `skill_manage`. First check the available "
|
||||
"skills for one covering this source or topic. If one exists, load it "
|
||||
"with `skill_view`, then extend its SKILL.md with `skill_manage` patch "
|
||||
"(or edit for a necessary full rewrite) and add or update supporting "
|
||||
"files with `skill_manage` write_file. Only when no matching skill "
|
||||
"exists, create one with `skill_manage` action=\"create\" and pick a "
|
||||
"sensible category. If the procedure needs a non-trivial script, add "
|
||||
"it under the skill's `scripts/` with `skill_manage` write_file and "
|
||||
"reference it by relative path.\n"
|
||||
"2b. Pick the shape by the source, not by habit: a workflow or small "
|
||||
"source gets ONE tight SKILL.md; a book, paper stack, spec, or large "
|
||||
"docs corpus gets the knowledge-base layout below — a lean SKILL.md "
|
||||
|
||||
Reference in New Issue
Block a user