agentleFS
devforthdevforth/adminforth/adapters/AGENTS.md

adminforth / adapters

AGENTS.md391 starsChanged 3 months agoMITView on GitHub

Shared guidance for every adapter in this folder (adapters/adminforth-*). It applies to all of them; individual adapters should not need their own copy. The root AGENTS.md holds repo-wide rules (pnpm, package naming, trust-the-contract, no speculative coding) and still applies — this file only adds adapter-level conventions. Throughout this file, <slug> means an adapter's directory name minus the adminforth- prefix (e.g. adminforth-email-adapter-mailgun → email-adapter-mailgun). The slug reads <category>-adapter-<provider>. - A standalone, backend-only package published to npm as @adminforth/<slug>. - Its own…

  • 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,773 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

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Every adapter's package.json follows the same field conventions so its npm page, docs link, and repository link stay correct.

    line 28

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

AGENTS.md — AdminForth adapters

Shared guidance for every adapter in this folder (adapters/adminforth-*). It applies to all of them; individual adapters should not need their own copy. The root AGENTS.md holds repo-wide rules (pnpm, package naming, trust-the-contract, no speculative coding) and still applies — this file only adds adapter-level conventions.

Throughout this file, <slug> means an adapter's directory name minus the adminforth- prefix (e.g. adminforth-email-adapter-mailgun → email-adapter-mailgun). The slug reads <category>-adapter-<provider>.

What an adapter is

  • A standalone, backend-only package published to npm as @adminforth/<slug>.
  • Its own git repository: https://github.com/devforth/adminforth-<slug>.
  • Entry point index.ts with a default export class that implements the category interface from adminforth for its kind — e.g. EmailAdapter, StorageAdapter, CompletionAdapter — not an AdminForthPlugin subclass.
  • Pluggable and interchangeable: any adapter of the same category is a drop-in replacement, so keep to the interface and don't leak provider specifics.
  • Documented as a section on a shared per-category docs page (e.g. all key-value adapters live on one key-value-adapters page), reached via a heading anchor — not one page per adapter. See the homepage table below.

package.json conventions

Every adapter's package.json follows the same field conventions so its npm page, docs link, and repository link stay correct. After editing one, validate.

Enforced values, for an adapter in directory adminforth-<slug>:

FieldExpected
name@adminforth/<slug>
homepageDocs section URL — see the homepage table below
repository.urlhttps://github.com/devforth/adminforth-<slug> (.git optional)
maindist/index.js
typesdist/index.d.ts
typemodule
licenseMIT
authorDevForth (https://devforth.io)
publishConfig.accesspublic
peerDependencies.adminforthpresent
version, descriptionpresent and non-empty

homepage

Most adapters do not get their own docs page. They are documented as a section on a shared per-category page, so the homepage points at that page and the section's heading anchor. Do not guess it — derive it from the docs source.

To build (or validate) an adapter's homepage:

  1. Find the adapter's category page under adminforth/documentation/docs/tutorial/06-Adapters/*.md. The page slug is the filename without its numeric prefix (e.g. 07-key-value-adapters.md → key-value-adapters).
  2. On that page, find the ## heading for this specific adapter.
  3. Turn the heading text into its Docusaurus anchor: lowercase, spaces → -, drop punctuation and parentheses (e.g. ## Gemini (Nano Banana) Image Generation Adapter → gemini-nano-banana-image-generation-adapter).
  4. Compose: https://adminforth.dev/docs/tutorial/Adapters/<page-slug>/#<anchor>.

Exceptions to the shared-page-plus-anchor rule:

  • Own docs page — if the category .md has a custom slug: in its frontmatter, the adapter has a dedicated page; use that page URL with no anchor (e.g. adminforth-chat-surface-adapter-telegram → https://adminforth.dev/docs/tutorial/Adapters/chat-surface-adapter-telegram/).
  • Documented elsewhere — if the adapter is only documented on another section's page (e.g. inside a plugin page), point at that page + its anchor (e.g. adminforth-audio-adapter-openai → https://adminforth.dev/docs/tutorial/Plugins/agent/#turn-on-audio-chat-support).
  • No docs section — if no page has a heading for the adapter, it has no valid target. Do not invent an anchor; leave homepage absent until a docs section exists.

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.