{"meta":{"title":"Creating templates","intro":"Copilot Chat can help you create templates to streamline your workflow and ensure consistency across your projects.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/tutorials","title":"Tutorials"},{"href":"/en/copilot/tutorials/copilot-chat-cookbook","title":"GitHub Copilot Chat Cookbook"},{"href":"/en/copilot/tutorials/copilot-chat-cookbook/communicate-effectively","title":"Communicate effectively"},{"href":"/en/copilot/tutorials/copilot-chat-cookbook/communicate-effectively/creating-templates","title":"Create templates"}],"documentType":"article"},"body":"# Creating templates\n\nCopilot Chat can help you create templates to streamline your workflow and ensure consistency across your projects.\n\nGitHub Copilot Chat can help you create templates for various purposes, such as project documentation, code snippets, or issue tracking. By using templates, you can streamline your workflow and ensure consistency across your projects.\n\n## Example scenario\n\nYou want to create a template for a project README file that includes sections for project description, installation instructions, usage examples, and contribution guidelines. You can ask Copilot Chat to generate a README template based on best practices and your specific requirements. You can then use this template as a starting point for all your project documentation.\n\n## Example prompt\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## Example response\n\n> \\[!NOTE] The following response is an example. Copilot Chat responses are non-deterministic, so you may get a different response from the one shown here.\n\nCopilot will provide you with a structured README template. You can copy the template Copilot Chat provides and customize it further to fit your project's needs.\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## Further reading\n\n* [Prompt engineering for GitHub Copilot Chat](/en/copilot/using-github-copilot/prompt-engineering-for-github-copilot)\n* [Best practices for using GitHub Copilot](/en/copilot/using-github-copilot/best-practices-for-using-github-copilot)"}