GitHunt
KE

keyou/chromium

The mirror of the Chromium source

GitHub Copilot Integration in Chromium

This directory provides instructions and prompts for integrating GitHub Copilot
with the chromium codebase.

This directory is currently in a prototyping state and may be removed in the
future. As we add support for multiple coding IDE/agents, we will likely pull
common prompts and instructions into a central directory with stubs for bespoke
IDE/agent integration. Please check with your organization before using GitHub
Copilot.

Where is copilot-instructions.md?

copilot-intructions.md is typically a single
instruction file that contains default instructions for a workspace. These
instructions are automatically included in every chat request.

Until the prompt in copilot-intructions.md is generally agreed upon for the
chromium repo, this file is intentionally excluded from the repo, and added to
the .gitignore for your customization.

For generating your own copilot-intructions.md, type
/create_copilot_instructions in GitHub Copilot to get started.

Code Layout

  • .github/instructions: Custom instructions for specific
    tasks. For example, you can create instruction files for different programming
    languages, frameworks, or project types. You can attach individual prompt
    files to a chat request, or you can configure them to be automatically
    included for specific files or folders with applyTo syntax.
  • .github/prompts: Prompt files can be easily triggered from chat
    with / and allow you to craft complete prompts in Markdown files.
    Unlike custom instructions that supplement your chat queries prompts, prompt
    files are standalone prompts that you can store within your workspace and
    share with others. With prompt files, you can create reusable templates for
    common tasks, store domain expertise in the codebase, and standardize AI
    interactions across your team.
  • .github/resources: Prompt files that are resources for use by
    other prompts and instructions.

User Specific Prompts

Users can create their own prompts or instructions that match the regex
.github/**/user_.md which is captured in the .gitignore.

Contributing Guidelines

Use /git_commit_ghc

  • .github/instructions: Instructions that are automatically
    picked up using applyTo syntax will have a much higher review bar then those
    without it.
  • .github/prompts: All prompts should specify a mode and
    description.
  • .github/resources: All prompt resources should have an active
    reference or usecase a file in instructions or prompts, and should be
    cleaned up if their references are modified or removed.

Languages

C++74.1%Java8.5%Objective-C++4.7%TypeScript4.1%HTML2.6%Python2.4%JavaScript1.6%Objective-C0.9%C0.4%Starlark0.3%CSS0.2%Shell0.1%Rust0.0%Swift0.0%Jinja0.0%nesC0.0%Vue0.0%Perl0.0%AIDL0.0%PHP0.0%Emacs Lisp0.0%Makefile0.0%CMake0.0%GLSL0.0%Batchfile0.0%ANTLR0.0%Vim Script0.0%CodeQL0.0%Assembly0.0%AppleScript0.0%Nix0.0%PureBasic0.0%Roff0.0%Pawn0.0%Handlebars0.0%NASL0.0%DTrace0.0%templ0.0%Kotlin0.0%M40.0%HLSL0.0%XSLT0.0%sed0.0%GDB0.0%Ruby0.0%Linker Script0.0%Standard ML0.0%Rich Text Format0.0%WebAssembly0.0%DM0.0%SCSS0.0%
BSD 3-Clause "New" or "Revised" License
Created April 14, 2023
Updated July 15, 2025