{"meta":{"title":"创建模板","intro":"副驾驶聊天 可帮助你创建模板，以便简化工作流并确保项目间的一致性。","product":"GitHub Copilot","breadcrumbs":[{"href":"/zh/copilot","title":"GitHub Copilot"},{"href":"/zh/copilot/tutorials","title":"教程"},{"href":"/zh/copilot/tutorials/copilot-chat-cookbook","title":"GitHub Copilot Chat 指南"},{"href":"/zh/copilot/tutorials/copilot-chat-cookbook/communicate-effectively","title":"有效沟通"},{"href":"/zh/copilot/tutorials/copilot-chat-cookbook/communicate-effectively/creating-templates","title":"创建模板"}],"documentType":"article"},"body":"# 创建模板\n\n副驾驶聊天 可帮助你创建模板，以便简化工作流并确保项目间的一致性。\n\nGitHub Copilot 聊天功能 可以帮助你创建用于各种用途的模板，例如项目文档、代码片段或议题跟踪。 使用模板可简化工作流并确保项目间的一致性。\n\n## 示例方案\n\n你想要为project自述文件创建模板，其中包含用于project说明、安装说明、使用示例和贡献指南的部分。 你可以要求 副驾驶聊天 根据最佳做法和特定要求生成 README 文件模板。 然后，可以将此模板用作所有project文档的起点。\n\n## 示例提示\n\n```text copy\nCreate a README template for a new open-source project that includes sections for project description, installation instructions, usage examples, and contribution guidelines. Make it clear and easy to follow.\n```\n\n## 示例响应\n\n> \\[!NOTE] 以下响应是示例。 副驾驶聊天 的回答是不确定的，因此你可能会得到与这里所显示的不同的回答。\n\nCopilot 将为你提供结构化的 README 文件模板。 你可以复制 副驾驶聊天 提供的模板，并对其进行进一步自定义，使其满足项目的需求。\n\n````markdown\n# Project Name\n\n> **Short description:**  \n> A brief summary of what your project does, its main features, and its purpose.\n\n---\n\n## Table of Contents\n\n- [Description](#description)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n---\n\n## Description\n\nProvide a detailed explanation of what your project does, why it exists, and any important background information.  \nYou may want to include:\n- Key features\n- Supported platforms or languages\n- Screenshots or diagrams\n\n---\n\n## Installation\n\n1. **Clone the repository**\n   ```sh\n   git clone https://github.com/your-username/your-repo-name.git\n   cd your-repo-name\n   ```\n\n2. **Install dependencies**\n   ```sh\n   # Example for Node.js projects\n   npm install\n\n   # Example for Python projects\n   pip install -r requirements.txt\n   ```\n\n3. **Additional setup**\n   - List any other required steps (e.g., environment variables, configuration files)\n\n---\n\n## Usage\n\nProvide clear usage instructions and code examples.\n\n```sh\n# Example command\nyour-command --option value\n```\n\n```python\n# Example in Python\nimport your_module\n\nresult = your_module.do_something()\nprint(result)\n```\n\n- Explain any CLI options, configuration, or parameters.\n- Link to more detailed documentation if available.\n\n---\n\n## Contributing\n\nContributions are welcome! Please follow these guidelines:\n\n1. **Fork the repository**\n2. **Create a new branch**\n   ```sh\n   git checkout -b feature/your-feature-name\n   ```\n3. **Make your changes**\n4. **Test your changes**\n5. **Commit and push**\n   ```sh\n   git commit -m \"Add feature: your-feature-name\"\n   git push origin feature/your-feature-name\n   ```\n6. **Open a pull request**\n\n**Code of Conduct:**  \nPlease be respectful and follow our [Code of Conduct](CODE_OF_CONDUCT.md).\n\n**Issues & Suggestions:**  \nOpen an issue for bugs, questions, or feature requests.\n\n---\n\n## License\n\nThis project is licensed under the [INSERT LICENSE](link to relevant license information).\n\n---\n\n## Contact\n\n- **Maintainer:** [Your Name](mailto:your@email.com)\n- **Project Link:** https://github.com/your-username/your-repo-name\n\n---\n````\n\n## 其他阅读材料\n\n* [GitHub Copilot 对话助手的提示设计](/zh/copilot/using-github-copilot/prompt-engineering-for-github-copilot)\n* [使用 GitHub Copilot 的最佳做法](/zh/copilot/using-github-copilot/best-practices-for-using-github-copilot)"}