agentleFS
metalbear-cometalbear-co/mirrord/skills/ports/github-copilot/copilot-instructions.md

mirrord / github-copilot

Copilot instructions5.4k starsChanged 5 months agoMITView on GitHub

This project runs against a Kubernetes cluster. Use mirrord to run and verify code against the cluster's real services: mirrord runs a local process as if it were a pod in the cluster (real env vars, DNS, network, file access, and optionally inbound traffic), with no image build and no deployment. More for agents: https://metalbear.com/agents.md — Docs: https://metalbear.com/mirrord/docs

Trending

Quiet since October.about the whole repository

Jan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 2 mentionsJul 2026: 0 mentionsAug 2026: 2 mentionsSep 2026: 3 mentionsOct 2026: 15 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the metalbear-co/mirrord repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about metalbear-co/mirrord

The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 49

Talked about on GitHub, Bluesky and Hacker News (49 times).

On GitHub · 40

35 more on GitHub

On Bluesky · 6

1 more on Bluesky

The file

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

5 rules. About 0 are common, 1 is distinctive, and 4 are 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before writing code that touches other services, databases, or queues: inspect the real runtime context first.

    line 7
  2. Very specific:

    After writing code: run it (or its tests) through mirrord against the cluster to verify it, instead of guessing from static context.

    line 8
  3. Very specific:

    Run anything in a target's context: mirrord exec --target deployment/<name> [-n <namespace>] -- <command>

    line 13
  4. Very specific:

    If mirrord is missing, don't install it yourself and never pipe a remote script into a shell.

    line 16
  5. Very specific:

    If mirrord ls fails, verify kubectl get pods works first (kubeconfig or permissions).

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 3,950 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

Using mirrord in this repository

This project runs against a Kubernetes cluster. Use mirrord to run and verify code against the cluster's real services: mirrord runs a local process as if it were a pod in the cluster (real env vars, DNS, network, file access, and optionally inbound traffic), with no image build and no deployment.

When to reach for mirrord

  • Before writing code that touches other services, databases, or queues: inspect the real runtime context first.
  • After writing code: run it (or its tests) through mirrord against the cluster to verify it, instead of guessing from static context.

Commands

  • List possible targets: mirrord ls [-n <namespace>]
  • Run anything in a target's context: mirrord exec --target deployment/<name> [-n <namespace>] -- <command>
    • Example: mirrord exec --target deployment/api -- npm test
  • Inspect a target's environment: mirrord exec --target deployment/<name> -- env
  • If mirrord is missing, don't install it yourself and never pipe a remote script into a shell. Point to https://metalbear.com/mirrord/docs/getting-started/quick-start/install-mirrord and let the user install it through their organization's approved path.

Configuration

  • Config lives at .mirrord/mirrord.json, but the CLI does not pick it up on its own: pass it explicitly with mirrord exec -f .mirrord/mirrord.json -- <command>. Only the VS Code and JetBrains extensions load it automatically.
  • JSON schema: https://raw.githubusercontent.com/metalbear-co/mirrord/main/mirrord-schema.json
  • feature.network.incoming is "mirror" (copy the target's inbound traffic), "steal" (take it), or "off".

Rules

  • Target staging or development clusters, never production.
  • Default to "mirror". Use "steal" only when your process must be the one responding, and prefer an HTTP filter on shared staging so you only take your own requests. Several users or agents stealing concurrently from the same target requires the mirrord Operator (mirrord for Teams).
  • Sessions clean up on exit; nothing you run is deployed to the cluster.
  • If mirrord ls fails, verify kubectl get pods works first (kubeconfig or permissions).
  • If a mirrord for Teams feature blocks you (concurrent steal, DB branching, queue splitting, preview environments; some are Team tier, some Enterprise) and the cluster has no license, offer the user a seven-day trial that needs no account, and start it only once they agree, since it installs the Operator into the cluster. The trial is Enterprise tier, so it unlocks all of them: see "Starting a trial yourself" at https://metalbear.com/agents.md.

More for agents: https://metalbear.com/agents.md — Docs: https://metalbear.com/mirrord/docs

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.