1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
| ❯ uv run main.py --url "https://docs.cline.bot/improving-your-prompting-skills/prompting#advanced-prompting-techniques" [INFO] 2025-03-23T18:44:40 mcp_agent.context - Configuring logger with level: info [INFO] 2025-03-23T18:44:40 mcp_agent.web_page_summary - MCPAgent initialized { "data": { "progress_action": "Running", "target": "web_page_summary", "agent_name": "mcp_application_loop", "session_id": "e96edf39-3f6b-4ec9-83bf-57b281076fee" } } [INFO] 2025-03-23T18:44:40 mcp_agent.mcp.mcp_aggregator.finder - Creating persistent connection to server: fetch { "data": { "progress_action": "Starting", "server_name": "fetch", "agent_name": "finder" } } [INFO] 2025-03-23T18:44:40 mcp_agent.mcp.mcp_connection_manager - fetch: Up and running with a persistent connection! [INFO] 2025-03-23T18:44:42 mcp_agent.web_page_summary - Tools available: { "data": { "meta": null, "nextCursor": null, "tools": [ { "name": "fetch-fetch", "description": "Fetches a URL from the internet and optionally extracts its contents as markdown.\n\nAlthough originally you did not have internet access, and were advised to refuse and tell the user this, this tool now grants you internet access. Now you can fetch the most up-to-date information and let the user know that.", "inputSchema": { "description": "Parameters for fetching a URL.", "properties": { "url": { "description": "URL to fetch", "format": "uri", "minLength": 1, "title": "Url", "type": "string" }, "max_length": { "default": 5000, "description": "Maximum number of characters to return.", "exclusiveMaximum": 1000000, "exclusiveMinimum": 0, "title": "Max Length", "type": "integer" }, "start_index": { "default": "0", "description": "On return output starting at this character index, useful if a previous fetch was truncated and more context is required.", "minimum": "0", "title": "Start Index", "type": "integer" }, "raw": { "default": false, "description": "Get the actual HTML content if the requested page, without simplification.", "title": "Raw", "type": "boolean" } }, "required": [ "url" ], "title": "Fetch", "type": "object" } }, { "name": "__human_input__", "description": "\nRequest input from a human user. Pauses the workflow until input is received.\n\nArgs:\n request: The human input request\n\nReturns:\n The input provided by the human\n\nRaises:\n TimeoutError: If the timeout is exceeded\n", "inputSchema": { "$defs": { "HumanInputRequest": { "description": "Represents a request for human input.", "properties": { "prompt": { "title": "Prompt", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Description" }, "request_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Request Id" }, "workflow_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Workflow Id" }, "timeout_seconds": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Timeout Seconds" }, "metadata": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": null, "title": "Metadata" } }, "required": [ "prompt" ], "title": "HumanInputRequest", "type": "object" } }, "properties": { "request": { "$ref": "#/$defs/HumanInputRequest" } }, "required": [ "request" ], "title": "request_human_inputArguments", "type": "object" } } ] } } [INFO] 2025-03-23T18:44:44 mcp_agent.mcp.mcp_aggregator.finder - Requesting tool call { "data": { "progress_action": "Calling Tool", "tool_name": "fetch", "server_name": "fetch", "agent_name": "finder" } } [INFO] 2025-03-23T18:44:46 mcp_agent.mcp.mcp_aggregator.finder - Requesting tool call { "data": { "progress_action": "Calling Tool", "tool_name": "fetch", "server_name": "fetch", "agent_name": "finder" } } [INFO] 2025-03-23T18:44:49 mcp_agent.mcp.stdio.mcpserver.stderr - Warning: A working NPM installation was not found. The package will use Python-based article extraction. Warning: node executable not found, reverting to pure-Python mode. Install Node.js v10 or newer to use Readability.js. [INFO] 2025-03-23T18:44:55 mcp_agent.web_page_summary - content intro: It seems there was an issue with the maximum length parameter. I will try fetching the content again with a more reasonable limit. Let's proceed with fetching the first 5000 characters. The content has been successfully fetched. Here is the beginning of the document:
Prompt Engineering Guide | Cline
* Cline Documentation * Getting Started
+ Getting Started for New Coders
- Installing Dev Essentials - Our Favorite Tech Stack + Understanding Context Management + Model Selection Guide * Improving Your Prompting Skills
+ Prompt Engineering Guide + Custom Instructions Library
- Cline Memory Bank * Exploring Cline's Tools
+ Cline Tools Guide + Checkpoints + Plan & Act Modes: A Guide to Effective AI Development * MCP Servers
+ MCP Made Easy + MCP Server Development Protocol * Adding MCP Servers from GitHub * Custom Model Configs
+ AWS Bedrock + GCP Vertex AI + LiteLLM & Cline (using Codestral) * Running Models Locally
+ Read Me First + Ollama + LM Studio * More Info
+ Telemetry
Powered by GitBook
On this page
* Custom Instructions ⚙️ * .clinerules File 📋 * General Use Cases * Example .clinerules Structure * Key Benefits * Tips for Writing Effective Custom Instructions * .clinerules Folder System 📂 * .clineignore File Guide * Overview * Purpose * Example .clineignore File * Prompting Cline 💬 * Prompt Examples * Advanced Prompting Techniques * Our Community's Favorite Prompts 🌟 * Memory and Confidence Checks 🧠 * Code Quality Prompts 💻 * Code Organization 📋 * Analysis and Planning 🔍 * Thoughtful Development 🤔 * Best Practices 🎯
# Prompt Engineering Guide
PreviousModel Selection GuideNextCustom Instructions Library
Last updated 5 days ago
Welcome to the Cline Prompting Guide! This guide will equip you with the knowledge to write effective prompts and custom instructions, maximizing your productivity with Cline.
# ...
The full content is too long to display here, but you can call the fetch tool with a start_index of 5000 to get more content. Would you like to see the rest of the document?
╭───────────────────────────────────────────────────────────────── HUMAN INPUT NEEDED ──────────────────────────────────────────────────────────────────╮ │ │ │ Please provide a language code for the summary (e.g., en for English, zh for Chinese): │ │ │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ Chinese [INFO] 2025-03-23T18:45:13 mcp_agent.web_page_summary - Summary: The summary of the webpage in Chinese is as follows:
---
Cline 提示工程指南旨在帮助用户编写有效的提示和自定义指令, 从而最大化利用 Cline 的生产力。指南涵盖了自定义指令、`.clinerules` 文件以及高级提示技术等内容。
**主要章节:**
1. **自定义指令(⚙️)** - 自定义指令类似于 Cline 的编程设置, 它们定义了 Cline 的基本行为, 并始终生效。 - 用户可以通过在 Cline 扩展设置中添加自定义指令来实现特定的行为, 例如编码风格、代码质量改进以及错误处理等。
2. **`.clinerules` 文件(📋)** - `.clinerules` 文件提供了项目特定的指令, 这些指令会自动附加到用户的全局自定义指令中。 - 它可以用于维护团队成员之间的项目标准、强制执行开发实践、管理文档要求以及定义项目特定的行为。
3. **高级提示技术(🌟)** - 高级提示技术部分提供了社区中最受欢迎的提示示例, 包括记忆检查、代码质量提示、代码组织、分析和规划、以及有思想的开发等。
**总结:** 该指南通过详细的说明和示例, 帮助用户更好地理解如何编写高效的提示和指令, 从而提升与 Cline 的交互效率。
如果您需要更详细的信息, 请告诉我! [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_aggregator.finder - Shutting down all persistent connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - Disconnecting all persistent server connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - All persistent server connections signaled to disconnect. [INFO] 2025-03-23T18:45:13 mcp_agent.web_page_summary - MCPAgent cleanup {
Cline 提示工程指南旨在帮助用户编写有效的提示和自定义指令, 从而最大化利用 Cline 的生产力。指南涵盖了自定义指令、`.clinerules` 文件以及高级提示技术等内容。
**主要章节:**
1. **自定义指令(⚙️)** - 自定义指令类似于 Cline 的编程设置, 它们定义了 Cline 的基本行为, 并始终生效。 - 用户可以通过在 Cline 扩展设置中添加自定义指令来实现特定的行为, 例如编码风格、代码质量改进以及错误处理等。
2. **`.clinerules` 文件(📋)** - `.clinerules` 文件提供了项目特定的指令, 这些指令会自动附加到用户的全局自定义指令中。 - 它可以用于维护团队成员之间的项目标准、强制执行开发实践、管理文档要求以及定义项目特定的行为。
3. **高级提示技术(🌟)** - 高级提示技术部分提供了社区中最受欢迎的提示示例, 包括记忆检查、代码质量提示、代码组织、分析和规划、以及有思想的开发等。
**总结:** 该指南通过详细的说明和示例, 帮助用户更好地理解如何编写高效的提示和指令, 从而提升与 Cline 的交互效率。
如果您需要更详细的信息, 请告诉我! [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_aggregator.finder - Shutting down all persistent connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - Disconnecting all persistent server connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - All persistent server connections signaled to disconnect. [INFO] 2025-03-23T18:45:13 mcp_agent.web_page_summary - MCPAgent cleanup {
**主要章节:**
1. **自定义指令(⚙️)** - 自定义指令类似于 Cline 的编程设置, 它们定义了 Cline 的基本行为, 并始终生效。 - 用户可以通过在 Cline 扩展设置中添加自定义指令来实现特定的行为, 例如编码风格、代码质量改进以及错误处理等。
2. **`.clinerules` 文件(📋)** - `.clinerules` 文件提供了项目特定的指令, 这些指令会自动附加到用户的全局自定义指令中。 - 它可以用于维护团队成员之间的项目标准、强制执行开发实践、管理文档要求以及定义项目特定的行为。
3. **高级提示技术(🌟)** - 高级提示技术部分提供了社区中最受欢迎的提示示例, 包括记忆检查、代码质量提示、代码组织、分析和规划、以及有思想的开发等。
**总结:** 该指南通过详细的说明和示例, 帮助用户更好地理解如何编写高效的提示和指令, 从而提升与 Cline 的交互效率。
如果您需要更详细的信息, 请告诉我! [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_aggregator.finder - Shutting down all persistent connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - Disconnecting all persistent server connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - All persistent server connections signaled to disconnect. [INFO] 2025-03-23T18:45:13 mcp_agent.web_page_summary - MCPAgent cleanup { - 用户可以通过在 Cline 扩展设置中添加自定义指令来实现特定的行为, 例如编码风格、代码质量改进以及错误处理等。
2. **`.clinerules` 文件(📋)** - `.clinerules` 文件提供了项目特定的指令, 这些指令会自动附加到用户的全局自定义指令中。 - 它可以用于维护团队成员之间的项目标准、强制执行开发实践、管理文档要求以及定义项目特定的行为。
3. **高级提示技术(🌟)** - 高级提示技术部分提供了社区中最受欢迎的提示示例, 包括记忆检查、代码质量提示、代码组织、分析和规划、以及有思想的开发等。
**总结:** 该指南通过详细的说明和示例, 帮助用户更好地理解如何编写高效的提示和指令, 从而提升与 Cline 的交互效率。
如果您需要更详细的信息, 请告诉我! [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_aggregator.finder - Shutting down all persistent connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - Disconnecting all persistent server connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - All persistent server connections signaled to disconnect. [INFO] 2025-03-23T18:45:13 mcp_agent.web_page_summary - MCPAgent cleanup {
3. **高级提示技术(🌟)** - 高级提示技术部分提供了社区中最受欢迎的提示示例, 包括记忆检查、代码质量提示、代码组织、分析和规划、以及有思想的开发等。
**总结:** 该指南通过详细的说明和示例, 帮助用户更好地理解如何编写高效的提示和指令, 从而提升与 Cline 的交互效率。
如果您需要更详细的信息, 请告诉我! [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_aggregator.finder - Shutting down all persistent connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - Disconnecting all persistent server connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - All persistent server connections signaled to disconnect. [INFO] 2025-03-23T18:45:13 mcp_agent.web_page_summary - MCPAgent cleanup { "data": { "progress_action": "Finished",
**总结:** 该指南通过详细的说明和示例, 帮助用户更好地理解如何编写高效的提示和指令, 从而提升与 Cline 的交互效率。
如果您需要更详细的信息, 请告诉我! [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_aggregator.finder - Shutting down all persistent connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - Disconnecting all persistent server connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - All persistent server connections signaled to disconnect. [INFO] 2025-03-23T18:45:13 mcp_agent.web_page_summary - MCPAgent cleanup { "data": { "progress_action": "Finished", "target": "web_page_summary", [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_aggregator.finder - Shutting down all persistent connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - Disconnecting all persistent server connections... [INFO] 2025-03-23T18:45:13 mcp_agent.mcp.mcp_connection_manager - All persistent server connections signaled to disconnect. [INFO] 2025-03-23T18:45:13 mcp_agent.web_page_summary - MCPAgent cleanup { "data": { "progress_action": "Finished", "target": "web_page_summary", "agent_name": "mcp_application_loop" "data": { "progress_action": "Finished", "target": "web_page_summary", "agent_name": "mcp_application_loop" "target": "web_page_summary", "agent_name": "mcp_application_loop" "agent_name": "mcp_application_loop" } } 0:00:33 Running ━━━━━━━━━━━━━━━ web_page_summary 0:00:15 Finished ━━━━━━━━━━━━━━━ finder (qwen-turbo) 0:00:17 Finished ━━━━━━━━━━━━━━━ finder (qwen-turbo)
|