agentleFS
AtomicBot-aiAtomicBot-ai/atomicbot/extensions/AGENTS.md

atomicbot / extensions

AGENTS.md325 starsChanged 7 months agoMITView on GitHub

This directory contains bundled plugins. Treat it as the same boundary that third-party plugins see. - Extension production code should import from openclaw/plugin-sdk/* and its own local barrels such as ./api.ts and ./runtime-api.ts. - Do not import core internals from src/, src/channels/, src/plugin-sdk-internal/, or another extension's src/. - Do not use relative imports that escape the current extension package root. - Keep plugin metadata accurate in openclaw.plugin.json and the package openclaw block so discovery and setup work without executing plugin…

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

11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Do not import core internals from src/, src/channels/, src/plugin-sdk-internal/, or another extension's src/.

    line 29
  2. Distinctive:

    Do not use relative imports that escape the current extension package root.

    line 31
  3. Very specific:

    Keep plugin metadata accurate in openclaw.plugin.json and the package openclaw block so discovery and setup work without executing plugin …

    line 32
  4. Very specific:

    Treat files like src/, onboard.ts, and other local helpers as private unless you intentionally promote them through api.ts and, if needed, …

    line 34
  5. Very specific:

    If core or core tests need a bundled plugin helper, export it from api.ts first instead of letting them deep-import extension internals.

    line 37
  6. Very specific:

    Before adding a new provider-local wrapStreamFn, buildReplayPolicy, normalizeToolSchemas, inspectToolSchemas, or compat patch helper, check …

    line 42
  7. Distinctive:

    If two bundled providers share the same replay policy shape, tool-schema compat rewrite, payload patch, or stream-wrapper chain, stop …

    line 46
  8. Distinctive:

    Prefer named provider-family helpers over repeating raw option bags.

    line 50
  9. Distinctive:

    If an extension needs a new seam, add a typed Plugin SDK subpath or additive export instead of reaching into core.

    line 57
  10. Distinctive:

    Keep new plugin-facing seams backwards-compatible and versioned.

    line 59
  11. Distinctive:

    When intentionally expanding the contract, update the docs, exported subpath list, package exports, and API/contract checks in the same …

    line 61

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

Extensions Boundary

This directory contains bundled plugins. Treat it as the same boundary that third-party plugins see.

Public Contracts

  • Docs:
    • docs/plugins/building-plugins.md
    • docs/plugins/architecture.md
    • docs/plugins/sdk-overview.md
    • docs/plugins/sdk-entrypoints.md
    • docs/plugins/sdk-runtime.md
    • docs/plugins/sdk-channel-plugins.md
    • docs/plugins/sdk-provider-plugins.md
    • docs/plugins/manifest.md
  • Definition files:
    • src/plugin-sdk/plugin-entry.ts
    • src/plugin-sdk/core.ts
    • src/plugin-sdk/provider-entry.ts
    • src/plugin-sdk/channel-contract.ts
    • scripts/lib/plugin-sdk-entrypoints.json
    • package.json

Boundary Rules

  • Extension production code should import from openclaw/plugin-sdk/* and its own local barrels such as ./api.ts and ./runtime-api.ts.
  • Do not import core internals from src/**, src/channels/**, src/plugin-sdk-internal/**, or another extension's src/**.
  • Do not use relative imports that escape the current extension package root.
  • Keep plugin metadata accurate in openclaw.plugin.json and the package openclaw block so discovery and setup work without executing plugin code.
  • Treat files like src/**, onboard.ts, and other local helpers as private unless you intentionally promote them through api.ts and, if needed, a matching src/plugin-sdk/<id>.ts facade.
  • If core or core tests need a bundled plugin helper, export it from api.ts first instead of letting them deep-import extension internals.
  • For provider plugins, keep auth, onboarding, catalog selection, and vendor-only product behavior local to the plugin. Do not move those into core just because two providers look similar.
  • Before adding a new provider-local wrapStreamFn, buildReplayPolicy, normalizeToolSchemas, inspectToolSchemas, or compat patch helper, check whether the same behavior already exists through openclaw/plugin-sdk/*. Reuse shared family helpers first.
  • If two bundled providers share the same replay policy shape, tool-schema compat rewrite, payload patch, or stream-wrapper chain, stop copying the logic. Extract one shared helper and migrate both call sites in the same change.
  • Prefer named provider-family helpers over repeating raw option bags. If a provider needs OpenAI-style Anthropic tool payload compat, Gemini schema cleanup, or an XAI compat patch, use a named shared helper instead of inlining the policy knobs again.

Expanding The Boundary

  • If an extension needs a new seam, add a typed Plugin SDK subpath or additive export instead of reaching into core.
  • Keep new plugin-facing seams backwards-compatible and versioned. Third-party plugins consume this surface.
  • When intentionally expanding the contract, update the docs, exported subpath list, package exports, and API/contract checks in the same change.

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.