mcscatblog
CLAUDE.md20 starsChanged 4 months agoMITView on GitHub
This is the Microsoft Copilot Studio CAT team's technical blog, hosted at https://microsoft.github.io/mcscatblog/. It uses Jekyll with the Chirpy theme for static site generation on GitHub Pages. Posts go in _posts/ with filename format: YYYY-MM-DD-post-slug.md Add new authors to _data/authors.yml with: - name: Display name - email: Optional - avatar: GitHub avatar URL (e.g., https://github.com/username.png) - url: Optional link to profile/website Store post images in assets/posts/<post-slug>/. Reference in posts as /assets/posts/<post-slug>/image.png. See Chirpy documentation for advanced formatting: https://chirpy.cotes.page/posts/write-a-new-post/ Review instructions…
In this repository5 other files it gives its agents.
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
20 rules. About 0 are common, 15 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
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 46
Add new authors to _data/authors.yml with:
- Distinctive: line 115
Avoid: "One must consider the implications of..."
- Distinctive: line 116
Avoid: "It is imperative that developers understand..."
- Distinctive: line 127
Use "agents" not "bots"
- Distinctive: line 137
Don't be explicit about cost savings, Copilot credits, or billing implications
- Distinctive: line 139
Avoid promising savings—let readers draw their own conclusions
- Distinctive: line 140
Keep financial references tongue-in-cheek, not preachy
- Distinctive: line 146
Don't be derogatory about visitor behavior (e.g., avoid "closes tab without engaging")
- Distinctive: line 147
Use neutral phrasing: "moves on", "doesn't need help right now", "continues browsing"
- Distinctive: line 190
Always use complete, working examples
- Very specific: line 231
Internal Links: Use Jekyll's post_url tag for linking to other posts (not hardcoded paths):
- Distinctive: line 238
Every post should include internal links for SEO and reader engagement:
- Very specific: line 260
Mermaid Diagrams: Add mermaid: true to front matter, then:
- Very specific: line 335
Use ./tools/run.sh to start the Jekyll server (not the manual bundle exec command)
- Very specific: line 339
Always check GitHub Actions succeeded: gh run list --limit 5
- Distinctive: line 340
Wait ~90 seconds after merge before checking
- Distinctive: line 341
If build fails, investigate immediately before the broken state propagates
- Distinctive: line 344
After publishing a post, draft a LinkedIn announcement
- Distinctive: line 347
Don't overcommit on cost savings or business benefits
- Distinctive: line 348
Keep it concise, end with a link to the post
≈ “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.
About
This is the Microsoft Copilot Studio CAT team's technical blog, hosted at https://microsoft.github.io/mcscatblog/. It uses Jekyll with the Chirpy theme for static site generation on GitHub Pages.
Commands
# Install dependencies
bundle install
# Run local development server (preferred)
./tools/run.sh
# Build the site
bundle exec jekyll buildWriting Posts
Posts go in _posts/ with filename format: YYYY-MM-DD-post-slug.md
Front Matter Template
---
layout: post
title: "Post Title"
date: YYYY-MM-DD
categories: [category1, category2]
tags: [tag1, tag2]
description: Brief description for SEO
author: authorkey # Must match a key in _data/authors.yml
image:
path: /assets/posts/post-slug/header-image.png
no_bg: true # Optional
published: true # Set to false for drafts
---Author Setup
Add new authors to _data/authors.yml with:
name: Display nameemail: Optionalavatar: GitHub avatar URL (e.g.,https://github.com/username.png)url: Optional link to profile/website
Assets
Store post images in assets/posts/<post-slug>/. Reference in posts as /assets/posts/<post-slug>/image.png.
Formatting Reference
See Chirpy documentation for advanced formatting: https://chirpy.cotes.page/posts/write-a-new-post/
Project Structure
_posts/- Blog posts in Markdown_data/authors.yml- Author definitions_tabs/- Navigation pages (about, archives, categories, tags)_config.yml- Site configuration (theme, SEO, analytics, comments)assets/- Static files (images, post assets)
Blog Post Review
Review instructions are in .github/instructions/posts.instructions.md. Reviews prioritize: (1) narrative and structure, (2) technical accuracy, (3) reader experience, (4) front matter, (5) scope. No percentage scoring — output is a ranked list of 5-7 issues with quoted text and suggested fixes.
Important Notes
- Author GitHub usernames: To identify PR authors, check
_data/authors.ymlwhich maps author keys to names and GitHub usernames (e.g., CATDAB = Doug Bellingeri)
Adilei Writing Style Guide
This section captures adilei's writing patterns for Claude to replicate when drafting posts.
Post-writing step: After completing each post, update this style guide with any corrections, terminology changes, or stylistic feedback provided during the writing session. {: .prompt-info}
Quick Reference Checklist
- Opens with real-world problem or relatable scenario
- Conversational tone with contractions ("you've", "it's", "don't")
- Direct address to reader ("you", "we", "let's")
- Complete working code examples (not snippets)
- Progressive disclosure: simple → detailed → complete
- Explicit trade-offs and limitations acknowledged
- Uses prompt boxes (
.prompt-tip,.prompt-warning) for callouts - Header image in front matter
- Ends with engagement question for comments
- 5-8 specific tags in front matter
- 2-3 internal links to related posts (SEO requirement)
- Tags tuned so Chirpy's auto-generated "Further Reading" shows relevant posts
Voice & Tone
Personality:
- Conversational and approachable with occasional humor
- Friendly asides: "Bear with me for a sec", "I hear you say"
- Self-aware and transparent about limitations
- Pop culture references welcome (D&D, LOTR, Transformers, etc.)
Punctuation: Be frugal with em-dashes. Prefer commas or restructuring sentences over em-dashes.
Clarity: State the fact or action directly. Avoid defensive framing such as "not a reason to assume," unnecessary metaphors, and repeated warnings. Define acronyms at first use, keep configuration guidance procedural, and distinguish current capabilities from unconfirmed roadmap changes.
Formality: Semi-formal balance—professional but not academic. Examples:
- Good: "You've probably run into this before..."
- Good: "Okay, I made that last one up, but it should be true"
- Avoid: "One must consider the implications of..."
- Avoid: "It is imperative that developers understand..."
Rhetorical Techniques:
- Myth-busting: "Myth vs. Reality" sections for misconceptions
- Comparative tables showing features/trade-offs
- Direct questions: "But what if you need X?"
- Strategic reveals: "But here's a little-known capability..."
Terminology & Sensitivity
Copilot Studio terminology:
- Use "agents" not "bots"
- "Conversation Start topic" not "Greeting topic"
- In code comments, say "mocked" not "fake"
Direct Line / WebChat accuracy:
- A Direct Line conversation exists (has a conversation ID) as soon as connectivity is established, even before any topics are triggered
DIRECT_LINE/INCOMING_ACTIVITYis client-side injection into WebChat's incoming message stream, not messages "coming from" the agent- Be precise: "no topics triggered" is different from "no conversation started"
Cost/licensing sensitivity:
- Don't be explicit about cost savings, Copilot credits, or billing implications
- Imply rather than state directly: "someone eventually notices" vs "you get charged"
- Avoid promising savings—let readers draw their own conclusions
- Keep financial references tongue-in-cheek, not preachy
- For posts specifically about licensing and billing, state inclusion, consumption, and applicable controls plainly with current official sources; still avoid savings promises.
- Distinguish spending policies and reporting views from the underlying credit pools. Different admin consoles do not necessarily mean separate pools.
- Distinguish feature activation from billing: tenant graph grounding is zero-rated for Microsoft 365 Copilot licensed users when enabled; the license doesn't mean the feature is enabled by default.
Tone about users:
- Don't be derogatory about visitor behavior (e.g., avoid "closes tab without engaging")
- Use neutral phrasing: "moves on", "doesn't need help right now", "continues browsing"
Post Structure
Decision guides:
- Lead with what the article helps the reader decide, then use a short scenario to illustrate why it matters.
- Organize comparisons by the reader's product or scenario. Prefer one definitive comparison over overlapping technical frameworks.
- Split scenarios when consumption or required configuration differs, such as built-in grounding versus a connected tool, or UI configuration versus manifest configuration. A separate controls table can map back to those scenarios without repeating the licensing comparison.
- Connect controls directly to those same scenarios. Link to general setup and architecture documentation instead of repeating it.
Standard flow for tutorial/technical posts:
1. HOOK (1-2 paragraphs)
- Real-world problem or pain point
- Relatable scenario or question
- Sometimes opens with "People keep asking me..."
2. CONTEXT (1-3 paragraphs)
- Why this matters
- Common misconceptions (if applicable)
- What we'll cover
3. MAIN CONTENT (bulk of post)
- Explanation with progressive complexity
- Code examples with context
- Screenshots for UI steps
- Use ## headers for major sections
- Use ### headers for subsections
4. KEY TAKEAWAYS
- Bulleted summary of main points
- Can use comparison table for trade-offs
5. CALL TO ACTION
- Engagement question inviting comments
- "What challenges have you faced with X?"
- "Have you tried this approach? Let me know..."Technical Content
Code Blocks:
- Always use complete, working examples
- Specify language:
yaml,typescript,json,powershell, ```csharp - Precede with context: "Here's what the complete YAML should look like..."
- Explain the "why" before the "what"
- Include inline comments for key parts
Documentation Style:
- Show realistic data in examples (not "foo/bar")
- Include both request and response for API examples
- Note version/date limitations: "As of October 2025..."
- Link to official Microsoft docs where relevant
Common Languages:
- YAML for Copilot Studio configurations
- TypeScript/JavaScript for MCP servers, web integrations
- JSON for API payloads, adaptive cards
- PowerShell for scripts
- C# for Agents SDK
Jekyll Formatting
Prompt Boxes (Chirpy theme):
> This is a tip
{: .prompt-tip }
> Important information
{: .prompt-info }
> Warning about something
{: .prompt-warning }
> Danger - destructive operation
{: .prompt-danger }Images:
{: .shadow w="700" h="400" }Internal Links: Use Jekyll's post_url tag for linking to other posts (not hardcoded paths):
Check out [my other post]({% post_url 2026-01-11-mocked-webchat-welcome-message %}) for details.Internal Linking Requirements (SEO)
Every post should include internal links for SEO and reader engagement:
- Minimum 2-3 contextual links within the body to related posts
- Do NOT add a manual "Further Reading" section. Chirpy auto-generates one by scoring posts on shared tags (1 point each) and categories (0.5 points each), showing the top 3. Instead, verify the auto-generated picks are relevant and adjust tags if needed.
Topic Clusters to Cross-Link (inline):
- Authentication: SSO, OBO, consent cards, manual auth posts
- MCP: MCP servers, tools, resources, custom headers posts
- WebChat: Welcome message, embedding, styling posts
- Connectors: File passing, OBO, SSO posts
- Multi-agent: Child agents, connected agents, A2A posts
Expandable Sections:
<details>
<summary>Click to expand</summary>
Hidden content here...
</details>Mermaid Diagrams: Add mermaid: true to front matter, then:
```mermaid
sequenceDiagram
participant User
participant Bot
User->>Bot: Message
Bot->>User: Response
### Front Matter Template
```yaml
---
layout: post
title: "Clear, Specific Title (Often with Colon or Parenthetical)"
date: YYYY-MM-DD
categories: [copilot-studio, primary-topic]
tags: [specific-tag-1, specific-tag-2, feature-name, pattern-name, technology]
description: "1-2 sentence summary for SEO and social sharing"
author: adilei
image:
path: /assets/posts/post-slug/header.png
alt: Descriptive alt text
no_bg: true
published: true
mermaid: false # Set true if using diagrams
---Title Patterns:
- "Doing X in Copilot Studio"
- "The One Thing About X (That Changes Everything)"
- "You Probably Don't Need X (And Didn't Even Know It)"
- "How to X: A Complete Guide"
- "(Nearly) Seamless X for Y"
Common Categories: copilot-studio, tutorial, authentication, connectors, mcp, agents, knowledge, multi-agent, localization
Tag Count: 5-8 specific tags per post
Examples
Good Opening:
People keep asking me: "Adi, how do I get my agent to handle multiple languages without creating separate agents for each?" If you've been building agents in Copilot Studio, you've probably run into this wall.
Bad Opening:
This blog post will explain the localization features available in Copilot Studio for adaptive cards.
Good Trade-off Acknowledgment:
This approach is simpler to set up, but it requires you to manually construct the HTTP payload. If you need full SDK support with type safety, you'll want the connector approach instead.
Bad (hiding limitations):
This is the best way to do authentication in Copilot Studio.
Good Code Introduction:
Let's look at what the agent configuration looks like. Pay attention to the
authenticationblock—that's where the magic happens:
Bad Code Introduction:
Here is the code:
Post Length Guidelines
| Type | Word Count | Use Case |
| Quick tip | 1,000-2,000 | Single feature, announcement |
| Standard tutorial | 3,000-5,000 | Feature walkthrough |
| Deep dive | 8,000-15,000+ | Complete implementation guide |
Most adilei posts are deep dives with extensive code samples.
Workflow
Local development:
- Use
./tools/run.shto start the Jekyll server (not the manual bundle exec command) - Server runs at http://127.0.0.1:4000/mcscatblog/ with LiveReload
After merging PRs:
- Always check GitHub Actions succeeded:
gh run list --limit 5 - Wait ~90 seconds after merge before checking
- If build fails, investigate immediately before the broken state propagates
LinkedIn announcements:
- After publishing a post, draft a LinkedIn announcement
- Tone: slightly tongue-in-cheek, matching the post's personality
- Reuse memorable phrasing from the post itself
- Don't overcommit on cost savings or business benefits
- Keep it concise, end with a link to the post
Active Writing Projects
Don't Sleep on WebChat (7-part series)
Branch: adilei-webchat-writing-plan
Plan file: writing-plans/dont-sleep-on-webchat-series.md
Series evangelizing WebChat as a frontend for Copilot Studio instead of LLM-native frameworks (Assistant UI, Vercel SDK).
Posts:
- Introduction: The Modern Chat UI Dilemma
- Styling Basics (styleOptions, config-based)
- Advanced Visual Customization (custom components, Composer pattern)
- Behavioral Customization (reactions, autocomplete, secure inputs)
- Middleware and Redux (message interception, telemetry)
- Token Exchange and Authentication
- Conclusion: When to Use What
Key references:
- WebChat samples: BotFramework-WebChat/samples
- Assistant UI sample: CopilotStudioSamples/AssistantUICopilotStudioClient
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.

