Skip to content

Application Specs

An application spec is a versioned Markdown bundle that gives Explorbot previously collected information about an application. It can be produced by Docbot, another documentation tool, or by hand.

Live HTML, ARIA, and screenshots remain the source of truth. Explorbot uses matching spec pages as supporting context and does not load the whole bundle into every prompt.

Set the bundle directory in explorbot.config.js:

export default {
dirs: {
spec: 'spec',
},
};

Paths are resolved from the project directory. Use --spec <path> on a web command to override the configured bundle for one run. Both the bundle directory and its index.md path are accepted.

spec/
|-- index.md
`-- pages/
|-- home.md
`-- users.md

index.md is required and serves as a human-readable entry point. Its contents are not injected into agents. Page files may be nested anywhere below pages/ and must use the contract below.

Every page is a Markdown file with YAML front matter:

---
format: explorbot-application-spec
version: 1
url: /users
---
# Users
## Purpose
Lists the application's users.
## User Can
- user can search users by name
Proof: A search field is visible above the user list.
## User Might
- user might export the user list
Signal: An unlabeled download control is present.

The front matter fields are mandatory:

  • format must be explorbot-application-spec.
  • version must be 1.
  • url is the URL pattern used to select the page for the current browser state. It supports the same patterns as knowledge files.

The Markdown body is supplied to agents as written, so headings beyond those shown above are allowed. Use User Can only for observed capabilities and transitions. Put inferred or unverified capabilities under User Might; Explorbot will require confirmation from the live UI before relying on them.

Screenshots and other relative links may be included for readers, but Explorbot currently consumes the Markdown text only.

Explorbot rejects a bundle when index.md or pages/ is missing, when it contains no page files, or when a page has an unsupported format, version, or missing URL.