id: 57564d4ee72848b9b0211440afcf1731
parent_id: 
item_type: 1
item_id: 63cf55a62238467bb2000ab5b144079a
item_updated_time: 1764345515868
title_diff: "[{\"diffs\":[[1,\"Gemini CLI：​​使用 GEMINI.md，把 AI 调教成你的专属助理\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":40}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>Gemini CLI：​​使用 GEMINI.md，把 AI 调教成你的专属助理</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"reminder-order\\\" content=\\\"2025/8/29 2:46\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"47834\\\"></a>\\\r\\\n<h1>Gemini CLI：​​使用 GEMINI.md，把 AI 调教成你的专属助理</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"\\\"><div style=\\\"max-width: 700px;\\\"><p></p><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial;\\\"><div>原文链接: <a href=\\\"https://mp.weixin.qq.com/s?__biz=Mzk0Mjc0OTY1OA==&amp;mid=2247485938&amp;idx=1&amp;sn=75c27b4bb9635846518f36d7e760e175&amp;chksm=c29766820e0f7597a4d753e8cacc2442b011794d7045ae10fd9d5e129cfc22ed61a05ed512d7&amp;mpshare=1&amp;scene=1&amp;srcid=10306OSBNrxORZIrfcybhUyC&amp;sharer_shareinfo=e2c5a862a158c91fba61577f16c0ea26&amp;sharer_shareinfo_first=e2c5a862a158c91fba61577f16c0ea26#rd\\\"><span>https://mp.weixin.qq.com/s?__biz=Mzk0Mjc0OTY1OA==&amp;mid=224748...</span></a></div></div><p></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">原创</span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">逸海哥</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><a style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 数智脉动 </a></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><em style=\\\"-webkit-tap-highlight-color: transparent;\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-style: normal; font-weight: 400; text-align: justify; color: rgb(62,62,62);\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; text-align: center; display: flex; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; vertical-align: top; width: auto; min-width: 5%; max-width: 100%; height: auto; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; max-width: 100%; vertical-align: middle; width: 19px; height: auto; box-sizing: border-box;\\\"><img src=\\\":/7c8ce17014084894ab1189c293c9b762\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: middle; max-width: 19px; width: auto; box-sizing: border-box;\\\" width=\\\"auto\\\"/></span></span></span><span style=\\\"-webkit-tap-highlight-color: transparent; vertical-align: middle; width: auto; min-width: 5%; max-width: 100%; height: auto; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; display: flex; width: 100%; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; z-index: 1; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; text-align: justify; color: rgb(99,168,238); box-sizing: border-box;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; white-space: normal; box-sizing: border-box;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">点击蓝字 关注我们</span></strong></p></span></span></span><span style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; width: 100%; height: 16px; vertical-align: top; overflow: hidden; border-radius: 22px; background-color: rgb(231,246,255); box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; text-align: justify; box-sizing: border-box;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; white-space: normal; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></span></span></span></span><span style=\\\"-webkit-tap-highlight-color: transparent; vertical-align: middle; width: auto; min-width: 5%; max-width: 100%; height: auto; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; transform: rotateZ(23deg); -webkit-transform: rotateZ(23deg); -moz-transform: rotateZ(23deg); -o-transform: rotateZ(23deg); box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; max-width: 100%; vertical-align: middle; width: 19px; height: auto; box-sizing: border-box;\\\"><img src=\\\":/57521b09a84e4754b24422731ff7e879\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: middle; max-width: 19px; width: auto; box-sizing: border-box;\\\" width=\\\"auto\\\"/></span></span></span></span></span></span><span style=\\\"-webkit-tap-highlight-color: transparent; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; color: rgb(0,0,0); word-spacing: 0; letter-spacing: 0; word-break: break-word; overflow-wrap: break-word; text-align: left;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">前文介绍了  AI 编程工具 Gemini CLI（<a href=\\\"https://mp.weixin.qq.com/s?__biz=Mzk0Mjc0OTY1OA==&amp;mid=2247485255&amp;idx=1&amp;sn=82b66c474c1a228a4b3df7055f7e9ffe&amp;scene=21#wechat_redirect\\\" style=\\\"-webkit-tap-highlight-color: transparent;\\\" target=\\\"_blank\\\">Gemini CLI：不仅仅是命令行工具，更是 AI 智能体！可免费调用Gemini 2.5 Pro模型</a>）的安装步骤、应用实测示例。本文介绍  Gemini CLI 的高阶使用方法：使用 GEMINI.md，把 AI 调教成你的专属助理。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">Gemini CLI ，不仅仅是 AI 编程工具，更是一个功能丰富的 AI 智能体。通过 GEMINI.md 文件，预设用户与 AI 模型交互的上下文，可以把 AI 调教成个人专属助理。</span></strong></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">是否有这样的烦恼：每次与AI交互，都得不厌其烦地重复描述背景、风格偏好和特定要求？Gemini CLI 的 GEMINI.md 文件正是为了解决这一问题。</span></p><div style=\\\"-webkit-tap-highlight-color: transparent; display: flex;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/c5e9165b03504c01a2f9414258720966\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; display: block; max-width: 100%; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; object-fit: fill; width: auto;\\\" width=\\\"auto\\\"/></span></div><h4 style=\\\"-webkit-tap-highlight-color: transparent; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; display: block; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(60,112,198); letter-spacing: 0; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-weight: bold; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-indent: 0; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GEMINI.md：你的专属 AI“记忆胶囊”</span></span></h4><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GEMINI.md是一个神奇的Markdown文件。你可以把它看作一个专门给AI看的“项目说明书”或“记忆胶囊”。通过在这个简单的文件中写下指令，你就能一次性告诉AI关于当前项目、甚至你个人的所有关键信息。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">它的核心优势在于，Gemini CLI会在你每次提交问题时，自动读取GEMINI.md的内容，并将其作为背景上下文一同发送给AI</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。 这意味着，AI的每一次回答，都是在你预设的框架下进行的。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">有了它，你可以：</span></p><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style-type: disc; color: rgb(0,0,0);\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">🚀 告别重复指令</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：项目规范、写作风格、角色设定，一次说清，永久有效。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">🎯 提升AI准确性</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：AI能更精准地理解你的意图，给出更靠谱的回答。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">🎨 打造专属人设</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：你可以给AI设定一个角色，比如“资深架构师”或“营销文案专家”，让它的回答风格更符合你的期望。</span></span></li></ul><h4 style=\\\"-webkit-tap-highlight-color: transparent; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; display: block; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(60,112,198); letter-spacing: 0; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-weight: bold; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-indent: 0; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">AI如何“读取”你的项目记忆？</span></span></h4><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">Gemini CLI 在电脑里寻找所有GEMINI.md文件，然后把它们的内容整合起来，作为与AI沟通的“上下文”。它的寻找路径遵循一套清晰的层级逻辑：</span></p><ol style=\\\"-webkit-tap-highlight-color: transparent; list-style-type: decimal; color: rgb(0,0,0);\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">🌍</span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">全局记忆</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：位于用户主目录下的 ~/.gemini/GEMINI.md。这里存放的指令适用于所有项目，是 AI 的“通用知识库”。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">📂</span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">项目记忆</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：从当前打开的文件夹开始，向上逐级寻找，直到找到.git文件夹（通常代表项目根目录）。这条路径上所有的GEMINI.md都会被加载。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">📁</span><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">模块记忆</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">：扫描当前目录下的子目录，加载其中的GEMINI.md，能为项目的特定模块（如前端、后端）设置专属指令。</span></span></li></ol><h4 style=\\\"-webkit-tap-highlight-color: transparent; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; display: block; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(60,112,198); letter-spacing: 0; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-weight: bold; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-indent: 0; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GEMINI.md的N种玩法</span></span></h4><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GEMINI.md的魅力在于它的高度灵活性，远不止于编程。下面是几个不同场景的示例：</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">示例1：变身“毒舌”代码审查员</span></strong></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">如果你希望AI帮你审查代码，并且风格犀利、一针见血，可以在项目根目录放一个这样的GEMINI.md：</span></p><div style=\\\"-webkit-tap-highlight-color: transparent; border-radius: 5px; text-align: left;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span># 角色：代码审查专家 (Code Review Master)</span><br/><span></span><br/><span>## 核心指令</span><br/><span>- 你是一位经验极其丰富但有点“毒舌”的软件架构师。</span><br/><span>- 你的唯一目标是找出代码中潜在的问题，无论多小。</span><br/><span>- 直接说出问题所在，并给出修改建议，不要说任何客套话。</span><br/><span></span><br/><span>## 审查维度</span><br/><span>- **性能**: 检查是否存在不必要的循环、重复计算或低效的算法。</span><br/><span>- **可读性**: 代码是否清晰易懂？命名是否规范？</span><br/><span>- **安全**:是否存在SQL注入、跨站脚本等潜在安全漏洞？</span><br/><span>- **最佳实践**: 是否遵循了该语言和框架的最新最佳实践？</span><br/></pre></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">效果：当你把一段代码粘贴到终端并询问“审查这段代码”时，得到的将不再是“这段代码看起来不错，但可以优化...”，而可能是：“1. 这里的嵌套循环简直是性能灾难。2. 变量data1这种命名，是想让三个月后的自己也看不懂吗？ 3. ...”</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">示例2：你的专属微信公众号文章写手</span></strong></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">如果你是一位内容创作者，可以用GEMINI.md来统一文章风格。</span></p><div style=\\\"-webkit-tap-highlight-color: transparent; border-radius: 5px; text-align: left;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span># 角色：微信公众号作者</span><br/><span></span><br/><span>## 我的公众号定位</span><br/><span>- **领域**: 人工智能、前沿科技</span><br/><span>- **读者**: 对AI感兴趣的开发者、产品经理和学生。</span><br/><span>- **目标**: 分享有趣、有料的AI知识，让复杂的技术变得通俗易懂。</span><br/><span></span><br/><span>## 写作风格</span><br/><span>- **语言**: 口语化、有网感，多用比喻和有趣的例子。避免AI腔和“教师爷”口吻。</span><br/><span>- **结构**: 开头引人入胜，中间逻辑清晰，多用列表（每个列表项前加一个相关的emoji），结尾有总结升华。</span><br/></pre></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">效果：现在，你只需要向Gemini CLI输入一个主题，比如“介绍一下Google的PaLM模型”，它就会自动按照你设定的公众号风格，生成一篇排版精良、语言活泼的文章初稿。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">示例3：耐心十足的语言学习伙伴</span></strong></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">想学外语？让AI成为你的私人陪练。假设你正在学习英语：</span></p><div style=\\\"-webkit-tap-highlight-color: transparent; border-radius: 5px; text-align: left;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span># 角色：英语学习伙伴 (English Pal)</span><br/><span></span><br/><span>## 核心指令</span><br/><span>- 你是一位耐心、友善且鼓励人心的英语老师。</span><br/><span>- 我的母语是中文，正在学习英语。</span><br/><span>- 当我用英文跟你对话时，请找出我句子中的语法、拼写或用法错误。</span><br/><span></span><br/><span>## 互动模式</span><br/><span>- **纠错**: 以表格形式清晰地列出“原句”、“错误之处”、“修改建议”和“原因解释”。</span><br/><span>- **鼓励**: 每次纠错后，都请给我一句鼓励的话，比如 &quot;Great try!&quot; 或 &quot;You're making good progress!&quot;。</span><br/><span>- **扩展**: 如果我只用了一个简单的词，比如 &quot;good&quot;，请建议一两个更地道或更高级的同义词，比如 &quot;fantastic&quot; 或 &quot;impressive&quot;。</span><br/><span>- **沉浸式对话**: 除非我明确要求，否则请一直用英文与我交流。</span><br/></pre></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">效果：当你输入 &quot;I am feel happy today.&quot; 时，AI会以表格形式告诉你am feel是错误的，应该用am feeling或feel，并解释原因，最后还会加上一句 &quot;Keep up the great work!&quot;，学习体验感瞬间拉满。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">示例4：规范的Git Commit生成助手</span></strong></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">还在为怎么写Git Commit Message发愁吗？让AI帮你搞定。</span></p><div style=\\\"-webkit-tap-highlight-color: transparent; border-radius: 5px; text-align: left;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span># 角色：Git提交信息生成助手</span><br/><span></span><br/><span>## 核心指令</span><br/><span>- 你是一个严格遵循 &quot;Conventional Commits&quot; 规范的机器人。</span><br/><span>- 你的任务是根据我提供的代码变更描述，生成格式化的Git提交信息。</span><br/><span></span><br/><span>## Commit格式</span><br/><span>- 严格遵循 `&lt;type&gt;(&lt;scope&gt;): &lt;subject&gt;` 的格式。</span><br/><span>- **type**: 必须是 `feat` (新功能), `fix` (bug修复), `docs` (文档), `style` (格式), `refactor` (重构), `test` (测试), `chore` (构建或工具)中的一种。</span><br/><span>- **scope**: 可选，用于说明影响范围（如 `api`, `ui`）。</span><br/><span>- **subject**: 简短描述，不超过50个字符，动词开头，首字母小写。</span><br/><span></span><br/><span>## 示例</span><br/><span>- 用户输入: &quot;修复了登录页面的一个bug，因为用户名没做非空校验&quot;</span><br/><span>- 你输出: `fix(login): validate username presence before submission`</span><br/></pre></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">效果：以后每次提交代码前，你只需用大白话描述你做了什么，比如“给用户加了个头像上传功能”，然后把它丢给AI。它会立刻返回标准格式的commit message：feat(user): add avatar upload functionality，省时又规范。</span></p><h4 style=\\\"-webkit-tap-highlight-color: transparent; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; display: block; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(60,112,198); letter-spacing: 0; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-weight: bold; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-indent: 0; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">让你的AI记忆更强大</span></span></h4><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">掌握了基础用法，我们再来看看两个让GEMINI.md更好用的高级技巧。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">技巧1：用 /memory 命令动态管理上下文</span></strong></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">在Gemini CLI的交互界面中，可以随时通过/memory命令来“检查”和“管理”AI的记忆。</span></p><ul style=\\\"-webkit-tap-highlight-color: transparent; list-style-type: disc; color: rgb(0,0,0);\\\"><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">🧠 /memory show：想知道AI当前“脑子”里都记了些什么？用这个命令，它会把你所有GEMINI.md文件整合后的完整内容展示给你看。这是调试上下文的最佳工具。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">🔄 /memory refresh：如果你刚刚修改了GEMINI.md文件，又不想重启CLI，只需输入这个命令，AI就会立刻“刷新记忆”，加载最新的上下文。</span></span></li><li style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(1,1,1); letter-spacing: 0; text-align: left; font-weight: normal;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">✍️ /memory add &quot;你的新指令&quot;：灵感突现，想给AI永久增加一条新规则？用这个命令，可以把你的指令直接追加到全局的GEMINI.md文件中，非常方便。</span></span></li></ul><div style=\\\"-webkit-tap-highlight-color: transparent; display: flex;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/f081318e7a414131a932e1c8aef2dd99\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; display: block; max-width: 100%; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; object-fit: fill; width: auto;\\\" width=\\\"auto\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0,0,0,0); background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0,0,0,0.4); border-bottom-color: rgba(0,0,0,0.4); border-left-color: rgba(0,0,0,0.4); border-right-color: rgba(0,0,0,0.4); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">技巧2：用 @ 导入，让上下文模块化</span></strong></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">当项目非常复杂，GEMINI.md里的指令可能会变得又长又乱。这时，可以像写代码一样，把它们拆分成多个独立的.md文件，再用@语法导入。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">例如，可以把代码规范、API文档和角色设定拆分开：</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">code-style.md:</span></p><div style=\\\"-webkit-tap-highlight-color: transparent; border-radius: 5px; text-align: left;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span>## 代码风格</span><br/><span>- 使用4个空格缩进。</span><br/><span>- 接口名称以`I`开头。</span><br/></pre></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">api-docs.md:</span></p><div style=\\\"-webkit-tap-highlight-color: transparent; border-radius: 5px; text-align: left;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span>## API文档参考</span><br/><span>- 用户信息接口为 `/users/{id}`。</span><br/><span>- 所有POST请求都需要`X-CSRF-Token`头。</span><br/></pre></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">然后，在的主GEMINI.md文件中，像这样把它们组合起来： GEMINI.md:</span></p><div style=\\\"-webkit-tap-highlight-color: transparent; border-radius: 5px; text-align: left;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span># 角色：后端开发工程师</span><br/><span></span><br/><span>@./code-style.md</span><br/><span>@./api-docs.md</span><br/><span></span><br/><span>## 当前任务</span><br/><span>- 开发用户认证模块。</span><br/><span>- 确保所有代码遵循上述规范。</span><br/></pre></div></div><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">通过这种方式，可以轻松地维护和复用大量的上下文指令，让整个项目结构更加清晰。</span></p><h4 style=\\\"-webkit-tap-highlight-color: transparent; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; display: block; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(60,112,198); letter-spacing: 0; background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0; background-position-y: 0; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0,0,0); border-bottom-color: rgb(0,0,0); border-left-color: rgb(0,0,0); border-right-color: rgb(0,0,0); border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-weight: bold; height: auto; overflow-x: unset; overflow-y: unset; text-align: left; text-indent: 0; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">结语</span></span></h4><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GEMINI.md为我们打开了一扇通往“可编程AI”的大门。它让AI不再是一个遥远、不可控的“黑盒”，而是可以根据我们意愿进行深度定制的得力助手。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">从简单的角色扮演，到复杂的模块化管理，GEMINI.md提供了强大的灵活性。现在，为项目或日常工作流创建一个GEMINI.md文件吧，开启更高效、更具创造力的全新工作模式！</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; font-weight: bold; font-style: italic;\\\">欢迎关注我，后续介绍更多 AI 工具应用相关的内容。</span></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(0,0,0); letter-spacing: 0; text-align: left; text-indent: 0;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></span></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":50068}]"
metadata_diff: {"new":{"id":"63cf55a62238467bb2000ab5b144079a","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345721188,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:12:41.572Z
created_time: 2025-11-28T16:12:41.572Z
type_: 13