GuideWhat is autoreg.md

What is autoreg.md?

autoreg.md describes your application to AutoReg: what it does, how to log in, which features to test, and which edge cases matter. It is the single input the AI agent needs to generate a complete E2E test suite.

Think of it as a test spec written for a very capable QA engineer who has never seen your app. Everything the agent knows about your application — URLs, credentials, selectors, expected behaviours — comes from this file plus what it observes in your running app.

autoreg.md is always generated, never written by hand. It’s produced by the generate-autoreg skill — see Generating autoreg.md — which installs in seconds into any repository, application, or project and writes the file for you.

There are two kinds of spec, and the skill picks the right one for your project: a UI spec (**Spec type:** ui) for browser end-to-end tests, and an API spec (**Spec type:** api) for HTTP API tests that run without a browser. A workflow holds one spec of one kind; AutoReg recognises which on import. See API Testing.

How AutoReg uses it

  1. When you create a workflow (or run generation), the agent reads autoreg.md from your workflow folder.
  2. It enumerates every test scenario described or implied by the spec.
  3. For each scenario, it generates a tests/scenario-NNN.json test file with real selectors confirmed against your app.

Better spec in → better tests out. A detailed spec with credentials, exact button labels, and edge cases produces a suite that passes on the first run.

Where it lives

Generate the spec in <app source>/.autoreg/ui/autoreg.md or <app source>/.autoreg/api/autoreg.md, then select that file in New Workflow. AutoReg uses the same folder for the manifest and generated files.

<app source>/.autoreg/ui/
├── autoreg.md          ← your spec
├── myworkflow.ar       ← manifest (auto-created)
├── tests/              ← generated test files
└── plans/              ← generated plan

The New Workflow dialog reuses the selected .autoreg/ui or .autoreg/api folder. It does not create another .autoreg inside it.

What a spec contains

A generated UI autoreg.md typically covers:

  • App overview — what the app does and its base URL
  • Test credentials — one set per role the app supports
  • Features — the feature areas and behaviours to cover
  • Edge cases — validation errors, permission checks, and limits worth testing
  • UI notes — anything unusual the generator should know about, like custom components or multi-step flows

A generated API autoreg.md covers the endpoint table, request and response models, error contracts, the token flow, endpoint behaviours (pagination, ordering, idempotency), a test data catalog where every value is a {{token}}, and 8–30 self-contained HTTP scenarios.

Keeping a spec current

If your app changes, re-run the generate-autoreg skill to refresh autoreg.md rather than editing the file directly. This keeps the spec accurate and lets AutoReg continue to recognize it as a genuine, up-to-date spec when you import it.

Next steps