agentleFS
MicrosoftKnown publishermicrosoft/CopilotStudioSamples/CLAUDE.md

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

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
  1. Very specific:

    Update authoring/solutions/README.md Contents table after adding.

    line 73
  2. Very specific:

    Add external_url to front matter — this replaces the "Browse source" button with "View sample in M365 Agents SDK repo":

    line 77
  3. Distinctive:

    Add a red label and caution callout at the top:

    line 90
  4. Very specific:

    If markdown contains {% (e.g., URL-encoded params), wrap in raw tags:

    line 148
  5. Distinctive:

    Search finds the new sample (Ctrl+K)

    line 174
  6. Very specific:

    To merge upstream: when ready, open a PR from reorg/v1 → main.

    line 194

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 dependencies

Adding a New Sample

  1. Create a folder under the appropriate category (e.g., ui/embed/my-sample/)
  2. Add a README.md with 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
---
  1. Write the README with: description, prerequisites, setup steps, architecture notes
  2. Name the file README.md (exact casing) — the jekyll-readme-index plugin converts it to index.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 ![screenshot](./assets/screenshot.png))
  • 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: true and has_toc: false in front matter
  • A manual ## Contents table (preferred over JTD's auto-generated TOC)
  • Optional ## See also section 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 .md extension: [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 build

Verify 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/v1

Branch: 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.yml exclude patterns: *.js, *.ts, *.cs etc. match recursively (* matches / in Jekyll's fnmatch)
  • Never add *.html to exclude — it breaks theme layouts
  • Source index.html files are excluded via *index.html so jekyll-readme-index can use README.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.