How to Win Your
Company Hackathon

A Completely Legitimate Guideβ„’ Using GitHub Copilot


No prior experience required. Imposter syndrome welcome.

⚠️ Legal disclaimer: No actual cheating is involved. GitHub Copilot is a fully endorsed AI pair programmer. Any resemblance to "cheating" is purely satirical and absolutely intentional.

Your Hackathon Game Plan

5 Unfair Advantages You Deserve to Know About

  • 🌐 GitHub.com UI β€” Copilot everywhere in the web interface
  • πŸ’» Your IDE β€” The classic, the OG, the one your coworkers envy
  • ⌨️ GitHub CLI β€” Terminal power users, this one's for you
  • πŸ“± Copilot App β€” The new standalone experience
  • πŸš€ Hackathon Strategy β€” Putting it all together on game day
55%

faster code completion
reported by developers

46%

of new code written
by Copilot suggestions

Translation: you'll ship twice as fast as the team in the corner who refused to use AI on principle.

🌐

GitHub.com

Copilot in the Web UI

You don't even have to open your IDE to start winning.

Tina Belcher excited

🌐 Copilot Chat β€” Everywhere on GitHub.com

That little ✨ sparkle button appears all over GitHub.com. Here's where to find it:

πŸ’¬ Issues & PRs

Ask Copilot to summarize a giant PR, explain a confusing issue, or suggest a fix β€” right in the thread.

πŸ” Code Search

Use natural language to search your repo. "Find where we handle auth errors" actually works now.

πŸ“‚ Repository View

Ask "what does this repo do?" on any public repo. Instant onboarding. Your teammates will be jealous.

πŸ“ PR Summaries

Copilot auto-generates PR descriptions. Your "fixed stuff" commit messages finally get a proper writeup.

πŸ› Code Review

Request a Copilot code review on any PR. It'll find bugs you definitely put there on purpose to test it.

⚑ Actions

Get help fixing broken CI pipelines without having to understand YAML. A true gift.

🌐 Copilot Chat β€” The Sidebar

The Copilot Chat panel is your co-pilot (get it?) throughout the GitHub UI.

🎯 Hackathon Power Move: Open a competitor's public GitHub repo during the hackathon kickoff. Ask Copilot "explain this codebase and suggest improvements." Use those improvements as inspiration for your own project. Technically research. Totally legal.
  • Ask questions about any file or directory in the repo β€” just reference it with @
  • Use @github to search across all of GitHub, docs, and your org
  • Reference issues, PRs, commits by number and Copilot understands the context
  • Ask it to write commit messages from your diff (your future self will thank you)
Try this: "Summarize the last 10 commits in this repo and tell me what the team has been working on" β€” great for joining a hackathon team mid-stream.

🌐 Copilot Workspace & Coding Agent

GitHub's agentic features let Copilot do entire tasks, not just suggest code.

πŸ€– Copilot Coding Agent

  • Assign a GitHub Issue to @copilot
  • It reads the issue, writes code, opens a PR
  • You review and merge
  • You look incredibly productive
Hackathon tip: Create 5 well-written issues at 9am. Assign them all to @copilot. Go get coffee. Come back to 5 draft PRs. Present at 4pm like a genius.

πŸ—ΊοΈ Copilot Workspace

  • Describe a feature in natural language
  • Copilot plans the implementation
  • Review and edit the plan
  • Generate the code from the plan
Best for: Turning vague hackathon ideas ("an app that makes things better") into actual code with a coherent structure.
πŸ’»

The IDE

Where the Magic Actually Happens

VS Code, JetBrains, Vim... yes, even Vim. We don't judge.

Bob Belcher working

πŸ’» Code Completions β€” The Classic

Inline suggestions are Copilot's bread and butter. Here's how to use them like a pro:

  • Just start typing β€” ghost text appears automatically
  • Press Tab to accept the whole suggestion
  • Press β†’ to accept word-by-word (underrated!)
  • Alt+] / Alt+[ to cycle through suggestions
  • Open the completions panel to see up to 10 alternatives
Write comments first! Describe what you want in plain English, then let Copilot write the function below it. It's like pair programming with someone who never complains.

# Calculate distance between two GPS coordinates
# using the Haversine formula
def haversine(lat1, lon1, lat2, lon2):
    # ✨ Copilot writes the whole thing...
    R = 6371  # Earth radius in km
    dlat = radians(lat2 - lat1)
    dlon = radians(lon2 - lon1)
    a = sin(dlat/2)**2 + cos(radians(lat1)) \
        * cos(radians(lat2)) * sin(dlon/2)**2
    return R * 2 * asin(sqrt(a))
        

You wrote the comment. Copilot wrote everything else. You're basically a software architect now.

πŸ’» Copilot Chat in the IDE

A full conversational AI assistant embedded right where you're coding β€” with context-aware variables, slash commands, and specialized agents.

πŸ“Ž Context Variables

#file β€” attach a specific file
#selection β€” your highlighted code
#codebase β€” entire project
#editor β€” active editor content
#git β€” git history & diffs
#terminalLastCommand β€” last output + any errors

⚑ Slash Commands

/new react app with typescript β€” scaffold instantly ✨
/newNotebook titanic dataset β€” Jupyter notebook
/fix β€” make it not broken
/tests using Jest β€” write tests
/explain β€” what does this do?
/doc β€” document this

πŸ€– Chat Participants

@workspace β€” whole codebase (VS Code)
@project β€” whole codebase (JetBrains)
@vscode β€” IDE settings & keybindings
@terminal β€” shell & command line help
@github β€” search across GitHub

πŸš€ Hackathon zero-to-code: /new node.js express server with JWT auth in chat β†’ preview the file tree β†’ create all files β†’ you have a working scaffold in 30 seconds.
Debug loop: Hit an error in your terminal β†’ switch to chat β†’ type #terminalLastCommand explain this error and fix it β†’ apply the diff β†’ green. No copy-paste required.

πŸ’» Copilot Edits β€” Agent Mode

Copilot Edits lets you make multi-file changes with a single prompt. This is the "I need to refactor everything" button.

Edit Mode

  • Attach multiple files to the context
  • Describe the change you want
  • Review a unified diff across all files
  • Accept or discard changes file by file
Perfect for: "Add error handling to all my API calls" across 12 files. Doing that manually is how hackathon dreams die at 11pm.

Agent Mode πŸ”₯

  • Copilot autonomously plans and executes
  • Reads files, runs terminal commands
  • Iterates until the task is done
  • You watch and approve
Try: "Build a REST API with these endpoints, add tests, and make sure it runs" β€” then go stretch your legs.

πŸ’» Supported IDEs

Copilot doesn't play favorites. Much.

VS Code

The flagship experience. Fullest feature set. If you're not using this, are you even a developer?

Completions Chat Edits Agent /new @workspace

JetBrains IDEs

IntelliJ, PyCharm, GoLand, WebStorm. Full chat experience β€” use @project instead of @workspace.

Completions Chat /fix /tests @project

Visual Studio

Classic Windows development. Use #file and #solution for context. No judgment for using it.

Completions Chat /fix /tests

Neovim

For the 0.1% who will absolutely mention it during the hackathon presentation.

Completions Chat

Xcode

iOS and macOS devs, you're included! Swift completions work great.

Completions

Eclipse

Still alive. Still supported. Attach files with the paperclip icon in the Chat panel.

Completions Chat /fix /tests
⌨️

GitHub CLI

For People Who Prefer Typing to Clicking

Terminal warriors, your moment has arrived.

Louise Belcher laughing

⌨️ GitHub Copilot CLI β€” The Agentic Terminal

Not just a command suggester β€” a terminal-native AI coding partner that can work autonomously, delegate tasks, plan implementations, and manage sessions. Invoke it with copilot.

Core Slash Commands

πŸ—ΊοΈ /plan (or Shift+Tab)

Generates a structured implementation plan with checkboxes before writing a single line of code. Asks clarifying questions, saves to plan.md, and waits for your approval.

☁️ /delegate

Offloads work to the Copilot cloud agent β€” creates a PR asynchronously while you keep working locally.

Model Selection with /model

  • πŸ€– Auto β€” intelligently picks the best model, reduces rate limits
  • 🧠 Claude Opus 4.5 (default) β€” complex architecture, deep debugging
  • ⚑ Claude Sonnet 4.5 β€” fast, cost-effective, handles most tasks
  • πŸ” GPT-5.2 Codex β€” code generation, second-opinion reviews
Switch models mid-session as task complexity changes. Start with Auto, switch to Opus for the gnarly bits.
Hackathon tip: Use /help to see all available commands. The CLI is continually evolving and /help always shows the most up-to-date capabilities.

⌨️ The Explore β†’ Plan β†’ Code β†’ Commit Workflow

The golden workflow for complex hackathon features β€” models achieve higher success rates when given a concrete plan to follow.


# 1. EXPLORE β€” understand first, don't code yet
Read the auth files but don't write code yet

# 2. PLAN β€” create a structured plan
/plan Add OAuth2 with Google and GitHub providers

# Copilot asks clarifying questions,
# creates a checklist plan, saves to plan.md,
# and waits for YOUR approval before proceeding

# 3. IMPLEMENT β€” execute the approved plan
Proceed with the plan

# 4. VERIFY β€” don't skip this step
Run the tests and fix any failures

# 5. COMMIT β€” clean history
Commit these changes with a descriptive message
        

♾️ Infinite Sessions

Never worry about context limits. The CLI automatically compacts conversation history while preserving essential information.


/session           # View session info
/session plan      # See current plan
/context           # Visualize token usage
/compact           # Manually compact (rarely needed)
/clear             # Start fresh (better for unrelated tasks)
        

πŸ—‚οΈ Multi-Repo Work


# Add other repos to the session
/add-dir /path/to/other-service
/list-dirs          # See what's in scope
        
Hackathon tip: Start copilot from a parent directory containing all your repos β€” it can see and edit across all of them simultaneously.

⌨️ Advanced CLI Features

πŸš€ Autopilot & /fleet

  • Switch to autopilot mode for long-running tasks that don't need supervision
  • /fleet breaks a task into parallel subtasks run by sub-agents simultaneously
  • /delegate sends work to the cloud agent so you can keep coding locally
Example: /fleet Migrate all class components to functional components β€” sub-agents tackle each file in parallel.

πŸ› οΈ Tool Permissions & Context


# Allow git commands without asking each time
copilot --allow-tool='shell(git:*)'

# Deny a specific dangerous command
copilot --deny-tool='shell(git push)'

# Reset all previously approved tools
/reset-allowed-tools
        

πŸ–ΌοΈ Image Input

  • Drag & drop images directly into the CLI input
  • Paste from clipboard with Ctrl+V
  • "Implement this design: @mockup.png"
Hackathon power: Screenshot a Figma design β†’ paste into CLI β†’ "Build the React component that matches this layout". Designer + developer in one command.
πŸ–₯️

The Copilot App

The Agent-Native Desktop Experience

Mission control for your AI agents. macOS, Windows, and Linux.

Gene Belcher being enthusiastic

πŸ–₯️ GitHub Copilot App β€” What It Actually Is

A downloadable desktop app (not just a website) that is the only agent-native development experience built natively on GitHub. Currently in Technical Preview

The "My Work" View

  • See all work in motion in one place β€” agent sessions, issues, PRs, automations
  • Each task runs in its own isolated environment with its own branch and state
  • Start sessions from an issue, a PR, a code prompt, or a previous session
  • Pause and resume sessions across projects without losing context

Agentic Power Features

  • πŸ€– Run multiple agents in parallel on different tasks simultaneously
  • πŸ“‹ Automate repeatable workflows β€” triage, dependency updates, release notes
  • πŸ” Review plans and diffs, leave feedback, guide the next iteration β€” all in-app
  • βœ… Agent Merge: let the agent address review comments and auto-merge when conditions are met
Hackathon power move: Open the app at kickoff, create 5 issues β†’ spin up 5 parallel agent sessions β†’ go work on the hardest problem yourself. The app is your AI dev team dashboard.

πŸ–₯️ Copilot App β€” Review, Validate & Ship

The app keeps humans in control while agents do the heavy lifting.

Built-in Review Loop

  • Review the agent's plan before it codes β€” course correct early
  • See diffs, run validation commands, open live previews β€” all without leaving the app
  • Leave feedback and the agent iterates
  • Sessions are tied to PRs β€” full GitHub review workflow intact
Model choice: Claude 3.5 Sonnet, GPT-4o, and more. Different agents can use different models.

Hackathon Use Cases

  • πŸ—οΈ Plan phase: create issues, the app turns them into agent tasks with isolated branches
  • ⚑ Build phase: review agent diffs while you focus on the unique logic only you can write
  • 🎨 Polish phase: spin up an agent for README, docs, and tests while you prep the demo
  • πŸš€ Ship phase: Agent Merge handles review comments so you can focus on the pitch
Get it: github.com/features/ai/github-app β€” available for Copilot Pro, Pro+, Business, and Enterprise.
πŸš€

Game Day Strategy

Putting It All Together

The only plan you need for hackathon glory.

Tina Belcher party time

πŸš€ The Hackathon Timeline

⏰ Hour 1 β€” Plan (don't code yet!)
Use the Copilot App to discuss your idea. Ask it to help architect the system, suggest a tech stack, and identify the trickiest parts. Create GitHub Issues for each component.
⏰ Hours 2-4 β€” Build velocity
Fire up your IDE. Let Copilot write the boilerplate while you focus on the unique parts. Assign the repetitive issues to @copilot in the GitHub UI. Check the PRs it opens while you work on other things.
⏰ Hours 5-6 β€” Integrate & debug
Paste error messages into Copilot Chat. Use the copilot CLI with /plan when something's complex. Use Copilot Edits to make sweeping changes fast.
⏰ Final Hour β€” Polish & present
Use Copilot to write your README, generate PR descriptions, and create a one-pager. Ask it to suggest "5 impressive talking points about this project" for your pitch.

πŸš€ Prompting That Actually Works

The quality of Copilot's output is proportional to the quality of your prompt. Here's the formula:

❌ Weak Prompts

  • "write a function"
  • "fix this"
  • "make it better"
  • "add auth"

βœ… Strong Prompts

  • "Write a TypeScript function that takes an array of user objects and returns them sorted by creation date, with null dates last"
  • "Fix the race condition in this async function β€” it should wait for all promises before returning"
The CRISPE formula: Context (what is the project?) Β· Role (act as a senior engineer) Β· Instructions (what to do) Β· Style (TypeScript, functional, etc.) Β· Purpose (this is for a hackathon demo) Β· Expected output (a working function with error handling)

πŸš€ Custom Instructions β€” Your Secret Weapon

Set up custom instructions so Copilot always knows your project's context before you ask anything.

Repository Instructions

Create a .github/copilot-instructions.md file:


# Project: HackathonApp

## Stack
- React + TypeScript frontend
- FastAPI Python backend
- PostgreSQL database
- Deployed on Railway

## Conventions
- Use async/await, never callbacks
- All API responses use { data, error }
- Prefer functional components
- Write tests for all API endpoints

## Context
This is a hackathon project for
tracking team productivity metrics.
        

Personal Instructions

Set in GitHub Copilot settings for your personal style:

  • Preferred programming language style
  • Error handling preferences
  • Testing framework of choice
  • Code comment verbosity level
Set these up before the hackathon starts. Copilot will automatically follow your conventions without you having to explain them every time.
πŸ€–

Custom Agents &
Agent Skills

Teaching Copilot to Think Like Your Team

Stop explaining context. Start encoding it.

Bob's Burgers family

πŸ€– Custom Agents β€” Your AI Teammates

Custom agents are specialized versions of the Copilot agent β€” defined once, reused forever. They encode your conventions, frameworks, and desired outcomes directly into Copilot.

Agent Profiles

A Markdown file with YAML frontmatter at .github/agents/NAME.md:


---
name: api-builder
description: Builds REST API endpoints
  following our conventions
---

You are an API specialist for this
project. Always:
- Use FastAPI with async handlers
- Return { data, error } objects
- Add input validation with Pydantic
- Write tests for every endpoint
- Follow our OpenAPI spec in /docs
        

Where Custom Agents Work

  • 🌐 GitHub.com β€” agents tab, issue assignment, PRs
  • πŸ’» VS Code, JetBrains, Eclipse, Xcode
  • ⌨️ GitHub CLI

Scope Levels

  • .github/agents/ β†’ repo-level (team shared)
  • Org's .github repo β†’ org-wide
  • Enterprise .github-private β†’ everyone
Hackathon power move: Before the event, create api-builder.md, test-writer.md, and readme-creator.md. Assign issues to specific agents by name. Each knows exactly what to do.

🧰 Agent Skills β€” Teachable Superpowers

Skills are folders of instructions, scripts, and resources that Copilot loads automatically when relevant. Based on an open standard.

Where Skills Live

πŸ“ Project Skills

Committed to the repo β€” shared with your whole hackathon team:

.github/skills/   .agents/skills/

🏠 Personal Skills

In your home directory β€” travel with you across every project:

~/.copilot/skills/

Where to Find Skills

  • πŸ›’ Community-built: github/awesome-copilot
  • πŸ€– Anthropic's collection: anthropics/skills
  • ⌨️ Install via CLI: gh skill install <repo>
  • ✍️ Write your own in minutes
Works with: Copilot cloud agent, code review, CLI, the desktop app, and VS Code agent mode.
Hackathon tip: At kickoff, run gh skill install for your stack (React, FastAPI, etc.). Copilot now knows your framework's conventions without a single prompt.

πŸ“‹ Quick Reference Cheat Sheet

🌐 GitHub.com

  • ✨ Copilot Chat sidebar
  • πŸ“ PR summary generation
  • πŸ› Copilot code review
  • πŸ€– Assign issues to @copilot
  • πŸ” Natural language search
  • ⚑ Actions debugging help

πŸ’» IDE (VS Code)

  • Tab β†’ accept suggestion
  • Alt+] β†’ next suggestion
  • Cmd+I β†’ inline chat
  • /explain, /fix, /tests, /doc
  • #codebase, #file, #terminal
  • @workspace, @vscode

πŸ–₯️ CLI & App

  • copilot β†’ start CLI session
  • /plan β†’ structured planning
  • /delegate β†’ cloud agent PR
  • /fleet β†’ parallel sub-agents
  • Desktop app: macOS/Win/Linux
  • Agent Merge for auto-shipping

πŸ€– Skills & Agents

  • gh skill install <repo>
  • .github/skills/ (project)
  • ~/.copilot/skills/ (personal)
  • .github/agents/NAME.md
  • name/description/prompt
  • Assign agents to issues
πŸ† Win condition: While others are googling Stack Overflow, you're having a conversation with an AI that knows your entire codebase.
🎯 Remember: Copilot is fastest when you give it context. The more it knows about your project, the better its suggestions.

Now Go Win That Hackathon

You have an unfair advantage. Use it.

πŸ’¬

Copilot App
github.com/copilot

πŸ›’

Extensions
github.com/marketplace

Remember: Copilot writes code. You write good code. The difference is you still review everything.
A tool is only as good as the person wielding it. You've got this.

πŸ€– These slides were built with GitHub Copilot. Naturally.