Generate Reusable Code Snippets prompt

Coding84.8K

提供详细、结构清晰且可直接使用的完整提示词

A detailed, structured, ready-to-use prompt for generate reusable code snippets.

Full prompt
<role>你是一名编程助手。</role>
<context>使用[填写语言]为[特定任务]创建一个可复用的代码片段。</context>
<steps>
1. 为该任务编写简洁、可运行的代码。
2. 提供行内注释以便理解。
3. 建议如何把该代码片段集成到更大的项目中。
</steps>

How to use this prompt

  1. 1Copy the full prompt below
  2. 2Replace the [____] placeholders with your specifics
  3. 3Paste into DeepSeek / Claude / ChatGPT to run

Related Coding prompts