[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MW4BD2H8667CDDWJP6A3E":3,"skill-same:01M77MW4BD2H8667CDDWJP6A3E":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77MW4BD2H8667CDDWJP6A3E","memory-extraction",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fmemory-extraction\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# 记忆提取 Skill\n\n自动从对话中提取 Entity\u002FRelation\u002FObservation 并更新知识图谱。\n\n## 功能\n\n1. **实体提取** - 从对话中识别用户、项目、技能、偏好等实体\n2. **关系提取** - 识别实体之间的关系\n3. **观察提取** - 提取原子化事实作为观察\n4. **自动更新** - 写入知识图谱存储\n\n## 使用方法\n\n### 手动调用\n\n```python\nfrom scripts.knowledge_graph_manager import KnowledgeGraphManager\n\nmanager = KnowledgeGraphManager()\n\n# 创建实体\nmanager.create_entities([\n    {'name': '新项目', 'entityType': 'project', 'observations': ['描述']}\n])\n\n# 创建关系\nmanager.create_relations([\n    {'from': '用户', 'to': '新项目', 'relationType': 'owns'}\n])\n\n# 添加观察\nmanager.add_observations([\n    {'entityName': '用户', 'contents': ['新偏好']}\n])\n```\n\n### 自动提取规则\n\nAgent 在对话中应主动识别以下信息并写入记忆：\n\n#### 实体类型\n\n| entityType | 识别信号 | 示例 |\n|------------|----------|------|\n| `user` | \"我是\"、\"我的\" | \"我叫张三\" → 创建用户实体 |\n| `project` | \"项目\"、\"做个\"、\"创建\" | \"做个看板\" → 创建项目实体 |\n| `skill` | \"技能\"、\"能力\" | \"我有飞书技能\" → 创建技能实体 |\n| `tool` | \"用\"、\"使用\" | \"用 yfinance\" → 创建工具实体 |\n| `preference` | \"喜欢\"、\"偏好\"、\"想\" | \"喜欢深色风格\" → 创建偏好实体 |\n| `location` | \"在\"、\"位于\" | \"在北京\" → 创建地点实体 |\n| `event` | \"今天\"、\"时间点\" | \"2026-03-06 初次对话\" → 创建事件实体 |\n\n#### 关系类型\n\n| relationType | 识别信号 | 示例 |\n|--------------|----------|------|\n| `owns` | \"我的\"、\"我做的\" | 用户 owns 项目 |\n| `uses` | \"用\"、\"使用\" | 项目 uses 工具 |\n| `prefers` | \"喜欢\"、\"偏好\" | 用户 prefers 偏好 |\n| `located_at` | \"在\"、\"位于\" | 用户 located_at 地点 |\n| `named` | \"叫\"、\"命名\" | 用户 named Agent |\n| `created_on` | \"创建时间\" | 项目 created_on 时间 |\n| `deployed_to` | \"部署到\" | 项目 deployed_to 平台 |\n\n#### 观察提取\n\n观察应该是**原子化事实**：\n- 一条观察 = 一个事实\n- 简洁、具体、可验证\n\n**示例**：\n- ✅ \"时区：Asia\u002FShanghai\"\n- ✅ \"邮箱：user@example.com\"\n- ❌ \"用户信息包括时区和邮箱\"（不是原子化）\n\n## 记忆更新流程\n\n```\n对话开始\n    ↓\n读取知识图谱 (search_nodes \u002F read_graph)\n    ↓\n对话进行中\n    ↓\n识别新信息 → 提取 Entity\u002FRelation\u002FObservation\n    ↓\n写入知识图谱 (create_entities \u002F create_relations \u002F add_observations)\n    ↓\n对话结束\n    ↓\n导出 Markdown 视图\n```\n\n## System Prompt 集成\n\n在 Agent 的 System Prompt 中添加：\n\n```\n## 记忆管理\n\n每次对话开始时：\n1. 说 \"正在回忆...\" 并从知识图谱检索相关信息\n2. 将知识图谱称为 \"记忆\"\n\n对话过程中：\n主动识别并记录以下类型的信息：\n- Basic Identity: 年龄、性别、位置、职业、教育\n- Behaviors: 兴趣、习惯\n- Preferences: 交流风格、语言偏好\n- Goals: 目标、期望\n- Relationships: 人际关系（3 度以内）\n\n发现新信息时：\n1. 创建实体（用户、项目、技能、工具、偏好、地点、事件）\n2. 创建关系（owns, uses, prefers, located_at, named 等）\n3. 添加观察（原子化事实）\n```\n\n## 文件位置\n\n- 管理器: `scripts\u002Fknowledge_graph_manager.py`\n- 存储: `memory\u002Fknowledge-graph.jsonl`\n- 视图: `memory\u002FKNOWLEDGE_GRAPH.md`\n\n---\n\n*基于 MCP Memory Server 设计*",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fm\u002Fmemory-extraction",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill memory-extraction",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill memory-extraction",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill memory-extraction","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fmemory-extraction\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]