ai-cheatcode
Copilot instructions11 starsChanged 6 months agoMITView on GitHub
"The Cheat Code" is an internal Microsoft newsletter distributed weekly to the ABS Tech Strategy team (AI Business Solutions). Each issue features a reusable agentic pattern for Copilot Chat, extracted from real customer engagements. The name is a play on "chat" (Copilot Chat) and "cheat" (cheat codes) — the Konami code motif appears subtly in every issue. Each issue exists in four parallel formats, all produced from the same source content: The **PRODUCTION_PLAYBOOK.md** is the authoritative reference for all production…
- Commits and pushes
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Only the docs/ folder is reader-facing via Pages.
- Distinctive: line 54
Every section must answer: "How does this make me faster as a CSA?"
- Distinctive: line 133
All newsletter colors carry over (Purple #6B2FA0, Blue #0078D4, Green #107C10, Orange #D83B01)
- Distinctive: line 157
Add Google Fonts import (Outfit, Sora, JetBrains Mono)
- Distinctive: line 158
Add Bento font overrides for diagram-specific CSS classes
- Very specific: line 159
Add contextMode: 'lightweight' to window.interactiveConfig
- Very specific: line 160
Add data-context JSON attributes to diagram elements
- Distinctive: line 161
Update page header with issue badge and "← Back to patterns" link
- Very specific: line 162
Update portal docs/index.html with new card in the Bento grid
- Very specific: line 170
All CSS must be inline for email compatibility.
- Very specific: line 205
Create/render the diagram in diagrams/
- Very specific: line 206
Create/update the interactive page in docs/interactive/issue-NNN/
- Very specific: line 208
Add or update the issue card in docs/index.html (Bento portal)
- Distinctive: line 209
Update the "Coming Next" teaser to the following issue
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions — The Cheat Code
What This Is
"The Cheat Code" is an internal Microsoft newsletter distributed weekly to the ABS Tech Strategy team (AI Business Solutions). Each issue features a reusable agentic pattern for Copilot Chat, extracted from real customer engagements. The name is a play on "chat" (Copilot Chat) and "cheat" (cheat codes) — the Konami code motif appears subtly in every issue.
Architecture
Each issue exists in four parallel formats, all produced from the same source content:
- HTML email (
issues/the_cheat_code_issue_NNN.html) — primary format, 600px max-width, inline CSS, Outlook-compatible - PDF (
issues/the_cheat_code_issue_NNN.pdf) — rendered from HTML via Chrome headless, attached to Engage posts - Viva Amplify content (
viva_amplify/issue_NNN_amplify.md) — section-by-section content mapped to Amplify web parts - Architecture diagram (
diagrams/issue_NNN_*_rich.png) — rendered from companion HTML/CSS files indiagrams/ - Interactive portal (
docs/) — GitHub Pages site with Bento grid portal and step-through diagram walkthroughs. Separate design system from the email newsletter.
The PRODUCTION_PLAYBOOK.md is the authoritative reference for all production processes. Read it first when working on anything.
Hosting & Distribution
- GitHub Pages archive: https://aka.ms/the-cheat-code (resolves to
microsoft.github.io/ai-cheatcode) - Repo:
microsoft/the-cheat-code(private, GitHub Enterprise) - Pages source:
mainbranch,docs/folder - Workflow: Edit files →
git push→ GitHub Pages auto-deploys - The portal (
docs/index.html) shows all published issues in a Bento grid layout. Interactive walkthroughs live atdocs/interactive/issue-NNN/. - Only the
docs/folder is reader-facing via Pages. Everything else (playbook, series plan, templates) lives in the repo but isn't linked from the portal. - The
docs/index.htmlshould only show published issues + a "Coming Next" teaser for the next one. Update it as each issue is sent.
Alternating Cadence: Conceptual → Practical
Starting with Issue #007, the series follows a two-issue arc model:
- Odd issues (🧠 Conceptual Pattern): Names the pattern, explains why it exists, frames the architecture, identifies design decisions. Sections: Intro → Pattern Breakdown → Where This Pattern Lands → Quick Tips. No Agent Spotlight.
- Even issues (🔧 Practical Build): Shows how to build it in Copilot Studio, step-by-step with components. Sections: Intro (links back to conceptual pair) → Agent Spotlight (the build) → Pattern Breakdown (components in build order) → Try This Now.
The issue info bar carries a type tag: 🧠 CONCEPTUAL PATTERN or 🔧 PRACTICAL BUILD.
Issues #001–006 predate this cadence and stand as-is — no rebranding.
Content Model
Each issue follows a fixed structure defined in the_cheat_code_template.html:
- Header: Dark navy (#1B1B3A), unique Konami code glyphs per issue (see Symbol Registry in playbook)
- Intro: Customer problem → pattern name (2 paragraphs max)
- Agent Spotlight (when featuring a specific agent): Attribution, scenario, solution
- Pattern Breakdown (always): The core reusable pattern with numbered design decisions
- Rotating sections: Quick Tips, Try This Now, Where This Pattern Lands (not all appear in every issue)
Key Editorial Rules
- Lead with the customer scenario, never write a demo recap
- One agent demo often yields 2–4 standalone patterns — disaggregate them into separate issues
- Every section must answer: "How does this make me faster as a CSA?"
- Full name attribution for the builder in every issue
- Cross-reference related issues when patterns connect — all cross-refs are hyperlinked to the Pages archive
Current Issue Map (20 issues)
| # | Title | Type | Builder | Date |
| 001 | Code-First Agent Delivery | 🔧 | Cristiano Almeida Gonçalves | Mar 23 |
| 002 | Scoped Multi-Source Search | 🧠 | Raghav BN | Mar 31 |
| 003 | Prompt-Chained Triage + Playbooks | 🔧 | Raghav BN | Apr 7 |
| 004 | Secure In-Boundary Processing | 🧠 | Raghav BN | Apr 14 |
| 005 | Human-in-the-Loop Approval Gates | 🧠 | Pete Puustinen | Apr 21 |
| 006 | Meeting-to-Knowledge Pipeline | 🔧 | Pete Puustinen | Apr 28 |
| 007 | Holographic Memory | 🧠 | Tyson Dowd | May 5 |
| 008 | Cross-Project Knowledge Agent | 🔧 | Tyson Dowd | Jun 8 |
| 009 | Adaptive Guardrails | 🧠 | TBD | May 18 |
| 010 | Building Adaptive Guardrails | 🔧 | TBD | May 25 |
| 011 | Multi-Agent Handoff | 🧠 | TBD | Jun 1 |
| 012 | Building Multi-Agent Handoff | 🔧 | TBD | Jun 8 |
| 013 | Persistent Agent Memory | 🧠 | TBD | Jun 15 |
| 014 | Building Persistent Memory | 🔧 | TBD | Jun 22 |
| 015 | Proactive Agent Triggers | 🧠 | TBD | Jun 29 |
| 016 | Building Proactive Agents | 🔧 | TBD | Jul 6 |
| 017 | Agent Evaluation & Trust Signals | 🧠 | TBD | Jul 13 |
| 018 | Building Agent Analytics | 🔧 | TBD | Jul 20 |
| 019 | Custom Connector Patterns | 🧠 | TBD | Jul 27 |
| 020 | Building Custom Connectors | 🔧 | TBD | Aug 3 |
Issues #001–008 are published. Issues #001–004 have interactive walkthroughs. Issues #002–006 are written and ready from prior work. Issues #007–020 are drafted.
Series Plan
Detailed arc briefs with full content outlines are in series_plan/:
SERIES_ROADMAP.md— master roadmap, editorial calendar, Konami code assignmentsarc_1_adaptive_guardrails.mdthrougharc_6_custom_connectors.md— per-arc content briefs
Diagram Production
Diagrams use HTML/CSS rendered via Chrome headless (not Mermaid, not Paper Banana).
Render commands
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
# Render diagram PNG (1680px wide, height varies per diagram)
"$CHROME" --headless --disable-gpu --no-sandbox \
--screenshot="diagrams/issue_NNN_name_rich.png" \
--window-size=1680,HEIGHT \
"file://$PWD/diagrams/issue_NNN_name.html"
# Render newsletter PDF
"$CHROME" --headless --disable-gpu --no-sandbox \
--print-to-pdf="issues/the_cheat_code_issue_NNN.pdf" \
--print-to-pdf-no-header "file://$PWD/issues/the_cheat_code_issue_NNN.html"Critical: Chrome --screenshot silently clips content taller than --window-size height. Always match the min-height in body CSS to the --window-size height. When in doubt, add 100–200px.
Diagram Design System
- Zone containers: 16px border-radius, 2px solid colored border, linear gradient background, drop shadow
- Component cards: White
#FFFFFF, 12px rounded corners, inside zones - Icon badges: 30px rounded squares with emoji
- Color palette: Purple
#6B2FA0(agents), Blue#0078D4(Azure), Green#107C10(output/trust), Orange#D83B01(external/warnings), Amber#CA5010(decisions/gates)
Copy an existing diagram HTML file from diagrams/ as your starting point for new diagrams.
Interactive Portal Design System
The interactive portal at docs/ uses a separate design system from the email newsletter.
Typography (Google Fonts)
- Outfit — body text, descriptions, UI elements
- Sora — display text, headings, card titles
- JetBrains Mono — code snippets, badges, labels, monospace elements
Color System
- All newsletter colors carry over (Purple #6B2FA0, Blue #0078D4, Green #107C10, Orange #D83B01)
- Dark theme: Navy deep #0E0E1F (background), Navy #1B1B3A (surfaces), Navy light #252548 (cards)
- Glassmorphism:
backdrop-filter: blur(20px)with semi-transparent borders - Pattern type gradients: Warm (orange-tinted) for Practical issues, cool (blue-tinted) for Conceptual issues
Portal Layout (Bento Grid)
- 12-column CSS Grid with mixed card sizes
- Hero cards (latest arc) span 6 cols, medium cards span 4-5, small cards span 3
- Utility cards: Subscribe, Sample Code, About, Stats, Brand
- Scroll-reveal animations via IntersectionObserver
- Responsive breakpoints: 1100px (8-col), 720px (2-col), 480px (1-col)
Interactive Diagram Pages
- Shared framework:
docs/interactive/shared/interactive.css+interactive.js - Each page: Bento font imports + shared CSS/JS + issue-specific inline styles
- StepEngine drives step-through walkthroughs with narrative panels
- Context panels show implementation details when clicking components:
contextMode: 'lightweight'— what it is, requirements (pills), prerequisites (checklist), links, code snippets- Data provided via
data-contextJSON attribute on diagram elements
- Clean directory URLs throughout (no
.htmlextensions) - Konami code easter egg on every page
Creating a New Interactive Page
- Copy an existing issue page from
docs/interactive/issue-001/ - Add Google Fonts import (Outfit, Sora, JetBrains Mono)
- Add Bento font overrides for diagram-specific CSS classes
- Add
contextMode: 'lightweight'towindow.interactiveConfig - Add
data-contextJSON attributes to diagram elements - Update page header with issue badge and "← Back to patterns" link
- Update portal
docs/index.htmlwith new card in the Bento grid
Newsletter Styling
- Max width: 600px, font: Segoe UI family, body 15px
#444444on white - Top accent bar: 6px
#6B2FA0 - Color-coded 4px left borders per section: Purple (Spotlight), Blue (Pattern), Green (Tips), Orange (Try This), Amber (Positioning)
- Callout boxes: Warning (
#FFF8E1/#FFE082), Insight (#F0ECF5), Flow diagram (#F0F6FF), Positioning (#FFF3E0/#FFCC80) - All CSS must be inline for email compatibility; use
<!--[if mso]>conditionals for Outlook - Footer includes: "ABS Tech Strategy • AI Business Solutions" and "Browse all issues at aka.ms/the-cheat-code"
Repo Structure
├── docs/ # GitHub Pages portal (Bento design)
│ ├── index.html # Bento grid portal landing page
│ └── interactive/ # Step-through diagram walkthroughs
│ ├── shared/ # Shared CSS/JS framework
│ └── issue-NNN/ # Per-issue interactive pages
├── index.html # GitHub Pages landing page
├── README.md # Repo overview
├── PRODUCTION_PLAYBOOK.md # Authoritative production reference
├── the_cheat_code_template.html # Issue HTML template
├── viva_engage_posts.txt # Companion Viva Engage posts (all issues)
├── teams_launch_post.txt # Teams launch announcement
├── issues/ # All 20 newsletter HTML + PDF files
├── diagrams/ # Architecture diagram HTML sources + rendered PNGs
├── series_plan/ # Series roadmap + 6 per-arc content briefs
└── viva_amplify/ # Amplify setup guide + per-issue Amplify contentFile Naming Conventions
- Newsletter HTML:
issues/the_cheat_code_issue_NNN.html - Newsletter PDF:
issues/the_cheat_code_issue_NNN.pdf - Diagram source:
diagrams/issue_NNN_shortname.html - Diagram render:
diagrams/issue_NNN_shortname_rich.png - Amplify content:
viva_amplify/issue_NNN_amplify.md
Publishing Workflow
- Finalize the issue HTML in
issues/ - Render PDF via Chrome headless
- Create/render the diagram in
diagrams/ - Create/update the interactive page in
docs/interactive/issue-NNN/ - Move the issue from "Coming Next" to "Published" in
index.html - Add or update the issue card in
docs/index.html(Bento portal) - Update the "Coming Next" teaser to the following issue
git add -A && git commit && git push— Pages auto-deploys- Send the HTML email (Monday AM)
- Post the Viva Engage teaser from
viva_engage_posts.txt(Monday PM)
Pre-Send Checklist
Before publishing any issue, verify: no placeholder text remaining, correct issue number and date, unique Konami glyphs (check Symbol Registry in playbook), full builder attribution, accurate cross-references with working hyperlinks, type badge (🧠/🔧) in info bar, "ABS Tech Strategy" in footer, aka.ms/the-cheat-code archive link, and reasonable file size (18–28KB typical for HTML).
Decision Log (Key Decisions)
- "ABS Tech Strategy" not "AIWF Team" — represents the broader org
- No rebranding of #001–006 — published, in inboxes, cadence starts at #007
- Copilot Studio as default practical stack — widest CSA audience, immediately actionable
- aka.ms/the-cheat-code — vanity URL pointing to GitHub Pages archive
- Private repo, public-facing Pages — repo holds all working files, only index + issues are reader-facing
- Alternating cadence — inspired by Issue #007 producing two equally strong versions (conceptual + practical)
- Bento design for portal, Segoe UI for email — portal uses Outfit/Sora/JetBrains Mono dark theme; email newsletter keeps Segoe UI for Outlook compatibility. Two design systems, one brand.
- Lightweight context mode as default — interactive pages use
contextMode: 'lightweight'showing requirements, prerequisites, links, and code snippets. No detailed specs tables needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

