{"id":32369,"date":"2025-07-14T23:19:19","date_gmt":"2025-07-14T15:19:19","guid":{"rendered":"https:\/\/www.kdjingpai.com\/?p=32369"},"modified":"2025-07-14T23:19:19","modified_gmt":"2025-07-14T15:19:19","slug":"jiegou-clineshenba","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/de\/jiegou-clineshenba\/","title":{"rendered":"\u89e3\u6784 Cline\uff1a\u6df1\u5165 Prompt \u8bbe\u8ba1\u7684\u5de5\u7a0b\u7f8e\u5b66"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/26e9123a48edf0b.webp\" alt=\"\" \/><\/p>\n<p>\u4e00\u79cd\u6d41\u884c\u7684\u89c2\u70b9\u8ba4\u4e3a\uff0cAI Agent \u7684\u672c\u8d28\u662f\u6784\u5efa\u66f4\u6709\u6548\u7684\u00a0<code>Prompt<\/code>\u3002\u8fd9\u53e5\u8bdd\u867d\u4e0d\u5168\u9762\uff0c\u5374\u6307\u51fa\u4e86\u00a0<code>Prompt<\/code>\u00a0\u5de5\u7a0b\u5728 Agent \u5f00\u53d1\u4e2d\u7684\u6838\u5fc3\u5730\u4f4d\u3002\u672c\u6587\u5c06\u6df1\u5165\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/claude-dev\/\">Cline<\/a><\/code>\u00a0\u7684\u6e90\u4ee3\u7801\uff0c\u5256\u6790\u5176\u00a0<code>Prompt<\/code>\u00a0\u8bbe\u8ba1\u7684\u67b6\u6784\u4e0e\u7ec6\u8282\u3002<\/p>\n<h2>System Prompt\uff1aAgent \u7684\u57fa\u77f3\u4e0e\u7075\u9b42<\/h2>\n<p><code>System Prompt<\/code>\u00a0\u662f AI \u5e94\u7528\u7684\u6838\u5fc3\u8d44\u4ea7\u3002\u5728\u00a0<code>GitHub<\/code>\u00a0\u4e0a\uff0c\u4e00\u4e2a\u6536\u96c6\u5404\u7c7b AI \u5e94\u7528\u00a0<code>System Prompt<\/code>\u00a0\u7684\u4ed3\u5e93\u7adf\u80fd\u83b7\u5f97\u6570\u4e07\u661f\u6807\uff0c\u8db3\u89c1\u5176\u91cd\u8981\u6027\u3002<code>Cline<\/code>\u00a0\u7684\u00a0<code>System Prompt<\/code>\u00a0\u8bbe\u8ba1\u5e76\u975e\u9759\u6001\u6587\u672c\uff0c\u800c\u662f\u4e00\u4e2a\u6839\u636e\u4e0a\u4e0b\u6587\u3001\u5de5\u5177\u548c\u6a21\u578b\u4fe1\u606f\u52a8\u6001\u751f\u6210\u7684\u9ad8\u5ea6\u7ed3\u6784\u5316\u6307\u4ee4\u96c6\uff0c\u5176\u6e90\u7801\u4f4d\u4e8e\u00a0<code>src\/core\/prompts\/system.ts<\/code>\u3002<\/p>\n<p><code>System Prompt<\/code>\u00a0\u9996\u5148\u4e3a\u6a21\u578b\u8bbe\u5b9a\u4e86\u8eab\u4efd\uff1a<\/p>\n<p>You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.<\/p>\n<h3>\u5de5\u5177\u4f7f\u7528\uff08TOOL USE\uff09\uff1a\u5b9a\u4e49\u884c\u52a8\u7684\u8bed\u8a00<\/h3>\n<p><code>Cline<\/code>\u00a0\u7684\u00a0<code>Prompt<\/code>\u00a0\u8bbe\u8ba1\u6e05\u6670\u5730\u5c55\u793a\u4e86\u5982\u4f55\u5f15\u5bfc\u6a21\u578b\u9010\u6b65\u5b8c\u6210\u4efb\u52a1\uff0c\u5176\u6838\u5fc3\u5728\u4e8e\u5bf9\u5de5\u5177\u7684\u7cbe\u7ec6\u5316\u7ba1\u7406\u3002\u8fd9\u5957\u673a\u5236\u7684\u8bbe\u8ba1\u601d\u8def\uff0c\u4e0e\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/react\/\">ReAct<\/a> (Reasoning and Acting)<\/code>\u00a0\u6846\u67b6\u4e0d\u8c0b\u800c\u5408\uff0c\u5373\u901a\u8fc7\u201c\u601d\u8003-\u884c\u52a8-\u89c2\u5bdf\u201d\u7684\u5faa\u73af\u6765\u89e3\u51b3\u590d\u6742\u95ee\u9898\u3002<\/p>\n<h4>1. \u5de5\u5177\u8c03\u7528\u683c\u5f0f<\/h4>\n<p><code>Prompt<\/code>\u00a0\u9996\u5148\u5b9a\u4e49\u4e86\u5de5\u5177\u8c03\u7528\u7684\u8bed\u6cd5\uff0c\u8981\u6c42\u6a21\u578b\u4f7f\u7528\u00a0<code>XML<\/code>\u00a0\u6807\u7b7e\u8f93\u51fa\uff0c\u786e\u4fdd\u4e86\u673a\u5668\u53ef\u8bfb\u6027\u548c\u89e3\u6790\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n<pre><code>&lt;tool_name&gt;\r\n&lt;parameter1_name&gt;value1&lt;\/parameter1_name&gt;\r\n&lt;parameter2_name&gt;value2&lt;\/parameter2_name&gt;\r\n...\r\n&lt;\/tool_name&gt;\r\n<\/code><\/pre>\n<h4>2. \u5de5\u5177\u6e05\u5355\u4e0e\u793a\u4f8b<\/h4>\n<p><code>System Prompt<\/code>\u00a0\u8be6\u7ec6\u5217\u4e3e\u4e86\u6240\u6709\u5185\u7f6e\u5de5\u5177\uff0c\u5305\u62ec\u529f\u80fd\u63cf\u8ff0\u3001\u53c2\u6570\u8bf4\u660e\u548c\u4f7f\u7528\u793a\u4f8b\u3002\u4f8b\u5982\uff0c<code>write_to_file<\/code>\u00a0\u5de5\u5177\u7684\u5b9a\u4e49\u6781\u5176\u8be6\u5c3d\uff0c\u660e\u786e\u4e86\u6587\u4ef6\u5b58\u5728\u5219\u8986\u76d6\u3001\u4e0d\u5b58\u5728\u5219\u521b\u5efa\uff0c\u5e76\u4f1a\u81ea\u52a8\u5904\u7406\u76ee\u5f55\u521b\u5efa\u3002<\/p>\n<pre><code>## write_to_file\r\nDescription: Request to write content to a file at the specified path. If the file exists, it will be overwritten with the provided content. If the file doesn't exist, it will be created. This tool will automatically create any directories needed to write the file.\r\nParameters:\r\n- path: (required) The path of the file to write to (relative to the current working directory ${cwd.toPosix()})\r\n- content: (required) The content to write to the file. ALWAYS provide the COMPLETE intended content of the file, without any truncation or omissions. You MUST include ALL parts of the file, even if they haven't been modified.\r\nUsage:\r\n&lt;write_to_file&gt;\r\n&lt;path&gt;File path here&lt;\/path&gt;\r\n&lt;content&gt;\r\nYour file content here\r\n&lt;\/content&gt;\r\n&lt;\/write_to_file&gt;\r\n<\/code><\/pre>\n<p><code>Cline<\/code>\u00a0\u5185\u7f6e\u4e86\u8986\u76d6\u547d\u4ee4\u884c\u3001\u6587\u4ef6\u7cfb\u7edf\u3001\u6d4f\u89c8\u5668\u4ea4\u4e92\u4e43\u81f3\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/model-context-protocol\/\">MCP<\/a><\/code>\uff08Meta-level Control Protocol\uff09\u7684\u5341\u4f59\u79cd\u5de5\u5177\uff0c\u8fd9\u4e9b\u5de5\u5177\u6784\u6210\u4e86\u6a21\u578b\u4e0e\u5916\u90e8\u4e16\u754c\u4ea4\u4e92\u7684\u6865\u6881\u3002<\/p>\n<h4>3. \u5de5\u5177\u4f7f\u7528\u6307\u5f15<\/h4>\n<p><code>Prompt<\/code>\u00a0\u63d0\u4f9b\u4e86\u6e05\u6670\u7684\u601d\u7ef4\u94fe\uff08CoT\uff09\u6307\u5f15\uff0c\u5f15\u5bfc\u6a21\u578b\u5982\u4f55\u601d\u8003\u548c\u51b3\u7b56\uff1a<\/p>\n<ol>\n<li><strong>\u8bc4\u4f30\u4fe1\u606f<\/strong>\uff1a\u5728\u00a0<code>&lt;thinking&gt;<\/code>\u00a0\u6807\u7b7e\u5185\u8fdb\u884c\u601d\u8003\u3002<\/li>\n<li><strong>\u9009\u62e9\u5de5\u5177<\/strong>\uff1a\u6839\u636e\u4efb\u52a1\u9009\u62e9\u6700\u5408\u9002\u7684\u5de5\u5177\u3002<\/li>\n<li><strong>\u5355\u6b65\u6267\u884c<\/strong>\uff1a\u4e00\u6b21\u53ea\u8c03\u7528\u4e00\u4e2a\u5de5\u5177\uff0c\u7b49\u5f85\u7ed3\u679c\u540e\u518d\u8fdb\u884c\u4e0b\u4e00\u6b65\u3002<\/li>\n<li><strong>\u6784\u5efa\u8c03\u7528<\/strong>\uff1a\u4f7f\u7528\u89c4\u5b9a\u7684\u00a0<code>XML<\/code>\u00a0\u683c\u5f0f\u3002<\/li>\n<li><strong>\u7b49\u5f85\u53cd\u9988<\/strong>\uff1a\u6bcf\u6b21\u5de5\u5177\u8c03\u7528\u540e\uff0c\u7cfb\u7edf\u4f1a\u8fd4\u56de\u6267\u884c\u7ed3\u679c\uff0c\u6a21\u578b\u9700\u7b49\u5f85\u6b64\u53cd\u9988\u3002<\/li>\n<\/ol>\n<p>\u8fd9\u79cd\u5206\u6b65\u6267\u884c\u3001\u7b49\u5f85\u786e\u8ba4\u7684\u673a\u5236\uff0c\u786e\u4fdd\u4e86\u4efb\u52a1\u62c6\u89e3\u7684\u51c6\u786e\u6027\u548c\u6bcf\u4e00\u6b65\u64cd\u4f5c\u7684\u53ef\u63a7\u6027\uff0c\u663e\u8457\u63d0\u9ad8\u4e86\u590d\u6742\u4efb\u52a1\u7684\u6210\u529f\u7387\u3002<\/p>\n<h3>\u6587\u4ef6\u7f16\u8f91\uff1a\u6838\u5fc3\u573a\u666f\u7684\u7cbe\u7ec6\u5316\u5f15\u5bfc<\/h3>\n<p>\u5bf9\u4e8e\u4ee3\u7801\u751f\u6210 Agent \u800c\u8a00\uff0c\u6587\u4ef6\u7f16\u8f91\u662f\u6700\u9ad8\u9891\u3001\u6700\u6838\u5fc3\u7684\u529f\u80fd\u3002<code>Cline<\/code>\u00a0\u5728\u00a0<code>Prompt<\/code>\u00a0\u4e2d\u7279\u522b\u5f3a\u5316\u4e86\u5bf9\u00a0<code>write_to_file<\/code>\u00a0\u548c\u00a0<code>replace_in_file<\/code>\u00a0\u4e24\u4e2a\u5de5\u5177\u7684\u6307\u5bfc\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u5957\u6587\u4ef6\u7f16\u8f91\u7684\u6700\u4f73\u5b9e\u8df5\u5de5\u4f5c\u6d41\uff1a<\/p>\n<ol>\n<li><strong>\u8bc4\u4f30\u8303\u56f4<\/strong>\uff1a\u7f16\u8f91\u524d\uff0c\u5148\u8bc4\u4f30\u4fee\u6539\u8303\u56f4\uff0c\u51b3\u5b9a\u4f7f\u7528\u54ea\u4e2a\u5de5\u5177\u3002<\/li>\n<li><strong>\u7cbe\u786e\u4fee\u6539<\/strong>\uff1a\u5c0f\u8303\u56f4\u3001\u6709\u9488\u5bf9\u6027\u7684\u4fee\u6539\u4f7f\u7528\u00a0<code>replace_in_file<\/code>\u3002<\/li>\n<li><strong>\u91cd\u6784\u6216\u521b\u5efa<\/strong>\uff1a\u5927\u8303\u56f4\u91cd\u6784\u6216\u521b\u5efa\u65b0\u6587\u4ef6\u65f6\uff0c\u4f7f\u7528\u00a0<code>write_to_file<\/code>\u3002<\/li>\n<li><strong>\u540c\u6b65\u72b6\u6001<\/strong>\uff1a\u6587\u4ef6\u88ab\u7f16\u8f91\u540e\uff0c\u7cfb\u7edf\u4f1a\u63d0\u4f9b\u6587\u4ef6\u7684\u6700\u65b0\u5b8c\u6574\u5185\u5bb9\u3002\u6a21\u578b\u5fc5\u987b\u4ee5\u6b64\u6700\u65b0\u5185\u5bb9\u4e3a\u57fa\u51c6\uff0c\u8fdb\u884c\u540e\u7eed\u64cd\u4f5c\uff0c\u8fd9\u907f\u514d\u4e86\u56e0\u683c\u5f0f\u5316\u6216\u7528\u6237\u624b\u52a8\u4fee\u6539\u5bfc\u81f4\u7684\u72b6\u6001\u4e0d\u4e00\u81f4\u95ee\u9898\u3002<\/li>\n<\/ol>\n<h3>Plan Mode \u4e0e Act Mode\uff1a\u7b56\u7565\u4e0e\u6267\u884c\u7684\u5206\u79bb<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/4ce22ac73102197.png\" alt=\"\" \/><\/p>\n<p><code>Cline<\/code>\u00a0\u5f15\u5165\u4e86\u4e24\u79cd\u64cd\u4f5c\u6a21\u5f0f\uff1a<code>Plan Mode<\/code>\u00a0\u548c\u00a0<code>Act Mode<\/code>\u3002\u5728\u5904\u7406\u590d\u6742\u4efb\u52a1\u65f6\uff0c\u7528\u6237\u53ef\u4ee5\u5148\u8fdb\u5165\u00a0<code>Plan Mode<\/code>\uff0c\u8ba9\u6a21\u578b\u5236\u5b9a\u9ad8\u5c42\u7b56\u7565\uff0c\u4f8b\u5982\u5206\u6790\u4ee3\u7801\u7ed3\u6784\u3001\u786e\u5b9a\u4fee\u6539\u65b9\u6848\uff0c\u5e76\u9f13\u52b1\u4f7f\u7528\u56fe\u8868\uff08\u5982 Mermaid\uff09\u8fdb\u884c\u53ef\u89c6\u5316\u5c55\u793a\u3002\u89c4\u5212\u5b8c\u6210\u540e\uff0c\u518d\u5207\u6362\u5230\u00a0<code>Act Mode<\/code>\uff0c\u6a21\u578b\u4f1a\u4e25\u683c\u6309\u7167\u65e2\u5b9a\u8ba1\u5212\uff0c\u4e00\u6b65\u6b65\u6267\u884c\u5177\u4f53\u64cd\u4f5c\u3002\u8fd9\u79cd\u201c\u5148\u89c4\u5212\uff0c\u540e\u6267\u884c\u201d\u7684\u6a21\u5f0f\uff0c\u6709\u6548\u63d0\u5347\u4e86\u590d\u6742\u4efb\u52a1\u7684\u6210\u529f\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<h3>\u89c4\u5219\u4e0e\u62a4\u680f<\/h3>\n<p><code>Prompt<\/code>\u00a0\u7684\u89c4\u5219\uff08RULES\uff09\u90e8\u5206\uff0c\u901a\u8fc7\u52a0\u7c97\u7b49\u65b9\u5f0f\uff0c\u7528\u6781\u5176\u5f3a\u786c\u7684\u8bed\u6c14\u5b9a\u4e49\u4e86\u6a21\u578b\u7684\u884c\u4e3a\u8fb9\u754c\u3002\u4f8b\u5982\uff0c<strong>\u7981\u6b62<\/strong>\u4f7f\u7528\u00a0<code>~<\/code>\u00a0\u6216\u00a0<code>$HOME<\/code>\u00a0\u6307\u4ee3\u7528\u6237\u4e3b\u76ee\u5f55\uff0c<strong>\u7981\u6b62<\/strong>\u4f7f\u7528\u00a0<code>cd<\/code>\u00a0\u547d\u4ee4\uff0c<strong>\u5fc5\u987b<\/strong>\u7b49\u5f85\u7528\u6237\u786e\u8ba4\u3002\u8fd9\u4e9b\u660e\u786e\u7684\u201c\u7981\u4ee4\u201d\u6784\u6210\u4e86\u6a21\u578b\u7684\u884c\u4e3a\u62a4\u680f\uff0c\u51cf\u5c11\u4e86\u4e0d\u786e\u5b9a\u6027\u548c\u6f5c\u5728\u7684\u7834\u574f\u6027\u64cd\u4f5c\u3002<\/p>\n<h3>\u6838\u5fc3\u76ee\u6807\u4e0e\u8fed\u4ee3\u5faa\u73af<\/h3>\n<p><code>Prompt<\/code>\u00a0\u7684\u6700\u540e\uff0c\u660e\u786e\u4e86\u00a0<code>Cline<\/code>\u00a0\u5904\u7406\u4efb\u52a1\u7684\u6574\u4f53\u5de5\u4f5c\u6d41\u7a0b\uff1a<\/p>\n<ol>\n<li><strong>\u5206\u6790\u4e0e\u62c6\u89e3<\/strong>\uff1a\u5206\u6790\u7528\u6237\u4efb\u52a1\uff0c\u8bbe\u5b9a\u6e05\u6670\u7684\u5b50\u76ee\u6807\u5e76\u6392\u5e8f\u3002<\/li>\n<li><strong>\u8fed\u4ee3\u6267\u884c<\/strong>\uff1a\u6309\u987a\u5e8f\u5904\u7406\u5b50\u76ee\u6807\uff0c\u6bcf\u6b21\u8c03\u7528\u4e00\u4e2a\u5de5\u5177\u3002\u5728\u8c03\u7528\u524d\uff0c\u5fc5\u987b\u5728\u00a0<code>&lt;thinking&gt;<\/code>\u00a0\u6807\u7b7e\u4e2d\u5206\u6790\u73af\u5883\u3001\u9009\u62e9\u5de5\u5177\u3001\u5e76\u68c0\u67e5\u53c2\u6570\u3002<\/li>\n<li><strong>\u53c2\u6570\u68c0\u67e5<\/strong>\uff1a\u5982\u679c\u5fc5\u8981\u53c2\u6570\u7f3a\u5931\uff0c<strong>\u7981\u6b62<\/strong>\u8c03\u7528\u5de5\u5177\uff0c\u800c\u662f\u4f7f\u7528\u00a0<code>ask_followup_question<\/code>\u00a0\u5de5\u5177\u5411\u7528\u6237\u8bf7\u6c42\u4fe1\u606f\u3002<\/li>\n<li><strong>\u4efb\u52a1\u5b8c\u6210<\/strong>\uff1a\u6240\u6709\u76ee\u6807\u5b8c\u6210\u540e\uff0c\u4f7f\u7528\u00a0<code>attempt_completion<\/code>\u00a0\u5de5\u5177\u63d0\u4ea4\u6700\u7ec8\u7ed3\u679c\u3002<\/li>\n<li><strong>\u907f\u514d\u5faa\u73af\u5bf9\u8bdd<\/strong>\uff1a\u56de\u590d\u4e2d<strong>\u4e0d\u5e94<\/strong>\u4ee5\u63d0\u95ee\u6216\u5bfb\u6c42\u66f4\u591a\u5e2e\u52a9\u7684\u65b9\u5f0f\u7ed3\u675f\uff0c\u907f\u514d\u65e0\u610f\u4e49\u7684\u5bf9\u8bdd\u3002<\/li>\n<\/ol>\n<h2>Prompt \u7684\u6269\u5c55\u6027\u4e0e\u5b9a\u5236\u5316<\/h2>\n<p><code>Cline<\/code>\u00a0\u7684\u00a0<code>Prompt<\/code>\u00a0\u4f53\u7cfb\u5e76\u975e\u4e00\u6210\u4e0d\u53d8\uff0c\u5b83\u63d0\u4f9b\u4e86\u591a\u5c42\u6b21\u7684\u5b9a\u5236\u5316\u80fd\u529b\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9879\u76ee\u9700\u6c42\u6ce8\u5165\u7279\u5b9a\u7684\u77e5\u8bc6\u548c\u5de5\u4f5c\u6d41\u3002<\/p>\n<h3>\u81ea\u5b9a\u4e49 System Prompt<\/h3>\n<p><code>Cline<\/code>\u00a0\u5141\u8bb8\u7528\u6237\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684\u00a0<code>.clinerules\/<\/code>\u00a0\u6587\u4ef6\u5939\u4e2d\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6307\u4ee4\u3002\u8fd9\u4e9b\u6307\u4ee4\u4f1a\u88ab\u8ffd\u52a0\u5230\u00a0<code>System Prompt<\/code>\u00a0\u7684\u672b\u5c3e\uff0c\u4f5c\u4e3a\u6700\u6709\u6548\u7684\u8865\u5145\u3002\u6709\u8da3\u7684\u662f\uff0c<code>Cline<\/code>\u00a0\u7684\u4ee3\u7801\u751a\u81f3\u8003\u8651\u4e86\u52a0\u8f7d\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/cursoryuaigongtong\/\">Cursor<\/a><\/code>\u00a0\u6216\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/codeium\/\">Windsurf<\/a><\/code>\u00a0\u7684\u89c4\u5219\u6587\u4ef6\uff0c\u5c55\u793a\u4e86\u5176\u8bbe\u8ba1\u7684\u5f00\u653e\u6027\u3002<\/p>\n<pre><code>if (localCursorRulesFileInstructions) {\r\ncustomInstructions += localCursorRulesFileInstructions + \"nn\"\r\n}\r\n\/\/ ...\r\n<\/code><\/pre>\n<h3>Slash Command \u4e0e Workflow<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/0819d41282544c7.png\" alt=\"\" \/><\/p>\n<p>\u901a\u8fc7\u00a0<code>\/<\/code>\u00a0\u89e6\u53d1\u7684\u00a0<code>Slash <a href=\"https:\/\/www.kdjingpai.com\/cohere\/\">Command<\/a><\/code>\u00a0\u4e3a\u7279\u5b9a\u4efb\u52a1\u63d0\u4f9b\u4e86\u5feb\u6377\u5165\u53e3\u3002\u4f8b\u5982\uff0c<code>\/reportBug<\/code>\u00a0\u53ef\u4ee5\u89e6\u53d1\u4e00\u5957\u9884\u8bbe\u7684 Bug \u53cd\u9988\u6d41\u7a0b\u3002\u8fd9\u4e9b\u547d\u4ee4\u5bf9\u5e94\u7684\u00a0<code>Prompt<\/code>\u00a0\u7247\u6bb5\u5728\u00a0<code>src\/core\/prompts\/commands.ts<\/code>\u00a0\u4e2d\u5b9a\u4e49\u3002<\/p>\n<p>\u66f4\u8fdb\u4e00\u6b65\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/workflow\/\">Workflow<\/a><\/code>\u00a0\u6765\u81ea\u5b9a\u4e49\u547d\u4ee4\u3002\u5728\u00a0<code>.clinerules\/workflows\/<\/code>\u00a0\u76ee\u5f55\u4e0b\u521b\u5efa\u00a0<code>Markdown<\/code>\u00a0\u6587\u4ef6\uff0c\u5373\u53ef\u5b9a\u4e49\u4e00\u4e2a\u591a\u6b65\u9aa4\u7684\u4efb\u52a1\u6d41\u7a0b\u3002\u8fd9\u4e9b\u81ea\u5b9a\u4e49\u00a0<code>Workflow<\/code>\u00a0\u540c\u6837\u4f1a\u4ee5\u00a0<code>\/<\/code>\u00a0\u547d\u4ee4\u7684\u5f62\u5f0f\u51fa\u73b0\u5728\u804a\u5929\u6846\u4e2d\uff0c\u4e3a\u7528\u6237\u5c01\u88c5\u590d\u6742\u4efb\u52a1\u63d0\u4f9b\u4e86\u6781\u5927\u7684\u4fbf\u5229\u3002<\/p>\n<h3>@ Mention\uff1a\u52a8\u6001\u6ce8\u5165\u4e0a\u4e0b\u6587<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/cb30b4a91611f1c.png\" alt=\"\" \/><\/p>\n<p><code>@<\/code>\u00a0\u7b26\u53f7\u5728\u00a0<code>Cline<\/code>\u00a0\u4e2d\u7528\u4e8e\u5f15\u7528\u5916\u90e8\u8d44\u6e90\uff0c\u52a8\u6001\u5730\u5c06\u4e0a\u4e0b\u6587\u6ce8\u5165\u5230\u00a0<code>Prompt<\/code>\u00a0\u4e2d\u3002\u7528\u6237\u53ef\u4ee5\u00a0<code>@<\/code>\u00a0\u4e00\u4e2a\u6587\u4ef6\u8def\u5f84\uff0c<code>Cline<\/code>\u00a0\u4f1a\u5c06\u8be5\u6587\u4ef6\u7684\u5b8c\u6574\u5185\u5bb9\u5305\u88f9\u5728\u00a0<code>&lt;file_content&gt;<\/code>\u00a0\u6807\u7b7e\u5185\u53d1\u9001\u7ed9\u6a21\u578b\u3002<\/p>\n<pre><code>&lt;file_content path=\"path\/to\/file\"&gt;\r\n[Complete file content]\r\n&lt;\/file_content&gt;\r\n<\/code><\/pre>\n<p>\u9664\u4e86\u6587\u4ef6\uff0c<code>@<\/code>\u00a0\u8fd8\u53ef\u4ee5\u5f15\u7528\u95ee\u9898\u3001\u547d\u4ee4\u884c\u5386\u53f2\u3001\u751a\u81f3\u662f URL\u3002\u8fd9\u4e00\u529f\u80fd\u53ef\u4ee5\u88ab\u6269\u5c55\uff0c\u4f8b\u5982\u901a\u8fc7\u00a0<code>@<\/code>\u00a0\u5bf9\u63a5\u5185\u90e8\u77e5\u8bc6\u5e93\uff0c\u8ba9\u00a0<code>Cline<\/code>\u00a0\u5177\u5907\u7279\u5b9a\u9886\u57df\u7684\u4e13\u4e1a\u77e5\u8bc6\u3002<\/p>\n<h3>Memory Bank\uff1a\u6784\u5efa\u957f\u671f\u8bb0\u5fc6<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/a15935d00274b67.png\" alt=\"\" \/><\/p>\n<p><code>Memory Bank<\/code>\u00a0\u662f\u00a0<code>Cline<\/code>\u00a0\u4e3a\u89e3\u51b3 LLM \u957f\u671f\u8bb0\u5fc6\u7f3a\u5931\u95ee\u9898\u800c\u8bbe\u8ba1\u7684\u65b9\u6848\u3002\u5176\u6838\u5fc3\u601d\u60f3\u662f\u7ef4\u62a4\u4e00\u5957\u5173\u4e8e\u9879\u76ee\u7684\u6838\u5fc3\u6587\u6863\uff0c\u5f53 Agent \u5728\u65b0\u4efb\u52a1\u4e2d\u4e22\u5931\u5386\u53f2\u4e0a\u4e0b\u6587\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bfb\u53d6\u8fd9\u4e9b\u201c\u7b14\u8bb0\u201d\u6765\u5feb\u901f\u4e86\u89e3\u9879\u76ee\u5168\u8c8c\u3002\u8fd9\u5728\u6982\u5ff5\u4e0a\u7c7b\u4f3c\u4e8e\u4e00\u79cd\u624b\u52a8\u7684\u3001\u7ed3\u6784\u5316\u7684\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/rag\/\">RAG<\/a><\/code>\uff08\u68c0\u7d22\u589e\u5f3a\u751f\u6210\uff09\u7cfb\u7edf\u3002<\/p>\n<p>\u7528\u6237\u53ef\u4ee5\u5728\u00a0<code>.clinerules\/<\/code>\u00a0\u76ee\u5f55\u4e0b\u521b\u5efa\u00a0<code>memory-bank.md<\/code>\uff0c<code>Cline<\/code>\u00a0\u5b98\u65b9\u793a\u4f8b\u63a8\u8350\u4e86\u4e00\u5957\u6587\u6863\u7ed3\u6784\uff0c\u5305\u62ec\u9879\u76ee\u7b80\u4ecb\u3001\u6280\u672f\u67b6\u6784\u3001\u5f00\u53d1\u72b6\u6001\u7b49\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/f0c5898d0930e08.png\" alt=\"\" \/><\/p>\n<p>\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c<code>Cline<\/code>\u00a0\u56e2\u961f\u63d0\u5021\u5728\u00a0<code>Memory Bank<\/code>\u00a0\u4e2d\u4f7f\u7528\u00a0<code>Mermaid<\/code>\u00a0\u56fe\u8868\uff0c\u4ed6\u4eec\u8ba4\u4e3a\uff1a\u201c\u4e0e AI \u4ea4\u6d41\u7684\u6700\u4f73\u65b9\u5f0f\u5e76\u975e\u81ea\u7136\u8bed\u8a00\u2014\u2014\u800c\u662f\u5de5\u4f5c\u6d41\u7684\u7ed3\u6784\u5316\u8bed\u8a00\u3002\u201d<\/p>\n<h2>\u6a21\u578b\u9002\u914d\u7684\u73b0\u5b9e\u8003\u91cf\uff1a\u4ee5 Claude 4 \u4e3a\u4f8b<\/h2>\n<p><code>Cline<\/code>\u00a0\u5728 3.17.9 \u7248\u672c\u4e2d\u4e3a\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/claudeanquanfubai\/\">Claude<\/a> 4<\/code>\u00a0\u6a21\u578b\u63d0\u4f9b\u4e86\u4e13\u95e8\u7684\u00a0<code>Prompt<\/code>\u00a0\u9002\u914d\u3002\u5b98\u65b9\u535a\u5ba2\u63d0\u5230\uff0c\u4e3a\u4e86\u89e3\u51b3\u00a0<code>Claude 4<\/code>\u00a0\u5728\u5904\u7406\u641c\u7d22\u548c\u66ff\u6362\u64cd\u4f5c\u65f6\u7684\u9519\u8bef\uff0c\u4ed6\u4eec\u8c03\u6574\u4e86\u5206\u9694\u7b26\uff0c\u7528\u00a0<code>-<\/code>\u00a0\u548c\u00a0<code>+<\/code>\u00a0\u66ff\u4ee3\u00a0<code>&lt;<\/code>\u00a0\u548c\u00a0<code>&gt;<\/code>\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u7f16\u8f91\u6210\u529f\u7387\u3002<\/p>\n<p>\u8fd9\u4e00\u7ec6\u8282\u63ed\u793a\u4e86\u4e00\u4e2a\u91cd\u8981\u7684\u5de5\u7a0b\u73b0\u5b9e\uff1a<code>Prompt<\/code>\u00a0\u5e76\u975e\u201c\u4e00\u6b21\u7f16\u5199\uff0c\u5230\u5904\u8fd0\u884c\u201d\u3002\u4e0d\u540c\u7684\u6a21\u578b\u5728\u6307\u4ee4\u9075\u5faa\u80fd\u529b\u3001\u683c\u5f0f\u504f\u597d\u548c\u8f93\u51fa\u7a33\u5b9a\u6027\u4e0a\u5b58\u5728\u5dee\u5f02\u3002\u56e0\u6b64\uff0c\u5728\u591a\u6a21\u578b\u73af\u5883\u4e2d\uff0c\u9488\u5bf9\u7279\u5b9a\u6a21\u578b\u8fdb\u884c\u00a0<code>Prompt<\/code>\u00a0\u7684\u7cbe\u7ec6\u5316\u6d4b\u8bd5\u548c\u8c03\u4f18\uff0c\u662f\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u53ef\u9760\u7684\u5173\u952e\u73af\u8282\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/a368b99f5e1e00d.png\" alt=\"\" \/><br \/>\n<em><a href=\"https:\/\/www.kdjingpai.com\/openrouterjichenga\/\">openrouter<\/a> \u7f51\u7ad9\u7edf\u8ba1\u663e\u793a\uff0cCline \u7684 Prompt \u957f\u5ea6\u548c\u590d\u6742\u5ea6\u8fdc\u8d85\u5176\u4ed6\u5e94\u7528<\/em><\/p>\n<p><code>Cline<\/code>\u00a0\u7684\u00a0<code>Prompt<\/code>\u00a0\u8bbe\u8ba1\u4f53\u73b0\u4e86\u9ad8\u5ea6\u7684\u6a21\u5757\u5316\u548c\u9632\u5fa1\u6027\u7f16\u7a0b\u601d\u60f3\u3002\u5b83\u901a\u8fc7\u8be6\u5c3d\u7684\u6307\u4ee4\u3001\u4e30\u5bcc\u7684\u4e0a\u4e0b\u6587\u3001\u6e05\u6670\u7684\u89c4\u5219\u548c\u591a\u5c42\u6b21\u7684\u5b9a\u5236\u5316\u80fd\u529b\uff0c\u5c06\u4e00\u4e2a\u901a\u7528\u7684\u8bed\u8a00\u6a21\u578b\uff0c\u6539\u9020\u6210\u4e3a\u4e00\u4e2a\u4e13\u6ce8\u3001\u53ef\u9760\u4e14\u9ad8\u6548\u7684\u8f6f\u4ef6\u5de5\u7a0b\u52a9\u624b\u3002\u5c3d\u7ba1\u8fd9\u79cd\u201c\u65e0\u5fae\u4e0d\u81f3\u201d\u7684\u00a0<code>Prompt<\/code>\u00a0\u8bbe\u8ba1\u4f1a\u6d88\u8017\u5927\u91cf\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/tokenization\/\">Token<\/a><\/code>\uff0c\u4f46\u5b83\u6362\u6765\u7684\u662f Agent \u5728\u6267\u884c\u590d\u6742\u4efb\u52a1\u65f6\u66f4\u9ad8\u7684\u786e\u5b9a\u6027\u548c\u6210\u529f\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u79cd\u6d41\u884c\u7684\u89c2\u70b9\u8ba4\u4e3a\uff0cAI Agent \u7684\u672c\u8d28\u662f\u6784\u5efa\u66f4\u6709\u6548\u7684\u00a0Prompt\u3002\u8fd9\u53e5\u8bdd\u867d\u4e0d\u5168\u9762\uff0c\u5374\u6307\u51fa\u4e86\u00a0Prompt\u00a0\u5de5\u7a0b\u5728 Agent \u5f00\u53d1\u4e2d\u7684\u6838\u5fc3\u5730\u4f4d\u3002\u672c\u6587\u5c06\u6df1\u5165\u00a0Cline\u00a0\u7684\u6e90\u4ee3\u7801\uff0c\u5256\u6790\u5176\u00a0Prompt\u00a0\u8bbe\u8ba1\u7684\u67b6\u6784\u4e0e\u7ec6\u8282\u3002 System&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-32369","post","type-post","status-publish","format-standard","hentry","category-prompts"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/32369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/comments?post=32369"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/32369\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media?parent=32369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/categories?post=32369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/tags?post=32369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}