Skip to main content

GitHub Copilot Cookbook

Learn how to use GitHub Copilot to accomplish specific tasks.

スポットライト

GitHubの問題からの機能の実装

GitHubの問題からの機能の実装

GitHubにGitHub Copilot CLI(コマンドラインインターフェース)問題を与え、会話を誘導して機能を実装します。
    CI テストエラーの診断

    CI テストエラーの診断

    Copilot CLI (コパイロット CLI)を使用して CI ログをプルし、エラーをローカル コードに関連付け、ターミナルを離れることなく問題を修正します。
      Improving code readability and maintainability

      Improving code readability and maintainability

      コパイロットチャット can suggest ways to make your code easier to understand and maintain.

        35例を調べる

        • テンプレートの作成

          コパイロットチャット は、ワークフローを合理化し、プロジェクト全体の一貫性を確保するためのテンプレートを作成するのに役立ちます。
          • Communicate effectively
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • リポジトリ アクティビティのトリアージと集計

          Copilotは、フォローしているリポジトリから重要な情報を抽出して、最近のアクティビティの up-to-date を維持できます。
          • Communicate effectively
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • CLI
        • 研究の総合

          Copilot Chat を使うと、複数のソースからの調査結果と分析情報をまとめて要約を合成できます。
          • Communicate effectively
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • ダイアグラムの作成

          GitHub Copilot Chat は、データをより深く理解し、分析情報を伝えるためのダイアグラムを作成するのに役立ちます。
          • Communicate effectively
          • Visualize data
          • Scale institutional knowledge
          • Author and optimize with Copilot
          • Chat
        • テーブルの生成

          コパイロットチャット は、テーブルを作成して情報を整理し、わかりやすく表示するのに役立ちます。
          • Communicate effectively
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • 無効な JSON のデバッグ

          コパイロットチャット では、JSON データの構文エラーや構造上の問題を特定して解決できます。
          • Debugging code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • API のレート制限の処理

          コパイロットチャット は、API レート制限を検出して再試行ロジックを実装するコードを提案することで、API レートの制限を処理するのに役立ちます。
          • Debugging code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • CI テストエラーの診断

          Copilot CLI (コパイロット CLI)を使用して CI ログをプルし、エラーをローカル コードに関連付け、ターミナルを離れることなく問題を修正します。
          • Debugging code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • CLI
        • Exploring potential feature implementations

          コパイロットチャット can help explore different approaches for implementing a single feature.
          • Functionality analysis
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • Analyzing and incorporating user feedback

          コパイロットチャット can enhance the process of incorporating user feedback into your project.
          • Functionality analysis
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • GitHubの問題からの機能の実装

          GitHubにGitHub Copilot CLI(コマンドラインインターフェース)問題を与え、会話を誘導して機能を実装します。
          • Author and optimize with Copilot
          • CLI
        • Improving code readability and maintainability

          コパイロットチャット can suggest ways to make your code easier to understand and maintain.
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • lint エラーの修正

          コパイロットチャット は、コード リンターによって識別される問題を修正する方法を提案できます。
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • Refactoring for performance optimization

          コパイロットチャット can suggest ways to speed up slow-running code.
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • Refactoring for environmental sustainability

          コパイロットチャット can suggest ways to make code more environmentally friendly.
          • Refactoring code
          • Improve quality and maintainability
          • Author and optimize with Copilot
          • Chat
        • 設計パターンを実装するためのリファクタリング

          コパイロットチャット は、コードの改善に使用できる設計パターンを提案できます。
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • データアクセスレイヤーのリファクタリング

          コパイロットチャット では、データ アクセス コードをビジネス ロジックから切り離して、アプリケーションの保守とスケーリングを容易にする方法を提案できます。
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • ビジネス ロジックの UI コンポーネントからの分離

          コパイロットチャット は、ビジネス ロジックをユーザー インターフェイス コードから分離し、アプリケーションの保守とスケーリングを容易にするのに役立ちます。
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • 横断的関心事の処理

          コパイロットチャット は、コードが配置されているメソッドまたは関数の主要な懸念事項以外の懸念事項に関連するコードを回避するのに役立ちます。
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • 複雑な継承階層の簡略化

          コパイロットチャット は、継承の複数のレイヤーを持つクラスを回避するためにコードをリファクタリングするのに役立ちます。
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • Fixing database deadlocks or data integrity issues

          コパイロットチャット can help you avoid code that causes slow or blocked database operations, or tables with missing or incorrect data.
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • コードを別のプログラミング言語に変換する

          コパイロットチャット は、同じ操作を別のプログラミング言語で実行するようにコードを書き直すのに役立ちます。
          • Refactoring code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • フローを中断せずに問題を提出する

          何かがタスクの途中で注意を引いたら、Copilot CLI (コパイロット CLI)を使用して、コード コンテキスト、リンクされた PR、ラベルに関するGitHubの問題を提出し、実行していた内容に戻ります。
          • Documenting code
          • Author and optimize with Copilot
          • CLI
        • Documenting legacy code

          コパイロットチャット can help with documenting legacy code.
          • Documenting code
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • Explaining legacy code

          コパイロットチャット can help with explaining unfamiliar code.
          • Documenting code
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • 複雑なアルゴリズムまたはロジックの説明

          コパイロットチャット は、複雑なアルゴリズムやロジックに関する明確で簡潔なドキュメントを追加するのに役立ちます。
          • Documenting code
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • ドキュメントとコードの変更の同期

          コパイロットチャット は、コードのドキュメントを最新の状態に保つのに役立ちます。
          • Documenting code
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • ディスカッションまたはブログ記事を書く

          コパイロットチャット は、アイデアの生成、概要の作成、またはディスカッションやブログ投稿の下書きに役立ちます。
          • Documenting code
          • Author and optimize with Copilot
          • Scale institutional knowledge
          • Chat
        • Generating unit tests

          コパイロットチャット can help with generating unit tests for a function.
          • Testing code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • Creating mock objects to abstract layers

          コパイロットチャット can help with creating mock objects that you can use for unit tests.
          • Testing code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • Web ページのエンドツーエンド テストの作成

          コパイロットチャット は、エンドツーエンドのテストの生成に役立ちます。
          • Testing code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • コードの変更に一致するように単体テストを更新する

          コパイロットチャット は、テストの更新に役立ちます。
          • Testing code
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • Securing your repository

          コパイロットチャット can help you to secure your repository and your code.
          • Security analysis
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • Managing dependency updates

          コパイロットチャット can help you get set up with Dependabot to streamline dependency updates.
          • Security analysis
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat
        • Finding existing vulnerabilities in code

          Copilot Chat can help find common vulnerabilities in your code and suggest fixes.
          • Security analysis
          • Author and optimize with Copilot
          • Improve quality and maintainability
          • Chat