mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
refactor(workspace): normalize skill-related env and prompt
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
skillset "github.com/memohai/memoh/internal/skills"
|
||||
)
|
||||
|
||||
//go:embed prompts/*.md
|
||||
@@ -205,7 +207,8 @@ func buildSkillsSection(skills []SkillEntry) string {
|
||||
})
|
||||
var sb strings.Builder
|
||||
sb.WriteString("## Skills\n\n")
|
||||
sb.WriteString("Skills are stored in `{{home}}/skills/`. ")
|
||||
sb.WriteString("Memoh-managed skills are stored in `" + skillset.ManagedDir() + "/`. ")
|
||||
sb.WriteString("Compatible external skill directories inside the bot container may also be discovered automatically. ")
|
||||
sb.WriteString("Each skill is a `SKILL.md` file inside a named subdirectory.\n\n")
|
||||
sb.WriteString("Call `use_skill` with the skill name to load its full instructions before following them. ")
|
||||
sb.WriteString("Only activate a skill when it is relevant to the current task.\n\n")
|
||||
|
||||
Reference in New Issue
Block a user