openclaw-android-node-apk / extensions
AGENTS.md59 starsChanged 16 days agoMITView on GitHub
Bundled plugins. Same boundary as third-party plugins.
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Never import core internals from src/, src/channels/, src/plugin-sdk-internal/, or another extension's src/.
- Distinctive: line 28
No relative imports escaping current extension package root.
- Very specific: line 35
Before new provider-local wrapStreamFn, buildReplayPolicy, normalizeToolSchemas, inspectToolSchemas, or compat patch helper: check existing …
- Distinctive: line 37
Prefer named provider-family helpers over repeated raw option bags.
- Distinctive: line 41
Never eager global registry seeding/import-time side effects for plugin availability.
- Distinctive: line 48
ALL bundled plugins → modern SDK seams in same change.
≈ “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.
Files
Extensions Boundary
Bundled plugins. Same boundary as third-party plugins.
Public Contracts
- Docs:
docs/plugins/building-plugins.mddocs/plugins/architecture.mddocs/plugins/sdk-overview.mddocs/plugins/sdk-entrypoints.mddocs/plugins/sdk-runtime.mddocs/plugins/sdk-channel-plugins.mddocs/plugins/sdk-provider-plugins.mddocs/plugins/manifest.md
- Definition files:
src/plugin-sdk/plugin-entry.tssrc/plugin-sdk/core.tssrc/plugin-sdk/provider-entry.tssrc/plugin-sdk/channel-contract.tsscripts/lib/plugin-sdk-entrypoints.jsonpackage.json
Boundary Rules
- Extension production imports:
openclaw/plugin-sdk/*+ own local barrels (./api.ts,./runtime-api.ts). - Never import core internals from
src/**,src/channels/**,src/plugin-sdk-internal/**, or another extension'ssrc/**. - No relative imports escaping current extension package root.
- Accurate metadata in
openclaw.plugin.json+ packageopenclawblock: discovery/setup without executing plugin code. - Plugin runtime dependencies → owning plugin package. Runtime peer: declare/provide in plugin
package.json; never move to root unless root/package dist owns import. Runtime never installs deps; repair points = install/update/doctor. - Package-ownership dependency assertions → generic contracts (
package-manifest.contract.test.ts,extension-runtime-dependencies.contract.test.ts), not plugin e2e tests. src/**,onboard.ts, other local helpers private unless intentionally promoted throughapi.ts+ matchingsrc/plugin-sdk/<id>.tsfacade if needed.- Core/core tests needing bundled plugin helper: export from
api.tsfirst, never deep-import extension internals. - Provider auth, onboarding, catalog selection, vendor-only product behavior: plugin-local. Never move to core merely because two providers look similar.
- Before new provider-local
wrapStreamFn,buildReplayPolicy,normalizeToolSchemas,inspectToolSchemas, or compat patch helper: check existing behavior viaopenclaw/plugin-sdk/*. Shared family helpers first. - Two bundled providers sharing replay policy shape, tool-schema compat rewrite, payload patch, or stream-wrapper chain: stop copying. Extract shared helper + migrate both call sites in same change.
- Prefer named provider-family helpers over repeated raw option bags. OpenAI-style Anthropic tool payload compat, Gemini schema cleanup, XAI compat patch: named shared helper, never inline policy knobs again.
- Separate control-plane metadata/runtime logic. Discovery, config validation, setup hints, onboarding hints, activation planning: manifest/descriptors whenever possible.
- Setup truly needing runtime execution: explicit declared setup/runtime surface; never accidental runtime imports in metadata flows.
- Plugin work outliving originating caller/turn: active service-owned capability required. Never retain/extend caller-bound Gateway handles; revalidate service generation at effect boundary.
- Never eager global registry seeding/import-time side effects for plugin availability. Manifest ownership + targeted activation.
- Core hot-path plugin-owned static data: lightweight top-level artifact (
gateway-auth-api.ts,message-tool-api.ts, similarly narrow*-api.ts). Artifact + full plugin reuse same local helper; fast paths must not drift from runtime behavior.
Expanding The Boundary
- Changes to a shared SDK contract: use plugin-sdk-impact for public consumer evidence and coverage before proposing deprecation, removal, or incompatible behavior.
- Extension needing new seam: add/replace typed Plugin SDK subpath, never reach into core.
- ALL bundled plugins → modern SDK seams in same change. No extension-local compat paths for internal callers.
- First-party plugins always release together with the host: support only the current host version. No older-host fallbacks, capability probes or legacy adapters for released hosts. Third-party SDK compatibility follows the SDK deprecation policy instead.
- Intentional contract expansion: update docs, exported subpath list, package exports, API/contract checks in same change.
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 28,693 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 repository107 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- test/AGENTS.mdAGENTS.md
- ui/AGENTS.mdAGENTS.md
- agent-transcriptSkill
- auto-qaSkill
- autoreviewSkill
- channel-message-flowsSkill
- clawdtributorSkill
- claw-scoreSkill
- clawsweeperSkill
- control-ui-e2eSkill
- crabboxSkill
- discord-clawdSkill
- discord-e2eSkill
- discord-user-postSkill
- discrawlSkill
- gitcrawlSkill
- graincrawlSkill
- notcrawlSkill
- openclaw-changelog-updateSkill
- openclaw-ci-limitsSkill
- openclaw-debuggingSkill
- openclaw-docker-e2e-authoringSkill
- openclaw-ghsa-maintainerSkill
- openclaw-live-updaterSkill
- openclaw-parallels-smokeSkill
- openclaw-pr-maintainerSkill
- openclaw-qa-testingSkill
- openclaw-refactor-docsSkill
- openclaw-release-validationSkill
- openclaw-repair-sweepSkill
- openclaw-secret-scanning-maintainerSkill
- openclaw-test-heap-leaksSkill
- openclaw-testingSkill
- openclaw-test-performanceSkill
- openclaw-updateSkill
- parallels-discord-roundtripSkill
- plugin-sdk-impactSkill
- proof-videoSkill
- prototype-openclaw-tuiSkill
- pr-simplifySkill
- release-openclaw-announcementSkill
- release-openclaw-ciSkill
- release-openclaw-macSkill
- release-openclaw-maintainerSkill
- release-openclaw-plugin-testingSkill
- security-triageSkill
- slack-e2eSkill
- slacrawlSkill
- solidSkill
- tag-duplicate-prs-issuesSkill
- technical-documentationSkill
- telegram-e2e-userbotSkill
- test-auditSkill
- update-team-serverSkill
- verify-releaseSkill
- 1passwordSkill
- apple-notesSkill
- The first 60 shown.
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.

