agentleFS
lucamezzaliralucamezzalira/mfe-skills/.github/copilot-instructions.md

mfe-skills

Copilot instructions53 starsChanged 2 months agoMITView on GitHub

Use this file as the Copilot-native entry point for MFE governance. When reviewing or generating micro-frontend code:

The file

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

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this file as the Copilot-native entry point for MFE governance.

    line 3
  2. Distinctive:

    When reviewing or generating micro-frontend code:

    line 12
  3. Distinctive:

    Keep shell responsibilities thin: first route segment, platform chrome, fallbacks.

    line 16
  4. Distinctive:

    Keep MFE contracts minimal: identifiers only, not full domain objects.

    line 17
  5. Distinctive:

    Prefer runtime remote discovery over version-pinned shell remotes.

    line 18
  6. Distinctive:

    Use architecture fitness functions in monorepos to enforce boundaries continuously.

    line 25

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

GitHub Copilot repository instructions

Use this file as the Copilot-native entry point for MFE governance.

Canonical source

  • AGENTS.md is the canonical cross-agent governance baseline in this repository.
  • This file mirrors the highest-value instructions for Copilot and points to AGENTS.md for full context.

Boundary governance defaults

When reviewing or generating micro-frontend code:

  1. Apply the eight MFE boundary rules from AGENTS.md.
  2. Prioritise Critical violations first (cross-MFE imports, shared state across boundaries).
  3. Keep shell responsibilities thin: first route segment, platform chrome, fallbacks.
  4. Keep MFE contracts minimal: identifiers only, not full domain objects.
  5. Prefer runtime remote discovery over version-pinned shell remotes.

Additional governance extensions

  • Feature flags for behaviour belong inside owning MFEs.
  • Edge compute should be justified (canary, strangler, traffic steering).
  • SSR ownership should stay route/domain based with clear team accountability.
  • Use architecture fitness functions in monorepos to enforce boundaries continuously.

Response style for Copilot reviews

  • Cite rule numbers when flagging violations.
  • Return findings by severity order: Critical, High, Medium.
  • Include concise remediation steps for each violation.

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.