agentleFS
MicrosoftKnown publishermicrosoft/Power-CAT-Copilot-Studio-Kit/.github/copilot-instructions.md

Power-CAT-Copilot-Studio-Kit

Copilot instructions457 starsChanged 6 months agoMITView on GitHub

These instructions guide the GitHub Copilot coding agent (and any human contributor reading them) when working in this repository. The Power CAT Copilot Studio Kit ships: - Power Platform solution files (top-level folders) — the actual Kit components: validation framework, library components, governance tooling, agent inventory, etc. These get packaged and imported into customer environments. - A GitHub Pages landing page at https://microsoft.github.io/Power-CAT-Copilot-Studio-Kit/ built from site-src/ (Vite + React 19 + Fluent UI v9 + TypeScript) and deployed from docs/…

The file

We split this copilot-instructions.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Commit both source AND rebuilt docs/ artifacts in the same commit

    line 41
  2. Distinctive:

    Always include the trailer:

    line 74

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

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

Copilot instructions — Power CAT Copilot Studio Kit

These instructions guide the GitHub Copilot coding agent (and any human contributor reading them) when working in this repository.

Repository at a glance

The Power CAT Copilot Studio Kit ships:

  • Power Platform solution files (top-level folders) — the actual Kit components: validation framework, library components, governance tooling, agent inventory, etc. These get packaged and imported into customer environments.
  • A GitHub Pages landing page at https://microsoft.github.io/Power-CAT-Copilot-Studio-Kit/ built from site-src/ (Vite + React 19 + Fluent UI v9 + TypeScript) and deployed from docs/ on the feature/github-pages-agent branch.
  • Documentation under docs/ (the landing-page assets) and other top-level .md files.

Most tasks fall into one of these buckets

1. Landing-page changes (site-src/)

This is the most common kind of issue from the team — visual tweaks, copy edits, new sections, link updates on the github.io page.

Note: site-src/ and its contents (including site-src/AGENTS.md, site-src/src/, and site-src/package.json) exist only on the feature/github-pages-agent branch. These files are not present on main and will land there via a separate redesign PR.

Read site-src/AGENTS.md (on the feature/github-pages-agent branch) before touching anything in site-src/. It has the design tokens, the build pipeline, the scroll-reveal pattern, and the branching strategy.

Key rules for landing-page work:

  • Edit source in site-src/src/ (most often theme.ts, App.tsx, features.ts)
  • Build with cd site-src && npm ci && npm run build
  • The build writes into ../docs/ (committed — this is the Pages source)
  • Commit both source AND rebuilt docs/ artifacts in the same commit
  • Open the PR against the feature/github-pages-agent branch, NOT main
  • The Pages deploy workflow only fires on pushes to feature/github-pages-agent that touch docs/**

2. Solution / component changes

Power Platform solution work happens at the top level (Solutions/, CopilotStudioKit/, etc.). These typically require manual export from maker.powerapps.com or pac CLI — Copilot can review diffs and update docs but should not invent solution XML by hand. If an issue asks for a solution change, propose a plan and request human confirmation before unpacking solution files.

3. Docs / README updates

Standard markdown edits. No build step. Open PRs against main.

Branching strategy

BranchPurpose
mainDefault. Solution files, top-level docs, this instructions file, the copilot-setup-steps.yml workflow.
feature/github-pages-agentGitHub Pages source. docs/** pushes here trigger deploy. Target this branch for landing-page PRs.
Topic branchesAlways branch off the appropriate base above. Use kebab-case names.

Commit message conventions

Use Conventional Commits: feat:, fix:, style:, docs:, refactor:, chore:, ci:.

Scope landing-page commits with (pages): e.g., feat(pages): lighten hero palette.

Always include the trailer:

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Setup-steps environment

The .github/workflows/copilot-setup-steps.yml workflow runs before every Copilot session and preinstalls Node 20, then conditionally npm cis any Node sub-project whose package-lock.json is present in the checked-out branch:

  • site-src/ — landing page (Vite + React + Fluent UI v9). Present on feature/github-pages-agent.
  • agent-review-pipeline/ — GitHub Action helper. Present on main.

Each step is guarded with hashFiles(...) != '' so it's a silent no-op on branches where the project isn't present (e.g. site-src/ on main before the redesign PR lands). The npm cache is keyed on each project's package-lock.json so dependency changes automatically invalidate it.

When in doubt

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.