Bot TutorialsGrok BotChatGPTClaudeGeminiCopilotPerplexityMore botsGuidesArticlesPapersIndustrialSearch
Step-by-stepLessonsBeginnerNoviceAdvancedPhD-level

GitHub Copilot lessons: workflows, costs, mistakes, prompts

Reference lessons to use after the step-by-step tutorial.

On this page: Workflows · Credits explained · Prompt library

Workflows

Issue to PR

  1. Write a clear issue with acceptance criteria.
  2. Assign it to Copilot.
  3. Review the PR and CI.

Credits explained

Base credits plus a flex allotment each month. After that, extra usage is billed against your budget at $0.01 per credit.

Prompt library

Explain what this function does, list its edge cases, and point out one bug risk. Don't rewrite it.
More lessons (added Oct 29, 2026): Use-case playbooks · Animated walkthrough · Troubleshooting · Cost control · Prompt library: bad vs good · Privacy and safety · Failure modes to watch · When to use it vs other bots · Leveled tutorials

Use-case playbooks

Issue to PR

  1. Write acceptance criteria in the issue.
  2. Assign it to Copilot.
  3. Review the PR and CI output.

Test backfill

  1. Name the function and cases.
  2. Forbid changes to the function.
  3. Run the tests locally.

Code review pass

  1. Ask for risks, not style nits.
  2. Check each flagged line yourself.

Animated walkthrough

Animated walkthrough

Press play, or pick a chapter. Each chapter animates its steps.

Troubleshooting

I hit a limit. What now?

Agent mode, code review, Copilot in the cloud, the Copilot CLI and the Copilot app use AI credits; 1 credit = $0.01 (GitHub). Start a new chat with a short summary instead of dragging a long one.

The answer cites a page that doesn't say that.

Treat the claim as unverified. Ask: quote the exact sentence from that page that supports this, or say it isn't there. Then open the page yourself.

It forgot my earlier instructions.

Long chats push early text out of context. Put standing instructions where GitHub Copilot keeps them (Repository-wide custom instructions live in .github/copilot-instructions.md; path-specific instructions apply to matching files (GitHub docs).) and start a fresh chat.

It agrees with everything I say.

Ask it to argue the other side and list the strongest evidence against your view, with sources.

How do I keep costs down?

Pro $10/mo, Pro+ $39/mo, Max $100/mo, each with base plus flex credits. Set an extra-usage budget; alerts come at 75%, 90% and 100%. A $0 budget means no overage (GitHub).

Cost control

Agent mode, code review, Copilot in the cloud, the Copilot CLI and the Copilot app use AI credits; 1 credit = $0.01 (GitHub).

Prompt library: bad vs good

Bad: help me

Good: Write pytest tests for parse_invoice() in invoices.py: the happy path, a missing total, a negative amount, and a DD/MM date. Don't change the function.

Why: situation, task, format and limits.

Bad: research this

Good: Find the 5 most relevant official sources from the last 12 months on [topic]. For each: title, date, link, and one sentence it actually says.

Why: asks for dated, quotable, checkable sources.

Bad: make it better

Good: Rewrite this for a busy customer: max 100 words, one ask, no jargon. Then list what you cut.

Why: a reader, a length and an audit of changes.

Bad: should I do X?

Good: List the 3 strongest reasons for and against X for someone in [situation]. Mark which reasons depend on facts I should check.

Why: balanced, and separates facts from judgement.

Privacy and safety

Install the GitHub Copilot extension (VS Code, JetBrains or Visual Studio) and sign in with the same GitHub account.

Failure modes to watch

When to use it vs other bots

Use GitHub Copilot forConsider another bot when
  • Inline completions for small edits
  • Well-scoped issues assigned to an agent
  • Writing tests for named cases
  • Vague tasks across a whole repo
  • Merging agent PRs without CI

See: ChatGPT · Claude · Gemini · Perplexity · Copilot · comparison

Leveled tutorials

Where these facts come from

Checked Oct 29, 2026. Plans change, so confirm on the official page before you pay.

Next: Cursor tutorial →

Related: FAQGrok Bot lessonsChatGPT lessonsClaude lessonsGemini lessonsCopilot lessonsPerplexity lessonsCatch made-up answersStop burning creditsWhich bot for whatFiles safelyScripts & templatesWorkflowsMore bot lessons