Description
AJ Agent Crawl Optimizer is a thin compatibility layer that teaches your site to speak the languages AI agents already use to discover and consume web content. It publishes machine-readable manifests at well-known URLs, serves clean Markdown when an AI requests it, and declares your AI-usage preferences — all without changing anything for human visitors.
Each capability is a separate toggle under Settings AJ Agent Crawl Optimizer and ships opt-in (everything starts off). On first activation, a one-time Quick Setup wizard suggests sensible defaults based on your environment (for example, it skips JSON-LD when an SEO plugin is detected so you don’t get duplicate structured data).
Discovery — help agents find what your site offers
- API Catalog (RFC 9727) —
/.well-known/api-cataloglinkset advertising your REST API, plus aLink: rel="api-catalog"header on every response so agents discover it from any URL. - MCP Server Card (SEP-1649 draft) —
/.well-known/mcp/server-card.jsondescribing the site to MCP-aware agents. - Agent Skills Index (RFC v0.2.0) —
/.well-known/agent-skills/index.jsonlisting six skills (search, posts, pages, media, categories, tags) plus per-skillSKILL.mdartifacts with verifiable sha256 digests. - llms.txt (per llmstxt.org) —
/llms.txtcurated, LLM-readable index of your top pages and recent posts, with a Discovery section auto-linking every other plugin endpoint. - IndexNow — non-blocking ping to Bing and Yandex on every post publish so search engines re-crawl within minutes.
Presentation — format content for agents
- Markdown Negotiation — when a request includes
Accept: text/markdown, the page is served as clean Markdown withX-Markdown-Tokensfor context budgeting. Browsers (which sendtext/html) are completely unaffected. - JSON-LD Schema — Schema.org structured data: WebSite, Organization, Article, BreadcrumbList, and auto-detected FAQPage. Logo resolved from your theme’s custom logo or site icon.
- OpenAPI 3.0.3 —
/?format=openapireturns a complete spec generated dynamically fromrest_get_server(), including plugin-registered REST routes. - WebMCP Tools — registers four tools (search, posts, pages, site info) via
navigator.modelContext.provideContext()for browsers that support the W3C WebMCP draft.
Declarations
- Content-Signals — appends a
Content-Signal: ai-train=no, search=yes, ai-input=nodirective to robots.txt declaring your AI-usage preferences (per contentsignals.org). Composes with Yoast/Rank Math/AIOSEO — their additions are preserved, our line lands at the very end.
Why use it
- No conflicts with your SEO plugin. JSON-LD auto-suppresses when Yoast SEO, Rank Math, All in One SEO, SEOPress, The SEO Framework, Slim SEO, Squirrly SEO, Schema Pro, or SASWP is active.
- Multisite-aware. Every endpoint also resolves at
/{subsite}/...paths automatically. - Cached. OpenAPI is cached for a day, llms.txt for an hour, with proper invalidation on plugin activation, theme switch, post changes, and setting toggles.
- Performance-conscious. Markdown handler runs at
PHP_INT_MAXpriority so it doesn’t break object-cache flushes or Query Monitor. IndexNow pings are non-blocking. - Extensible. Nine filter hooks let you customize skills, schemas, capabilities, and content. See “For Developers” below.
- Accessible. Score-card SVG has dynamic
aria-label, copy buttons announce success viaaria-live, decorative arrows hidden from screen readers via CSS pseudo-elements.
For developers
The plugin exposes nine filter hooks for extension. Examples:
add_filter( 'ajaco_required_capability', function () { return 'edit_posts'; } );
Delegate plugin access to a non-admin role.
add_filter( 'ajaco_skill_definitions', function ( $skills ) { return $skills + [ 'products' => [ 'type' => 'information-retrieval', 'description' => 'WooCommerce products', 'endpoint' => rest_url( 'wc/v3/products' ) ] ]; } );
Register custom skills that ship in the Agent Skills Index and are served as SKILL.md artifacts with verifiable sha256 digests.
add_filter( 'ajaco_content_signal', function () { return 'ai-train=yes, search=yes, ai-input=yes'; } );
Customize the Content-Signal directive (e.g. permit AI training).
Other hooks: ajaco_api_catalog_linkset, ajaco_mcp_server_card, ajaco_json_ld_graph, ajaco_openapi_spec, ajaco_llms_txt_content, ajaco_active_seo_plugin. The settings page’s Help tab For Developers lists all of them with descriptions.
External services
This plugin connects to one external service, and only when the corresponding feature is explicitly enabled by the site administrator.
IndexNow (api.indexnow.org)
What it is and what it’s used for: IndexNow is an open protocol (originally from Microsoft Bing and Yandex) that lets sites notify search engines the moment a URL is published or updated, so search engines can re-crawl within minutes instead of days.
When data is sent: only when the IndexNow feature toggle is turned on AND an IndexNow API Key is configured on the settings page. In that case, every time a post of a public post type transitions to the publish status, the plugin fires a single non-blocking HTTPS POST to https://api.indexnow.org/indexnow.
What data is sent: the request body is a JSON document containing exactly three fields — your site’s host (e.g. example.com), your IndexNow API key (which you generated yourself at Bing Webmaster Tools), and the permalink URL of the post that was just published. No visitor information, IP addresses, user-agents, or post content is sent.
If the IndexNow feature toggle is off (the default), the plugin makes no outbound network requests of any kind.
This service is provided by Microsoft (Bing) and the IndexNow project. Their terms and privacy policies apply:
- IndexNow protocol documentation: https://www.indexnow.org/documentation
- IndexNow FAQ and terms: https://www.indexnow.org/faq
- Microsoft Bing Webmaster Guidelines : https://www.bing.com/webmasters/help/webmaster-guidelines-30fba23a
- Microsoft Privacy Statement: https://www.microsoft.com/en-us/privacy/privacystatement
Privacy
AJ Agent Crawl Optimizer stores data only on your own server — there is no telemetry, no analytics, and no third-party logging. Specifically:
Local data
- Plugin option rows in the WordPress options table store toggle states and the IndexNow API Key (stored as plain text — keep your database secure).
- Transients cache the OpenAPI document and llms.txt body. These are deleted on plugin uninstall.
- No request data, IP addresses, User-Agents, or visitor information is recorded by the plugin.
Outbound network calls
The plugin makes exactly one outbound HTTP request, and only when explicitly enabled:
- IndexNow — when the IndexNow toggle is on and a key is configured, the plugin sends a non-blocking POST to
https://api.indexnow.org/indexnowon every post publish. The payload contains the site host, the IndexNow key, and the URL of the published post (no visitor data).
If the IndexNow toggle is off (the default), the plugin makes zero outbound network requests. All other features (manifests, JSON-LD, robots.txt) only respond to incoming HTTP requests; they never call out.
Cookies
The plugin does not set any cookies.
Uninstall
When the plugin is deleted (not just deactivated), all plugin options, the IndexNow key, and all transients are removed from the database. Multisite networks have every site cleaned in turn.
Installation
From the WordPress plugin directory
- In your WP admin, go to Plugins Add New and search for “AJ Agent Crawl Optimizer”.
- Click Install Now, then Activate.
- The Quick Setup wizard runs automatically on first activation — review the recommended toggles and click Apply.
- Adjust any toggle later from Settings AJ Agent Crawl Optimizer.
Manual install
- Download the plugin zip.
- Upload the
aj-agent-crawl-optimizerfolder to/wp-content/plugins/. - Activate AJ Agent Crawl Optimizer from the Plugins screen.
- Visit Settings AJ Agent Crawl Optimizer and run the wizard or configure manually.
IndexNow setup (optional)
If you want Bing and Yandex to re-crawl your content within minutes of publish:
- Generate a key at https://www.bing.com/webmasters/indexnow.
- Paste it into the IndexNow API Key field on the settings page.
- Enable the IndexNow toggle. The plugin hosts the key file at
/{key}.txtfor ownership verification automatically.
FAQ
-
Will this conflict with my SEO plugin?
-
No. JSON-LD output auto-suppresses when Yoast SEO, Rank Math, All in One SEO, SEOPress, The SEO Framework, Slim SEO, Squirrly SEO, Schema Pro, or SASWP is active. The settings page shows a clear notice when this happens. Our
robots_txtfilter runs atPHP_INT_MAXpriority, so any rules your SEO plugin adds (sitemap URLs, custom Disallow, etc.) are preserved — ourContent-Signalline is appended last. -
Does this change anything for my regular site visitors?
-
No. Browsers send
Accept: text/htmland get the normal HTML response. The.well-known/...,/llms.txt, and?format=openapiendpoints are paths a normal user never visits. The only thing added to the page HTML is a single JSON-LD<script>block (when no SEO plugin is active) and a small WebMCP script tag (which no-ops in browsers without the experimental flag). -
My site is multisite. Does it work?
-
Yes. Every endpoint resolves at both the root and per-subsite paths automatically —
/llms.txt,/blog/llms.txt,/.well-known/api-catalog,/blog/.well-known/api-catalog, etc. Each subsite has its own settings. -
How do I delegate plugin access to a non-admin role?
-
Use the
ajaco_required_capabilityfilter. The plugin defaults tomanage_options(admin-only); change it to any capability of your choice, e.g.edit_pagesfor editors:add_filter( 'ajaco_required_capability', function () { return 'edit_pages'; } ); -
I enabled IndexNow but I’m not seeing pings to Bing or Yandex.
-
Check three things: (1) the IndexNow API Key field is filled in, (2) you’re publishing a post of a public post type — revisions and autosaves are skipped, (3) you’re on production. Pings are non-blocking, so failures are silent. Tail your server log for outbound requests to
api.indexnow.org. -
Can I add custom skills, schemas, or sections to llms.txt?
-
Yes. Use the relevant filter:
ajaco_skill_definitions— register custom Agent Skills.ajaco_json_ld_graph— add custom Schema.org entries (Product, Recipe, Event, etc.).ajaco_llms_txt_content— append sections to or replace the llms.txt body.ajaco_openapi_spec— addsecuritySchemes, custom tags, additional servers.ajaco_api_catalog_linkset— add anchors or rels (e.g. for a GraphQL endpoint).ajaco_mcp_server_card— override transport / capabilities for a real MCP implementation.
The Help tab’s “For Developers” section on the settings page lists every hook.
-
How do I undo everything and start over?
-
Use the Reset to Defaults button under the Save Changes button on the settings page. It clears every plugin option, wipes cached endpoint outputs, and shows a confirmation dialog before wiping anything.
-
Performance impact?
-
Minimal. The OpenAPI document is cached for a day in a transient and only regenerates on plugin activation/deactivation or theme switch. The llms.txt body is cached for an hour and invalidates on post edits, site name/description changes, and setting toggles. Endpoint handlers run on
initonly when the request path matches; on every other request they early-return after one regex check. The Markdown handler runs atPHP_INT_MAXpriority on shutdown so it never breaks object-cache writes or other shutdown hooks. -
How do I see if AI agents are actually using my site?
-
The plugin doesn’t include a built-in access log. To verify activity, check your server access log for User-Agents like
GPTBot,ClaudeBot,OAI-SearchBot,Google-Extended,PerplexityBot,CCBot,Bytespider, etc. hitting any of the plugin endpoints. -
Can I disable a feature without deactivating the plugin?
-
Yes. Every feature is an independent toggle. Uncheck what you don’t want and Save Changes. The corresponding behavior reverts immediately on the next request — no rewrite flush, no cache flush needed (the plugin handles cache invalidation itself).
Reviews
Contributors & Developers
“AJ Agent Crawl Optimizer” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “AJ Agent Crawl Optimizer” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.
- Ten feature toggles: Markdown Negotiation, Content-Signals, API Catalog (+ Link header), MCP Server Card, Agent Skills Index (+ SKILL.md artifacts), WebMCP Tools, JSON-LD Schema, OpenAPI Spec, IndexNow, llms.txt.
- Score card with 0–100 percentage and per-feature status badges.
- Quick Setup wizard on first activation, environment-aware defaults.
- Auto-suppression of JSON-LD when Yoast / Rank Math / AIOSEO / SEOPress / The SEO Framework / Slim SEO / Squirrly SEO / Schema Pro / SASWP is active.
- Section grouping: Discovery / Presentation / Declarations.
- Inline Read More navigation, Testing section with View output and validator links (Google Rich Results, Swagger Editor).
- Built-in Help tabs (Overview, Features, For Developers, Troubleshooting) with reference sidebar.
- Reset to Defaults button.
- Plugins-row Settings link.
- Multisite-aware path matching for every endpoint.
- Transient caching: 1 day for OpenAPI, 1 hour for llms.txt, with smart invalidation.
- Nine filter hooks for extending or overriding plugin behavior.
- Translation-ready (.pot file shipped) and accessibility-ready (screen-reader h1, dynamic SVG aria-label, aria-live success announcements).