This repo publishes CLI-first AgentMail skill markdown for coding agents. The
canonical authored package lives in agentmail/, and the generated hosted output
lives in public/.
The authored package stays runtime-neutral. Target-specific exports, such as the
later Hermes skills/email/agentmail/ package, are generated from overlays.
agentmail/
SKILL.md Main skill entry point
core.md Inbox, message, thread, label, and attachment workflows
signup.md CLI self-signup and OTP verification
webhooks.md Public HTTPS webhook delivery guidance
websockets.md Local realtime WebSocket delivery guidance
mcp.md MCP integration guidance
manifest.json Hosted index metadata
site/
index.md Website landing page served at /
scripts/
build.js Copies agentmail/ into public/ and generates indexes
build-local.js Exports a local skill package
build-hermes.js Exports a Hermes skill package
targets/
hermes/
frontmatter.yaml Hermes-only SKILL.md frontmatter overlay
public/ Generated hosted output
local/ Generated local package
dist/ Generated target-specific packages
agentmail/SKILL.md is the source of truth for the skill entry point. Supporting
files should stay terse, operational, and agent-oriented. site/*.md files are
website pages and should link to hosted files with absolute
https://agentmail.md/... URLs, without agentmail/ path prefixes.
npm run buildThis writes public/:
| Output | Source | Purpose |
|---|---|---|
SKILL.md, *.md |
generated from agentmail/ with absolute hosted links |
hosted skill package |
index.md |
copied from site/ |
website landing page |
llms.txt |
generated from manifest.json |
discovery index |
llms-full.txt |
generated from manifest.json and markdown files |
one-file full reference |
sitemap.xml, robots.txt |
generated | crawler support |
Vercel serves / from index.md; extensionless paths such as /core are
rewritten to /core.md. Hosted markdown uses absolute https://agentmail.md/...
links. The canonical agentmail/ source uses relative links so it remains
copyable into agent runtimes.
npm run build:localThis runs the hosted build, then writes local/ as a self-contained skill
package. Website pages from site/ are omitted; SKILL.md is the package entry
point. Links to https://agentmail.md/<file> become relative file links, and
the self-signup --referrer agentmail.md value can be changed:
npm run build:local -- --referrer=hermes-agent --out=localExternal AgentMail links such as https://agentmail.to,
https://console.agentmail.to, and https://docs.agentmail.to are left as
URLs.
npm run build:hermesThis writes dist/hermes/skills/email/agentmail/. It copies the neutral
agentmail/*.md files, replaces only SKILL.md frontmatter with
targets/hermes/frontmatter.yaml, moves supporting files to references/, and
changes the self-signup referrer to hermes-agent.
Use that generated folder for the later Hermes PR. Do not put Hermes metadata in the neutral authored files or hosted website output.
- Edit skill files under
agentmail/. - Edit website pages in
site/. - Update
agentmail/manifest.jsonwhen adding, removing, renaming, or reordering files. - Update target overlays under
targets/only when a target runtime needs target-specific metadata. - Run
npm run build:localandnpm run build:hermes. - Review generated
public/,local/, anddist/hermes/.
Do not edit generated files by hand.
Push to GitHub and let Vercel run npm run build, or run:
npx vercel --prod