CopilotStudioSamples
CLAUDE.md804 starsChanged 9 months agoMITView on GitHub
Microsoft Copilot Studio samples repo with a Just the Docs (Jekyll) site for navigation and search. Live site: https://microsoft.github.io/CopilotStudioSamples/ Solutions follow the PnP format: Front matter: README should include: - What the solution does and which Copilot Studio features it demonstrates - Screenshots in assets/ (reference as ) - Installation steps (import zip via make.powerapps.com > Solutions > Import) - Any connection references or environment variables to configure - Known issues or limitations Update authoring/solutions/README.md Contents table after adding. Add…
- 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
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 73
Update authoring/solutions/README.md Contents table after adding.
- Very specific: line 77
Add external_url to front matter — this replaces the "Browse source" button with "View sample in M365 Agents SDK repo":
- Distinctive: line 90
Add a red label and caution callout at the top:
- Very specific: line 148
If markdown contains {% (e.g., URL-encoded params), wrap in raw tags:
- Distinctive: line 174
Search finds the new sample (Ctrl+K)
- Very specific: line 194
To merge upstream: when ready, open a PR from reorg/v1 → main.
≈ “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
CopilotStudioSamples
Microsoft Copilot Studio samples repo with a Just the Docs (Jekyll) site for navigation and search.
Live site: https://microsoft.github.io/CopilotStudioSamples/
Repo Structure
├── authoring/ # Importable solutions and topic snippets
├── contact-center/ # ServiceNow, Salesforce, Genesys, skill handoff
├── extensibility/ # MCP servers, A2A protocol, M365 Agents SDK
├── guides/ # Implementation guide, workshop, playbook
├── infrastructure/ # VNet and deployment templates
├── sso/ # SSO with Entra ID, Okta, Chat API
├── testing/ # Functional (pytest) and load (JMeter) testing
├── ui/ # Custom UIs and platform embed samples
│ ├── custom-ui/ # Standalone chat frontends
│ └── embed/ # Widgets for ServiceNow, SharePoint, Power Apps, etc.
├── EmployeeSelfServiceAgent/ # Workday/facilities topics (pending deprecation)
├── _config.yml # Jekyll configuration
├── _layouts/ # Custom default.html (adds Browse source button)
├── _includes/ # source_link.html (Browse source / external link button)
└── Gemfile # Jekyll dependenciesAdding a New Sample
- Create a folder under the appropriate category (e.g.,
ui/embed/my-sample/) - Add a
README.mdwith front matter:
---
title: My Sample
parent: Embed # Must match the parent page's title exactly
grand_parent: UI # Required for level 3 pages
nav_order: 8 # Position among siblings
---- Write the README with: description, prerequisites, setup steps, architecture notes
- Name the file
README.md(exact casing) — thejekyll-readme-indexplugin converts it toindex.html
For Power Platform Solutions (authoring/solutions/)
Solutions follow the PnP format:
authoring/solutions/my-solution/
├── README.md # Description, screenshots, install steps
├── assets/ # Screenshots and diagrams
├── solution/ # Packaged .zip file(s) ready to import
└── sourcecode/ # Unpacked source (pac solution unpack)Front matter:
---
title: My Solution
parent: Solutions
grand_parent: Authoring
nav_order: 7
---README should include:
- What the solution does and which Copilot Studio features it demonstrates
- Screenshots in
assets/(reference as) - Installation steps (import zip via make.powerapps.com > Solutions > Import)
- Any connection references or environment variables to configure
- Known issues or limitations
Update authoring/solutions/README.md Contents table after adding.
For External Samples (code lives in another repo)
Add external_url to front matter — this replaces the "Browse source" button with "View sample in M365 Agents SDK repo":
---
title: Genesys Handoff
parent: Contact Center
nav_order: 4
external_url: "https://github.com/microsoft/Agents/tree/main/samples/dotnet/GenesysHandoff"
---For Deprecated Samples
Add a red label and caution callout at the top:
Deprecated
{: .label .label-red }
{: .caution }
> This sample is deprecated. Use [replacement](../path/) instead.Category README Convention
Each category folder has a README.md with:
has_children: trueandhas_toc: falsein front matter- A manual
## Contentstable (preferred over JTD's auto-generated TOC) - Optional
## See alsosection for cross-references
Markdown Rules
Do NOT use GitHub alert syntax
GitHub > [!NOTE] alerts render as plain text in Jekyll. Use JTD callouts instead:
{: .note }
> This is a note.
{: .warning }
> This is a warning.
{: .tip }
> This is a tip.
{: .caution }
> This is a caution.
{: .important }
> This is important.Links
- Link to other READMEs as directories, not files:
[My Sample](./my-sample/)not[My Sample](./my-sample/README.md) - Non-README markdown: strip the
.mdextension:[Setup Guide](./SETUP)not(./SETUP.md) - External links are fine as-is
Labels
New
{: .label .label-green }
Deprecated
{: .label .label-red }Liquid Escaping
If markdown contains {% (e.g., URL-encoded params), wrap in raw tags:
{% raw %}
```
https://example.com?params={%22key%22:%22value%22}
```
{% endraw %}Building and Testing Locally
# Install dependencies (first time only)
bundle install
# Start dev server with live reload
bundle exec jekyll serve
# Site at http://127.0.0.1:4000/CopilotStudioSamples/
# Build without serving (CI check)
bundle exec jekyll buildVerify after changes:
- New page appears in sidebar nav
- Search finds the new sample (Ctrl+K)
- Internal links work (no 404s)
- Images render correctly
Git Workflow
# Work on the docs branch
git checkout reorg/v1
# Make changes, then commit
git add -A
git commit -m "Add my-new-sample to ui/embed"
# Push to fork — GitHub Actions deploys automatically
git push origin reorg/v1Branch: reorg/v1 is the docs branch. GitHub Actions builds and deploys to Pages on every push.
To merge upstream: when ready, open a PR from reorg/v1 → main. Update .github/workflows/pages.yml to trigger on main instead of reorg/v1 before merging.
Remotes:
origin— your fork (microsoft/CopilotStudioSamples)upstream— source repo (microsoft/CopilotStudioSamples)
Key Config Notes
_config.ymlexclude patterns:*.js,*.ts,*.csetc. match recursively (*matches/in Jekyll's fnmatch)- Never add
*.htmlto exclude — it breaks theme layouts - Source
index.htmlfiles are excluded via*index.htmlsojekyll-readme-indexcan use README.md
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.

