Generating autoreg.md
autoreg.md is the spec that tells AutoReg about your application, and it’s generated for you — not written by hand. The generate-autoreg AI skill reads your app and produces a complete autoreg.md with confirmed selectors and realistic test data, ready to import.
Tests generated from a skill-written spec typically pass on the first run, because every selector in the spec was confirmed to exist in your app before the file was written.
Step 1 — Install the skill
Install the AutoReg: Skill Installer extension (autoreg.autoreg-skill-installer) in VS Code (or any VS Code-compatible editor). It installs in seconds into any repository, application, or project:
- Open the AutoReg panel in the activity bar.
- The extension detects which AI coding agents exist in your workspace — Claude Code, Cursor, GitHub Copilot, Windsurf, Continue, Cline, Aider, Gemini CLI, Codex CLI, and more.
- Click Install next to your agent.
Using the skill:
- Agent detected — type the slash command in your coding agent’s chat:
/generate-autoreg - No agent detected — a
generate-autoreg/folder is created in your workspace with the skill inside it. Reference it directly in your agent’s chat:@generate-autoreg/generate-autoreg.md
Step 2 — Run the skill in your agent
In Claude Code, for example:
/generate-autoreg /path/to/autoreg-workflow /path/to/app/src- First argument — your AutoReg workflow folder (where
autoreg.mdwill be written). Optional if you run it from inside the workflow. - Second argument — the root of the application to analyze.
Step 3 — Answer the interview
Before it gets started, the skill asks you up front for things it can’t work out on its own:
- Test credentials — accounts for each role
- Seed data — records that already exist in the test environment
- Sample values — realistic inputs for forms (names, amounts, dates)
Secrets you provide are kept out of the spec’s plain text and resolved securely at import time.
Step 4 — Review the generated spec
The skill writes an autoreg.md containing:
| Section | What’s in it |
|---|---|
| Confirmed selectors | Only selectors that were confirmed to exist in your app — no guesswork. |
| Every route | Every page and API route in your app, including which ones require login. |
| Realistic test data | Values that match your app’s actual forms and validation rules, so tests exercise real scenarios and real error messages. |
| Page behaviours | Loading states, modals, toasts, and other UI patterns the generator should expect. |
| Auth flows | Login, logout, registration, and the roles your app supports. |
| Test Data Catalog | The credentials, seed data, and sample values used across the suite. |
| 8–25 test scenarios | Positive and negative cases, ready to generate tests from. |
AutoReg automatically verifies every spec the skill produces when you import it, so you can trust it’s genuine and unaltered.
Step 5 — Import into AutoReg
Create a new AutoReg workflow (or open an existing one) pointing at the folder containing the generated autoreg.md. On import, AutoReg:
- Verifies the spec — confirms it came from the skill and hasn’t been changed since.
- Resolves any pending secret values — you’re prompted for them, and they’re stored securely rather than written into the spec.
- Starts test generation — see Generating tests.
Refreshing a spec
If your app changes, re-run the skill rather than editing autoreg.md directly — that keeps the spec accurate and lets AutoReg continue to recognize it as genuine.
Troubleshooting
| Problem | Fix |
|---|---|
| Skill not offered in the agent | Re-open the AutoReg panel and click Install; check the autoreg.autoDetect setting is enabled. |
| Spec doesn’t import as verified | Re-run the skill to produce a fresh copy rather than editing the file by hand. |
| Selectors in the spec don’t match the deployed app | The deployed version differs from what was analyzed. Re-run the skill against the branch that is actually deployed. |
Next steps
- Generating tests — run the 3-step agent on your new spec
- What is autoreg.md — what the spec contains and how it’s used