twitterapi-io-mcp
AGENTS.md10 starsChanged 22 days 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 code style.
Of the AGENTS.md files we read, the 35,266 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.
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 1 is common, 3 are distinctive, and 6 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 4
Never write password, API key, token, wallet private key or seed VALUES to memory, daily notes, reports or commits.
- Very specific: line 5
Before any memory/note/report persistence, use the checked-write entry below on the COMPLETE proposed content.
- Very specific: line 36
If you change the docs snapshot, commit data/docs.json and ensure npm test passes.
- Very specific: line 42
Keep tool/resource identifiers stable and descriptive (e.g., search_twitterapi_docs, twitterapi://guides/pricing).
- Distinctive: line 43
If you add/rename tools or resources, update the tables in README.md.
- Very specific: line 48
Add new coverage alongside existing suites in test/index.test.js unless a new file is clearly warranted.
- Very specific: line 49
Prefer node:assert and small, focused cases (input validation, search behavior, data shape).
- Distinctive: line 53
Commit messages are short and imperative (e.g., “Add …”, “Fix …”).
- Distinctive: line 55
Every npm publish must have a matching Git tag + GitHub Release for the same version (never let releases/tags lag npm).
- Very specific: line 61
Verify runtime-required files are included in package.json#files before publishing.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.
Files
Repository Guidelines
Credential persistence and release gates
- Never write password, API key, token, wallet private key or seed VALUES to memory, daily notes, reports or commits. This includes temporary and chat-supplied credentials. Store only the secret-store reference name.
- Before any memory/note/report persistence, use the checked-write entry below on the COMPLETE proposed content. Do not bypass it with write/edit/shell tools. Review plaintext context too; pattern scanning is not proof of no secrets.
- Publish only from a clean fixed git checkout through scripts/security/release.py, with an exact allowlist, real dry-run manifest and content scan. Never run npm/clawhub publish directly or publish from a workspace.
- Automatic CI releases of twitterapi-io-mcp and twitterapi-docs-mcp retain their main-push workflow and do NOT need per-version approval. Package manifest or scan failures stop publication and require owner review. Do not install main branch protection that blocks daily pushes.
- Manual releases (including ClawHub and domain-search-mcp) require explicit owner approval of the exact commit/version/manifest/digest, with upload credentials confined to the protected release environment.
- Scan full staged contents and commit messages before committing. Preserve existing hooks; never bypass a failed check. Show public repo diffs before pushing.
- Weekly: scan memory/ and reports/ in managed workspaces. Monthly: discover all owner-published ClawHub skills and npm packages and compare each latest manifest to its reviewed allowlist/previous manifest. Missing access is not a clean result.
- On suspected leakage: stop the affected write/commit/release, report only file/service/type (never values or matched text), do not test the credential, and do not rotate it without a separate instruction.
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 refreshdata/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"); preferimport/exportandconst. - 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.jsunless a new file is clearly warranted. - Prefer
node:assertand 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 - …; includeCHANGELOG.mdandpackage.jsonupdates 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., regenerateddata/docs.json).
Security & Configuration Notes
- Don’t commit secrets;
.envis ignored. - Verify runtime-required files are included in
package.json#filesbefore publishing.
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
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.

