Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GithubCopilotCLI勉強会

Avatar for program-kitchen program-kitchen
April 09, 2026
1.4k

 GithubCopilotCLI勉強会

Avatar for program-kitchen

program-kitchen

April 09, 2026

Transcript

  1. ターミナルが究極の「コマンドセンター」へと進化する Before: 従来の分断されたワークフロー IDE (コード編集)、Terminal (Git/実⾏)、Browser (調査 /PR) の間を頻繁にコンテキストスイッチする必要がありま した。

    After: Copilot CLIハブ ターミナルが「コマンドセンター」となり、ローカルファ イル、GitHub、外部ドキュメントを統合的に操作します。 エディタとブラウザを⾏き来する時代の終焉
  2. ⾃分の⼿に馴染む環境構築 Install & Start: npm install -g @github/copilot でグローバルイ ンストール

    Config: $HOME/.copilot/config.json でモデルやテーマを永続化 Permissions: --allow-tool 'write' で安全にファイル編集権限を 付与 セットアップとパーソナライズの基礎
  3. モード (Mode) コマンド (Command) ⽤途‧適したタスク (Use Case) Interactive (対話) copilot

    継続的な⽂脈を持つ通常開発や段階的なコード修正 Programmatic (プログラム) copilot -p '' ターミナルからの単発質問や、ワンライナーでの即時実⾏ Plan (計画) /plan 複雑な機能実装前に、詳細なタスク設計と⼿順化を⾏う Autopilot (⾃動操縦) /delegate バックグラウンドでの⾃律的な処理やタスクの委譲 4つのモードとその使い分け
  4. Git Integration コミットとPR作成 のシームレスな⾃動 化 Review /review コマンドに よる⾼感度分析 Refactor

    テスト⽣成を伴う安 全な構造変更 Debug コンテキストを理解 した根本原因の特定 Test 観点網羅による包括 的な安全網の構築 開発者の5⼤ワークフロー
  5. Step 1: Test Generation 「安全網」の構築。リファクタリング前に現状の振る舞い のテストを⽣成します。 Step 2: Refactoring Execution

    クリーンコードへの変換。コンテキストマネージャーの適 ⽤など、構造を改善します。 レビューと安全なリファクタリング
  6. シームレスな⾃動化 Local Git Data (diff/log) をエンジンが解釈し、意味のあるアウトプッ トを⽣成します。 Commit Message: コンベンショナルなメッセージを⾃動⽣

    成 Pull Request: /pr create でサマリーを⾃動作成 Delegation: 軽微な修正はAIに完全委譲 ワークフロー 5: GitとPRの完全統合
  7. 概念 役割 適⽤タイミング 実装 Agent (Persona) AIの思考⽅法‧⼈格を変える 専⾨的な知識が必要なとき .agent.md Skill

    (Process) 固有の⼿順やチェックリスト 繰り返し可能な定型作業 SKILL.md 拡張性の三位⼀体: Agent, Skill, MCP
  8. .agent.md の構造設計 エージェントの配置スコープ Project Scope: .github/agents/ リポジトリ単位でチーム共有。 User Scope: ~/.copilot/agents/

    全プロジェクトで使える⾃分専⽤ツール。 # Role: 役割の定義 # Scope: 対象範囲と制限 # Rules: 従うべきルール # Output: 出⼒形式の指定 カスタムエージェントの作成と配置
  9. ターミナルを離れず、⾃律的に完結する開発サイクル 1. Code Audit Agent/MCPを使い最新仕様でコードを監 査 2. Issue Creation 指摘事項をもとに構造化されたIssueを

    作成 3. Auto-Fix & PR Skillを⽤いて修正し、/prコマンドで作 成 4. Merge ターミナルからレビューし、マージ完了 究極の⾃動化フロー (E2E)
  10. > copilot 具体的に指⽰する: @ を使って適切なコンテキストを明⽰的に指 定する。 エージェントを育てる: .agent.md と SKILL.md

    を共有し、暗黙 知を標準化する。 全体で使う: 調査から実装、PR作成まで⼀気通貫で活⽤する。 ネクストアクション
  11. https://github.blog/wp-content/uploads/2022/06/Copilot.jpeg?fit=1200%2C630 Source: github.blog https://static.vecteezy.com/system/resources/previews/046/391/747/non_2x/terminal-icon-symbol-design-illustration-vector.jpg Source: www.vecteezy.com https://www.slideteam.net/media/catalog/product/cache/1280x720/c/o/computational_thinking_puzzle_model_for_problem_solving_slide01.jpg Source: www.slideteam.net https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/modules/testing-types-and-the-agile-testing-quadrant/explore-the-agile-testing-quadrants/images/bd141

    f351d7f5e1e8d3fbc5e09f9f865_kix.v4gtn8b5xvrk.jpg Source: trailhead.salesforce.com https://png.pngtree.com/png-vector/20260206/ourlarge/pngtree-a-git-branch-symbol-two-lines-merging-connected-to-server-tower-vector-png-image_18689887.webp Source: pngtree.com https://img.freepik.com/premium-vector/career-planning-icon-set-with-goal-target-strategy-growth-path-opportunity-vision-professional-development-symbols-dual-colo r-style-business-coaching-education-success-planning_1060463-7215.jpg Source: www.freepik.com Image Sources