Repository navigation
feat: 新增内置 memoh-help skill,让 agent 依据官方文档回答产品问题 - #1617
Merged
Merged
Conversation
Adds a managed workspace skill that teaches the agent to answer questions about Memoh itself from the official Markdown docs instead of inferring missing features from the workspace environment. A bundled quick reference covers core concepts, bot detail tabs, and the doc page for each topic so basic questions still work when the docs are unreachable. Refs MEMOH-169 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…enter Drop the bundled quick reference so the skill always reads the live docs.memoh.ai and memoh.ai/help indexes, pick pages in the user's language from whatever locales the indexes list, and state in the description that the agent is Memoh. Refs MEMOH-169 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Author
Type
Summary
问题:内置 Agent 回答 Memoh 产品自身的问题时没有依据,会根据工作区环境的检查结果得出“不支持”之类的错误结论。例如用户问能否按
.node-version切换 Node 版本,Agent 发现工作区只有一个 Node 版本,就回答需要另装工具。改动:新增内置 skill
memoh-help,放在templates/workspace/.memoh/skills/下作为托管文件,随工作区模板下发。每次 reconcile 都会刷新,已有 bot 也能拿到。https://docs.memoh.ai,索引https://docs.memoh.ai/llms.txt;https://memoh.ai/help,索引https://memoh.ai/help/llms.txt,由 feat: 帮助中心提供面向 LLM 的纯文本版本 landing#31 提供。web_fetch读索引,再读 1–3 个.md页面;按用户的语言选择/zh/、/ja/、/ru/等前缀的页面,没有对应语言时用英文;跳过 “Redirecting” 条目;只读单页,不读llms-full.txt。web_fetch失败时改用工作区的curl;两个来源都不可达时如实告知用户,不凭记忆回答。templates/workspace_test.go增加对新 skill 被嵌入的断言,templates/README.md更新内置 skill 列表。系统提示词没有修改。依赖
https://memoh.ai/help/llms.txt不存在,agent 只能用文档回答。v*tag 或手动触发时部署,目前线上只有 en、zh。skill 按索引中实际列出的语言选择页面,不需要随语言增减修改。各 runtime 的覆盖范围(读代码核实,未实测)
use_skill加载。use_skill,尚未实测。Related Issues
Validation
已执行:
go test ./templates/ ./internal/workspace/ ./internal/skills/:通过。quick_validate.py templates/workspace/.memoh/skills/memoh-help:[OK] skill is valid。curl确认https://docs.memoh.ai/llms.txt以及 en、zh 页面的.md返回text/markdown;帮助中心的纯文本路径在 landing 本地 dev 服务器上验证过(见 landing#31)。未执行:
mise run lint。memoh-help、Agent 实际调用该 skill 的效果、验收问题集的回答质量。Screenshots / Recordings
暂无截图:本次未在运行中的应用里验证(原因见上),没有可上传的证据。
Human QA
🤖 Generated with Claude Code