ai-cheatcode
CLAUDE.md11 starsChanged 6 months agoMITView on GitHub
"The Cheat Code" is an internal Microsoft newsletter (ABS Tech Strategy) publishing weekly reusable agentic patterns for Copilot Chat. Each issue exists in parallel formats: HTML email, PDF, Viva Amplify content, architecture diagram, and interactive portal page. The PRODUCTION_PLAYBOOK.md is the authoritative reference for all production processes — read it first.
- Commits and pushes
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Write issue HTML from the_cheat_code_template.html
- Very specific: line 43
Update portal (docs/index.html) and archive (index.html)
- Very specific: line 59
Use contextMode: 'lightweight' in window.interactiveConfig
- Very specific: line 74
All newsletter CSS must be inline for email compatibility.
- Very specific: line 78
Only docs/ is reader-facing via GitHub Pages.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
"The Cheat Code" is an internal Microsoft newsletter (ABS Tech Strategy) publishing weekly reusable agentic patterns for Copilot Chat. Each issue exists in parallel formats: HTML email, PDF, Viva Amplify content, architecture diagram, and interactive portal page. The PRODUCTION_PLAYBOOK.md is the authoritative reference for all production processes — read it first.
Key Commands
# Chrome path (macOS)
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
# Render newsletter PDF from HTML
"$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"
# Render architecture diagram PNG
"$CHROME" --headless --disable-gpu --no-sandbox \
--screenshot="diagrams/issue_NNN_name_rich.png" \
--window-size=1680,HEIGHT \
"file://$PWD/diagrams/issue_NNN_name.html"
# Build email-ready files (base64 + .eml with CID-embedded diagrams)
python scripts/build_email.py NNN # single issue
python scripts/build_email.py all # all issues
# Run navigation tests (requires local server on :8787)
npx playwright install chromium # one-time setup
node scripts/test_navigation.js # needs: npx serve docs -p 8787Architecture
Content Pipeline
- Source content from meeting transcripts (WorkIQ) or 1:1 sessions
- Extract reusable patterns (disaggregate — one demo often yields 2-4 issues)
- Write issue HTML from
the_cheat_code_template.html - Render PDF + diagram PNG via Chrome headless
- Build interactive walkthrough page in
docs/interactive/issue-NNN/ - Update portal (
docs/index.html) and archive (index.html) git push— GitHub Pages auto-deploys fromdocs/onmain
Two Design Systems
- Email newsletter: Segoe UI, 600px max-width, all inline CSS, Outlook-compatible. Template:
the_cheat_code_template.html. - Interactive portal (
docs/): Dark theme with Outfit/Sora/JetBrains Mono (Google Fonts), glassmorphism cards, Bento grid layout. Full design system inDESIGN.md.
Alternating Cadence (starting Issue #007)
- Odd issues = Conceptual Pattern: names the pattern, explains why, frames architecture
- Even issues = Practical Build: shows how to build it in Copilot Studio step-by-step
- Issues #001-006 predate this cadence and stand as-is
Interactive Walkthroughs (docs/interactive/)
- Shared framework:
docs/interactive/shared/interactive.css+interactive.js - StepEngine drives step-through walkthroughs with narrative panels
- Context panels show implementation details via
data-contextJSON attributes on diagram elements - Use
contextMode: 'lightweight'inwindow.interactiveConfig - Copy an existing issue page as starting point for new ones
File Naming Conventions
- Newsletter:
issues/the_cheat_code_issue_NNN.html/.pdf - Diagram source:
diagrams/issue_NNN_shortname.html - Diagram render:
diagrams/issue_NNN_shortname_rich.png - Amplify content:
viva_amplify/issue_NNN_amplify.md - Interactive pages:
docs/interactive/issue-NNN/index.html - Code samples:
samples/issue-NNN/
Critical Gotchas
- Chrome
--screenshotsilently clips content taller than--window-sizeheight. Always matchmin-heightin body CSS to--window-sizeheight, plus 100-200px buffer. - All newsletter CSS must be inline for email compatibility. Use
<!--[if mso]>conditionals for Outlook. - Portal uses clean directory URLs — never link to
.htmlfiles. - The Konami code easter egg (near-invisible 8px monospace glyphs) appears on every page. Each issue gets unique glyphs from the Symbol Registry in the playbook.
docs/index.htmlshould only show published issues plus a "Coming Next" teaser for the next one.- Only
docs/is reader-facing via GitHub Pages. Everything else stays repo-only.
Brand Colors
| Role | Color |
| Primary / Agents | Purple #6B2FA0 |
| Azure / Conceptual | Blue #0078D4 |
| Output / Trust | Green #107C10 |
| External / Practical | Orange #D83B01 |
| Decisions / Gates | Amber #CA5010 |
| Header / Surfaces | Navy #1B1B3A |
| Portal background | Deep Navy #0E0E1F |
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.

