Part 1: Setup & Context Engineering
In this section, you’ll set up your development environment and teach GitHub Copilot about your codebase.
🎮 Play the Bingo Mixer game — See what you’ll be building!
🔧 Initial Setup
Section titled “🔧 Initial Setup”Step 1: Create Your Repository
Section titled “Step 1: Create Your Repository”Open github.com/copilot-dev-days/agent-lab-typescript, click Use this template → Create a new repository, and name it my-bingo-mixer.
Use Public visibility if you want to publish the app with GitHub Pages.
✅ Your own Bingo Mixer repo is ready!
Step 2: Enable GitHub Pages (Optional)
Section titled “Step 2: Enable GitHub Pages (Optional)”Enable Pages if you want to test and share your app live:
- Go to your repo’s Settings → Pages
- Under “Build and deployment”, change Deploy from a branch to GitHub Actions
- ✅ Pushes to
mainwill publish to:https://{username}.github.io/{repo-name}
Step 3: Choose How You’ll Develop
Section titled “Step 3: Choose How You’ll Develop”Option A (Preferred): Clone locally in VS Code
Section titled “Option A (Preferred): Clone locally in VS Code”- Open VS Code
- Open the Command Palette (
Ctrl+Shift+Pon Windows/Linux orCmd+Shift+Pon macOS) - Run Git: Clone → Clone from GitHub
- Select your new repository and choose a local folder
- Open the cloned repository when prompted
- Install recommended extensions (notification or
Extensions: Show Recommended Extensions)
Option B: Create a Codespace for your repo
Section titled “Option B: Create a Codespace for your repo”- Open your repository on GitHub
- Click Code → Codespaces → Create codespace on main
- ✅ Codespace starts with your repo and devcontainer.
Step 4: Review Trust and Approvals
Section titled “Step 4: Review Trust and Approvals”Before setup becomes autonomous:
- In Chat, select the Local session target and Default Approvals. Do not use Bypass Approvals, which approves every tool call.
- Open
.vscode/settings.jsonand review the terminal allowlist. The workspace adds auto-approval only for its exactnpm run dev,lint,build, andtestscripts plusnpm test; installation,npx, script arguments, and unrelated commands still require review. - Apply least privilege: inspect each requested command and approve only the exact command for the shortest useful scope.
A Git worktree can give parallel agent sessions separate checked-out files so their edits do not collide, but it does not restrict commands, network access, or access outside that working copy. Some Agent Host worktree sessions are fixed to Bypass Approvals, so use a regular Local folder session for this exercise. Learn more in Approvals.
Step 5: Run the Setup Skill
Section titled “Step 5: Run the Setup Skill”In the Chat panel:
/setupWhen the skill proposes npm install, inspect it and approve that exact command once. Let the agent determine the remaining installation steps without broadening approvals.
✅ Success: App is running and open in browser!
Keep this workshop/ guide open (📌 Pin).
📚 Understanding Context Engineering
Section titled “📚 Understanding Context Engineering”Context engineering is how you teach AI about your specific codebase. This makes Copilot’s suggestions more accurate and relevant.
Task 1: Auto-generated Instructions
Section titled “Task 1: Auto-generated Instructions”Instructions guide all agentic codebase interactions, making them more efficient and reliable. Add them early, but make sure to keep them maintained and succinct.
Steps:
- Run prompt:
/initwith Autopilot enabled- Based on the repo’s existing conventions,
/initmay generate or update.github/copilot-instructions.mdor a rootAGENTS.md. - While agent analyzes the codebase, optionally start next task
- Based on the repo’s existing conventions,
- Open a new chat for the next task, as init can take a while and we can review later.
- Review results — is it not too long and overly detailed
- Optional follow-up: “Compress down and add a mandatory development [ ] checklist (lint, build, test) to the top”
- Apply and commit
A root-level
AGENTS.mdis a portable option when several AI coding tools share the repo. Use one root file here; nestedAGENTS.mdbehavior is experimental and outside this lab.
✅ Result: All future requests will have a basic map of the workspace.
Task 2: Dogfooding & Custom Skills
Section titled “Task 2: Dogfooding & Custom Skills”Steps:
- Prompt: “Test the app like a critical dogfooder, giving critical feedback on how fun it is”
- Watch how the agent launches the built-in browser, interacts with the app, and writes a report
/create-skillfor dogfooding — or: “Save this as a dogfooding skill”
✅ Result: The agent used the browser to actually play the app and produced a critical report. You then saved that testing approach as a reusable dogfooding skill.
💡 Context engineering insight: The agent needs hands-on context — running the app, seeing the UI, clicking through flows — to truly understand how it works and validate functionality. Code alone isn’t enough; interacting with the running product closes the gap between reading code and understanding the user experience.
Task 3: Customization Modal
Section titled “Task 3: Customization Modal”Tour the repo customizations to understand how context engineering works in practice.
Steps:
- Open the Customization panel, Command:
Chat: Open Customizations (Preview) - Browse the repo customizations — instructions, skills, and agents
- Look at the frontend design skill and Tailwind 4 instructions
💡 Think about: What conventions or patterns from your own projects could become instructions or skills?
🔒 Exclusion note: The root
.copilotignorecontains supplemental patterns for environment files, private keys, and generated output on accounts where VS Code enables this feature. It deliberately does not exclude the workshop or source code, and it is not a security boundary. Organization-managed content exclusion requires Copilot Business or Enterprise administration and currently does not cover IDE Edit/Agent modes or Copilot CLI.
✅ Part 1 Complete!
Section titled “✅ Part 1 Complete!”You’ve learned how to:
- Set up your development environment
- Generate and refine workspace instructions
- Dogfood your app with the agent’s built-in browser
- Create and save custom skills
- Tour repo customizations (instructions, skills, agents)