agentleFS
MicrosoftKnown publishermicrosoft/cloudcloak/.github/copilot-instructions.md

cloudcloak

Copilot instructions152 starsChanged 8 months agoMITView on GitHub

The file

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

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep changes lightweight and dependency-free unless a new dependency is clearly necessary.

    line 5
  2. Distinctive:

    Prefer small, focused edits that fit the existing style of the codebase.

    line 6
  3. Very specific:

    Use ES modules when modifying shared code because background.js and popup.js import from common.js.

    line 17
  4. Distinctive:

    Avoid introducing a build step, transpiler, or framework for routine changes.

    line 18
  5. Distinctive:

    Prefer simple DOM operations and defensive null checks because the extension runs against many third-party pages with changing markup.

    line 20
  6. Distinctive:

    Keep regex and masking logic readable and narrowly scoped to the sensitive data being targeted.

    line 21
  7. Very specific:

    Use Node's built-in test runner for automated coverage in tests/*.test.mjs.

    line 26
  8. Distinctive:

    If test coverage is added, keep it lightweight, dependency-free, and focused on the changed behavior.

    line 29
  9. Distinctive:

    Do not alter permissions, host access, or injection behavior unless the task explicitly requires it.

    line 36
  10. Very specific:

    Do not duplicate masking rules across files.

    line 37
  11. Distinctive:

    When adding new masking behavior, consider both applying and removing the mask so toggling remains reversible.

    line 38
  12. Distinctive:

    Update README or user-facing documentation only when the change affects usage or setup.

    line 39

≈ “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 for Cloud Cloak

Repository overview

  • This repository is a Manifest V3 browser extension written in plain JavaScript, HTML, and static assets.
  • Keep changes lightweight and dependency-free unless a new dependency is clearly necessary.
  • Prefer small, focused edits that fit the existing style of the codebase.

Key files

  • manifest.json defines the extension entry points, permissions, and web-accessible resources.
  • common.js is the shared source of truth for supported domains and cloakable pattern definitions.
  • background.js handles tab events, script injection, and badge updates.
  • popup.js renders and persists toggle state for masking options.
  • cloak.js contains the DOM-masking logic that runs in the page context.

Coding guidance

  • Preserve compatibility with browser extension APIs used in this repo (chrome.* APIs, MV3 service worker, content script injection).
  • Use ES modules when modifying shared code because background.js and popup.js import from common.js.
  • Avoid introducing a build step, transpiler, or framework for routine changes.
  • Reuse existing shared data structures from common.js instead of duplicating domain or pattern definitions.
  • Prefer simple DOM operations and defensive null checks because the extension runs against many third-party pages with changing markup.
  • Keep regex and masking logic readable and narrowly scoped to the sensitive data being targeted.

Test guidance

  • The repo includes a minimal package.json with type: module so Node treats .js files as ES modules during validation and tests.
  • Pull requests are validated by .github/workflows/pull-request-ci.yml, which runs syntax checks, manifest validation, the Node test suite, and the extension packaging step.
  • Use Node's built-in test runner for automated coverage in tests/*.test.mjs.
  • For documentation-only or metadata-only changes, do not add tests.
  • For behavior changes, prefer extracting small pure functions from DOM-heavy code so they can be tested with minimal setup.
  • If test coverage is added, keep it lightweight, dependency-free, and focused on the changed behavior.
  • Prioritize tests for:
    • regex detection and matching behavior
    • supported-domain logic
    • toggle-state or masking decisions that can be validated without a browser

Change expectations

  • Do not alter permissions, host access, or injection behavior unless the task explicitly requires it.
  • Do not duplicate masking rules across files; update the shared definition in common.js when appropriate.
  • When adding new masking behavior, consider both applying and removing the mask so toggling remains reversible.
  • Update README or user-facing documentation only when the change affects usage or setup.

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.