Update to BugBug
Snapshot Dec 1, 2026 · 18:15 UTC · version 14.27.0
Collection source: downloaded plugin package.
Instructions updated for bugbug-tests-authoring
Skill instructions — Now says: - Never create, enable, or run a schedule unless the user agreed to it in this conversation. Schedules keep running against the target application. 6. When...
Observed in instructions or declared skills. Runtime behavior has not been tested.
Up to 3 plugins free · no card required.
All fields and original values.
Skill instructions
Nov 19, 2026 · 18:12 UTC
S -->|yes| T(["Report created assets & result"])
Dec 1, 2026 · 18:15 UTC
- Never create, enable, or run a schedule unless the user agreed to it in this conversation. Schedules keep running against the target application. 6. When the requested test first passes, including after repairs, optionally offer a...
Compare saved observations
Download comparison JSONSKILL.md text changes
− removed · + added
--- before +++ after @@ -47,6 +47,8 @@ `bugbug_update_step_position`, or YAML import with `conflictMode=overwrite`). Never delete a test and create it again: that drops its folder, history and run results. Updates keep steps in their original `if` block and order. +- Never create, enable, or run a schedule unless the user agreed to it in this + conversation. Schedules keep running against the target application. - Place a created or imported test in a folder with `folderId` (`bugbug_create_tests`, `bugbug_import_test`, `bugbug import --folder-id`); it must be an existing test folder of the project. Omit it to use the project root. @@ -63,6 +65,8 @@ only repairs allowed by `Safety`. 5. Re-run until the intended flow passes, repair scope is exhausted, or evidence proves an external blocker. +6. When the requested test first passes, including after repairs, optionally offer + a schedule once by following step 15 of `The Process`. ### The Process @@ -193,6 +197,22 @@ during a repair turns a debugging pass into unreviewed design work, so report a genuine external blocker rather than engineering around it. +15. **Optionally offer a schedule once, when the requested test first passes.** + A pass reached after repairs counts as that first pass. Schedules run suites, + so a test outside a suite cannot be scheduled. + - Offer at most once per conversation. Skip this step when you already asked, + whatever the answer, or when the suite already has a suitable schedule. + Check with `bugbug.schedules.getAll()` in `bugbug_run_code_in_sandbox`. + - Do not offer again after later runs or repairs of the same tests. + - Ask whether the user wants one, naming the suite and proposing a timing. + Never create it without a clear yes. + - If the test is in no suite, ask which suite to use before scheduling. + - Type is required: `everyMinute`, `everyFiveMinutes`, `everyFifteenMinutes`, + `hourly`, `daily`, `weekly`, or `monthly`. `daily` also needs `hour`, `weekly` + needs `hour` and `dayOfWeek`, `monthly` needs `hour` and `dayOfMonth`. On a plan + error, tell the user and do not retry. + - MCP tool: `bugbug_create_schedule` + ### Process Flow The graph owns control flow — branching, stop conditions, and where the run @@ -226,7 +246,10 @@ TAGS --> Q["Review before running"] Q --> R["Run created test<br>(watch, then read run details)"] R --> S{"Passed?"} - S -->|yes| T(["Report created assets & result"]) + S -->|yes| SCH{"User agrees to a schedule?<br>(ask once, optional)"} + SCH -->|yes| SCH2["Create schedule for the suite"] + SCH -->|no| T(["Report created assets & result"]) + SCH2 --> T S -->|no| U{"Repair allowed by Safety<br>and scope remaining?"} U -->|yes| V["Load bugbug-test-run-debugging<br>and repair"] V --> R @@ -261,6 +284,7 @@ dependencies, or manual follow-up. - Tag changes and targets, if any. - Latest run result and repairs performed within the authorized scope. +- Schedule created for the suite, if the user asked for one. - Readiness to run, or the external blocker preventing verification. ## Resources
Full technical diff · 1 changed fields
changed /skill_md_contents
"---\nname: bugbug-tests-authoring\ndescription: Creates and maintains BugBug tests with AI agents from an approved plan. Use for creating tests, editing steps, organizing reusable assets, optimizing reuse, or producing BugBug automation changes through CLI, SDK, or MCP surfaces. Defers to bugbug-tests-planning when tests still need to be designed or scoped.\n---\n\n# BugBug Tests Authoring\n\n## Preflight\n\n1. Load `bugbug-tests-planning` before designing tests or reusable assets.\n2. Run `bugbug-context-discovering` before creating, editing, running, or\n importing BugBug tests.\n3. Load `bugbug-steps-authoring` before materializing steps.\n4. Load `bugbug-selectors-authoring` before creating or changing DOM-targeted\n steps.\n\n## Inputs\n\nAn approved plan supplies these. Sources are the request itself, existing BugBug\nassets, product flow descriptions, and discovered evidence.\n\n- User intent and requested authoring scope.\n- Project context and target suite.\n- Test name, purpose, owner boundary, and run profile.\n- Start URL or target page.\n- Existing components, variables, suites, and profiles to reuse.\n- Target test and component folders, if the plan places assets in folders.\n- New assets to create, if any.\n- Requested tags: names, purpose, colors, and targets; otherwise leave unchanged.\n- Step-level flow: setup, user actions, and expected assertions.\n- Required credentials or test data source. Never invent secrets.\n\nIf any of these is missing and cannot be inferred from existing BugBug assets,\nstop and ask for it before creating or mutating tests.\n\n## Safety\n\n- Apply only requested/approved tags; never use tags for agent working context.\n- Keep platform mutations within the user's requested authoring scope.\n- Do not invent product intent, test data, credentials, secrets, selectors, or\n reusable asset references.\n- When repairing a failed authored test, change only behavior covered by the\n original authoring request.\n- Stop before creating, editing, running, or importing anything when the target\n project cannot be confirmed.\n- Change an existing test in place (`bugbug_patch_test`, `bugbug_update_steps`,\n `bugbug_update_step_position`, or YAML import with `conflictMode=overwrite`).\n Never delete a test and create it again: that drops its folder, history and\n run results. Updates keep steps in their original `if` block and order.\n- Place a created or imported test in a folder with `folderId` (`bugbug_create_tests`,\n `bugbug_import_test`, `bugbug import --folder-id`); it must be an existing test\n folder of the project. Omit it to use the project root.\n\n## Workflow\n\n1. Start from an approved plan. If planning is still needed, load\n `bugbug-tests-planning` and finish the plan before mutating BugBug resources.\n2. Create the test shell, groups, steps, and assertions from the approved plan\n by following `The Process`.\n3. Run the test with `bugbug_run_test`. Watch it with\n `bugbug_watch_run_progress`, then read details with `bugbug_get_test_run`.\n4. If the test fails, load `bugbug-test-run-debugging`, inspect the run, and make\n only repairs allowed by `Safety`.\n5. Re-run until the intended flow passes, repair scope is exhausted, or evidence\n proves an external blocker.\n\n### The Process\n\nUse this flow only after planning and project discovery are done. You receive a\nprepared test plan and materialize it into BugBug assets. Each step carries the\njudgment behind it; *Process Flow* below owns the branching.\n\n1. **Validate the provided plan against existing BugBug assets.** The plan is an\n input, not a draft — authoring materializes it rather than rediscovering the\n product or redesigning the suite architecture. Reopening design decisions here\n silently produces tests nobody scoped.\n - Resolve existing suites, profiles, variables, and reusable components with\n their list/get tools.\n - Confirm every ID before mutation. The current MCP surface can read profiles\n but cannot create them; stop when the required profile does not exist.\n - Do not run broad discovery here. If the plan cannot be executed, report the\n missing planning input and stop instead of improvising the gap.\n - Resolve the planned folder paths to ids with `bugbug_list_folders`.\n\n2. **Place assets in folders when the plan says so.** Folders are the project's\n own organization; an agent that invents its own layout scatters tests where\n nobody looks for them.\n - Reuse an existing folder that matches the project's convention before\n creating a new one. Folder names are unique among siblings, ignoring case.\n - Create a folder only when the plan calls for it. Build nested folders one\n at a time: create the parent, then pass its id as `parentId`.\n - A test goes only into a `test` folder and a component only into a\n `component` folder. Plain groups are never placed in folders.\n - Folders need a paid plan. On a plan error, tell the user and keep the\n assets at the root; do not retry.\n - MCP tools: `bugbug_list_folders`, `bugbug_create_folder`\n\n3. **Create required variables** Never invent\n what only the user knows: credentials, secrets, and test data come from the\n request or existing assets. An invented secret produces a test that fails for\n a misleading reason.\n - Use variables for base URLs, tenant data, and repeated form values.\n - For secrets, accept the tool's temporary value and tell the user to replace\n it through the returned BugBug URL. Never invent a secret.\n - Use camelCase for variable name.\n - MCP tools: `bugbug_get_variables_list`, `bugbug_create_new_variable`\n\n4. **Create the test shell**\n - Set its name, notes, and screen-size type, plus `folderId` when the plan\n places the test in a folder. This tool does not assign a suite or run\n profile.\n - Keep the test focused on one user flow.\n - Do not create placeholder tests with vague names or TODO steps. Empty shells\n are fine only as a short-lived step before adding the planned content.\n - MCP tool: `bugbug_create_tests` (batch related test shells in one call)\n\n5. **Create groups or components under the new test**\n - Use `isComponent: true` only for a genuinely reusable flow, with\n `folderId` when the plan places the component in a folder.\n - Keep each group or component focused on one responsibility.\n - Reuse an existing component instead of recreating it.\n - MCP tools: `bugbug_insert_component_into_test`, `bugbug_create_groups`\n\n6. **Add setup steps**\n - Prefer reused auth/session components over logging in through the UI in every\n test.\n - Use direct `goto` navigation when intermediate navigation is not under test.\n - Prepare data through API/setup components when available instead of clicking\n through unrelated UI to manufacture state.\n - For flows blocked on a received email — registration, email verification,\n password reset, magic-link login, invitations — read\n `references/email-flows.md` and use the per-run BugBug Inbox mailbox. Never\n hardcode a mailbox address; a fixed address collides with itself on the\n second run.\n - MCP tool: `bugbug_create_steps`\n\n7. **Add action steps** Waits target observable\n state: fixed sleeps trade correctness for the appearance of stability — they\n slow the suite and still flake under load.\n - Load `bugbug-steps-authoring` for step type choice and required fields.\n - Use specific step types (`click`, `type`, `select`, `goto`, `uploadFile`,\n etc.) before reaching for `execute`.\n - Use `execute` only for interactions that genuinely cannot be represented by\n normal BugBug steps.\n - Use `Javascript assertion` only for assertions that genuinely cannot be\n represented by regular BugBug assertions.\n - Do not add fixed sleeps. Wait for observable product state with waiting\n conditions and assertions.\n - MCP tool: `bugbug_create_steps`\n\n8. **Add assertions that prove the flow worked.**\n Assertions are the proof, not the actions — a run of green action steps only\n shows commands executed, not that the product did the right thing.\n - Assert the product state after important state changes and at the final\n outcome.\n - Prefer element-specific assertions over page-level checks.\n - Check visible text, URL, field value, enabled/disabled state, created data,\n or another user-observable result.\n - Do not rely on action steps alone as proof that the flow works.\n - MCP tool: `bugbug_create_steps`\n\n9. **Wire variables and components deliberately.**\n - Use variables instead of hardcoded URLs, credentials, tenant names, and\n repeated form values.\n - Use components for repeated setup, navigation, and flows.\n - Keep destructive actions explicit in names and notes so nobody runs them by\n accident.\n\n10. **Attach the test to its suite.**\n - Create suite when the suite does not exist.\n - MCP tool: `bugbug_create_suite`\n\n11. **Apply requested/approved tags** using `references/tagging.md`.\n Otherwise leave tags unchanged.\n\n12. **Review the created test before running it.**\n - The test is independent and does not depend on another test's run order.\n - The setup is minimal: reused auth and targeted data prep.\n - The flow has no artificial waits.\n - The selectors are stable enough to survive normal UI changes.\n - The assertions prove the intended behavior, not just that commands executed.\n - The test is still one focused flow, not a broad demo script.\n\n13. **Run the created test.** Creation is not complete until the new test has\n been executed at least once to confirm it works.\n - Report the latest run result with the created test assets.\n - Do not mark the test ready without either a passing run or a documented\n external blocker that prevented verification.\n - MCP tool: `bugbug_run_test`, `bugbug_run_suite`\n\n14. **Repair within the original scope.** When an authored test fails, change\n only behavior covered by the original authoring request. Widening scope\n during a repair turns a debugging pass into unreviewed design work, so\n report a genuine external blocker rather than engineering around it.\n\n### Process Flow\n\nThe graph owns control flow — branching, stop conditions, and where the run\nends. It intentionally does not restate step substance or rationale; both live\nin *The Process* above.\n\n```mermaid\nflowchart TD\n A{\"Approved plan?\"} -->|no| B[\"Load bugbug-tests-planning<br>(finish plan first)\"]\n B --> A\n A -->|yes| C[\"Validate plan against existing assets<br>(resolve & confirm IDs)\"]\n C --> D{\"Plan executable?\"}\n D -->|missing profile or input| E([\"Stop<br>report missing planning input\"])\n D -->|yes| D2{\"Planned folders exist?\"}\n D2 -->|no| D3[\"Create planned folders<br>(parent first)\"]\n D2 -->|yes| F[\"Create variables\"]\n D3 --> F\n F --> G[\"Create test shell\"]\n G --> H{\"Reusable component exists?\"}\n H -->|yes| I[\"Insert existing component\"]\n H -->|no| J[\"Create groups/components\"]\n I --> K[\"Add setup steps\"]\n J --> K\n K --> L[\"Add action steps\"]\n L --> M[\"Add assertions\"]\n M --> N{\"Suite exists?\"}\n N -->|no| O[\"Create suite\"]\n N -->|yes| P[\"Read full suite, then update<br>(preserve runProfileId & tests)\"]\n O --> TAGS[\"Apply requested/approved tags, if any\"]\n P --> TAGS\n TAGS --> Q[\"Review before running\"]\n Q --> R[\"Run created test<br>(watch, then read run details)\"]\n R --> S{\"Passed?\"}\n S -->|yes| T([\"Report created assets & result\"])\n S -->|no| U{\"Repair allowed by Safety<br>and scope remaining?\"}\n U -->|yes| V[\"Load bugbug-test-run-debugging<br>and repair\"]\n V --> R\n U -->|no| W([\"Stop<br>report blocker or exhausted scope\"])\n```\n\nThe run has three terminal states: a passing test, an unexecutable plan, and an\nexhausted or externally blocked repair loop. Only the repair loop cycles within\na single run; a new authoring request re-enters at the top.\n\n### Capability routing\n\nWhich surface to reach for while authoring:\n\n- **Live platform action or filtered query**: Use a BugBug MCP tool.\n- **Known-ID reads**: Follow MCP hub resource links; never construct dynamic\n resource URIs.\n- **Custom public API automation**: Use `@bugbug-io/sdk`.\n- **Unclear endpoint or payload shape**: Use\n https://app.bugbug.io/docs/schema/.\n\nFor explicit YAML import/export, generation, validation, repair, or local\n`bugbug.yaml` workflows, hand off to `bugbug-yaml-authoring`.\n\n## Output\n\n- Created or reused suite, profile, component, folder, and variable IDs.\n- Folder path of each created test and component, or root.\n- Created test ID and test name.\n- Step groups added: setup, actions, assertions.\n- Implemented steps and assertions, including any brittle selectors, missing data\n dependencies, or manual follow-up.\n- Tag changes and targets, if any.\n- Latest run result and repairs performed within the authorized scope.\n- Readiness to run, or the external blocker preventing verification.\n\n## Resources\n\nResolve bundled resource paths relative to this skill directory.\n\n- `assets/bugbug-icon.png` is the OpenAI UI icon for this skill.\n- Load `bugbug-context-discovering` during Preflight.\n- Load `bugbug-tests-planning` before designing tests or reusable assets.\n- Load `bugbug-steps-authoring` for step payloads and names.\n- Load `bugbug-selectors-authoring` before DOM-targeted steps.\n- Read `references/community-best-practices.md` for maintainability review.\n- Read `references/email-flows.md` before authoring any flow that depends on a\n received email.\n- Read `references/tagging.md` before any tag mutation.\n""---\nname: bugbug-tests-authoring\ndescription: Creates and maintains BugBug tests with AI agents from an approved plan. Use for creating tests, editing steps, organizing reusable assets, optimizing reuse, or producing BugBug automation changes through CLI, SDK, or MCP surfaces. Defers to bugbug-tests-planning when tests still need to be designed or scoped.\n---\n\n# BugBug Tests Authoring\n\n## Preflight\n\n1. Load `bugbug-tests-planning` before designing tests or reusable assets.\n2. Run `bugbug-context-discovering` before creating, editing, running, or\n importing BugBug tests.\n3. Load `bugbug-steps-authoring` before materializing steps.\n4. Load `bugbug-selectors-authoring` before creating or changing DOM-targeted\n steps.\n\n## Inputs\n\nAn approved plan supplies these. Sources are the request itself, existing BugBug\nassets, product flow descriptions, and discovered evidence.\n\n- User intent and requested authoring scope.\n- Project context and target suite.\n- Test name, purpose, owner boundary, and run profile.\n- Start URL or target page.\n- Existing components, variables, suites, and profiles to reuse.\n- Target test and component folders, if the plan places assets in folders.\n- New assets to create, if any.\n- Requested tags: names, purpose, colors, and targets; otherwise leave unchanged.\n- Step-level flow: setup, user actions, and expected assertions.\n- Required credentials or test data source. Never invent secrets.\n\nIf any of these is missing and cannot be inferred from existing BugBug assets,\nstop and ask for it before creating or mutating tests.\n\n## Safety\n\n- Apply only requested/approved tags; never use tags for agent working context.\n- Keep platform mutations within the user's requested authoring scope.\n- Do not invent product intent, test data, credentials, secrets, selectors, or\n reusable asset references.\n- When repairing a failed authored test, change only behavior covered by the\n original authoring request.\n- Stop before creating, editing, running, or importing anything when the target\n project cannot be confirmed.\n- Change an existing test in place (`bugbug_patch_test`, `bugbug_update_steps`,\n `bugbug_update_step_position`, or YAML import with `conflictMode=overwrite`).\n Never delete a test and create it again: that drops its folder, history and\n run results. Updates keep steps in their original `if` block and order.\n- Never create, enable, or run a schedule unless the user agreed to it in this\n conversation. Schedules keep running against the target application.\n- Place a created or imported test in a folder with `folderId` (`bugbug_create_tests`,\n `bugbug_import_test`, `bugbug import --folder-id`); it must be an existing test\n folder of the project. Omit it to use the project root.\n\n## Workflow\n\n1. Start from an approved plan. If planning is still needed, load\n `bugbug-tests-planning` and finish the plan before mutating BugBug resources.\n2. Create the test shell, groups, steps, and assertions from the approved plan\n by following `The Process`.\n3. Run the test with `bugbug_run_test`. Watch it with\n `bugbug_watch_run_progress`, then read details with `bugbug_get_test_run`.\n4. If the test fails, load `bugbug-test-run-debugging`, inspect the run, and make\n only repairs allowed by `Safety`.\n5. Re-run until the intended flow passes, repair scope is exhausted, or evidence\n proves an external blocker.\n6. When the requested test first passes, including after repairs, optionally offer\n a schedule once by following step 15 of `The Process`.\n\n### The Process\n\nUse this flow only after planning and project discovery are done. You receive a\nprepared test plan and materialize it into BugBug assets. Each step carries the\njudgment behind it; *Process Flow* below owns the branching.\n\n1. **Validate the provided plan against existing BugBug assets.** The plan is an\n input, not a draft — authoring materializes it rather than rediscovering the\n product or redesigning the suite architecture. Reopening design decisions here\n silently produces tests nobody scoped.\n - Resolve existing suites, profiles, variables, and reusable components with\n their list/get tools.\n - Confirm every ID before mutation. The current MCP surface can read profiles\n but cannot create them; stop when the required profile does not exist.\n - Do not run broad discovery here. If the plan cannot be executed, report the\n missing planning input and stop instead of improvising the gap.\n - Resolve the planned folder paths to ids with `bugbug_list_folders`.\n\n2. **Place assets in folders when the plan says so.** Folders are the project's\n own organization; an agent that invents its own layout scatters tests where\n nobody looks for them.\n - Reuse an existing folder that matches the project's convention before\n creating a new one. Folder names are unique among siblings, ignoring case.\n - Create a folder only when the plan calls for it. Build nested folders one\n at a time: create the parent, then pass its id as `parentId`.\n - A test goes only into a `test` folder and a component only into a\n `component` folder. Plain groups are never placed in folders.\n - Folders need a paid plan. On a plan error, tell the user and keep the\n assets at the root; do not retry.\n - MCP tools: `bugbug_list_folders`, `bugbug_create_folder`\n\n3. **Create required variables** Never invent\n what only the user knows: credentials, secrets, and test data come from the\n request or existing assets. An invented secret produces a test that fails for\n a misleading reason.\n - Use variables for base URLs, tenant data, and repeated form values.\n - For secrets, accept the tool's temporary value and tell the user to replace\n it through the returned BugBug URL. Never invent a secret.\n - Use camelCase for variable name.\n - MCP tools: `bugbug_get_variables_list`, `bugbug_create_new_variable`\n\n4. **Create the test shell**\n - Set its name, notes, and screen-size type, plus `folderId` when the plan\n places the test in a folder. This tool does not assign a suite or run\n profile.\n - Keep the test focused on one user flow.\n - Do not create placeholder tests with vague names or TODO steps. Empty shells\n are fine only as a short-lived step before adding the planned content.\n - MCP tool: `bugbug_create_tests` (batch related test shells in one call)\n\n5. **Create groups or components under the new test**\n - Use `isComponent: true` only for a genuinely reusable flow, with\n `folderId` when the plan places the component in a folder.\n - Keep each group or component focused on one responsibility.\n - Reuse an existing component instead of recreating it.\n - MCP tools: `bugbug_insert_component_into_test`, `bugbug_create_groups`\n\n6. **Add setup steps**\n - Prefer reused auth/session components over logging in through the UI in every\n test.\n - Use direct `goto` navigation when intermediate navigation is not under test.\n - Prepare data through API/setup components when available instead of clicking\n through unrelated UI to manufacture state.\n - For flows blocked on a received email — registration, email verification,\n password reset, magic-link login, invitations — read\n `references/email-flows.md` and use the per-run BugBug Inbox mailbox. Never\n hardcode a mailbox address; a fixed address collides with itself on the\n second run.\n - MCP tool: `bugbug_create_steps`\n\n7. **Add action steps** Waits target observable\n state: fixed sleeps trade correctness for the appearance of stability — they\n slow the suite and still flake under load.\n - Load `bugbug-steps-authoring` for step type choice and required fields.\n - Use specific step types (`click`, `type`, `select`, `goto`, `uploadFile`,\n etc.) before reaching for `execute`.\n - Use `execute` only for interactions that genuinely cannot be represented by\n normal BugBug steps.\n - Use `Javascript assertion` only for assertions that genuinely cannot be\n represented by regular BugBug assertions.\n - Do not add fixed sleeps. Wait for observable product state with waiting\n conditions and assertions.\n - MCP tool: `bugbug_create_steps`\n\n8. **Add assertions that prove the flow worked.**\n Assertions are the proof, not the actions — a run of green action steps only\n shows commands executed, not that the product did the right thing.\n - Assert the product state after important state changes and at the final\n outcome.\n - Prefer element-specific assertions over page-level checks.\n - Check visible text, URL, field value, enabled/disabled state, created data,\n or another user-observable result.\n - Do not rely on action steps alone as proof that the flow works.\n - MCP tool: `bugbug_create_steps`\n\n9. **Wire variables and components deliberately.**\n - Use variables instead of hardcoded URLs, credentials, tenant names, and\n repeated form values.\n - Use components for repeated setup, navigation, and flows.\n - Keep destructive actions explicit in names and notes so nobody runs them by\n accident.\n\n10. **Attach the test to its suite.**\n - Create suite when the suite does not exist.\n - MCP tool: `bugbug_create_suite`\n\n11. **Apply requested/approved tags** using `references/tagging.md`.\n Otherwise leave tags unchanged.\n\n12. **Review the created test before running it.**\n - The test is independent and does not depend on another test's run order.\n - The setup is minimal: reused auth and targeted data prep.\n - The flow has no artificial waits.\n - The selectors are stable enough to survive normal UI changes.\n - The assertions prove the intended behavior, not just that commands executed.\n - The test is still one focused flow, not a broad demo script.\n\n13. **Run the created test.** Creation is not complete until the new test has\n been executed at least once to confirm it works.\n - Report the latest run result with the created test assets.\n - Do not mark the test ready without either a passing run or a documented\n external blocker that prevented verification.\n - MCP tool: `bugbug_run_test`, `bugbug_run_suite`\n\n14. **Repair within the original scope.** When an authored test fails, change\n only behavior covered by the original authoring request. Widening scope\n during a repair turns a debugging pass into unreviewed design work, so\n report a genuine external blocker rather than engineering around it.\n\n15. **Optionally offer a schedule once, when the requested test first passes.**\n A pass reached after repairs counts as that first pass. Schedules run suites,\n so a test outside a suite cannot be scheduled.\n - Offer at most once per conversation. Skip this step when you already asked,\n whatever the answer, or when the suite already has a suitable schedule.\n Check with `bugbug.schedules.getAll()` in `bugbug_run_code_in_sandbox`.\n - Do not offer again after later runs or repairs of the same tests.\n - Ask whether the user wants one, naming the suite and proposing a timing.\n Never create it without a clear yes.\n - If the test is in no suite, ask which suite to use before scheduling.\n - Type is required: `everyMinute`, `everyFiveMinutes`, `everyFifteenMinutes`,\n `hourly`, `daily`, `weekly`, or `monthly`. `daily` also needs `hour`, `weekly`\n needs `hour` and `dayOfWeek`, `monthly` needs `hour` and `dayOfMonth`. On a plan\n error, tell the user and do not retry.\n - MCP tool: `bugbug_create_schedule`\n\n### Process Flow\n\nThe graph owns control flow — branching, stop conditions, and where the run\nends. It intentionally does not restate step substance or rationale; both live\nin *The Process* above.\n\n```mermaid\nflowchart TD\n A{\"Approved plan?\"} -->|no| B[\"Load bugbug-tests-planning<br>(finish plan first)\"]\n B --> A\n A -->|yes| C[\"Validate plan against existing assets<br>(resolve & confirm IDs)\"]\n C --> D{\"Plan executable?\"}\n D -->|missing profile or input| E([\"Stop<br>report missing planning input\"])\n D -->|yes| D2{\"Planned folders exist?\"}\n D2 -->|no| D3[\"Create planned folders<br>(parent first)\"]\n D2 -->|yes| F[\"Create variables\"]\n D3 --> F\n F --> G[\"Create test shell\"]\n G --> H{\"Reusable component exists?\"}\n H -->|yes| I[\"Insert existing component\"]\n H -->|no| J[\"Create groups/components\"]\n I --> K[\"Add setup steps\"]\n J --> K\n K --> L[\"Add action steps\"]\n L --> M[\"Add assertions\"]\n M --> N{\"Suite exists?\"}\n N -->|no| O[\"Create suite\"]\n N -->|yes| P[\"Read full suite, then update<br>(preserve runProfileId & tests)\"]\n O --> TAGS[\"Apply requested/approved tags, if any\"]\n P --> TAGS\n TAGS --> Q[\"Review before running\"]\n Q --> R[\"Run created test<br>(watch, then read run details)\"]\n R --> S{\"Passed?\"}\n S -->|yes| SCH{\"User agrees to a schedule?<br>(ask once, optional)\"}\n SCH -->|yes| SCH2[\"Create schedule for the suite\"]\n SCH -->|no| T([\"Report created assets & result\"])\n SCH2 --> T\n S -->|no| U{\"Repair allowed by Safety<br>and scope remaining?\"}\n U -->|yes| V[\"Load bugbug-test-run-debugging<br>and repair\"]\n V --> R\n U -->|no| W([\"Stop<br>report blocker or exhausted scope\"])\n```\n\nThe run has three terminal states: a passing test, an unexecutable plan, and an\nexhausted or externally blocked repair loop. Only the repair loop cycles within\na single run; a new authoring request re-enters at the top.\n\n### Capability routing\n\nWhich surface to reach for while authoring:\n\n- **Live platform action or filtered query**: Use a BugBug MCP tool.\n- **Known-ID reads**: Follow MCP hub resource links; never construct dynamic\n resource URIs.\n- **Custom public API automation**: Use `@bugbug-io/sdk`.\n- **Unclear endpoint or payload shape**: Use\n https://app.bugbug.io/docs/schema/.\n\nFor explicit YAML import/export, generation, validation, repair, or local\n`bugbug.yaml` workflows, hand off to `bugbug-yaml-authoring`.\n\n## Output\n\n- Created or reused suite, profile, component, folder, and variable IDs.\n- Folder path of each created test and component, or root.\n- Created test ID and test name.\n- Step groups added: setup, actions, assertions.\n- Implemented steps and assertions, including any brittle selectors, missing data\n dependencies, or manual follow-up.\n- Tag changes and targets, if any.\n- Latest run result and repairs performed within the authorized scope.\n- Schedule created for the suite, if the user asked for one.\n- Readiness to run, or the external blocker preventing verification.\n\n## Resources\n\nResolve bundled resource paths relative to this skill directory.\n\n- `assets/bugbug-icon.png` is the OpenAI UI icon for this skill.\n- Load `bugbug-context-discovering` during Preflight.\n- Load `bugbug-tests-planning` before designing tests or reusable assets.\n- Load `bugbug-steps-authoring` for step payloads and names.\n- Load `bugbug-selectors-authoring` before DOM-targeted steps.\n- Read `references/community-best-practices.md` for maintainability review.\n- Read `references/email-flows.md` before authoring any flow that depends on a\n received email.\n- Read `references/tagging.md` before any tag mutation.\n"Full snapshot data
{
"description": "Creates and maintains BugBug tests with AI agents from an approved plan. Use for creating tests, editing steps, organizing reusable assets, optimizing reuse, or producing BugBug automation changes through CLI, SDK, or MCP surfaces. Defers to bugbug-tests-planning when tests still need to be designed or scoped.",
"included_files": [
{
"relative_path": "agents/openai.yaml",
"size_in_bytes": 387
},
{
"relative_path": "assets/bugbug-icon.png",
"size_in_bytes": 5119
},
{
"relative_path": "references/community-best-practices.md",
"size_in_bytes": 3648
},
{
"relative_path": "references/email-flows.md",
"size_in_bytes": 3612
},
{
"relative_path": "references/tagging.md",
"size_in_bytes": 2514
}
],
"name": "bugbug-tests-authoring",
"skill_md_contents": "---\nname: bugbug-tests-authoring\ndescription: Creates and maintains BugBug tests with AI agents from an approved plan. Use for creating tests, editing steps, organizing reusable assets, optimizing reuse, or producing BugBug automation changes through CLI, SDK, or MCP surfaces. Defers to bugbug-tests-planning when tests still need to be designed or scoped.\n---\n\n# BugBug Tests Authoring\n\n## Preflight\n\n1. Load `bugbug-tests-planning` before designing tests or reusable assets.\n2. Run `bugbug-context-discovering` before creating, editing, running, or\n importing BugBug tests.\n3. Load `bugbug-steps-authoring` before materializing steps.\n4. Load `bugbug-selectors-authoring` before creating or changing DOM-targeted\n steps.\n\n## Inputs\n\nAn approved plan supplies these. Sources are the request itself, existing BugBug\nassets, product flow descriptions, and discovered evidence.\n\n- User intent and requested authoring scope.\n- Project context and target suite.\n- Test name, purpose, owner boundary, and run profile.\n- Start URL or target page.\n- Existing components, variables, suites, and profiles to reuse.\n- Target test and component folders, if the plan places assets in folders.\n- New assets to create, if any.\n- Requested tags: names, purpose, colors, and targets; otherwise leave unchanged.\n- Step-level flow: setup, user actions, and expected assertions.\n- Required credentials or test data source. Never invent secrets.\n\nIf any of these is missing and cannot be inferred from existing BugBug assets,\nstop and ask for it before creating or mutating tests.\n\n## Safety\n\n- Apply only requested/approved tags; never use tags for agent working context.\n- Keep platform mutations within the user's requested authoring scope.\n- Do not invent product intent, test data, credentials, secrets, selectors, or\n reusable asset references.\n- When repairing a failed authored test, change only behavior covered by the\n original authoring request.\n- Stop before creating, editing, running, or importing anything when the target\n project cannot be confirmed.\n- Change an existing test in place (`bugbug_patch_test`, `bugbug_update_steps`,\n `bugbug_update_step_position`, or YAML import with `conflictMode=overwrite`).\n Never delete a test and create it again: that drops its folder, history and\n run results. Updates keep steps in their original `if` block and order.\n- Never create, enable, or run a schedule unless the user agreed to it in this\n conversation. Schedules keep running against the target application.\n- Place a created or imported test in a folder with `folderId` (`bugbug_create_tests`,\n `bugbug_import_test`, `bugbug import --folder-id`); it must be an existing test\n folder of the project. Omit it to use the project root.\n\n## Workflow\n\n1. Start from an approved plan. If planning is still needed, load\n `bugbug-tests-planning` and finish the plan before mutating BugBug resources.\n2. Create the test shell, groups, steps, and assertions from the approved plan\n by following `The Process`.\n3. Run the test with `bugbug_run_test`. Watch it with\n `bugbug_watch_run_progress`, then read details with `bugbug_get_test_run`.\n4. If the test fails, load `bugbug-test-run-debugging`, inspect the run, and make\n only repairs allowed by `Safety`.\n5. Re-run until the intended flow passes, repair scope is exhausted, or evidence\n proves an external blocker.\n6. When the requested test first passes, including after repairs, optionally offer\n a schedule once by following step 15 of `The Process`.\n\n### The Process\n\nUse this flow only after planning and project discovery are done. You receive a\nprepared test plan and materialize it into BugBug assets. Each step carries the\njudgment behind it; *Process Flow* below owns the branching.\n\n1. **Validate the provided plan against existing BugBug assets.** The plan is an\n input, not a draft — authoring materializes it rather than rediscovering the\n product or redesigning the suite architecture. Reopening design decisions here\n silently produces tests nobody scoped.\n - Resolve existing suites, profiles, variables, and reusable components with\n their list/get tools.\n - Confirm every ID before mutation. The current MCP surface can read profiles\n but cannot create them; stop when the required profile does not exist.\n - Do not run broad discovery here. If the plan cannot be executed, report the\n missing planning input and stop instead of improvising the gap.\n - Resolve the planned folder paths to ids with `bugbug_list_folders`.\n\n2. **Place assets in folders when the plan says so.** Folders are the project's\n own organization; an agent that invents its own layout scatters tests where\n nobody looks for them.\n - Reuse an existing folder that matches the project's convention before\n creating a new one. Folder names are unique among siblings, ignoring case.\n - Create a folder only when the plan calls for it. Build nested folders one\n at a time: create the parent, then pass its id as `parentId`.\n - A test goes only into a `test` folder and a component only into a\n `component` folder. Plain groups are never placed in folders.\n - Folders need a paid plan. On a plan error, tell the user and keep the\n assets at the root; do not retry.\n - MCP tools: `bugbug_list_folders`, `bugbug_create_folder`\n\n3. **Create required variables** Never invent\n what only the user knows: credentials, secrets, and test data come from the\n request or existing assets. An invented secret produces a test that fails for\n a misleading reason.\n - Use variables for base URLs, tenant data, and repeated form values.\n - For secrets, accept the tool's temporary value and tell the user to replace\n it through the returned BugBug URL. Never invent a secret.\n - Use camelCase for variable name.\n - MCP tools: `bugbug_get_variables_list`, `bugbug_create_new_variable`\n\n4. **Create the test shell**\n - Set its name, notes, and screen-size type, plus `folderId` when the plan\n places the test in a folder. This tool does not assign a suite or run\n profile.\n - Keep the test focused on one user flow.\n - Do not create placeholder tests with vague names or TODO steps. Empty shells\n are fine only as a short-lived step before adding the planned content.\n - MCP tool: `bugbug_create_tests` (batch related test shells in one call)\n\n5. **Create groups or components under the new test**\n - Use `isComponent: true` only for a genuinely reusable flow, with\n `folderId` when the plan places the component in a folder.\n - Keep each group or component focused on one responsibility.\n - Reuse an existing component instead of recreating it.\n - MCP tools: `bugbug_insert_component_into_test`, `bugbug_create_groups`\n\n6. **Add setup steps**\n - Prefer reused auth/session components over logging in through the UI in every\n test.\n - Use direct `goto` navigation when intermediate navigation is not under test.\n - Prepare data through API/setup components when available instead of clicking\n through unrelated UI to manufacture state.\n - For flows blocked on a received email — registration, email verification,\n password reset, magic-link login, invitations — read\n `references/email-flows.md` and use the per-run BugBug Inbox mailbox. Never\n hardcode a mailbox address; a fixed address collides with itself on the\n second run.\n - MCP tool: `bugbug_create_steps`\n\n7. **Add action steps** Waits target observable\n state: fixed sleeps trade correctness for the appearance of stability — they\n slow the suite and still flake under load.\n - Load `bugbug-steps-authoring` for step type choice and required fields.\n - Use specific step types (`click`, `type`, `select`, `goto`, `uploadFile`,\n etc.) before reaching for `execute`.\n - Use `execute` only for interactions that genuinely cannot be represented by\n normal BugBug steps.\n - Use `Javascript assertion` only for assertions that genuinely cannot be\n represented by regular BugBug assertions.\n - Do not add fixed sleeps. Wait for observable product state with waiting\n conditions and assertions.\n - MCP tool: `bugbug_create_steps`\n\n8. **Add assertions that prove the flow worked.**\n Assertions are the proof, not the actions — a run of green action steps only\n shows commands executed, not that the product did the right thing.\n - Assert the product state after important state changes and at the final\n outcome.\n - Prefer element-specific assertions over page-level checks.\n - Check visible text, URL, field value, enabled/disabled state, created data,\n or another user-observable result.\n - Do not rely on action steps alone as proof that the flow works.\n - MCP tool: `bugbug_create_steps`\n\n9. **Wire variables and components deliberately.**\n - Use variables instead of hardcoded URLs, credentials, tenant names, and\n repeated form values.\n - Use components for repeated setup, navigation, and flows.\n - Keep destructive actions explicit in names and notes so nobody runs them by\n accident.\n\n10. **Attach the test to its suite.**\n - Create suite when the suite does not exist.\n - MCP tool: `bugbug_create_suite`\n\n11. **Apply requested/approved tags** using `references/tagging.md`.\n Otherwise leave tags unchanged.\n\n12. **Review the created test before running it.**\n - The test is independent and does not depend on another test's run order.\n - The setup is minimal: reused auth and targeted data prep.\n - The flow has no artificial waits.\n - The selectors are stable enough to survive normal UI changes.\n - The assertions prove the intended behavior, not just that commands executed.\n - The test is still one focused flow, not a broad demo script.\n\n13. **Run the created test.** Creation is not complete until the new test has\n been executed at least once to confirm it works.\n - Report the latest run result with the created test assets.\n - Do not mark the test ready without either a passing run or a documented\n external blocker that prevented verification.\n - MCP tool: `bugbug_run_test`, `bugbug_run_suite`\n\n14. **Repair within the original scope.** When an authored test fails, change\n only behavior covered by the original authoring request. Widening scope\n during a repair turns a debugging pass into unreviewed design work, so\n report a genuine external blocker rather than engineering around it.\n\n15. **Optionally offer a schedule once, when the requested test first passes.**\n A pass reached after repairs counts as that first pass. Schedules run suites,\n so a test outside a suite cannot be scheduled.\n - Offer at most once per conversation. Skip this step when you already asked,\n whatever the answer, or when the suite already has a suitable schedule.\n Check with `bugbug.schedules.getAll()` in `bugbug_run_code_in_sandbox`.\n - Do not offer again after later runs or repairs of the same tests.\n - Ask whether the user wants one, naming the suite and proposing a timing.\n Never create it without a clear yes.\n - If the test is in no suite, ask which suite to use before scheduling.\n - Type is required: `everyMinute`, `everyFiveMinutes`, `everyFifteenMinutes`,\n `hourly`, `daily`, `weekly`, or `monthly`. `daily` also needs `hour`, `weekly`\n needs `hour` and `dayOfWeek`, `monthly` needs `hour` and `dayOfMonth`. On a plan\n error, tell the user and do not retry.\n - MCP tool: `bugbug_create_schedule`\n\n### Process Flow\n\nThe graph owns control flow — branching, stop conditions, and where the run\nends. It intentionally does not restate step substance or rationale; both live\nin *The Process* above.\n\n```mermaid\nflowchart TD\n A{\"Approved plan?\"} -->|no| B[\"Load bugbug-tests-planning<br>(finish plan first)\"]\n B --> A\n A -->|yes| C[\"Validate plan against existing assets<br>(resolve & confirm IDs)\"]\n C --> D{\"Plan executable?\"}\n D -->|missing profile or input| E([\"Stop<br>report missing planning input\"])\n D -->|yes| D2{\"Planned folders exist?\"}\n D2 -->|no| D3[\"Create planned folders<br>(parent first)\"]\n D2 -->|yes| F[\"Create variables\"]\n D3 --> F\n F --> G[\"Create test shell\"]\n G --> H{\"Reusable component exists?\"}\n H -->|yes| I[\"Insert existing component\"]\n H -->|no| J[\"Create groups/components\"]\n I --> K[\"Add setup steps\"]\n J --> K\n K --> L[\"Add action steps\"]\n L --> M[\"Add assertions\"]\n M --> N{\"Suite exists?\"}\n N -->|no| O[\"Create suite\"]\n N -->|yes| P[\"Read full suite, then update<br>(preserve runProfileId & tests)\"]\n O --> TAGS[\"Apply requested/approved tags, if any\"]\n P --> TAGS\n TAGS --> Q[\"Review before running\"]\n Q --> R[\"Run created test<br>(watch, then read run details)\"]\n R --> S{\"Passed?\"}\n S -->|yes| SCH{\"User agrees to a schedule?<br>(ask once, optional)\"}\n SCH -->|yes| SCH2[\"Create schedule for the suite\"]\n SCH -->|no| T([\"Report created assets & result\"])\n SCH2 --> T\n S -->|no| U{\"Repair allowed by Safety<br>and scope remaining?\"}\n U -->|yes| V[\"Load bugbug-test-run-debugging<br>and repair\"]\n V --> R\n U -->|no| W([\"Stop<br>report blocker or exhausted scope\"])\n```\n\nThe run has three terminal states: a passing test, an unexecutable plan, and an\nexhausted or externally blocked repair loop. Only the repair loop cycles within\na single run; a new authoring request re-enters at the top.\n\n### Capability routing\n\nWhich surface to reach for while authoring:\n\n- **Live platform action or filtered query**: Use a BugBug MCP tool.\n- **Known-ID reads**: Follow MCP hub resource links; never construct dynamic\n resource URIs.\n- **Custom public API automation**: Use `@bugbug-io/sdk`.\n- **Unclear endpoint or payload shape**: Use\n https://app.bugbug.io/docs/schema/.\n\nFor explicit YAML import/export, generation, validation, repair, or local\n`bugbug.yaml` workflows, hand off to `bugbug-yaml-authoring`.\n\n## Output\n\n- Created or reused suite, profile, component, folder, and variable IDs.\n- Folder path of each created test and component, or root.\n- Created test ID and test name.\n- Step groups added: setup, actions, assertions.\n- Implemented steps and assertions, including any brittle selectors, missing data\n dependencies, or manual follow-up.\n- Tag changes and targets, if any.\n- Latest run result and repairs performed within the authorized scope.\n- Schedule created for the suite, if the user asked for one.\n- Readiness to run, or the external blocker preventing verification.\n\n## Resources\n\nResolve bundled resource paths relative to this skill directory.\n\n- `assets/bugbug-icon.png` is the OpenAI UI icon for this skill.\n- Load `bugbug-context-discovering` during Preflight.\n- Load `bugbug-tests-planning` before designing tests or reusable assets.\n- Load `bugbug-steps-authoring` for step payloads and names.\n- Load `bugbug-selectors-authoring` before DOM-targeted steps.\n- Read `references/community-best-practices.md` for maintainability review.\n- Read `references/email-flows.md` before authoring any flow that depends on a\n received email.\n- Read `references/tagging.md` before any tag mutation.\n"
}SHA-256 of public snapshot: 446c992bda5bc613bbaccecee28038907d603289fc5ca557d46964c2226a0c71