{"meta":{"title":"Tutorials for GitHub Copilot","intro":"Build skills and knowledge about GitHub Copilot through examples and hands-on activities.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/tutorials","title":"Tutorials"}],"documentType":"category"},"body":"# Tutorials for GitHub Copilot\n\nBuild skills and knowledge about GitHub Copilot through examples and hands-on activities.\n\n## Recommended\n\n* [GitHub Copilot Cookbook](/en/copilot/tutorials/copilot-cookbook)\n\n  Learn how to use GitHub Copilot to accomplish specific tasks.\n\n* [Customization library](/en/copilot/tutorials/customization-library)\n\n  Discover a curated collection of customizations, including custom instructions, custom agents, and prompt files, to enhance your GitHub Copilot experience.\n\n* [Rolling out GitHub Copilot at scale](/en/copilot/tutorials/roll-out-at-scale)\n\n  Learn how to manage a Copilot rollout in your organization or enterprise.\n\n## Articles\n\n* [Creating templates](/en/copilot/tutorials/copilot-cookbook/communicate-effectively/creating-templates)\n\n  Copilot Chat can help you create templates to streamline your workflow and ensure consistency across your projects.\n\n* [Triage and summarize repository activity](/en/copilot/tutorials/copilot-cookbook/communicate-effectively/summarize-repository-activity)\n\n  Copilot can extract key information from repositories you follow to keep you up-to-date on recent activity.\n\n* [Synthesizing research](/en/copilot/tutorials/copilot-cookbook/communicate-effectively/synthesizing-research)\n\n  Copilot Chat can help you synthesize research findings and insights from multiple sources into a cohesive summary.\n\n* [Creating diagrams](/en/copilot/tutorials/copilot-cookbook/communicate-effectively/creating-diagrams)\n\n  GitHub Copilot Chat can help you create diagrams to better understand your data and communicate insights.\n\n* [Debugging invalid JSON](/en/copilot/tutorials/copilot-cookbook/debug-errors/debug-invalid-json)\n\n  Copilot Chat can identify and resolve syntax errors or structural issues in JSON data.\n\n* [Handling API rate limits](/en/copilot/tutorials/copilot-cookbook/debug-errors/handle-api-rate-limits)\n\n  Copilot Chat can help handle API rate limits by suggesting code that detects them and implements retry logic.\n\n* [Diagnosing CI test failures](/en/copilot/tutorials/copilot-cookbook/debug-errors/diagnose-ci-test-failures)\n\n  Use Copilot CLI to pull CI logs, correlate failures to local code, and fix issues without leaving the terminal.\n\n* [Exploring potential feature implementations](/en/copilot/tutorials/copilot-cookbook/analyze-functionality/explore-implementations)\n\n  Copilot Chat can help explore different approaches for implementing a single feature.\n\n* [Analyzing and incorporating user feedback](/en/copilot/tutorials/copilot-cookbook/analyze-functionality/analyze-feedback)\n\n  Copilot Chat can enhance the process of incorporating user feedback into your project.\n\n* [Implementing a feature from a GitHub Issue](/en/copilot/tutorials/copilot-cookbook/generate-code/implement-a-feature)\n\n  Give a GitHub issue to GitHub Copilot CLI, then steer the conversation to implement the feature.\n\n* [Improving code readability and maintainability](/en/copilot/tutorials/copilot-cookbook/refactor-code/improve-code-readability)\n\n  Copilot Chat can suggest ways to make your code easier to understand and maintain.\n\n* [Refactoring for performance optimization](/en/copilot/tutorials/copilot-cookbook/refactor-code/refactor-for-optimization)\n\n  Copilot Chat can suggest ways to speed up slow-running code.\n\n* [Refactoring to implement a design pattern](/en/copilot/tutorials/copilot-cookbook/refactor-code/refactor-design-patterns)\n\n  Copilot Chat can suggest design patterns that you can use to improve your code.\n\n* [Refactoring data access layers](/en/copilot/tutorials/copilot-cookbook/refactor-code/refactor-data-access-layers)\n\n  Copilot Chat can suggest ways to decouple your data access code from your business logic, making an application easier to maintain and scale.\n\n* [Handling cross-cutting concerns](/en/copilot/tutorials/copilot-cookbook/refactor-code/handle-cross-cutting)\n\n  Copilot Chat can help you avoid code that relates to a concern other than the core concern of the method or function in which the code is located.\n\n* [Simplifying complex inheritance hierarchies](/en/copilot/tutorials/copilot-cookbook/refactor-code/simplify-inheritance-hierarchies)\n\n  Copilot Chat can help you to refactor code to avoid classes with multiple layers of inheritance.\n\n* [Fixing database deadlocks or data integrity issues](/en/copilot/tutorials/copilot-cookbook/refactor-code/fix-database-deadlocks)\n\n  Copilot Chat can help you avoid code that causes slow or blocked database operations, or tables with missing or incorrect data.\n\n* [Translating code to a different programming language](/en/copilot/tutorials/copilot-cookbook/refactor-code/translate-code)\n\n  Copilot Chat can help you rewrite code to perform the same operations but in a different programming language.\n\n* [Generating unit tests](/en/copilot/tutorials/copilot-cookbook/testing-code/generate-unit-tests)\n\n  Copilot Chat can help with generating unit tests for a function.\n\n* [Creating mock objects to abstract layers](/en/copilot/tutorials/copilot-cookbook/testing-code/create-mock-objects)\n\n  Copilot Chat can help with creating mock objects that you can use for unit tests.\n\n* [Creating end-to-end tests for a webpage](/en/copilot/tutorials/copilot-cookbook/testing-code/create-end-to-end-tests)\n\n  Copilot Chat can help with generating end-to-end tests.\n\n* [Securing your repository](/en/copilot/tutorials/copilot-cookbook/analyze-security/secure-your-repository)\n\n  Copilot Chat can help you to secure your repository and your code.\n\n* [Managing dependency updates](/en/copilot/tutorials/copilot-cookbook/analyze-security/manage-dependency-updates)\n\n  Copilot Chat can help you get set up with Dependabot to streamline dependency updates.\n\n* [Finding existing vulnerabilities in code](/en/copilot/tutorials/copilot-cookbook/analyze-security/find-vulnerabilities)\n\n  Copilot Chat can help find common vulnerabilities in your code and suggest fixes.\n\n* [Your first custom instructions](/en/copilot/tutorials/customization-library/custom-instructions/your-first-custom-instructions)\n\n  Create and test your first custom instruction with this simple example.\n\n* [Concept explainer](/en/copilot/tutorials/customization-library/custom-instructions/concept-explainer)\n\n  Instructions for breaking down complex technical concepts.\n\n* [Debugging tutor](/en/copilot/tutorials/customization-library/custom-instructions/debugging-tutor)\n\n  Instructions for systematic debugging and troubleshooting.\n\n* [Code reviewer](/en/copilot/tutorials/customization-library/custom-instructions/code-reviewer)\n\n  Instructions for thorough and constructive code reviews.\n\n* [GitHub Actions helper](/en/copilot/tutorials/customization-library/custom-instructions/github-actions-helper)\n\n  Generate and improve GitHub Actions workflows.\n\n* [Pull request assistant](/en/copilot/tutorials/customization-library/custom-instructions/pull-request-assistant)\n\n  Generate comprehensive pull request descriptions and reviews.\n\n* [Issue manager](/en/copilot/tutorials/customization-library/custom-instructions/issue-manager)\n\n  Create well-structured issues and responses.\n\n* [Accessibility auditor](/en/copilot/tutorials/customization-library/custom-instructions/accessibility-auditor)\n\n  Instructions for comprehensive web accessibility testing and compliance.\n\n* [Testing automation](/en/copilot/tutorials/customization-library/custom-instructions/testing-automation)\n\n  File-specific instructions for writing unit tests.\n\n* [Your first prompt file](/en/copilot/tutorials/customization-library/prompt-files/your-first-prompt-file)\n\n  Create your first Copilot prompt file with this simple code explanation example that works for any programming language.\n\n* [Create README](/en/copilot/tutorials/customization-library/prompt-files/create-readme)\n\n  Generate comprehensive README files for your projects.\n\n* [Onboarding plan](/en/copilot/tutorials/customization-library/prompt-files/onboarding-plan)\n\n  A prompt file for getting personalized help with team onboarding.\n\n* [Document API](/en/copilot/tutorials/customization-library/prompt-files/document-api)\n\n  Generate comprehensive API documentation from your code.\n\n* [Review code](/en/copilot/tutorials/customization-library/prompt-files/review-code)\n\n  Perform comprehensive code reviews with structured feedback.\n\n* [Generate unit tests](/en/copilot/tutorials/customization-library/prompt-files/generate-unit-tests)\n\n  Create focused unit tests for your code.\n\n* [Your first custom agent](/en/copilot/tutorials/customization-library/custom-agents/your-first-custom-agent)\n\n  Create and test your first custom agent with this simple README specialist example.\n\n* [Implementation planner](/en/copilot/tutorials/customization-library/custom-agents/implementation-planner)\n\n  A custom agent that breaks down features into actionable tasks and creates detailed implementation plans.\n\n* [Bug fix teammate](/en/copilot/tutorials/customization-library/custom-agents/bug-fix-teammate)\n\n  A custom agent that identifies critical bugs in your project and implements targeted fixes.\n\n* [Cleanup specialist](/en/copilot/tutorials/customization-library/custom-agents/cleanup-specialist)\n\n  A custom agent that cleans up messy code, removes duplication, and improves maintainability across code and documentation files.\n\n* [Best practices for using GitHub Copilot to work on tasks](/en/copilot/tutorials/cloud-agent/get-the-best-results)\n\n  Learn how to get the best results from Copilot in the cloud.\n\n* [Using GitHub Copilot cloud agent to improve a project](/en/copilot/tutorials/cloud-agent/improve-a-project)\n\n  Find and fix problems in a project with Copilot.\n\n* [Building a secure cloud environment for agents in your enterprise](/en/copilot/tutorials/cloud-agent/build-guardrails)\n\n  Prepare enterprise policies, repository protections, and runner settings for a controlled rollout of Copilot in the cloud.\n\n* [Giving GitHub Copilot cloud sessions access to resources in your organization](/en/copilot/tutorials/cloud-agent/give-access-to-resources)\n\n  Get more out of Copilot by giving it access to approved MCP servers and internal packages in cloud sessions.\n\n* [Getting started with budget controls](/en/copilot/tutorials/budgets/getting-started-with-budget-controls)\n\n  Set up budget guardrails for your enterprise before your team starts consuming AI credits.\n\n* [Optimizing your budget configuration](/en/copilot/tutorials/budgets/optimizing-your-budget-configuration)\n\n  Find the right combination of budget controls for your organization based on your size, structure, and spending goals.\n\n* [Using custom instructions to unlock the power of Copilot code review](/en/copilot/tutorials/customize-code-review)\n\n  Learn how to write effective custom instructions that help GitHub Copilot provide more relevant and actionable code reviews.\n\n* [Use GitHub Copilot code review across the pull request lifecycle](/en/copilot/tutorials/use-copilot-code-review-across-the-pull-request-lifecycle)\n\n  Build a repeatable workflow for Copilot code review from draft pull request to merge.\n\n* [Enhancing GitHub Copilot agent mode with MCP](/en/copilot/tutorials/enhance-agent-mode-with-mcp)\n\n  Learn how to use the Model Context Protocol (MCP) to expand the agentic capabilities of Copilot Chat.\n\n* [Speeding up development work with GitHub Copilot Spaces](/en/copilot/tutorials/speed-up-development-work)\n\n  Learn how to use Copilot Spaces to help you with development work.\n\n* [Choosing your enterprise's plan for GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/assign-licenses/choose-enterprise-plan)\n\n  Compare enterprise access charges, usage allowances, and capabilities to choose a Copilot plan for your rollout.\n\n* [Setting up a self-serve process for GitHub Copilot licenses](/en/copilot/tutorials/roll-out-at-scale/assign-licenses/set-up-self-serve-licenses)\n\n  Learn how users can request a license and receive access immediately.\n\n* [Tracking license activation and initial usage with Copilot usage metrics](/en/copilot/tutorials/roll-out-at-scale/assign-licenses/track-usage-and-adoption)\n\n  Identify and act on GitHub Copilot adoption signals and activation with usage metrics.\n\n* [Reminding inactive users to use their GitHub Copilot license](/en/copilot/tutorials/roll-out-at-scale/assign-licenses/remind-inactive-users)\n\n  Use the GitHub API to identify inactive users and help them get started.\n\n* [Resources for getting approval of GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/govern-at-scale/resources-for-approval)\n\n  Get ready to adopt Copilot by sending resources to legal and security teams in your company.\n\n* [Establishing AI managers in your enterprise](/en/copilot/tutorials/roll-out-at-scale/govern-at-scale/establish-ai-managers)\n\n  Reduce your administrative burden and empower your SMEs by creating a team of AI managers.\n\n* [Governing Copilot to support developer productivity](/en/copilot/tutorials/roll-out-at-scale/govern-at-scale/govern-for-adoption)\n\n  Set a governance posture that balances compliance requirements with developer productivity, so your rollout succeeds from day one.\n\n* [Pilot a new Copilot feature or model in your enterprise](/en/copilot/tutorials/roll-out-at-scale/govern-at-scale/pilot-a-feature-or-model)\n\n  Pilot a new Copilot feature or model to validate adoption, control costs, and gather evidence for a wider rollout.\n\n* [Maintaining codebase standards in a GitHub Copilot rollout](/en/copilot/tutorials/roll-out-at-scale/govern-at-scale/maintain-codebase-standards)\n\n  Stay in control of your enterprise's code with rulesets, security features, and effective training.\n\n* [Driving GitHub Copilot adoption in your company](/en/copilot/tutorials/roll-out-at-scale/enable-developers/drive-adoption)\n\n  Learn how to plan an effective enablement process to drive Copilot adoption.\n\n* [Rolling out the GitHub Copilot app to your team](/en/copilot/tutorials/roll-out-at-scale/enable-developers/copilot-app-for-teams)\n\n  Roll out the GitHub Copilot app so developers can direct agents across parallel tasks while you control access, model availability, and external tools.\n\n* [Understanding how AI agents fit into your enterprise's workflows](/en/copilot/tutorials/roll-out-at-scale/enable-developers/integrate-ai-agents)\n\n  Identify where AI agents can help your teams, and plan the governance and support needed to adopt them across your enterprise.\n\n* [Driving team adoption of agentic GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/enable-developers/drive-team-agentic-adoption)\n\n  Help established teams build sustained habits with the GitHub Copilot app and Copilot CLI, then measure adoption and business impact.\n\n* [Achieving your company's engineering goals with GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/achieve-company-goals)\n\n  Plan your rollout based on GitHub's recommended approach for driving and measuring improvements.\n\n* [Increasing test coverage in your company with GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/increase-test-coverage)\n\n  Understand features, enable developers, and measure Copilot's impact.\n\n* [Accelerating pull requests in your company with GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/accelerate-pull-requests)\n\n  Understand features, enable developers, and measure Copilot's impact.\n\n* [Reducing security debt in your company with GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/reduce-security-debt)\n\n  Understand features, enable developers, and measure Copilot's impact.\n\n* [Measure and demonstrate the impact of GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/measure-copilot-impact)\n\n  Use Copilot metrics and engineering outcomes to assess your rollout and guide investment decisions.\n\n* [Communicate the impact of GitHub Copilot](/en/copilot/tutorials/roll-out-at-scale/communicate-copilot-impact)\n\n  Support renewal, rollout, and training decisions with a clear account of Copilot usage, costs, and engineering outcomes.\n\n* [Measuring the success of a GitHub Copilot trial](/en/copilot/tutorials/roll-out-at-scale/measure-success)\n\n  Measure the success of a Copilot trial by analyzing adoption, engagement, and early usage patterns using Copilot usage metrics.\n\n* [Using GitHub Copilot to explore a codebase](/en/copilot/tutorials/explore-a-codebase)\n\n  GitHub Copilot Chat can help you gain an understanding of the content, structure, and functionality of a codebase.\n\n* [Using GitHub Copilot to explore issues and discussions](/en/copilot/tutorials/explore-issues-and-discussions)\n\n  GitHub Copilot Chat can help you quickly gain context of lengthy discussions and issues.\n\n* [Using GitHub Copilot to explore pull requests](/en/copilot/tutorials/explore-pull-requests)\n\n  GitHub Copilot Chat can help you understand the content, functionality, and status of a pull request.\n\n* [Writing tests with GitHub Copilot](/en/copilot/tutorials/write-tests)\n\n  Use Copilot to generate unit and integration tests, and help improve code quality.\n\n* [Optimizing your AI usage to maximize efficiency and reduce cost](/en/copilot/tutorials/optimize-ai-usage)\n\n  Learn how to choose the right models, structure your prompts, and add guardrails so that Copilot completes tasks more efficiently and uses fewer AI credits.\n\n* [Optimize GitHub Copilot Chat context to reduce AI credit usage](/en/copilot/tutorials/optimize-chat-usage)\n\n  Keep Copilot Chat responses focused and reduce AI credits usage by knowing when to continue a conversation and when to start a new one.\n\n* [Build an optimized review process with Copilot](/en/copilot/tutorials/optimize-code-reviews)\n\n  Automate reviews with Copilot to optimize and improve your review process.\n\n* [Using GitHub Copilot to reduce technical debt](/en/copilot/tutorials/reduce-technical-debt)\n\n  Use Copilot to automate refactoring and maintenance tasks, freeing your team to focus on feature development.\n\n* [Stack AI-generated code in pull requests](/en/copilot/tutorials/stack-ai-generated-code-in-pull-requests)\n\n  Create a stack of small, dependent pull requests that can be quickly reviewed.\n\n* [Review AI-generated code](/en/copilot/tutorials/review-ai-generated-code)\n\n  Learn techniques to verify and validate AI-generated code, and how Copilot Chat can help.\n\n* [Vibe coding with GitHub Copilot](/en/copilot/tutorials/vibe-coding)\n\n  Create an application without writing any code yourself.\n\n* [Rolling out Copilot CLI hooks for your teams](/en/copilot/tutorials/copilot-cli-hooks)\n\n  Give your platform teams visibility into Copilot CLI usage and help developers follow organizational policies with repository-scoped hooks.\n\n* [Using Copilot CLI as your AI SME](/en/copilot/tutorials/use-an-ai-sme)\n\n  Use Copilot CLI as an always-available subject matter expert to learn how a codebase works, so you can confidently maintain it or add new features.\n\n* [Creating extensions for GitHub Copilot CLI](/en/copilot/tutorials/create-an-extension)\n\n  Build extensions that add your own tools and slash commands to Copilot CLI."}