agentleFS
nirholasnirholas/XActions/.github/copilot-instructions.md

XActions

Copilot instructions566 starsChanged 9 months agoApache-2.0View on GitHub

Read AGENTS.md. It is the single source of truth for how to work in this repository, and it is kept current. This file adds only what you need before you suggest a change; it deliberately does not restate AGENTS.md, because the last time four files described the repository they drifted apart. - Three runtime contexts, and code correct in one is broken in another. Browser console scripts have no Node APIs. The library, CLI and MCP server are Node >=…

The file

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

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

  • 1

    Very specific

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

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

    X's DOM changes constantly: Prefer data-testid selectors.

    line 12
  2. Distinctive:

    Never remove the delays between actions: Every automation path paces itself on purpose.

    line 14
  3. Distinctive:

    An empty result is an error, not a zero: Read paths throw rather than reporting "0 results", because a silent zero looks exactly like an …

    line 17

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

XActions: instructions for Copilot

Read AGENTS.md. It is the single source of truth for how to work in this repository, and it is kept current. This file adds only what you need before you suggest a change; it deliberately does not restate AGENTS.md, because the last time four files described the repository they drifted apart.

  • Three runtime contexts, and code correct in one is broken in another. Browser console scripts have no Node APIs. The library, CLI and MCP server are Node >= 22.12 ESM (CI runs 22 and 24). The API server is Express with Prisma and Redis. AGENTS.md has the table.
  • X's DOM changes constantly. Prefer data-testid selectors; the current set is in docs/agents/selectors.md.
  • Never remove the delays between actions. Every automation path paces itself on purpose. Removing that is how a user's account gets suspended. The MCP server also enforces per-account daily caps that survive a restart; do not route around them.
  • An empty result is an error, not a zero. Read paths throw rather than reporting "0 results", because a silent zero looks exactly like an account with nothing on it.
  • Do not pin GraphQL query IDs. They are discovered from x.com's own bundles and cached, and every request is signed with an x-client-transaction-id header. Both are load-bearing; a hand-rolled request that skips either gets a worse answer from X.
  • One licence: Apache-2.0. npm run check:licenses enforces it, and anything adapted from another project is recorded in THIRD-PARTY-NOTICES.md first.
  • Tests are npm test (Vitest). New behaviour needs a test; the suite runs offline. npm run lint and npm run docs:check also run in CI.

Everything else is in AGENTS.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.