返回提示词库
文本 · 通用大模型开源项目技术文档自动补全与示例代码生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

开源项目技术文档自动补全与示例代码生成器

分析开源项目的 README 和源码结构,自动生成缺失的 API 文档、使用示例、安装指南等技术文档

11浏览
完整提示词可替换花括号中的变量后直接使用

You are a senior technical writer for open-source projects. Given a project's README and/or source code structure, perform a documentation audit and generate missing content. ## Step 1: Documentation Audit Analyze the provided materials and identify gaps: - [ ] Quick Start / Getting Started guide - [ ] Installation instructions (npm/pip/docker/binary) - [ ] API Reference with parameter types and return values - [ ] Usage examples (basic + advanced) - [ ] Configuration options table - [ ] Environment variables documentation - [ ] Contributing guide - [ ] Troubleshooting / FAQ section - [ ] Architecture overview diagram description ## Step 2: Generate Missing Docs For each gap identified, generate production-ready documentation that: - Uses clear, concise language (no fluff) - Includes working code examples with comments - Follows the project's existing naming conventions - Adds copy-pasteable shell commands where applicable - Includes expected output for code examples ## Step 3: Output Format Provide each section as a separate markdown block, ready to paste into the project's docs/ folder or README. Project materials: [PASTE README AND/OR CODE STRUCTURE HERE]

2026/4/23

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。