Official agent skill

GitHub Copilot Agent Tips And Tricks

by github in github/gh-aw

Practical tips for reviewing and improving Copilot agent PRs.

OfficialMITAuto-check passedDevelopment

Install GitHub Copilot Agent Tips And Tricks

skills CLI
$ npx skills add github/gh-aw --skill github-copilot-agent-tips-and-tricks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install github/gh-aw github-copilot-agent-tips-and-tricks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/github/gh-aw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/github-copilot-agent-tips-and-tricks .claude/skills/github-copilot-agent-tips-and-tricks && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
github-copilot-agent-tips-and-tricks
GitHub stars
5.3k
Token cost
~1.6k tokens
SKILL.md length
415 words
Files
1
Skills in repo
52
Repo updated
First seen
Licence
MIT

At a glance

Practical tips for reviewing and improving Copilot agent PRs.

  • Works in 5 steps: Refactoring and Code Organization → Documentation Improvements → Bug Fixes → …
  • Development work in your project
  • SKILL.md covers Identifying Copilot Agent PRs, Searching for Copilot Agent PRs, Common Copilot Agent PR Patterns and Workflow Tips, plus 3 more sections
  • Calls gh and git; needs GH_TOKEN

What it does

GitHub Copilot Agent Tips And Tricks is an agent skill from github/gh-aw, published by the product's own GitHub organization. Practical tips for reviewing and improving Copilot agent PRs.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with GitHub. The repository describes itself as: GitHub Agentic Workflows. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/github-copilot-agent-tips-and-tricks”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Refactoring and Code Organization
  2. Documentation Improvements
  3. Bug Fixes
  4. Testing Enhancements
  5. Security Fixes

What it can do on your machine

Read from SKILL.md and the folder at commit eb63040. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • cli.github.com
    • docs.github.com
    • git-scm.com
    • stedolan.github.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GH_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

GitHub Copilot Agent Tips And Tricks loads about 1.6k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 415 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from github/gh-aw at commit eb63040, republished under its MIT licence (© github). 415 words, ~1,606 tokens.

Download SKILL.mdSave it as .claude/skills/github-copilot-agent-tips-and-tricks/SKILL.md (or your agent's skills folder).
name
github-copilot-agent-tips-and-tricks
description
Practical tips for reviewing and improving Copilot agent PRs.

GitHub Copilot Agent Tips and Tricks

Use this guide to find, review, and work with Copilot coding agent pull requests in gh-aw.

Identifying Copilot Agent PRs

Branch Naming Convention

Copilot coding agent branches use the copilot/ prefix, which makes them easy to identify and filter.

Examples from this repository:

  • copilot/add-cache-for-imported-workflows
  • copilot/fix-istruthy-bundling-issue
  • copilot/update-audit-command-copilot
  • copilot/refactor-mcp-tool-rendering
Author Attribution

Copilot coding agent PRs are typically authored by:

  • app/github-copilot - The GitHub Copilot bot account
  • Individual developers using Copilot as an assistant

Searching for Copilot Agent PRs

Using GitHub CLI (gh)

Prerequisites:

bash
# Authenticate with GitHub CLI
gh auth login

Search by author (GitHub Copilot bot):

bash
# List all PRs created by the Copilot bot
gh pr list --author "app/github-copilot" --limit 100

# Include closed PRs
gh pr list --author "app/github-copilot" --state all --limit 100

# Get detailed JSON output
gh pr list --author "app/github-copilot" --json number,title,author,headRefName,createdAt,state

Search by branch prefix:

bash
# Find all PRs from copilot/* branches
gh pr list --search "head:copilot/" --state all

# Combine with other filters
gh pr list --search "head:copilot/ is:open"
gh pr list --search "head:copilot/ is:merged"

Filter with jq:

bash
# Extract specific fields
gh pr list --limit 100 --json author,number,title,headRefName \
  --jq '.[] | select(.headRefName | startswith("copilot/")) | {number, title, branch: .headRefName}'

# Filter by author containing "copilot"
gh pr list --limit 100 --json author,number,title \
  --jq '.[] | select(.author.login | contains("copilot"))'
Using Git Commands

List copilot branches:

bash
# Local and remote copilot branches
git branch -a | grep copilot

# Remote copilot branches only
git branch -r | grep copilot

Search commit history:

bash
# Find commits with "copilot" in message
git log --all --grep="copilot" --oneline

# Find commits by copilot author
git log --all --author="copilot" --oneline

# Show graph with copilot-related commits
git log --all --grep="copilot" --oneline --graph

Find merged copilot PRs:

bash
# Search for merge commits
git log --all --merges --grep="copilot" --oneline

# With PR numbers
git log --all --merges --oneline | grep -i copilot

Common Copilot Agent PR Patterns

Recent Examples from gh-aw Repository

Based on analysis of this repository, Copilot coding agent PRs typically address:

  1. Refactoring and Code Organization

    • Example: "Refactor ALL_TOOLS to separate JSON file with runtime filtering"
    • Example: "Eliminate duplicate MCP tool table rendering logic"
  2. Documentation Improvements

    • Example: "Document strict mode enforcement areas and CLI flag in schema"
    • Example: "Add comprehensive strict mode reference documentation"
  3. Bug Fixes

    • Example: "Fix JavaScript test assertions for loadAgentOutput error handling"
    • Example: "Remove duplicate formatFileSize() function"
  4. Testing Enhancements

    • Example: "Add integration tests for playwright MCP configuration across all engines"
  5. Security Fixes

    • Example: "Fix template injection risk in copilot-session-insights workflow"
PR Metadata to Check

When reviewing Copilot coding agent PRs, pay attention to:

  • Branch name: Should follow copilot/descriptive-name pattern
  • Commit messages: Often include "Initial plan" commits
  • PR description: Should explain the problem and solution
  • Linked issues: May reference issues being addressed
Show full SKILL.md (154 more words)Show less

Workflow Tips

bash
# Find PRs related to a specific feature
gh pr list --search "head:copilot/ refactor" --state all

# Find PRs in a date range
gh pr list --search "head:copilot/ created:>=2024-01-01" --state all

# Find PRs with specific labels
gh pr list --search "head:copilot/ label:enhancement"
Reviewing Copilot PRs
bash
# Check out a copilot PR locally
gh pr checkout <PR-number>

# View PR diff
gh pr diff <PR-number>

# View PR details
gh pr view <PR-number>

# View PR in browser
gh pr view <PR-number> --web
Tracking Copilot Contributions
bash
# Count merged copilot PRs
gh pr list --author "app/github-copilot" --state merged --json number --jq 'length'

# List recent copilot PRs with dates
gh pr list --author "app/github-copilot" --state all --limit 20 \
  --json number,title,createdAt,state \
  --jq '.[] | "\(.number): \(.title) (\(.state)) - \(.createdAt)"'

# Export to CSV for analysis
gh pr list --author "app/github-copilot" --state all --limit 100 \
  --json number,title,createdAt,state,author \
  --jq -r '.[] | [.number, .title, .state, .createdAt] | @csv' > copilot-prs.csv

Troubleshooting

Authentication Issues

If you see "gh auth login" prompts:

bash
# Authenticate with GitHub CLI
gh auth login

# Or set token environment variable
export GH_TOKEN="your-github-token"
No Results Found

If searches return no results:

  1. Verify you're in the correct repository
  2. Check if the author name is correct (try app/github-copilot or github-copilot)
  3. Try searching by branch prefix instead: gh pr list --search "head:copilot/"
  4. Check if PRs exist: git branch -r | grep copilot
Rate Limiting

If you hit GitHub API rate limits:

bash
# Check rate limit status
gh api rate_limit

# Use authenticated requests (higher limits)
gh auth login

Best Practices

  1. Use branch prefix search when author search is unavailable
  2. Export PR lists regularly for tracking and analysis
  3. Review commit history to understand Copilot's implementation approach
  4. Check for "Initial plan" commits to see Copilot's planning process
  5. Verify tests pass before merging Copilot PRs
  6. Review security implications especially for workflow changes

Additional Resources

© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/github-copilot-agent-tips-and-tricks of github/gh-aw.

Open the folder on GitHubat commit eb63040

Compare with similar skills

GitHub Copilot Agent Tips And Tricks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

GitHub Copilot Agent Tips And Tricks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GitHub Copilot Agent Tips And Tricks this skillgithub/gh-aw5.3k—~1.6kAutomated safety check: PassMIT
Store Submitzhitongblog/solomd1.2k—~1.7kAutomated safety check: NotesMIT
Linea Dependency MaintenanceConsensys-Incorporated/linea-attestation-registry1771 repos~3.7kAutomated safety check: WarnMIT
Releasezmievsa/cadwyn309—~522Automated safety check: PassMIT
Gator GateNVIDIA/OpenShell15k—~19kAutomated safety check: PassApache-2.0
Dependabot Alerts Updatelivesession/xyd114—~2kAutomated safety check: PassMIT

Similar skills

  • Store Submit

    zhitongblog/solomd

    Publish a SoloMD release to the stores that have no usable submission API — Google Play Console and Microsoft Partner Center — by driving them through the local Unzoo Browser REST API.

    1.2k GitHub stars~1.7k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Linea Dependency Maintenance

    Consensys-Incorporated/linea-attestation-registry

    Safely plan and execute dependency maintenance for JavaScript/TypeScript (npm, pnpm) and GitHub Actions, including npm lockfiles, pnpm workspaces, catalogs, overrides, SHA-pinned action versions…

    177 GitHub starsUsed in 1 repo~3.7k tokens
    DevelopmentAuto-check: warnings
  • Release

    zmievsa/cadwyn

    Prepare and publish Cadwyn releases. An agent skill from zmievsa/cadwyn.

    309 GitHub stars~522 tokensUpdated today
    DevelopmentAuto-check passed
  • Gator Gate

    NVIDIA/OpenShell

    Official

    Validate and monitor OpenShell GitHub issues and PRs using the gator: state machine.

    15k GitHub stars~19k tokensUpdated today
    DevelopmentAuto-check passed
  • Automatically fetch and fix Dependabot security alerts by querying GitHub REST API for open alerts, identifying vulnerable packages, researching secure versions, and updating package.json files…

    114 GitHub stars~2k tokensUpdated 15 days ago
    DevelopmentAuto-check passed
  • Gh Update PR Description

    lidofinance/staking-modules

    Update the current-branch GitHub PR title, description, and labels with gh CLI using this repository's PR template.

    119 GitHub stars~568 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from github/gh-aw

All 52 skills in this repo
  • Official

    Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.

    5.3k GitHub starsUsed in 23 repos~2.8k tokens
    Auto-check passed
  • Official

    Designs and verifies a deterministic grader that measures whether a GitHub Agentic Workflow run reached its real-world or repository outcome.

    5.3k GitHub stars~6.8k tokensUpdated today
    Auto-check passed
  • Official

    Scaffolds, edits, reloads and debugs a canvas extension that the GitHub Copilot CLI can open in its side panel.

    5.3k GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Official

    Drives an open pull request to merge-ready from inside a GitHub Copilot cloud agent, resolving review threads and local checks concurrently, without merging or retriggering CI.

    5.3k GitHub stars~3.8k tokensUpdated today
    Auto-check: warnings
  • Official

    Bumps gh-aw's pinned gh-aw-firewall version, rebuilds generated artifacts, and flags upstream spec or schema changes that need follow-up work.

    5.3k GitHub stars~899 tokensUpdated today
    Auto-check passed
  • Official

    Guide to the console struct tag system in gh-aw: headers, titles, number and cost formats, omitempty, and how structs, slices and maps render in the terminal.

    5.3k GitHub stars~736 tokensUpdated today
    Auto-check passed

Works with

Questions about GitHub Copilot Agent Tips And Tricks

What does GitHub Copilot Agent Tips And Tricks do?

Practical tips for reviewing and improving Copilot agent PRs. GitHub Copilot Agent Tips And Tricks is an agent skill from github/gh-aw, published by the product's own GitHub organization. Practical tips for reviewing and improving Copilot agent PRs.

When should I use GitHub Copilot Agent Tips And Tricks?

GitHub Copilot Agent Tips And Tricks fits situations like: development work in your project.

How do I install GitHub Copilot Agent Tips And Tricks in Claude Code?

Run `npx skills add github/gh-aw --skill github-copilot-agent-tips-and-tricks -a claude-code`. Or copy the skill folder (.github/skills/github-copilot-agent-tips-and-tricks in github/gh-aw) into .claude/skills/github-copilot-agent-tips-and-tricks in your project. Claude Code loads it when a task matches its description.

How do I install GitHub Copilot Agent Tips And Tricks in Codex?

Run `npx skills add github/gh-aw --skill github-copilot-agent-tips-and-tricks -a codex`. Or copy the skill folder (.github/skills/github-copilot-agent-tips-and-tricks in github/gh-aw) into .agents/skills/github-copilot-agent-tips-and-tricks in your project. Codex loads it when a task matches its description.

Can I use GitHub Copilot Agent Tips And Tricks in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/gh-aw --skill github-copilot-agent-tips-and-tricks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/github-copilot-agent-tips-and-tricks, .gemini/skills/github-copilot-agent-tips-and-tricks, .github/skills/github-copilot-agent-tips-and-tricks and .opencode/skills/github-copilot-agent-tips-and-tricks in your project.

What does GitHub Copilot Agent Tips And Tricks need to run?

Going by SKILL.md and its folder, GitHub Copilot Agent Tips And Tricks needs the command-line tools its instructions call (gh and git) and credentials named GH_TOKEN.

Does GitHub Copilot Agent Tips And Tricks access the network?

SKILL.md names 4 domains. As links in the text: cli.github.com, docs.github.com, git-scm.com and stedolan.github.io. This is read from the text; nothing was executed.

Is GitHub Copilot Agent Tips And Tricks safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does GitHub Copilot Agent Tips And Tricks use?

GitHub Copilot Agent Tips And Tricks is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does GitHub Copilot Agent Tips And Tricks use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to GitHub Copilot Agent Tips And Tricks?

Skills that share tags, products or a category with GitHub Copilot Agent Tips And Tricks: Store Submit (zhitongblog/solomd, 1.2k stars), Linea Dependency Maintenance (Consensys-Incorporated/linea-attestation-registry, 177 stars), Release (zmievsa/cadwyn, 309 stars) and Gator Gate (NVIDIA/OpenShell, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GitHub Copilot Agent Tips And Tricks?

github (a GitHub organization, an official publisher) maintains it in github/gh-aw, which has 5,350 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on October 7, 2026.

Source: github/gh-aw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.