agentleFS
dorukardahandorukardahan/twitterapi-io-mcp/AGENTS.md

twitterapi-io-mcp

AGENTS.md9 starsChanged 3 months agoMITView on GitHub

Prereq: Node.js >=18.18.0. If you change the docs snapshot, commit data/docs.json and ensure npm test passes.

  • Reads credentials
  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    If you change the docs snapshot, commit data/docs.json and ensure npm test passes.

    line 25
  2. Very specific:

    Keep tool/resource identifiers stable and descriptive (e.g., search_twitterapi_docs, twitterapi://guides/pricing).

    line 31
  3. Distinctive:

    If you add/rename tools or resources, update the tables in README.md.

    line 32
  4. Very specific:

    Add new coverage alongside existing suites in test/index.test.js unless a new file is clearly warranted.

    line 37
  5. Very specific:

    Prefer node:assert and small, focused cases (input validation, search behavior, data shape).

    line 38
  6. Distinctive:

    Commit messages are short and imperative (e.g., “Add …”, “Fix …”).

    line 42
  7. Distinctive:

    Every npm publish must have a matching Git tag + GitHub Release for the same version (never let releases/tags lag npm).

    line 44
  8. Very specific:

    Verify runtime-required files are included in package.json#files before publishing.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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
AGENTS.md

Repository Guidelines

Project Structure

  • index.js: Main MCP server (ESM) and CLI entrypoint (twitterapi-io-mcp).
  • data/docs.json: Bundled documentation snapshot used at runtime.
  • scrape-all.cjs, scrape-docs.cjs: Dev-only scrapers to refresh data/docs.json (not shipped to npm).
  • test/index.test.js: Node.js built-in test runner suite.
  • packages/twitterapi-docs-mcp/: Legacy npm package (deprecated wrapper for backwards compatibility).
  • .github/workflows/: CI/release automation.
  • cache/: Local runtime cache (gitignored; don’t commit generated content).

Build, Test, and Development Commands

Prereq: Node.js >=18.18.0.

npm install          # install deps
npm start            # run MCP server locally (stdio)
npm test             # run unit tests (node --test)
npm run scrape       # refresh docs snapshot (updates data/docs.json)
npm run build        # no-op (package is pure ESM)

If you change the docs snapshot, commit data/docs.json and ensure npm test passes.

Coding Style & Naming Conventions

  • JavaScript ESM ("type": "module"); prefer import/export and const.
  • Match existing formatting in index.js/test/index.test.js (2-space indent, minimal diffs).
  • Keep tool/resource identifiers stable and descriptive (e.g., search_twitterapi_docs, twitterapi://guides/pricing).
  • If you add/rename tools or resources, update the tables in README.md.

Testing Guidelines

  • Tests run with Node’s test runner; keep them deterministic and offline (no network calls).
  • Add new coverage alongside existing suites in test/index.test.js unless a new file is clearly warranted.
  • Prefer node:assert and small, focused cases (input validation, search behavior, data shape).

Commit & Pull Request Guidelines

  • Commit messages are short and imperative (e.g., “Add …”, “Fix …”).
  • Release/version commits typically use vX.Y.Z - …; include CHANGELOG.md and package.json updates when applicable.
  • Every npm publish must have a matching Git tag + GitHub Release for the same version (never let releases/tags lag npm).
  • PRs should include: a clear description, how to test (npm test), and any data/doc changes (e.g., regenerated data/docs.json).

Security & Configuration Notes

  • Don’t commit secrets; .env is ignored.
  • Verify runtime-required files are included in package.json#files before publishing.

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.