AGENTS.md
Entry point for AI coding agents working on the Extension.js documentation site.What this repo is
The source for extension.js.org, the documentation site for Extension.js, a cross-browser extension framework. Built with Mintlify.Layout
Commands
pnpm check before opening a PR.
Conventions
- Page format: MDX with YAML frontmatter.
titleis required,descriptionis strongly recommended for SEO. - Filenames: kebab-case (
getting-started.mdx,manifest-v3.mdx). - Internal links: root-relative without extension (
/concepts/manifest, never../concepts/manifest.mdx). - Images: store in
/images, reference as/images/example.png. - Navigation: every new page must be registered in
docs.jsonor it will be hidden. - Voice: second person, active voice, sentence-case headings. No marketing language (“powerful”, “seamless”), no filler (“in order to”, “it’s important to note”).
- Punctuation: no em dashes. Use commas, colons, or parentheses.
- Verbs: prefer “choose” over “pick” or “select” for selection/option language (see commit history for prior standardizations).
- Code blocks: always tag with a language.
AI access surfaces
The site exposes two AI-accessible endpoints, documented indocs/ai-access.mdx:
- MCP server:
https://extensionjs.mintlify.app/mcp(full search and page-fetch tools) - llms.txt:
/llms.txt(index) and/llms-full.txt(full bundle), auto-generated by Mintlify on every deploy
Skills available
.agents/skills/ contains reusable skill files for agents working on the site:
mintlify/SKILL.md: writing docs, components, navigation, deploymentmintlify-api/SKILL.md: programmatic deployment and metadata via REST APImintlify-docs/SKILL.md: Mintlify-specific documentation patterns
Workflow for changes
- Read
docs.jsonto understand navigation structure. - Search existing pages before creating new ones, prefer updates and links over duplication.
- Read 2-3 nearby pages to match tone and structure.
- Write content, update
docs.jsonif a new page is added. - Run
pnpm check,pnpm broken-links,pnpm validate. - Commit with a conventional prefix (
docs:,fix:,feat:). Do not include AI co-author trailers.
What not to do
- Do not introduce a hand-rolled
index.mdxredesign without flagging the brand gap first, the current landing page is intentional. - Do not rename
docs.jsontomint.json,mint.jsonis deprecated. - Do not add files to the root
docs/folder without a navigation entry. - Do not use relative paths or file extensions in internal links.

